summaryrefslogtreecommitdiff
path: root/flex.skl
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 /flex.skl
parent872bdec7c843f9c1ef82054fbb155664a593c7bd (diff)
Fixed prefix of yyalloc,yyfree,yyrealloc in C++ scanner.
Removed yylex_destroy from C++ scanner.
Diffstat (limited to 'flex.skl')
-rw-r--r--flex.skl7
1 files changed, 3 insertions, 4 deletions
diff --git a/flex.skl b/flex.skl
index 1a46a02..d2689be 100644
--- a/flex.skl
+++ b/flex.skl
@@ -446,7 +446,6 @@ YY_BUFFER_STATE yy_scan_bytes YY_PARAMS(( yyconst char *bytes, int len YY_PROTO_
%pop
-
void *yyalloc YY_PARAMS(( yy_size_t YY_PROTO_LAST_ARG ));
void *yyrealloc YY_PARAMS(( void *, yy_size_t YY_PROTO_LAST_ARG ));
void yyfree YY_PARAMS(( void * YY_PROTO_LAST_ARG ));
@@ -2084,11 +2083,11 @@ int yylex_init( ptr_yy_globals )
%endif
+%push
+%c-only SNIP! this currently causes conflicts with the c++ scanner
/* yylex_destroy is for both reentrant and non-reentrant scanners. */
int yylex_destroy YYFARGS0(void)
{
-%push
-%c-only SNIP! this currently causes conflicts with the c++ scanner
/* Destroy the current (main) buffer. */
yy_delete_buffer( YY_G(yy_current_buffer) YY_CALL_LAST_ARG );
YY_G(yy_current_buffer) = NULL;
@@ -2109,9 +2108,9 @@ int yylex_destroy YYFARGS0(void)
/* Destroy the main struct (reentrant only). */
yyfree ( yyscanner YY_CALL_LAST_ARG );
%endif
-%pop
return 0;
}
+%pop
/* Internal utility routines. */