mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-14 23:03:04 +00:00
(<<EOF>>): Don't close standard output.
Problem reported by Hans Aberg.
This commit is contained in:
@@ -83,7 +83,14 @@ int skel_lex (void);
|
|||||||
\n lineno++; ECHO;
|
\n lineno++; ECHO;
|
||||||
[^@\n]+ ECHO;
|
[^@\n]+ ECHO;
|
||||||
|
|
||||||
<<EOF>> free (outname); xfclose (yyout); return EOF;
|
<<EOF>> {
|
||||||
|
if (outname)
|
||||||
|
{
|
||||||
|
free (outname);
|
||||||
|
xfclose (yyout);
|
||||||
|
}
|
||||||
|
return EOF;
|
||||||
|
}
|
||||||
%%
|
%%
|
||||||
|
|
||||||
/*------------------------.
|
/*------------------------.
|
||||||
|
|||||||
Reference in New Issue
Block a user