void yy_switch_to_buffer YY_PARAMS(( YY_BUFFER_STATE new_buffer M4_YY_PROTO_LAST_ARG ));
-static void yy_load_buffer_state YY_PARAMS(( M4_YY_PROTO_ONLY_ARG ));
YY_BUFFER_STATE yy_create_buffer YY_PARAMS(( FILE *file, int size M4_YY_PROTO_LAST_ARG ));
void yy_delete_buffer YY_PARAMS(( YY_BUFFER_STATE b M4_YY_PROTO_LAST_ARG ));
-static void yy_init_buffer YY_PARAMS(( YY_BUFFER_STATE b, FILE *file M4_YY_PROTO_LAST_ARG ));
void yy_flush_buffer YY_PARAMS(( YY_BUFFER_STATE b M4_YY_PROTO_LAST_ARG ));
void yypush_buffer_state YY_PARAMS(( YY_BUFFER_STATE new_buffer M4_YY_PROTO_LAST_ARG ));
void yypop_buffer_state YY_PARAMS(( M4_YY_PROTO_ONLY_ARG ));
%not-for-header
static void yyensure_buffer_stack YY_PARAMS(( M4_YY_PROTO_ONLY_ARG ));
+static void yy_load_buffer_state YY_PARAMS(( M4_YY_PROTO_ONLY_ARG ));
+static void yy_init_buffer YY_PARAMS(( YY_BUFFER_STATE b, FILE *file M4_YY_PROTO_LAST_ARG ));
%ok-for-header
#define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER M4_YY_CALL_LAST_ARG)
%ok-for-header
%endif
+%not-for-header
m4_ifdef( [[M4_YY_NO_PUSH_STATE]],,
[[
static void yy_push_state YY_PARAMS(( int new_state M4_YY_PROTO_LAST_ARG));
[[
static int yy_top_state YY_PARAMS(( M4_YY_PROTO_ONLY_ARG ));
]])
+%ok-for-header
]],
[[
* easily add parameters.
*/
#ifndef YY_DECL
+#define YY_DECL_IS_OURS 1
%if-c-only Standard (non-C++) definition
%endif
{
YY_BUFFER_STATE b;
- M4_YY_DECL_GUTS_VAR();
+ m4_dnl M4_YY_DECL_GUTS_VAR();
b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) M4_YY_CALL_LAST_ARG );
if ( ! b )
{
int oerrno = errno;
- M4_YY_DECL_GUTS_VAR();
+ m4_dnl M4_YY_DECL_GUTS_VAR();
yy_flush_buffer( b M4_YY_CALL_LAST_ARG);
YY_BUFFER_STATE yy_scan_buffer YYFARGS2( char *,base, yy_size_t ,size)
{
YY_BUFFER_STATE b;
- M4_YY_DECL_GUTS_VAR();
+ m4_dnl M4_YY_DECL_GUTS_VAR();
if ( size < 2 ||
base[size-2] != YY_END_OF_BUFFER_CHAR ||
*/
YY_BUFFER_STATE yy_scan_string YYFARGS1( yyconst char *,str)
{
- M4_YY_DECL_GUTS_VAR();
+ m4_dnl M4_YY_DECL_GUTS_VAR();
return yy_scan_bytes( str, strlen(str) M4_YY_CALL_LAST_ARG);
}
char *buf;
yy_size_t n;
int i;
- M4_YY_DECL_GUTS_VAR();
+ m4_dnl M4_YY_DECL_GUTS_VAR();
/* Get memory for full buffer, including space for trailing EOB's. */
n = len + 2;
%if-c-only
static void yy_fatal_error YYFARGS1(yyconst char*, msg)
{
- M4_YY_DECL_GUTS_VAR();
+ m4_dnl M4_YY_DECL_GUTS_VAR();
(void) fprintf( stderr, "%s\n", msg );
exit( YY_EXIT_FAILURE );
}
[[
void *yyalloc YYFARGS1( yy_size_t ,size)
{
- M4_YY_DECL_GUTS_VAR();
return (void *) malloc( size );
}
]])
[[
void *yyrealloc YYFARGS2( void *,ptr, yy_size_t ,size)
{
- M4_YY_DECL_GUTS_VAR();
/* The cast to (char *) in the following accommodates both
* implementations that use char* generic pointers, and those
* that use void* generic pointers. It works with the latter
[[
void yyfree YYFARGS1( void *,ptr)
{
- M4_YY_DECL_GUTS_VAR();
free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
}
]])
static int yytbl_hdr_read YYFARGS2(struct yytbl_hdr *, th, struct yytbl_reader *, rd)
{
int bytes;
- M4_YY_DECL_GUTS_VAR();
memset (th, 0, sizeof (struct yytbl_hdr));
if (yytbl_read32 (&(th->th_magic), rd) != 0)
static struct yytbl_dmap *yytbl_dmap_lookup YYFARGS2(struct yytbl_dmap *, dmap,
int, id)
{
- M4_YY_DECL_GUTS_VAR();
while (dmap->dm_id)
if (dmap->dm_id == id)
return dmap;
struct yytbl_dmap *transdmap=0;
int len, i, rv, inner_loop_count;
void *p=0;
- M4_YY_DECL_GUTS_VAR();
memset (&td, 0, sizeof (struct yytbl_data));
int rv=0;
struct yytbl_hdr th;
struct yytbl_reader rd;
- M4_YY_DECL_GUTS_VAR();
rd.fp = fp;
th.th_version = NULL;
/** Load the DFA tables for this scanner from the given stream. */
int yytables_fload YYFARGS1(FILE *, fp)
{
- M4_YY_DECL_GUTS_VAR();
if( yytbl_fload(fp, YYTABLES_NAME M4_YY_CALL_LAST_ARG) != 0)
return -1;
int yytables_destroy YYFARGS0(void)
{
struct yytbl_dmap *dmap=0;
- M4_YY_DECL_GUTS_VAR();
if(!M4_YY_TABLES_VERIFY){
/* Walk the dmap, freeing the pointers */
]])
%ok-for-header
+#undef YY_NEW_FILE
+#undef YY_FLUSH_BUFFER
+#undef yy_set_bol
+#undef yy_new_buffer
+#undef yy_set_interactive
+
+#ifdef YY_DECL_IS_OURS
+#undef YY_DECL_IS_OURS
+#undef YY_DECL
+#endif