Remove stack option. We no longer use the stack, since the stack was
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 8 Nov 2002 05:20:20 +0000 (05:20 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 8 Nov 2002 05:20:20 +0000 (05:20 +0000)
commita706a1cc03800f9bedd3658c6e53f17fc1f5d350
treeaaae086730258df3a82b5302b393353e1f92fffa
parent87fbb0bffc4335f246c89e4bef56a908227c3446
Remove stack option.  We no longer use the stack, since the stack was
never deeper than 1; instead, use the new auto var c_context to record
the stacked value.

Remove nounput option.  At an unexpected end of file, we now unput
the minimal input necessary to end cleanly; this simplifies the
code.

Avoid unbounded token sizes where this is easy.

(unexpected_end_of_file): New function.
Use it to systematize the error message on unexpected EOF.
(last-string): Now auto, not static.
(YY_OBS_FREE): Remove unnecessary do while (0) wrapper.
(scanner_last_string_free): Remove; not used.
(percent_percent_count): Move decl to just before use.
(SC_ESCAPED_CHARACTER): Return ID at unexpected end of file,
not the (never otherwised-used) CHARACTER.
src/scan-gram.l