mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +00:00
tests: c++: stylistic changes.
* tests/c++.at: Don't use void for incoming arguments. Prefer cstdlib to stdlib.h.
This commit is contained in:
10
tests/c++.at
10
tests/c++.at
@@ -179,7 +179,7 @@ yy::parser::error(const yy::parser::location_type&,
|
||||
}
|
||||
|
||||
int
|
||||
main (void)
|
||||
main ()
|
||||
{
|
||||
yy::parser p;
|
||||
p.set_debug_level(!!getenv("YYDEBUG"));
|
||||
@@ -329,7 +329,7 @@ void
|
||||
}
|
||||
|
||||
int
|
||||
main (void)
|
||||
main ()
|
||||
{
|
||||
]$1[::parser p;
|
||||
return p.parse ();
|
||||
@@ -432,7 +432,7 @@ yy::parser::error (const std::string &m)
|
||||
}
|
||||
|
||||
int
|
||||
main (void)
|
||||
main ()
|
||||
{
|
||||
yy::parser parser;
|
||||
return parser.parse ();
|
||||
@@ -461,7 +461,7 @@ AT_DATA_GRAMMAR([[input.yy]],
|
||||
|
||||
%code
|
||||
{
|
||||
#include <stdlib.h>
|
||||
#include <cstdlib>
|
||||
int yylex (yy::parser::semantic_type *);
|
||||
}
|
||||
|
||||
@@ -511,7 +511,7 @@ yy::parser::error (const std::string &m)
|
||||
}
|
||||
|
||||
int
|
||||
main (void)
|
||||
main ()
|
||||
{
|
||||
yy::parser parser;
|
||||
parser.set_debug_level(!!getenv("YYDEBUG"));
|
||||
|
||||
Reference in New Issue
Block a user