Skip to content
Snippets Groups Projects
Commit 290bef4e authored by Bruce Momjian's avatar Bruce Momjian
Browse files

Allow for EOF or \0 as input() return from lex.

parent 5b5c83f9
No related branches found
No related tags found
No related merge requests found
/*
This should work, but non-patched flex 2.5.3 fails because input()
doesn't return EOF
doesn't return EOF or '\0'
Bruce Momjian <root@candle.pha.pa.us>
*/
%%
. {
while (input() != EOF)
int ch;
while ((ch = input()) != EOF && ch != '\0')
;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment