mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-22 02:33:03 +00:00
fix C90 compliance
* data/glr.c, src/graphviz.h, src/ielr.c, src/scan-gram.l, * src/system.h, tests/actions.at, tests/glr-regression.at: Do not use // comments. Do not introduce variables after statements. Provide "main" with a return value.
This commit is contained in:
@@ -90,7 +90,7 @@ AT_DATA_GRAMMAR([[input.y]],
|
||||
%code
|
||||
{
|
||||
# include <stdio.h>
|
||||
# include <stdlib.h> // getenv
|
||||
# include <stdlib.h> /* getenv */
|
||||
]AT_YYERROR_DECLARE[
|
||||
]AT_YYLEX_DECLARE[
|
||||
}
|
||||
@@ -195,7 +195,7 @@ AT_DATA_GRAMMAR([[input.y]],
|
||||
%code
|
||||
{
|
||||
# include <stdio.h>
|
||||
# include <stdlib.h> // getenv
|
||||
# include <stdlib.h> /* getenv */
|
||||
]AT_YYERROR_DECLARE[
|
||||
]AT_YYLEX_DECLARE[
|
||||
}
|
||||
@@ -223,6 +223,7 @@ main (void)
|
||||
|
||||
TEST(7, 2, 0, 2);
|
||||
TEST(8, 0, 8, 0);
|
||||
return 0;
|
||||
}
|
||||
]])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user