diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1996-07-13 22:22:16 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1996-07-13 22:22:16 +0000 |
commit | 27c2321b81de20dfac8255492e25ca25b66c6c3b (patch) | |
tree | 041166275a399c2726a206cb11fc75b80c93f5cf /usr.bin/lex/libmain.c | |
parent | 255511a5b9a50bb24fde91470b8db1d6a7cd05d2 (diff) |
updated to flex 2.5.3
Diffstat (limited to 'usr.bin/lex/libmain.c')
-rw-r--r-- | usr.bin/lex/libmain.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/lex/libmain.c b/usr.bin/lex/libmain.c index 8d58cb686a6..7e755a2e093 100644 --- a/usr.bin/lex/libmain.c +++ b/usr.bin/lex/libmain.c @@ -1,8 +1,8 @@ -/* $OpenBSD: libmain.c,v 1.2 1996/06/26 05:35:36 deraadt Exp $ */ +/* $OpenBSD: libmain.c,v 1.3 1996/07/13 22:22:05 millert Exp $ */ /* libmain - flex run-time support library "main" function */ -/* $Header: /cvs/OpenBSD/src/usr.bin/lex/libmain.c,v 1.2 1996/06/26 05:35:36 deraadt Exp $ */ +/* $Header: /cvs/OpenBSD/src/usr.bin/lex/libmain.c,v 1.3 1996/07/13 22:22:05 millert Exp $ */ #include <sys/cdefs.h> @@ -15,5 +15,8 @@ int argc; char *argv[]; char *envp[]; { - return yylex(); + while ( yylex() != 0 ) + ; + + return 0; } |