diff options
-rw-r--r-- | src/lex.l | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -62,6 +62,8 @@ in this Software without prior written authorization from The Open Group. ***********************************************************************/ /* $XFree86: xc/programs/twm/lex.l,v 3.13 2001/08/27 21:11:39 dawes Exp $ */ +#define YY_NO_INPUT /* we have our own! */ + /* #include <stdio.h> */ /* lex already includes stdio.h */ #include "twm.h" #include "gram.h" @@ -85,6 +87,8 @@ doinput(char *buf, int size) return (0); buf[0] = (char) c; + if (c == '\n') + ++yylineno; return (1); } #define YY_NO_UNPUT |