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 /flex.skl | |
parent | 872bdec7c843f9c1ef82054fbb155664a593c7bd (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.skl | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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. */ |