diff options
author | Akim Demaille <demaille@gostai.com> | 2012-02-16 15:51:35 +0100 |
---|---|---|
committer | Akim Demaille <demaille@gostai.com> | 2012-02-16 15:52:13 +0100 |
commit | 0bb5783b3882aa0244d9c628b1fb9766e7e8a7d5 (patch) | |
tree | d57941c5c501912bc85005bfc270b7ceefc089cf | |
parent | 292402a9b2a9fe3440008e42a41b01185d9a4f9d (diff) | |
download | bison-0bb5783b3882aa0244d9c628b1fb9766e7e8a7d5.tar.gz |
tests: c++: stylistic changes.
* tests/c++.at: Don't use void for incoming arguments.
Prefer cstdlib to stdlib.h.
-rw-r--r-- | tests/c++.at | 10 |
1 files changed, 5 insertions, 5 deletions
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 <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")); |