skel.c (flex-2.6.3) | : | skel.c (flex-2.6.4) | ||
---|---|---|---|---|
/* File created from flex.skl via mkskel.sh */ | /* File created from flex.skl via mkskel.sh */ | |||
#include "flexdef.h" | #include "flexdef.h" | |||
const char *skel[] = { | const char *skel[] = { | |||
"%# -*-C-*- vi: set ft=c:", | ||||
"%# This file is processed in several stages.", | ||||
"%# Here are the stages, as best as I can describe:", | ||||
"%#", | ||||
"%# 1. flex.skl is processed through GNU m4 during the", | ||||
"%# pre-compilation stage of flex. Only macros starting", | ||||
"%# with `m4preproc_' are processed, and quoting is normal.", | ||||
"%#", | ||||
"%# 2. The preprocessed skeleton is translated verbatim into a", | ||||
"%# C array, saved as \"skel.c\" and compiled into the flex binary.", | ||||
"%#", | ||||
"%# 3. At runtime, the skeleton is generated and filtered (again)", | ||||
"%# through m4. Macros beginning with `m4_' will be processed.", | ||||
"%# The quoting is \"[[\" and \"]]\" so we don't interfere with", | ||||
"%# user code.", | ||||
"%#", | ||||
"%# All generate macros for the m4 stage contain the text \"m4\" or \"M4\"", | ||||
"%# in them. This is to distinguish them from CPP macros.", | ||||
"%# The exception to this rule is YY_G, which is an m4 macro,", | ||||
"%# but it needs to be remain short because it is used everywhere.", | ||||
"%#", | ||||
"/* A lexical scanner generated by flex */", | "/* A lexical scanner generated by flex */", | |||
"", | "", | |||
"%# Macros for preproc stage.", | ||||
"", | "", | |||
"", | "", | |||
"%# Macros for runtime processing stage.", | ||||
"m4_changecom", | "m4_changecom", | |||
"m4_changequote", | "m4_changequote", | |||
"m4_changequote([[, ]])", | "m4_changequote([[, ]])", | |||
"", | "", | |||
"%#", | ||||
"%# Lines in this skeleton starting with a \"%\" character are \"control lines | ||||
\"", | ||||
"%# and affect the generation of the scanner. The possible control codes are", | ||||
"%# listed and processed in misc.c.", | ||||
"%#", | ||||
"%# %# - A comment. The current line is omitted from the generated scanner | ||||
.", | ||||
"%# %if-c++-only - The following lines are printed for C++ scanners ONLY." | ||||
, | ||||
"%# %if-c-only - The following lines are NOT printed for C++ scanners.", | ||||
"%# %if-c-or-c++ - The following lines are printed in BOTH C and C++ scann | ||||
ers.", | ||||
"%# %if-reentrant - Print for reentrant scanners.(push)", | ||||
"%# %if-not-reentrant - Print for non-reentrant scanners. (push)", | ||||
"%# %if-bison-bridge - Print for bison-bridge. (push)", | ||||
"%# %if-not-bison-bridge - Print for non-bison-bridge. (push)", | ||||
"%# %endif - pop from the previous if code.", | ||||
"%# %% - A stop-point, where code is inserted by flex.", | ||||
"%# Each stop-point is numbered here and also in the code generator." | ||||
, | ||||
"%# (See gen.c, etc. for details.)", | ||||
"%# %not-for-header - Begin code that should NOT appear in a \".h\" file." | ||||
, | ||||
"%# %ok-for-header - %c and %e are used for building a header file.", | ||||
"%# %if-tables-serialization", | ||||
"%#", | ||||
"%# All control-lines EXCEPT comment lines (\"%#\") will be inserted into", | ||||
"%# the generated scanner as a C-style comment. This is to aid those who", | ||||
"%# edit the skeleton.", | ||||
"%#", | ||||
"", | "", | |||
"%not-for-header", | "%not-for-header", | |||
"%if-c-only", | "%if-c-only", | |||
"%if-not-reentrant", | "%if-not-reentrant", | |||
"m4_ifelse(M4_YY_PREFIX,yy,,", | "m4_ifelse(M4_YY_PREFIX,yy,,", | |||
"#define yy_create_buffer M4_YY_PREFIX[[_create_buffer]]", | "#define yy_create_buffer M4_YY_PREFIX[[_create_buffer]]", | |||
"#define yy_delete_buffer M4_YY_PREFIX[[_delete_buffer]]", | "#define yy_delete_buffer M4_YY_PREFIX[[_delete_buffer]]", | |||
"#define yy_flex_debug M4_YY_PREFIX[[_flex_debug]]", | "#define yy_scan_buffer M4_YY_PREFIX[[_scan_buffer]]", | |||
"#define yy_scan_string M4_YY_PREFIX[[_scan_string]]", | ||||
"#define yy_scan_bytes M4_YY_PREFIX[[_scan_bytes]]", | ||||
"#define yy_init_buffer M4_YY_PREFIX[[_init_buffer]]", | "#define yy_init_buffer M4_YY_PREFIX[[_init_buffer]]", | |||
"#define yy_flush_buffer M4_YY_PREFIX[[_flush_buffer]]", | "#define yy_flush_buffer M4_YY_PREFIX[[_flush_buffer]]", | |||
"#define yy_load_buffer_state M4_YY_PREFIX[[_load_buffer_state]]", | "#define yy_load_buffer_state M4_YY_PREFIX[[_load_buffer_state]]", | |||
"#define yy_switch_to_buffer M4_YY_PREFIX[[_switch_to_buffer]]", | "#define yy_switch_to_buffer M4_YY_PREFIX[[_switch_to_buffer]]", | |||
"#define yypush_buffer_state M4_YY_PREFIX[[push_buffer_state]]", | ||||
"#define yypop_buffer_state M4_YY_PREFIX[[pop_buffer_state]]", | ||||
"#define yyensure_buffer_stack M4_YY_PREFIX[[ensure_buffer_stack]]", | ||||
"#define yy_flex_debug M4_YY_PREFIX[[_flex_debug]]", | ||||
"#define yyin M4_YY_PREFIX[[in]]", | "#define yyin M4_YY_PREFIX[[in]]", | |||
"#define yyleng M4_YY_PREFIX[[leng]]", | "#define yyleng M4_YY_PREFIX[[leng]]", | |||
"#define yylex M4_YY_PREFIX[[lex]]", | "#define yylex M4_YY_PREFIX[[lex]]", | |||
"#define yylineno M4_YY_PREFIX[[lineno]]", | "#define yylineno M4_YY_PREFIX[[lineno]]", | |||
"#define yyout M4_YY_PREFIX[[out]]", | "#define yyout M4_YY_PREFIX[[out]]", | |||
"#define yyrestart M4_YY_PREFIX[[restart]]", | "#define yyrestart M4_YY_PREFIX[[restart]]", | |||
"#define yytext M4_YY_PREFIX[[text]]", | "#define yytext M4_YY_PREFIX[[text]]", | |||
"#define yywrap M4_YY_PREFIX[[wrap]]", | "#define yywrap M4_YY_PREFIX[[wrap]]", | |||
"#define yyalloc M4_YY_PREFIX[[alloc]]", | "#define yyalloc M4_YY_PREFIX[[alloc]]", | |||
"#define yyrealloc M4_YY_PREFIX[[realloc]]", | "#define yyrealloc M4_YY_PREFIX[[realloc]]", | |||
"#define yyfree M4_YY_PREFIX[[free]]", | "#define yyfree M4_YY_PREFIX[[free]]", | |||
")", | ")", | |||
"%endif", | "%endif", | |||
"%endif", | "%endif", | |||
"%ok-for-header", | "%ok-for-header", | |||
"", | "", | |||
"#define FLEX_SCANNER", | "#define FLEX_SCANNER", | |||
"#define YY_FLEX_MAJOR_VERSION 2", | "#define YY_FLEX_MAJOR_VERSION 2", | |||
"#define YY_FLEX_MINOR_VERSION 6", | "#define YY_FLEX_MINOR_VERSION 6", | |||
"#define YY_FLEX_SUBMINOR_VERSION 3", | "#define YY_FLEX_SUBMINOR_VERSION 4", | |||
"#if YY_FLEX_SUBMINOR_VERSION > 0", | "#if YY_FLEX_SUBMINOR_VERSION > 0", | |||
"#define FLEX_BETA", | "#define FLEX_BETA", | |||
"#endif", | "#endif", | |||
"", | "", | |||
"%# Some negated symbols", | ||||
"m4_ifdef( [[M4_YY_IN_HEADER]], , [[m4_define([[M4_YY_NOT_IN_HEADER]], [[]])]] )", | "m4_ifdef( [[M4_YY_IN_HEADER]], , [[m4_define([[M4_YY_NOT_IN_HEADER]], [[]])]] )", | |||
"m4_ifdef( [[M4_YY_REENTRANT]], , [[m4_define([[M4_YY_NOT_REENTRANT]], [[]])]] )", | "m4_ifdef( [[M4_YY_REENTRANT]], , [[m4_define([[M4_YY_NOT_REENTRANT]], [[]])]] )", | |||
"", | "", | |||
"%# This is the m4 way to say \"(stack_used || is_reentrant)", | ||||
"m4_ifdef( [[M4_YY_STACK_USED]], [[m4_define([[M4_YY_HAS_START_STACK_VARS]])]] )", | "m4_ifdef( [[M4_YY_STACK_USED]], [[m4_define([[M4_YY_HAS_START_STACK_VARS]])]] )", | |||
"m4_ifdef( [[M4_YY_REENTRANT]], [[m4_define([[M4_YY_HAS_START_STACK_VARS]])]] )", | "m4_ifdef( [[M4_YY_REENTRANT]], [[m4_define([[M4_YY_HAS_START_STACK_VARS]])]] )", | |||
"", | "", | |||
"%# Prefixes.", | ||||
"%# The complexity here is necessary so that m4 preserves", | ||||
"%# the argument lists to each C function.", | ||||
"", | "", | |||
"", | "", | |||
"m4_ifdef( [[M4_YY_PREFIX]],, [[m4_define([[M4_YY_PREFIX]], [[yy]])]])", | "m4_ifdef( [[M4_YY_PREFIX]],, [[m4_define([[M4_YY_PREFIX]], [[yy]])]])", | |||
"", | "", | |||
"", | "", | |||
"", | "", | |||
"%if-c++-only", | "%if-c++-only", | |||
" /* The c++ scanner is a mess. The FlexLexer.h header file relies on the", | " /* The c++ scanner is a mess. The FlexLexer.h header file relies on the", | |||
" * following macro. This is required in order to pass the c++-multiple-sc anners", | " * following macro. This is required in order to pass the c++-multiple-sc anners", | |||
" * test in the regression suite. We get reports that it breaks inheritanc e.", | " * test in the regression suite. We get reports that it breaks inheritanc e.", | |||
" * We will address this in a future release of flex, or omit the C++ scan ner", | " * We will address this in a future release of flex, or omit the C++ scan ner", | |||
" * altogether.", | " * altogether.", | |||
" */", | " */", | |||
" #define yyFlexLexer M4_YY_PREFIX[[FlexLexer]]", | " #define yyFlexLexer M4_YY_PREFIX[[FlexLexer]]", | |||
"%endif", | "%endif", | |||
"", | "", | |||
"%if-c-only", | "%if-c-only", | |||
" [[#define yy_create_buffer ]]M4_YY_PREFIX[[_create_buffer]]", | "m4_ifelse(M4_YY_PREFIX,yy,,", | |||
"m4_define([[yy_create_buffer]], [[M4_YY_PREFIX[[_create_buffer]]m4_ifelse($#, | " ", | |||
0,,[[($@)]])]])", | "[[#ifdef yy_create_buffer", | |||
" [[#define yy_delete_buffer ]]M4_YY_PREFIX[[_delete_buffer]]", | "#define ]]M4_YY_PREFIX[[_create_buffer_ALREADY_DEFINED", | |||
"m4_define([[yy_delete_buffer]], [[M4_YY_PREFIX[[_delete_buffer]]m4_ifelse($#, | "#else", | |||
0,,[[($@)]])]])", | "#define yy_create_buffer ]]M4_YY_PREFIX[[_create_buffer", | |||
" [[#define yy_scan_buffer ]]M4_YY_PREFIX[[_scan_buffer]]", | "#endif]]", | |||
"m4_define([[yy_scan_buffer]], [[M4_YY_PREFIX[[_scan_buffer]]m4_ifelse($#,0,,[ | "", | |||
[($@)]])]])", | " ", | |||
" [[#define yy_scan_string ]]M4_YY_PREFIX[[_scan_string]]", | "[[#ifdef yy_delete_buffer", | |||
"m4_define([[yy_scan_string]], [[M4_YY_PREFIX[[_scan_string]]m4_ifelse($#,0,,[ | "#define ]]M4_YY_PREFIX[[_delete_buffer_ALREADY_DEFINED", | |||
[($@)]])]])", | "#else", | |||
" [[#define yy_scan_bytes ]]M4_YY_PREFIX[[_scan_bytes]]", | "#define yy_delete_buffer ]]M4_YY_PREFIX[[_delete_buffer", | |||
"m4_define([[yy_scan_bytes]], [[M4_YY_PREFIX[[_scan_bytes]]m4_ifelse($#,0,,[[( | "#endif]]", | |||
$@)]])]])", | "", | |||
" [[#define yy_init_buffer ]]M4_YY_PREFIX[[_init_buffer]]", | " ", | |||
"m4_define([[yy_init_buffer]], [[M4_YY_PREFIX[[_init_buffer]]m4_ifelse($#,0,,[ | "[[#ifdef yy_scan_buffer", | |||
[($@)]])]])", | "#define ]]M4_YY_PREFIX[[_scan_buffer_ALREADY_DEFINED", | |||
" [[#define yy_flush_buffer ]]M4_YY_PREFIX[[_flush_buffer]]", | "#else", | |||
"m4_define([[yy_flush_buffer]], [[M4_YY_PREFIX[[_flush_buffer]]m4_ifelse($#,0, | "#define yy_scan_buffer ]]M4_YY_PREFIX[[_scan_buffer", | |||
,[[($@)]])]])", | "#endif]]", | |||
" [[#define yy_load_buffer_state ]]M4_YY_PREFIX[[_load_buffer_state]]", | "", | |||
"m4_define([[yy_load_buffer_state]], [[M4_YY_PREFIX[[_load_buffer_state]]m4_if | " ", | |||
else($#,0,,[[($@)]])]])", | "[[#ifdef yy_scan_string", | |||
" [[#define yy_switch_to_buffer ]]M4_YY_PREFIX[[_switch_to_buffer]]", | "#define ]]M4_YY_PREFIX[[_scan_string_ALREADY_DEFINED", | |||
"m4_define([[yy_switch_to_buffer]], [[M4_YY_PREFIX[[_switch_to_buffer]]m4_ifel | "#else", | |||
se($#,0,,[[($@)]])]])", | "#define yy_scan_string ]]M4_YY_PREFIX[[_scan_string", | |||
" [[#define yypush_buffer_state ]]M4_YY_PREFIX[[push_buffer_state]]", | "#endif]]", | |||
"m4_define([[yypush_buffer_state]], [[M4_YY_PREFIX[[push_buffer_state]]m4_ifel | "", | |||
se($#,0,,[[($@)]])]])", | " ", | |||
" [[#define yypop_buffer_state ]]M4_YY_PREFIX[[pop_buffer_state]]", | "[[#ifdef yy_scan_bytes", | |||
"m4_define([[yypop_buffer_state]], [[M4_YY_PREFIX[[pop_buffer_state]]m4_ifelse | "#define ]]M4_YY_PREFIX[[_scan_bytes_ALREADY_DEFINED", | |||
($#,0,,[[($@)]])]])", | "#else", | |||
" [[#define yyensure_buffer_stack ]]M4_YY_PREFIX[[ensure_buffer_stack]]", | "#define yy_scan_bytes ]]M4_YY_PREFIX[[_scan_bytes", | |||
"m4_define([[yyensure_buffer_stack]], [[M4_YY_PREFIX[[ensure_buffer_stack]]m4_ | "#endif]]", | |||
ifelse($#,0,,[[($@)]])]])", | "", | |||
" [[#define yylex ]]M4_YY_PREFIX[[lex]]", | " ", | |||
"m4_define([[yylex]], [[M4_YY_PREFIX[[lex]]m4_ifelse($#,0,,[[($@)]])]])", | "[[#ifdef yy_init_buffer", | |||
" [[#define yyrestart ]]M4_YY_PREFIX[[restart]]", | "#define ]]M4_YY_PREFIX[[_init_buffer_ALREADY_DEFINED", | |||
"m4_define([[yyrestart]], [[M4_YY_PREFIX[[restart]]m4_ifelse($#,0,,[[($@)]])]] | "#else", | |||
)", | "#define yy_init_buffer ]]M4_YY_PREFIX[[_init_buffer", | |||
" [[#define yylex_init ]]M4_YY_PREFIX[[lex_init]]", | "#endif]]", | |||
"m4_define([[yylex_init]], [[M4_YY_PREFIX[[lex_init]]m4_ifelse($#,0,,[[($@)]]) | "", | |||
]])", | " ", | |||
" [[#define yylex_init_extra ]]M4_YY_PREFIX[[lex_init_extra]]", | "[[#ifdef yy_flush_buffer", | |||
"m4_define([[yylex_init_extra]], [[M4_YY_PREFIX[[lex_init_extra]]m4_ifelse($#, | "#define ]]M4_YY_PREFIX[[_flush_buffer_ALREADY_DEFINED", | |||
0,,[[($@)]])]])", | "#else", | |||
" [[#define yylex_destroy ]]M4_YY_PREFIX[[lex_destroy]]", | "#define yy_flush_buffer ]]M4_YY_PREFIX[[_flush_buffer", | |||
"m4_define([[yylex_destroy]], [[M4_YY_PREFIX[[lex_destroy]]m4_ifelse($#,0,,[[( | "#endif]]", | |||
$@)]])]])", | "", | |||
" [[#define yyget_debug ]]M4_YY_PREFIX[[get_debug]]", | " ", | |||
"m4_define([[yyget_debug]], [[M4_YY_PREFIX[[get_debug]]m4_ifelse($#,0,,[[($@)] | "[[#ifdef yy_load_buffer_state", | |||
])]])", | "#define ]]M4_YY_PREFIX[[_load_buffer_state_ALREADY_DEFINED", | |||
" [[#define yyset_debug ]]M4_YY_PREFIX[[set_debug]]", | "#else", | |||
"m4_define([[yyset_debug]], [[M4_YY_PREFIX[[set_debug]]m4_ifelse($#,0,,[[($@)] | "#define yy_load_buffer_state ]]M4_YY_PREFIX[[_load_buffer_state", | |||
])]])", | "#endif]]", | |||
" [[#define yyget_extra ]]M4_YY_PREFIX[[get_extra]]", | "", | |||
"m4_define([[yyget_extra]], [[M4_YY_PREFIX[[get_extra]]m4_ifelse($#,0,,[[($@)] | " ", | |||
])]])", | "[[#ifdef yy_switch_to_buffer", | |||
" [[#define yyset_extra ]]M4_YY_PREFIX[[set_extra]]", | "#define ]]M4_YY_PREFIX[[_switch_to_buffer_ALREADY_DEFINED", | |||
"m4_define([[yyset_extra]], [[M4_YY_PREFIX[[set_extra]]m4_ifelse($#,0,,[[($@)] | "#else", | |||
])]])", | "#define yy_switch_to_buffer ]]M4_YY_PREFIX[[_switch_to_buffer", | |||
" [[#define yyget_in ]]M4_YY_PREFIX[[get_in]]", | "#endif]]", | |||
"m4_define([[yyget_in]], [[M4_YY_PREFIX[[get_in]]m4_ifelse($#,0,,[[($@)]])]])" | "", | |||
, | " ", | |||
" [[#define yyset_in ]]M4_YY_PREFIX[[set_in]]", | "[[#ifdef yypush_buffer_state", | |||
"m4_define([[yyset_in]], [[M4_YY_PREFIX[[set_in]]m4_ifelse($#,0,,[[($@)]])]])" | "#define ]]M4_YY_PREFIX[[push_buffer_state_ALREADY_DEFINED", | |||
, | "#else", | |||
" [[#define yyget_out ]]M4_YY_PREFIX[[get_out]]", | "#define yypush_buffer_state ]]M4_YY_PREFIX[[push_buffer_state", | |||
"m4_define([[yyget_out]], [[M4_YY_PREFIX[[get_out]]m4_ifelse($#,0,,[[($@)]])]] | "#endif]]", | |||
)", | "", | |||
" [[#define yyset_out ]]M4_YY_PREFIX[[set_out]]", | " ", | |||
"m4_define([[yyset_out]], [[M4_YY_PREFIX[[set_out]]m4_ifelse($#,0,,[[($@)]])]] | "[[#ifdef yypop_buffer_state", | |||
)", | "#define ]]M4_YY_PREFIX[[pop_buffer_state_ALREADY_DEFINED", | |||
" [[#define yyget_leng ]]M4_YY_PREFIX[[get_leng]]", | "#else", | |||
"m4_define([[yyget_leng]], [[M4_YY_PREFIX[[get_leng]]m4_ifelse($#,0,,[[($@)]]) | "#define yypop_buffer_state ]]M4_YY_PREFIX[[pop_buffer_state", | |||
]])", | "#endif]]", | |||
" [[#define yyget_text ]]M4_YY_PREFIX[[get_text]]", | "", | |||
"m4_define([[yyget_text]], [[M4_YY_PREFIX[[get_text]]m4_ifelse($#,0,,[[($@)]]) | " ", | |||
]])", | "[[#ifdef yyensure_buffer_stack", | |||
" [[#define yyget_lineno ]]M4_YY_PREFIX[[get_lineno]]", | "#define ]]M4_YY_PREFIX[[ensure_buffer_stack_ALREADY_DEFINED", | |||
"m4_define([[yyget_lineno]], [[M4_YY_PREFIX[[get_lineno]]m4_ifelse($#,0,,[[($@ | "#else", | |||
)]])]])", | "#define yyensure_buffer_stack ]]M4_YY_PREFIX[[ensure_buffer_stack", | |||
" [[#define yyset_lineno ]]M4_YY_PREFIX[[set_lineno]]", | "#endif]]", | |||
"m4_define([[yyset_lineno]], [[M4_YY_PREFIX[[set_lineno]]m4_ifelse($#,0,,[[($@ | "", | |||
)]])]])", | " ", | |||
"[[#ifdef yylex", | ||||
"#define ]]M4_YY_PREFIX[[lex_ALREADY_DEFINED", | ||||
"#else", | ||||
"#define yylex ]]M4_YY_PREFIX[[lex", | ||||
"#endif]]", | ||||
"", | ||||
" ", | ||||
"[[#ifdef yyrestart", | ||||
"#define ]]M4_YY_PREFIX[[restart_ALREADY_DEFINED", | ||||
"#else", | ||||
"#define yyrestart ]]M4_YY_PREFIX[[restart", | ||||
"#endif]]", | ||||
"", | ||||
" ", | ||||
"[[#ifdef yylex_init", | ||||
"#define ]]M4_YY_PREFIX[[lex_init_ALREADY_DEFINED", | ||||
"#else", | ||||
"#define yylex_init ]]M4_YY_PREFIX[[lex_init", | ||||
"#endif]]", | ||||
"", | ||||
" ", | ||||
"[[#ifdef yylex_init_extra", | ||||
"#define ]]M4_YY_PREFIX[[lex_init_extra_ALREADY_DEFINED", | ||||
"#else", | ||||
"#define yylex_init_extra ]]M4_YY_PREFIX[[lex_init_extra", | ||||
"#endif]]", | ||||
"", | ||||
" ", | ||||
"[[#ifdef yylex_destroy", | ||||
"#define ]]M4_YY_PREFIX[[lex_destroy_ALREADY_DEFINED", | ||||
"#else", | ||||
"#define yylex_destroy ]]M4_YY_PREFIX[[lex_destroy", | ||||
"#endif]]", | ||||
"", | ||||
" ", | ||||
"[[#ifdef yyget_debug", | ||||
"#define ]]M4_YY_PREFIX[[get_debug_ALREADY_DEFINED", | ||||
"#else", | ||||
"#define yyget_debug ]]M4_YY_PREFIX[[get_debug", | ||||
"#endif]]", | ||||
"", | ||||
" ", | ||||
"[[#ifdef yyset_debug", | ||||
"#define ]]M4_YY_PREFIX[[set_debug_ALREADY_DEFINED", | ||||
"#else", | ||||
"#define yyset_debug ]]M4_YY_PREFIX[[set_debug", | ||||
"#endif]]", | ||||
"", | ||||
" ", | ||||
"[[#ifdef yyget_extra", | ||||
"#define ]]M4_YY_PREFIX[[get_extra_ALREADY_DEFINED", | ||||
"#else", | ||||
"#define yyget_extra ]]M4_YY_PREFIX[[get_extra", | ||||
"#endif]]", | ||||
"", | ||||
" ", | ||||
"[[#ifdef yyset_extra", | ||||
"#define ]]M4_YY_PREFIX[[set_extra_ALREADY_DEFINED", | ||||
"#else", | ||||
"#define yyset_extra ]]M4_YY_PREFIX[[set_extra", | ||||
"#endif]]", | ||||
"", | ||||
" ", | ||||
"[[#ifdef yyget_in", | ||||
"#define ]]M4_YY_PREFIX[[get_in_ALREADY_DEFINED", | ||||
"#else", | ||||
"#define yyget_in ]]M4_YY_PREFIX[[get_in", | ||||
"#endif]]", | ||||
"", | ||||
" ", | ||||
"[[#ifdef yyset_in", | ||||
"#define ]]M4_YY_PREFIX[[set_in_ALREADY_DEFINED", | ||||
"#else", | ||||
"#define yyset_in ]]M4_YY_PREFIX[[set_in", | ||||
"#endif]]", | ||||
"", | ||||
" ", | ||||
"[[#ifdef yyget_out", | ||||
"#define ]]M4_YY_PREFIX[[get_out_ALREADY_DEFINED", | ||||
"#else", | ||||
"#define yyget_out ]]M4_YY_PREFIX[[get_out", | ||||
"#endif]]", | ||||
"", | ||||
" ", | ||||
"[[#ifdef yyset_out", | ||||
"#define ]]M4_YY_PREFIX[[set_out_ALREADY_DEFINED", | ||||
"#else", | ||||
"#define yyset_out ]]M4_YY_PREFIX[[set_out", | ||||
"#endif]]", | ||||
"", | ||||
" ", | ||||
"[[#ifdef yyget_leng", | ||||
"#define ]]M4_YY_PREFIX[[get_leng_ALREADY_DEFINED", | ||||
"#else", | ||||
"#define yyget_leng ]]M4_YY_PREFIX[[get_leng", | ||||
"#endif]]", | ||||
"", | ||||
" ", | ||||
"[[#ifdef yyget_text", | ||||
"#define ]]M4_YY_PREFIX[[get_text_ALREADY_DEFINED", | ||||
"#else", | ||||
"#define yyget_text ]]M4_YY_PREFIX[[get_text", | ||||
"#endif]]", | ||||
"", | ||||
" ", | ||||
"[[#ifdef yyget_lineno", | ||||
"#define ]]M4_YY_PREFIX[[get_lineno_ALREADY_DEFINED", | ||||
"#else", | ||||
"#define yyget_lineno ]]M4_YY_PREFIX[[get_lineno", | ||||
"#endif]]", | ||||
"", | ||||
" ", | ||||
"[[#ifdef yyset_lineno", | ||||
"#define ]]M4_YY_PREFIX[[set_lineno_ALREADY_DEFINED", | ||||
"#else", | ||||
"#define yyset_lineno ]]M4_YY_PREFIX[[set_lineno", | ||||
"#endif]]", | ||||
"", | ||||
" m4_ifdef( [[M4_YY_REENTRANT]],", | " m4_ifdef( [[M4_YY_REENTRANT]],", | |||
" [[", | " [[", | |||
" [[#define yyget_column ]]M4_YY_PREFIX[[get_column]]", | " ", | |||
"m4_define([[yyget_column]], [[M4_YY_PREFIX[[get_column]]m4_ifelse($#,0,,[[($@ | "[[#ifdef yyget_column", | |||
)]])]])", | "#define ]]M4_YY_PREFIX[[get_column_ALREADY_DEFINED", | |||
" [[#define yyset_column ]]M4_YY_PREFIX[[set_column]]", | "#else", | |||
"m4_define([[yyset_column]], [[M4_YY_PREFIX[[set_column]]m4_ifelse($#,0,,[[($@ | "#define yyget_column ]]M4_YY_PREFIX[[get_column", | |||
)]])]])", | "#endif]]", | |||
"", | ||||
" ", | ||||
"[[#ifdef yyset_column", | ||||
"#define ]]M4_YY_PREFIX[[set_column_ALREADY_DEFINED", | ||||
"#else", | ||||
"#define yyset_column ]]M4_YY_PREFIX[[set_column", | ||||
"#endif]]", | ||||
"", | ||||
" ]])", | " ]])", | |||
" [[#define yywrap ]]M4_YY_PREFIX[[wrap]]", | " ", | |||
"m4_define([[yywrap]], [[M4_YY_PREFIX[[wrap]]m4_ifelse($#,0,,[[($@)]])]])", | "[[#ifdef yywrap", | |||
"#define ]]M4_YY_PREFIX[[wrap_ALREADY_DEFINED", | ||||
"#else", | ||||
"#define yywrap ]]M4_YY_PREFIX[[wrap", | ||||
"#endif]]", | ||||
"", | ||||
")", | ||||
"%endif", | "%endif", | |||
"", | "", | |||
"m4_ifdef( [[M4_YY_BISON_LVAL]],", | "m4_ifdef( [[M4_YY_BISON_LVAL]],", | |||
"[[", | "[[", | |||
" [[#define yyget_lval ]]M4_YY_PREFIX[[get_lval]]", | " ", | |||
"m4_define([[yyget_lval]], [[M4_YY_PREFIX[[get_lval]]m4_ifelse($#,0,,[[($@)]]) | "[[#ifdef yyget_lval", | |||
]])", | "#define ]]M4_YY_PREFIX[[get_lval_ALREADY_DEFINED", | |||
" [[#define yyset_lval ]]M4_YY_PREFIX[[set_lval]]", | "#else", | |||
"m4_define([[yyset_lval]], [[M4_YY_PREFIX[[set_lval]]m4_ifelse($#,0,,[[($@)]]) | "#define yyget_lval ]]M4_YY_PREFIX[[get_lval", | |||
]])", | "#endif]]", | |||
"", | ||||
" ", | ||||
"[[#ifdef yyset_lval", | ||||
"#define ]]M4_YY_PREFIX[[set_lval_ALREADY_DEFINED", | ||||
"#else", | ||||
"#define yyset_lval ]]M4_YY_PREFIX[[set_lval", | ||||
"#endif]]", | ||||
"", | ||||
"]])", | "]])", | |||
"", | "", | |||
"m4_ifdef( [[<M4_YY_BISON_LLOC>]],", | "m4_ifdef( [[<M4_YY_BISON_LLOC>]],", | |||
"[[", | "[[", | |||
" [[#define yyget_lloc ]]M4_YY_PREFIX[[get_lloc]]", | " ", | |||
"m4_define([[yyget_lloc]], [[M4_YY_PREFIX[[get_lloc]]m4_ifelse($#,0,,[[($@)]]) | "[[#ifdef yyget_lloc", | |||
]])", | "#define ]]M4_YY_PREFIX[[get_lloc_ALREADY_DEFINED", | |||
" [[#define yyset_lloc ]]M4_YY_PREFIX[[set_lloc]]", | "#else", | |||
"m4_define([[yyset_lloc]], [[M4_YY_PREFIX[[set_lloc]]m4_ifelse($#,0,,[[($@)]]) | "#define yyget_lloc ]]M4_YY_PREFIX[[get_lloc", | |||
]])", | "#endif]]", | |||
"", | ||||
" ", | ||||
"[[#ifdef yyset_lloc", | ||||
"#define ]]M4_YY_PREFIX[[set_lloc_ALREADY_DEFINED", | ||||
"#else", | ||||
"#define yyset_lloc ]]M4_YY_PREFIX[[set_lloc", | ||||
"#endif]]", | ||||
"", | ||||
"]])", | "]])", | |||
"", | "", | |||
"", | "", | |||
" [[#define yyalloc ]]M4_YY_PREFIX[[alloc]]", | "m4_ifelse(M4_YY_PREFIX,yy,,", | |||
"m4_define([[yyalloc]], [[M4_YY_PREFIX[[alloc]]m4_ifelse($#,0,,[[($@)]])]])", | " ", | |||
" [[#define yyrealloc ]]M4_YY_PREFIX[[realloc]]", | "[[#ifdef yyalloc", | |||
"m4_define([[yyrealloc]], [[M4_YY_PREFIX[[realloc]]m4_ifelse($#,0,,[[($@)]])]] | "#define ]]M4_YY_PREFIX[[alloc_ALREADY_DEFINED", | |||
)", | "#else", | |||
" [[#define yyfree ]]M4_YY_PREFIX[[free]]", | "#define yyalloc ]]M4_YY_PREFIX[[alloc", | |||
"m4_define([[yyfree]], [[M4_YY_PREFIX[[free]]m4_ifelse($#,0,,[[($@)]])]])", | "#endif]]", | |||
"", | ||||
" ", | ||||
"[[#ifdef yyrealloc", | ||||
"#define ]]M4_YY_PREFIX[[realloc_ALREADY_DEFINED", | ||||
"#else", | ||||
"#define yyrealloc ]]M4_YY_PREFIX[[realloc", | ||||
"#endif]]", | ||||
"", | ||||
" ", | ||||
"[[#ifdef yyfree", | ||||
"#define ]]M4_YY_PREFIX[[free_ALREADY_DEFINED", | ||||
"#else", | ||||
"#define yyfree ]]M4_YY_PREFIX[[free", | ||||
"#endif]]", | ||||
"", | ||||
")", | ||||
"", | "", | |||
"%if-c-only", | "%if-c-only", | |||
"m4_ifelse(M4_YY_PREFIX,yy,,", | ||||
"m4_ifdef( [[M4_YY_NOT_REENTRANT]],", | "m4_ifdef( [[M4_YY_NOT_REENTRANT]],", | |||
"[[", | "[[", | |||
" [[#define yytext ]]M4_YY_PREFIX[[text]]", | " ", | |||
"m4_define([[yytext]], [[M4_YY_PREFIX[[text]]m4_ifelse($#,0,,[[($@)]])]])", | "[[#ifdef yytext", | |||
" [[#define yyleng ]]M4_YY_PREFIX[[leng]]", | "#define ]]M4_YY_PREFIX[[text_ALREADY_DEFINED", | |||
"m4_define([[yyleng]], [[M4_YY_PREFIX[[leng]]m4_ifelse($#,0,,[[($@)]])]])", | "#else", | |||
" [[#define yyin ]]M4_YY_PREFIX[[in]]", | "#define yytext ]]M4_YY_PREFIX[[text", | |||
"m4_define([[yyin]], [[M4_YY_PREFIX[[in]]m4_ifelse($#,0,,[[($@)]])]])", | "#endif]]", | |||
" [[#define yyout ]]M4_YY_PREFIX[[out]]", | "", | |||
"m4_define([[yyout]], [[M4_YY_PREFIX[[out]]m4_ifelse($#,0,,[[($@)]])]])", | " ", | |||
" [[#define yy_flex_debug ]]M4_YY_PREFIX[[_flex_debug]]", | "[[#ifdef yyleng", | |||
"m4_define([[yy_flex_debug]], [[M4_YY_PREFIX[[_flex_debug]]m4_ifelse($#,0,,[[( | "#define ]]M4_YY_PREFIX[[leng_ALREADY_DEFINED", | |||
$@)]])]])", | "#else", | |||
" [[#define yylineno ]]M4_YY_PREFIX[[lineno]]", | "#define yyleng ]]M4_YY_PREFIX[[leng", | |||
"m4_define([[yylineno]], [[M4_YY_PREFIX[[lineno]]m4_ifelse($#,0,,[[($@)]])]])" | "#endif]]", | |||
, | "", | |||
" ", | ||||
"[[#ifdef yyin", | ||||
"#define ]]M4_YY_PREFIX[[in_ALREADY_DEFINED", | ||||
"#else", | ||||
"#define yyin ]]M4_YY_PREFIX[[in", | ||||
"#endif]]", | ||||
"", | ||||
" ", | ||||
"[[#ifdef yyout", | ||||
"#define ]]M4_YY_PREFIX[[out_ALREADY_DEFINED", | ||||
"#else", | ||||
"#define yyout ]]M4_YY_PREFIX[[out", | ||||
"#endif]]", | ||||
"", | ||||
" ", | ||||
"[[#ifdef yy_flex_debug", | ||||
"#define ]]M4_YY_PREFIX[[_flex_debug_ALREADY_DEFINED", | ||||
"#else", | ||||
"#define yy_flex_debug ]]M4_YY_PREFIX[[_flex_debug", | ||||
"#endif]]", | ||||
"", | ||||
" ", | ||||
"[[#ifdef yylineno", | ||||
"#define ]]M4_YY_PREFIX[[lineno_ALREADY_DEFINED", | ||||
"#else", | ||||
"#define yylineno ]]M4_YY_PREFIX[[lineno", | ||||
"#endif]]", | ||||
"", | ||||
"]])", | "]])", | |||
")", | ||||
"%endif", | "%endif", | |||
"", | "", | |||
"", | "", | |||
"m4_ifdef( [[M4_YY_TABLES_EXTERNAL]],", | "m4_ifdef( [[M4_YY_TABLES_EXTERNAL]],", | |||
"[[", | "[[", | |||
" [[#define yytables_fload ]]M4_YY_PREFIX[[tables_fload]]", | " ", | |||
"m4_define([[yytables_fload]], [[M4_YY_PREFIX[[tables_fload]]m4_ifelse($#,0,,[ | "[[#ifdef yytables_fload", | |||
[($@)]])]])", | "#define ]]M4_YY_PREFIX[[tables_fload_ALREADY_DEFINED", | |||
" [[#define yytables_destroy ]]M4_YY_PREFIX[[tables_destroy]]", | "#else", | |||
"m4_define([[yytables_destroy]], [[M4_YY_PREFIX[[tables_destroy]]m4_ifelse($#, | "#define yytables_fload ]]M4_YY_PREFIX[[tables_fload", | |||
0,,[[($@)]])]])", | "#endif]]", | |||
" [[#define yyTABLES_NAME ]]M4_YY_PREFIX[[TABLES_NAME]]", | "", | |||
"m4_define([[yyTABLES_NAME]], [[M4_YY_PREFIX[[TABLES_NAME]]m4_ifelse($#,0,,[[( | " ", | |||
$@)]])]])", | "[[#ifdef yytables_destroy", | |||
"#define ]]M4_YY_PREFIX[[tables_destroy_ALREADY_DEFINED", | ||||
"#else", | ||||
"#define yytables_destroy ]]M4_YY_PREFIX[[tables_destroy", | ||||
"#endif]]", | ||||
"", | ||||
" ", | ||||
"[[#ifdef yyTABLES_NAME", | ||||
"#define ]]M4_YY_PREFIX[[TABLES_NAME_ALREADY_DEFINED", | ||||
"#else", | ||||
"#define yyTABLES_NAME ]]M4_YY_PREFIX[[TABLES_NAME", | ||||
"#endif]]", | ||||
"", | ||||
"]])", | "]])", | |||
"", | "", | |||
"/* First, we deal with platform-specific or compiler-specific issues. */", | "/* First, we deal with platform-specific or compiler-specific issues. */", | |||
"", | "", | |||
"/* begin standard C headers. */", | "/* begin standard C headers. */", | |||
"%if-c-only", | "%if-c-only", | |||
"#include <stdio.h>", | "#include <stdio.h>", | |||
"#include <string.h>", | "#include <string.h>", | |||
"#include <errno.h>", | "#include <errno.h>", | |||
"#include <stdlib.h>", | "#include <stdlib.h>", | |||
skipping to change at line 325 | skipping to change at line 524 | |||
"#ifndef UINT8_MAX", | "#ifndef UINT8_MAX", | |||
"#define UINT8_MAX (255U)", | "#define UINT8_MAX (255U)", | |||
"#endif", | "#endif", | |||
"#ifndef UINT16_MAX", | "#ifndef UINT16_MAX", | |||
"#define UINT16_MAX (65535U)", | "#define UINT16_MAX (65535U)", | |||
"#endif", | "#endif", | |||
"#ifndef UINT32_MAX", | "#ifndef UINT32_MAX", | |||
"#define UINT32_MAX (4294967295U)", | "#define UINT32_MAX (4294967295U)", | |||
"#endif", | "#endif", | |||
"", | "", | |||
"#ifndef SIZE_MAX", | ||||
"#define SIZE_MAX (~(size_t)0)", | ||||
"#endif", | ||||
"", | ||||
"#endif /* ! C99 */", | "#endif /* ! C99 */", | |||
"", | "", | |||
"#endif /* ! FLEXINT_H */", | "#endif /* ! FLEXINT_H */", | |||
"", | "", | |||
"%endif", | "%endif", | |||
"", | "", | |||
"%if-c++-only", | ||||
"/* begin standard C++ headers. */", | "/* begin standard C++ headers. */", | |||
"%if-c++-only", | ||||
"#include <iostream>", | "#include <iostream>", | |||
"#include <errno.h>", | "#include <errno.h>", | |||
"#include <cstdlib>", | "#include <cstdlib>", | |||
"#include <cstdio>", | "#include <cstdio>", | |||
"#include <cstring>", | "#include <cstring>", | |||
"/* end standard C++ headers. */", | "/* end standard C++ headers. */", | |||
"%endif", | "%endif", | |||
"", | "", | |||
"/* TODO: this is always defined, so inline it */", | "/* TODO: this is always defined, so inline it */", | |||
"#define yyconst const", | "#define yyconst const", | |||
skipping to change at line 372 | skipping to change at line 575 | |||
"", | "", | |||
"", | "", | |||
"%if-reentrant", | "%if-reentrant", | |||
"", | "", | |||
"/* An opaque pointer. */", | "/* An opaque pointer. */", | |||
"#ifndef YY_TYPEDEF_YY_SCANNER_T", | "#ifndef YY_TYPEDEF_YY_SCANNER_T", | |||
"#define YY_TYPEDEF_YY_SCANNER_T", | "#define YY_TYPEDEF_YY_SCANNER_T", | |||
"typedef void* yyscan_t;", | "typedef void* yyscan_t;", | |||
"#endif", | "#endif", | |||
"", | "", | |||
"%# Declare yyguts variable", | ||||
"m4_define( [[M4_YY_DECL_GUTS_VAR]], [[struct yyguts_t * yyg = (struct yyguts_ t*)yyscanner]])", | "m4_define( [[M4_YY_DECL_GUTS_VAR]], [[struct yyguts_t * yyg = (struct yyguts_ t*)yyscanner]])", | |||
"%# Perform a noop access on yyguts to prevent unused variable complains", | ||||
"m4_define( [[M4_YY_NOOP_GUTS_VAR]], [[(void)yyg]])", | "m4_define( [[M4_YY_NOOP_GUTS_VAR]], [[(void)yyg]])", | |||
"%# For use wherever a Global is accessed or assigned.", | ||||
"m4_define( [[YY_G]], [[yyg->$1]])", | "m4_define( [[YY_G]], [[yyg->$1]])", | |||
"", | "", | |||
"%# For use in function prototypes to append the additional argument.", | ||||
"m4_define( [[M4_YY_PROTO_LAST_ARG]], [[, yyscan_t yyscanner]])", | "m4_define( [[M4_YY_PROTO_LAST_ARG]], [[, yyscan_t yyscanner]])", | |||
"m4_define( [[M4_YY_PROTO_ONLY_ARG]], [[yyscan_t yyscanner]])", | "m4_define( [[M4_YY_PROTO_ONLY_ARG]], [[yyscan_t yyscanner]])", | |||
"", | "", | |||
"m4_define( [[M4_YY_DEF_LAST_ARG]], [[, yyscan_t yyscanner]])", | "m4_define( [[M4_YY_DEF_LAST_ARG]], [[, yyscan_t yyscanner]])", | |||
"m4_define( [[M4_YY_DEF_ONLY_ARG]], [[yyscan_t yyscanner]])", | "m4_define( [[M4_YY_DEF_ONLY_ARG]], [[yyscan_t yyscanner]])", | |||
"m4_define( [[M4_YY_DECL_LAST_ARG]], [[yyscan_t yyscanner;]])", | "m4_define( [[M4_YY_DECL_LAST_ARG]], [[yyscan_t yyscanner;]])", | |||
"", | "", | |||
"%# For use in function calls to pass the additional argument.", | ||||
"m4_define( [[M4_YY_CALL_LAST_ARG]], [[, yyscanner]])", | "m4_define( [[M4_YY_CALL_LAST_ARG]], [[, yyscanner]])", | |||
"m4_define( [[M4_YY_CALL_ONLY_ARG]], [[yyscanner]])", | "m4_define( [[M4_YY_CALL_ONLY_ARG]], [[yyscanner]])", | |||
"", | "", | |||
"%# For use in function documentation to adjust for additional argument.", | ||||
"m4_define( [[M4_YY_DOC_PARAM]], [[@param yyscanner The scanner object.]])", | "m4_define( [[M4_YY_DOC_PARAM]], [[@param yyscanner The scanner object.]])", | |||
"", | "", | |||
"/* For convenience, these vars (plus the bison vars far below)", | "/* For convenience, these vars (plus the bison vars far below)", | |||
" are macros in the reentrant scanner. */", | " are macros in the reentrant scanner. */", | |||
"#define yyin YY_G(yyin_r)", | "#define yyin YY_G(yyin_r)", | |||
"#define yyout YY_G(yyout_r)", | "#define yyout YY_G(yyout_r)", | |||
"#define yyextra YY_G(yyextra_r)", | "#define yyextra YY_G(yyextra_r)", | |||
"#define yyleng YY_G(yyleng_r)", | "#define yyleng YY_G(yyleng_r)", | |||
"#define yytext YY_G(yytext_r)", | "#define yytext YY_G(yytext_r)", | |||
"#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)", | "#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)", | |||
skipping to change at line 423 | skipping to change at line 620 | |||
"", | "", | |||
"", | "", | |||
"", | "", | |||
"%if-not-reentrant", | "%if-not-reentrant", | |||
"", | "", | |||
"m4_define( [[M4_YY_INCR_LINENO]],", | "m4_define( [[M4_YY_INCR_LINENO]],", | |||
"[[", | "[[", | |||
" yylineno++;", | " yylineno++;", | |||
"]])", | "]])", | |||
"", | "", | |||
"%# Define these macros to be no-ops.", | ||||
"m4_define( [[M4_YY_DECL_GUTS_VAR]], [[m4_dnl]])", | "m4_define( [[M4_YY_DECL_GUTS_VAR]], [[m4_dnl]])", | |||
"m4_define( [[M4_YY_NOOP_GUTS_VAR]], [[m4_dnl]])", | "m4_define( [[M4_YY_NOOP_GUTS_VAR]], [[m4_dnl]])", | |||
"m4_define( [[YY_G]], [[($1)]])", | "m4_define( [[YY_G]], [[($1)]])", | |||
"m4_define( [[M4_YY_PROTO_LAST_ARG]])", | "m4_define( [[M4_YY_PROTO_LAST_ARG]])", | |||
"m4_define( [[M4_YY_PROTO_ONLY_ARG]], [[void]])", | "m4_define( [[M4_YY_PROTO_ONLY_ARG]], [[void]])", | |||
"m4_define( [[M4_YY_DEF_LAST_ARG]])", | "m4_define( [[M4_YY_DEF_LAST_ARG]])", | |||
"", | "", | |||
"m4_define( [[M4_YY_DEF_ONLY_ARG]], [[void]])", | "m4_define( [[M4_YY_DEF_ONLY_ARG]], [[void]])", | |||
"m4_define([[M4_YY_DECL_LAST_ARG]])", | "m4_define([[M4_YY_DECL_LAST_ARG]])", | |||
"m4_define([[M4_YY_CALL_LAST_ARG]])", | "m4_define([[M4_YY_CALL_LAST_ARG]])", | |||
"m4_define([[M4_YY_CALL_ONLY_ARG]])", | "m4_define([[M4_YY_CALL_ONLY_ARG]])", | |||
"m4_define( [[M4_YY_DOC_PARAM]], )", | "m4_define( [[M4_YY_DOC_PARAM]], )", | |||
"", | "", | |||
"%endif", | "%endif", | |||
"", | "", | |||
"", | "", | |||
"%# Generate C99 function defs.", | ||||
"m4_define( [[YYFARGS1]], [[($1 $2 M4_YY_DEF_LAST_ARG)]])", | "m4_define( [[YYFARGS1]], [[($1 $2 M4_YY_DEF_LAST_ARG)]])", | |||
"m4_define( [[YYFARGS2]], [[($1 $2, $3 $4 M4_YY_DEF_LAST_ARG)]])", | "m4_define( [[YYFARGS2]], [[($1 $2, $3 $4 M4_YY_DEF_LAST_ARG)]])", | |||
"m4_define( [[YYFARGS3]], [[($1 $2, $3 $4, $5 $6 M4_YY_DEF_LAST_ARG)]])", | "m4_define( [[YYFARGS3]], [[($1 $2, $3 $4, $5 $6 M4_YY_DEF_LAST_ARG)]])", | |||
"", | "", | |||
"m4_ifdef( [[M4_YY_NOT_IN_HEADER]],", | "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],", | |||
"[[", | "[[", | |||
"/* Enter a start condition. This macro really ought to take a parameter,", | "/* Enter a start condition. This macro really ought to take a parameter,", | |||
" * but we do it the disgusting crufty way forced on us by the ()-less", | " * but we do it the disgusting crufty way forced on us by the ()-less", | |||
" * definition of BEGIN.", | " * definition of BEGIN.", | |||
" */", | " */", | |||
skipping to change at line 1050 | skipping to change at line 1245 | |||
"static int yyinput ( M4_YY_PROTO_ONLY_ARG );", | "static int yyinput ( M4_YY_PROTO_ONLY_ARG );", | |||
"#else", | "#else", | |||
"static int input ( M4_YY_PROTO_ONLY_ARG );", | "static int input ( M4_YY_PROTO_ONLY_ARG );", | |||
"#endif", | "#endif", | |||
"%ok-for-header", | "%ok-for-header", | |||
"%endif", | "%endif", | |||
"#endif", | "#endif", | |||
"", | "", | |||
"", | "", | |||
"%if-c-only", | "%if-c-only", | |||
"%# TODO: This is messy.", | ||||
"m4_ifdef( [[M4_YY_STACK_USED]],", | "m4_ifdef( [[M4_YY_STACK_USED]],", | |||
"[[", | "[[", | |||
"", | "", | |||
"m4_ifdef( [[M4_YY_NOT_REENTRANT]],", | "m4_ifdef( [[M4_YY_NOT_REENTRANT]],", | |||
"[[", | "[[", | |||
" m4_ifdef( [[M4_YY_NOT_IN_HEADER]],", | " m4_ifdef( [[M4_YY_NOT_IN_HEADER]],", | |||
" [[", | " [[", | |||
" static int yy_start_stack_ptr = 0;", | " static int yy_start_stack_ptr = 0;", | |||
" static int yy_start_stack_depth = 0;", | " static int yy_start_stack_depth = 0;", | |||
" static int *yy_start_stack = NULL;", | " static int *yy_start_stack = NULL;", | |||
skipping to change at line 1924 | skipping to change at line 2118 | |||
" else", | " else", | |||
" ret_val = EOB_ACT_CONTINUE_SCAN;", | " ret_val = EOB_ACT_CONTINUE_SCAN;", | |||
"", | "", | |||
" if ((YY_G(yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_bu f_size) {", | " if ((YY_G(yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_bu f_size) {", | |||
" /* Extend the array by 50%, plus the number we really need. */", | " /* Extend the array by 50%, plus the number we really need. */", | |||
" int new_size = YY_G(yy_n_chars) + number_to_move + (YY_G(yy_n_cha rs) >> 1);", | " int new_size = YY_G(yy_n_chars) + number_to_move + (YY_G(yy_n_cha rs) >> 1);", | |||
" YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(", | " YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(", | |||
" (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size M4_YY_CALL_LAST_ARG );", | " (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size M4_YY_CALL_LAST_ARG );", | |||
" if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )", | " if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )", | |||
" YY_FATAL_ERROR( \"out of dynamic memory in yy_get_next_bu ffer()\" );", | " YY_FATAL_ERROR( \"out of dynamic memory in yy_get_next_bu ffer()\" );", | |||
" /* \"- 2\" to take care of EOB's */", | ||||
" YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);", | ||||
" }", | " }", | |||
"", | "", | |||
" YY_G(yy_n_chars) += number_to_move;", | " YY_G(yy_n_chars) += number_to_move;", | |||
" YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[YY_G(yy_n_chars)] = YY_END_OF_BUFFER_ CHAR;", | " YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[YY_G(yy_n_chars)] = YY_END_OF_BUFFER_ CHAR;", | |||
" YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[YY_G(yy_n_chars) + 1] = YY_END_OF_BUF FER_CHAR;", | " YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[YY_G(yy_n_chars) + 1] = YY_END_OF_BUF FER_CHAR;", | |||
"", | "", | |||
" YY_G(yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];", | " YY_G(yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];", | |||
"", | "", | |||
" return ret_val;", | " return ret_val;", | |||
"}", | "}", | |||
skipping to change at line 2156 | skipping to change at line 2352 | |||
"}", | "}", | |||
"", | "", | |||
"%if-c++-only", | "%if-c++-only", | |||
"/** Delegate to the new version that takes an istream reference.", | "/** Delegate to the new version that takes an istream reference.", | |||
" * @param input_file A readable stream.", | " * @param input_file A readable stream.", | |||
" * M4_YY_DOC_PARAM", | " * M4_YY_DOC_PARAM", | |||
" * @note This function does not reset the start condition to @c INITIAL .", | " * @note This function does not reset the start condition to @c INITIAL .", | |||
" */", | " */", | |||
"void yyFlexLexer::yyrestart( std::istream* input_file )", | "void yyFlexLexer::yyrestart( std::istream* input_file )", | |||
"{", | "{", | |||
" if( ! input_file ) {", | ||||
" input_file = &yyin;", | ||||
" }", | ||||
" yyrestart( *input_file );", | " yyrestart( *input_file );", | |||
"}", | "}", | |||
"%endif", | "%endif", | |||
"", | "", | |||
"/** Switch to a different input buffer.", | "/** Switch to a different input buffer.", | |||
" * @param new_buffer The new input buffer.", | " * @param new_buffer The new input buffer.", | |||
" * M4_YY_DOC_PARAM", | " * M4_YY_DOC_PARAM", | |||
" */", | " */", | |||
"%if-c-only", | "%if-c-only", | |||
" void yy_switch_to_buffer YYFARGS1( YY_BUFFER_STATE ,new_buffer)", | " void yy_switch_to_buffer YYFARGS1( YY_BUFFER_STATE ,new_buffer)", | |||
skipping to change at line 2317 | skipping to change at line 2516 | |||
"{", | "{", | |||
" int oerrno = errno;", | " int oerrno = errno;", | |||
" M4_YY_DECL_GUTS_VAR();", | " M4_YY_DECL_GUTS_VAR();", | |||
"", | "", | |||
" yy_flush_buffer( b M4_YY_CALL_LAST_ARG);", | " yy_flush_buffer( b M4_YY_CALL_LAST_ARG);", | |||
"", | "", | |||
"%if-c-only", | "%if-c-only", | |||
" b->yy_input_file = file;", | " b->yy_input_file = file;", | |||
"%endif", | "%endif", | |||
"%if-c++-only", | "%if-c++-only", | |||
" b->yy_input_file = (&file == 0) ? NULL : file.rdbuf();", | " b->yy_input_file = file.rdbuf();", | |||
"%endif", | "%endif", | |||
" b->yy_fill_buffer = 1;", | " b->yy_fill_buffer = 1;", | |||
"", | "", | |||
" /* If b is the current buffer, then yy_init_buffer was _probably_", | " /* If b is the current buffer, then yy_init_buffer was _probably_", | |||
" * called from yyrestart() or through yy_get_next_buffer.", | " * called from yyrestart() or through yy_get_next_buffer.", | |||
" * In that case, we don't want to reset the lineno or column.", | " * In that case, we don't want to reset the lineno or column.", | |||
" */", | " */", | |||
" if (b != YY_CURRENT_BUFFER){", | " if (b != YY_CURRENT_BUFFER){", | |||
" b->yy_bs_lineno = 1;", | " b->yy_bs_lineno = 1;", | |||
" b->yy_bs_column = 0;", | " b->yy_bs_column = 0;", | |||
skipping to change at line 2695 | skipping to change at line 2894 | |||
"", | "", | |||
"#ifndef YY_EXIT_FAILURE", | "#ifndef YY_EXIT_FAILURE", | |||
"#define YY_EXIT_FAILURE 2", | "#define YY_EXIT_FAILURE 2", | |||
"#endif", | "#endif", | |||
"", | "", | |||
"%if-c-only", | "%if-c-only", | |||
"static void yynoreturn yy_fatal_error YYFARGS1(const char*, msg)", | "static void yynoreturn yy_fatal_error YYFARGS1(const char*, msg)", | |||
"{", | "{", | |||
" M4_YY_DECL_GUTS_VAR();", | " M4_YY_DECL_GUTS_VAR();", | |||
" M4_YY_NOOP_GUTS_VAR();", | " M4_YY_NOOP_GUTS_VAR();", | |||
" (void) fprintf( stderr, \"%s\\n\", msg );", | " fprintf( stderr, \"%s\\n\", msg );", | |||
" exit( YY_EXIT_FAILURE );", | " exit( YY_EXIT_FAILURE );", | |||
"}", | "}", | |||
"%endif", | "%endif", | |||
"%if-c++-only", | "%if-c++-only", | |||
"void yyFlexLexer::LexerError( const char* msg )", | "void yyFlexLexer::LexerError( const char* msg )", | |||
"{", | "{", | |||
" M4_YY_DECL_GUTS_VAR();", | " M4_YY_DECL_GUTS_VAR();", | |||
" std::cerr << msg << std::endl;", | " std::cerr << msg << std::endl;", | |||
" exit( YY_EXIT_FAILURE );", | " exit( YY_EXIT_FAILURE );", | |||
"}", | "}", | |||
skipping to change at line 3042 | skipping to change at line 3241 | |||
" /* By setting to 0xAA, we expose bugs in", | " /* By setting to 0xAA, we expose bugs in", | |||
" yy_init_globals. Leave at 0x00 for releases. */", | " yy_init_globals. Leave at 0x00 for releases. */", | |||
" memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));", | " memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));", | |||
"", | "", | |||
" yyset_extra (yy_user_defined, *ptr_yy_globals);", | " yyset_extra (yy_user_defined, *ptr_yy_globals);", | |||
"", | "", | |||
" return yy_init_globals ( *ptr_yy_globals );", | " return yy_init_globals ( *ptr_yy_globals );", | |||
"}", | "}", | |||
"", | "", | |||
"%endif if-c-only", | "%endif if-c-only", | |||
"%# Actually, that ended an if-rentrant section", | ||||
"", | "", | |||
"%if-c-only", | "%if-c-only", | |||
"static int yy_init_globals (M4_YY_DEF_ONLY_ARG)", | "static int yy_init_globals (M4_YY_DEF_ONLY_ARG)", | |||
"{", | "{", | |||
" M4_YY_DECL_GUTS_VAR();", | " M4_YY_DECL_GUTS_VAR();", | |||
" /* Initialization is the same as for the non-reentrant scanner.", | " /* Initialization is the same as for the non-reentrant scanner.", | |||
" * This function is called from yylex_destroy(), so don't allocate here." , | " * This function is called from yylex_destroy(), so don't allocate here." , | |||
" */", | " */", | |||
"", | "", | |||
"m4_ifdef( [[M4_YY_USE_LINENO]],", | "m4_ifdef( [[M4_YY_USE_LINENO]],", | |||
skipping to change at line 3727 | skipping to change at line 3925 | |||
"#undef YY_FLUSH_BUFFER", | "#undef YY_FLUSH_BUFFER", | |||
"#undef yy_set_bol", | "#undef yy_set_bol", | |||
"#undef yy_new_buffer", | "#undef yy_new_buffer", | |||
"#undef yy_set_interactive", | "#undef yy_set_interactive", | |||
"#undef YY_DO_BEFORE_ACTION", | "#undef YY_DO_BEFORE_ACTION", | |||
"", | "", | |||
"#ifdef YY_DECL_IS_OURS", | "#ifdef YY_DECL_IS_OURS", | |||
"#undef YY_DECL_IS_OURS", | "#undef YY_DECL_IS_OURS", | |||
"#undef YY_DECL", | "#undef YY_DECL", | |||
"#endif", | "#endif", | |||
"", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[_create_buffer_ALREADY_DEFINED", | ||||
"#undef yy_create_buffer", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[_delete_buffer_ALREADY_DEFINED", | ||||
"#undef yy_delete_buffer", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[_scan_buffer_ALREADY_DEFINED", | ||||
"#undef yy_scan_buffer", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[_scan_string_ALREADY_DEFINED", | ||||
"#undef yy_scan_string", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[_scan_bytes_ALREADY_DEFINED", | ||||
"#undef yy_scan_bytes", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[_init_buffer_ALREADY_DEFINED", | ||||
"#undef yy_init_buffer", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[_flush_buffer_ALREADY_DEFINED", | ||||
"#undef yy_flush_buffer", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[_load_buffer_state_ALREADY_DEFINED", | ||||
"#undef yy_load_buffer_state", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[_switch_to_buffer_ALREADY_DEFINED", | ||||
"#undef yy_switch_to_buffer", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[push_buffer_state_ALREADY_DEFINED", | ||||
"#undef yypush_buffer_state", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[pop_buffer_state_ALREADY_DEFINED", | ||||
"#undef yypop_buffer_state", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[ensure_buffer_stack_ALREADY_DEFINED", | ||||
"#undef yyensure_buffer_stack", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[lex_ALREADY_DEFINED", | ||||
"#undef yylex", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[restart_ALREADY_DEFINED", | ||||
"#undef yyrestart", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[lex_init_ALREADY_DEFINED", | ||||
"#undef yylex_init", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[lex_init_extra_ALREADY_DEFINED", | ||||
"#undef yylex_init_extra", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[lex_destroy_ALREADY_DEFINED", | ||||
"#undef yylex_destroy", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[get_debug_ALREADY_DEFINED", | ||||
"#undef yyget_debug", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[set_debug_ALREADY_DEFINED", | ||||
"#undef yyset_debug", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[get_extra_ALREADY_DEFINED", | ||||
"#undef yyget_extra", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[set_extra_ALREADY_DEFINED", | ||||
"#undef yyset_extra", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[get_in_ALREADY_DEFINED", | ||||
"#undef yyget_in", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[set_in_ALREADY_DEFINED", | ||||
"#undef yyset_in", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[get_out_ALREADY_DEFINED", | ||||
"#undef yyget_out", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[set_out_ALREADY_DEFINED", | ||||
"#undef yyset_out", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[get_leng_ALREADY_DEFINED", | ||||
"#undef yyget_leng", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[get_text_ALREADY_DEFINED", | ||||
"#undef yyget_text", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[get_lineno_ALREADY_DEFINED", | ||||
"#undef yyget_lineno", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[set_lineno_ALREADY_DEFINED", | ||||
"#undef yyset_lineno", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[get_column_ALREADY_DEFINED", | ||||
"#undef yyget_column", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[set_column_ALREADY_DEFINED", | ||||
"#undef yyset_column", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[wrap_ALREADY_DEFINED", | ||||
"#undef yywrap", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[get_lval_ALREADY_DEFINED", | ||||
"#undef yyget_lval", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[set_lval_ALREADY_DEFINED", | ||||
"#undef yyset_lval", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[get_lloc_ALREADY_DEFINED", | ||||
"#undef yyget_lloc", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[set_lloc_ALREADY_DEFINED", | ||||
"#undef yyset_lloc", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[alloc_ALREADY_DEFINED", | ||||
"#undef yyalloc", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[realloc_ALREADY_DEFINED", | ||||
"#undef yyrealloc", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[free_ALREADY_DEFINED", | ||||
"#undef yyfree", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[text_ALREADY_DEFINED", | ||||
"#undef yytext", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[leng_ALREADY_DEFINED", | ||||
"#undef yyleng", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[in_ALREADY_DEFINED", | ||||
"#undef yyin", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[out_ALREADY_DEFINED", | ||||
"#undef yyout", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[_flex_debug_ALREADY_DEFINED", | ||||
"#undef yy_flex_debug", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[lineno_ALREADY_DEFINED", | ||||
"#undef yylineno", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[tables_fload_ALREADY_DEFINED", | ||||
"#undef yytables_fload", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[tables_destroy_ALREADY_DEFINED", | ||||
"#undef yytables_destroy", | ||||
"#endif]]", | ||||
"[[#ifndef ]]M4_YY_PREFIX[[TABLES_NAME_ALREADY_DEFINED", | ||||
"#undef yyTABLES_NAME", | ||||
"#endif]]", | ||||
"]])", | "]])", | |||
0 | 0 | |||
}; | }; | |||
End of changes. 38 change blocks. | ||||
210 lines changed or deleted | 507 lines changed or added |