Branch: Tag:

1998-04-27

1998-04-27 19:17:16 by Henrik Grubbström (Grubba) <grubba@grubba.org>

yylex() now returns F_LEX_EOF at end of file, to make improved EOF handling
in Bison possible.
NOTE: yylex() MUST support being called after EOF if this option is enabled.

Rev: src/lex.c:1.52

4:   ||| See the files COPYING and DISCLAIMER for more information.   \*/   #include "global.h" - RCSID("$Id: lex.c,v 1.51 1998/04/10 23:29:21 grubba Exp $"); + RCSID("$Id: lex.c,v 1.52 1998/04/27 19:17:16 grubba Exp $");   #include "language.h"   #include "array.h"   #include "lex.h"
482:    {    case 0:    lex.pos--; + #ifdef F_LEX_EOF +  return F_LEX_EOF; + #else /* !F_LEX_EOF */    return 0; -  + #endif /* F_LEX_EOF */       case '\n':    lex.current_line++;