%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 ));
%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;
/* Destroy the main struct (reentrant only). */
yyfree ( yyscanner YY_CALL_LAST_ARG );
%endif
-%pop
return 0;
}
+%pop
/* Internal utility routines. */
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");
}
+ /* 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");