summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorJohn Millaway <john43@users.sourceforge.net>2002-11-22 20:38:04 +0000
committerJohn Millaway <john43@users.sourceforge.net>2002-11-22 20:38:04 +0000
commit3aff93b735df32933e2c5d5004eaae5937deeb0c (patch)
treed57fff92500196f3ce2bb61a0dad5b2f663ac680 /main.c
parent872bdec7c843f9c1ef82054fbb155664a593c7bd (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.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/main.c b/main.c
index a168920..c25c48f 100644
--- a/main.c
+++ b/main.c
@@ -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");