diff options
Diffstat (limited to 'usr.bin/lex/lib/libmain.c')
-rw-r--r-- | usr.bin/lex/lib/libmain.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/lex/lib/libmain.c b/usr.bin/lex/lib/libmain.c index a893c7a..6c43b08 100644 --- a/usr.bin/lex/lib/libmain.c +++ b/usr.bin/lex/lib/libmain.c @@ -1,6 +1,6 @@ /* libmain - flex run-time support library "main" function */ -/* $Header: /home/daffy/u0/vern/flex/RCS/libmain.c,v 1.3 93/04/14 22:41:55 vern Exp $ */ +/* $Header: /home/daffy/u0/vern/flex/RCS/libmain.c,v 1.4 95/09/27 12:47:55 vern Exp $ */ extern int yylex(); @@ -8,5 +8,8 @@ int main( argc, argv ) int argc; char *argv[]; { - return yylex(); + while ( yylex() != 0 ) + ; + + return 0; } |