From: Akim Demaille Date: Thu, 16 Feb 2012 14:51:35 +0000 (+0100) Subject: tests: c++: stylistic changes. X-Git-Tag: v2.7.90~525 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/0bb5783b3882aa0244d9c628b1fb9766e7e8a7d5 tests: c++: stylistic changes. * tests/c++.at: Don't use void for incoming arguments. Prefer cstdlib to stdlib.h. --- diff --git a/tests/c++.at b/tests/c++.at index 3510498b..2d5a026d 100644 --- a/tests/c++.at +++ b/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 + #include 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"));