diff options
author | John Millaway <john43@users.sourceforge.net> | 2002-11-22 20:38:04 +0000 |
---|---|---|
committer | John Millaway <john43@users.sourceforge.net> | 2002-11-22 20:38:04 +0000 |
commit | 3aff93b735df32933e2c5d5004eaae5937deeb0c (patch) | |
tree | d57fff92500196f3ce2bb61a0dad5b2f663ac680 /main.c | |
parent | 872bdec7c843f9c1ef82054fbb155664a593c7bd (diff) |
Fixed prefix of yyalloc,yyfree,yyrealloc in C++ scanner.
Removed yylex_destroy from C++ scanner.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -421,9 +421,6 @@ void check_options () GEN_PREFIX ("get_text"); GEN_PREFIX ("get_lineno"); GEN_PREFIX ("set_lineno"); - GEN_PREFIX ("alloc"); - GEN_PREFIX ("realloc"); - GEN_PREFIX ("free"); outn ("#ifdef YY_BISON_BRIDGE"); GEN_PREFIX ("get_lval"); @@ -434,6 +431,13 @@ void check_options () } + /* The alloc/realloc/free functions are used internally by the + * generated scanner for both and C++. + */ + GEN_PREFIX ("alloc"); + GEN_PREFIX ("realloc"); + GEN_PREFIX ("free"); + if (!reentrant) GEN_PREFIX ("lineno"); |