mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-22 10:43:02 +00:00
Merge branch 'origin/maint'
* origin/maint: maint: credit Wojciech Polak maint: post-release administrivia version 2.7 yacc.c: scope reduction tests: C90 compliance fix C90 compliance glr.c: scope reduction gnulib: update Conflicts: NEWS gnulib src/scan-gram.l src/system.h
This commit is contained in:
@@ -195,10 +195,11 @@ yylex (void)
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int res;
|
||||
input = stdin;
|
||||
if (argc == 2 && !(input = fopen (argv[1], "r")))
|
||||
return 3;
|
||||
int res = yyparse ();
|
||||
res = yyparse ();
|
||||
if (argc == 2 && fclose (input))
|
||||
return 4;
|
||||
return res;
|
||||
@@ -327,10 +328,11 @@ int yylex (void)
|
||||
int
|
||||
main(int argc, char* argv[])
|
||||
{
|
||||
int res;
|
||||
input = stdin;
|
||||
if (argc == 2 && !(input = fopen (argv[1], "r")))
|
||||
return 3;
|
||||
int res = yyparse ();
|
||||
res = yyparse ();
|
||||
if (argc == 2 && fclose (input))
|
||||
return 4;
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user