xref: /freebsd/usr.bin/lex/initskel.c (revision cab6a39d7b343596a5823e65c0f7b426551ec22d)
1 /* File created from flex.skl via mkskel.sh */
2 
3 #include "flexdef.h"
4 
5 const char *skel[] = {
6   "/* A lexical scanner generated by flex */",
7   "",
8   "",
9   "",
10   "m4_changecom",
11   "m4_changequote",
12   "m4_changequote([[, ]])",
13   "",
14   "",
15   "%not-for-header",
16   "%if-c-only",
17   "%if-not-reentrant",
18   "m4_ifelse(M4_YY_PREFIX,yy,,",
19   "#define yy_create_buffer M4_YY_PREFIX[[_create_buffer]]",
20   "#define yy_delete_buffer M4_YY_PREFIX[[_delete_buffer]]",
21   "#define yy_scan_buffer M4_YY_PREFIX[[_scan_buffer]]",
22   "#define yy_scan_string M4_YY_PREFIX[[_scan_string]]",
23   "#define yy_scan_bytes M4_YY_PREFIX[[_scan_bytes]]",
24   "#define yy_init_buffer M4_YY_PREFIX[[_init_buffer]]",
25   "#define yy_flush_buffer M4_YY_PREFIX[[_flush_buffer]]",
26   "#define yy_load_buffer_state M4_YY_PREFIX[[_load_buffer_state]]",
27   "#define yy_switch_to_buffer M4_YY_PREFIX[[_switch_to_buffer]]",
28   "#define yypush_buffer_state M4_YY_PREFIX[[push_buffer_state]]",
29   "#define yypop_buffer_state M4_YY_PREFIX[[pop_buffer_state]]",
30   "#define yyensure_buffer_stack M4_YY_PREFIX[[ensure_buffer_stack]]",
31   "#define yy_flex_debug M4_YY_PREFIX[[_flex_debug]]",
32   "#define yyin M4_YY_PREFIX[[in]]",
33   "#define yyleng M4_YY_PREFIX[[leng]]",
34   "#define yylex M4_YY_PREFIX[[lex]]",
35   "#define yylineno M4_YY_PREFIX[[lineno]]",
36   "#define yyout M4_YY_PREFIX[[out]]",
37   "#define yyrestart M4_YY_PREFIX[[restart]]",
38   "#define yytext M4_YY_PREFIX[[text]]",
39   "#define yywrap M4_YY_PREFIX[[wrap]]",
40   "#define yyalloc M4_YY_PREFIX[[alloc]]",
41   "#define yyrealloc M4_YY_PREFIX[[realloc]]",
42   "#define yyfree M4_YY_PREFIX[[free]]",
43   ")",
44   "%endif",
45   "%endif",
46   "%ok-for-header",
47   "",
48   "#define FLEX_SCANNER",
49   "#define YY_FLEX_MAJOR_VERSION 2",
50   "#define YY_FLEX_MINOR_VERSION 6",
51   "#define YY_FLEX_SUBMINOR_VERSION 4",
52   "#if YY_FLEX_SUBMINOR_VERSION > 0",
53   "#define FLEX_BETA",
54   "#endif",
55   "",
56   "m4_ifdef( [[M4_YY_IN_HEADER]], , [[m4_define([[M4_YY_NOT_IN_HEADER]], [[]])]])",
57   "m4_ifdef( [[M4_YY_REENTRANT]], , [[m4_define([[M4_YY_NOT_REENTRANT]], [[]])]])",
58   "",
59   "m4_ifdef( [[M4_YY_STACK_USED]], [[m4_define([[M4_YY_HAS_START_STACK_VARS]])]])",
60   "m4_ifdef( [[M4_YY_REENTRANT]],  [[m4_define([[M4_YY_HAS_START_STACK_VARS]])]])",
61   "",
62   "",
63   "",
64   "m4_ifdef( [[M4_YY_PREFIX]],, [[m4_define([[M4_YY_PREFIX]], [[yy]])]])",
65   "",
66   "",
67   "",
68   "%if-c++-only",
69   "    /* The c++ scanner is a mess. The FlexLexer.h header file relies on the",
70   "     * following macro. This is required in order to pass the c++-multiple-scanners",
71   "     * test in the regression suite. We get reports that it breaks inheritance.",
72   "     * We will address this in a future release of flex, or omit the C++ scanner",
73   "     * altogether.",
74   "     */",
75   "    #define yyFlexLexer M4_YY_PREFIX[[FlexLexer]]",
76   "%endif",
77   "",
78   "%if-c-only",
79   "m4_ifelse(M4_YY_PREFIX,yy,,",
80   "    ",
81   "[[#ifdef yy_create_buffer",
82   "#define ]]M4_YY_PREFIX[[_create_buffer_ALREADY_DEFINED",
83   "#else",
84   "#define yy_create_buffer ]]M4_YY_PREFIX[[_create_buffer",
85   "#endif]]",
86   "",
87   "    ",
88   "[[#ifdef yy_delete_buffer",
89   "#define ]]M4_YY_PREFIX[[_delete_buffer_ALREADY_DEFINED",
90   "#else",
91   "#define yy_delete_buffer ]]M4_YY_PREFIX[[_delete_buffer",
92   "#endif]]",
93   "",
94   "    ",
95   "[[#ifdef yy_scan_buffer",
96   "#define ]]M4_YY_PREFIX[[_scan_buffer_ALREADY_DEFINED",
97   "#else",
98   "#define yy_scan_buffer ]]M4_YY_PREFIX[[_scan_buffer",
99   "#endif]]",
100   "",
101   "    ",
102   "[[#ifdef yy_scan_string",
103   "#define ]]M4_YY_PREFIX[[_scan_string_ALREADY_DEFINED",
104   "#else",
105   "#define yy_scan_string ]]M4_YY_PREFIX[[_scan_string",
106   "#endif]]",
107   "",
108   "    ",
109   "[[#ifdef yy_scan_bytes",
110   "#define ]]M4_YY_PREFIX[[_scan_bytes_ALREADY_DEFINED",
111   "#else",
112   "#define yy_scan_bytes ]]M4_YY_PREFIX[[_scan_bytes",
113   "#endif]]",
114   "",
115   "    ",
116   "[[#ifdef yy_init_buffer",
117   "#define ]]M4_YY_PREFIX[[_init_buffer_ALREADY_DEFINED",
118   "#else",
119   "#define yy_init_buffer ]]M4_YY_PREFIX[[_init_buffer",
120   "#endif]]",
121   "",
122   "    ",
123   "[[#ifdef yy_flush_buffer",
124   "#define ]]M4_YY_PREFIX[[_flush_buffer_ALREADY_DEFINED",
125   "#else",
126   "#define yy_flush_buffer ]]M4_YY_PREFIX[[_flush_buffer",
127   "#endif]]",
128   "",
129   "    ",
130   "[[#ifdef yy_load_buffer_state",
131   "#define ]]M4_YY_PREFIX[[_load_buffer_state_ALREADY_DEFINED",
132   "#else",
133   "#define yy_load_buffer_state ]]M4_YY_PREFIX[[_load_buffer_state",
134   "#endif]]",
135   "",
136   "    ",
137   "[[#ifdef yy_switch_to_buffer",
138   "#define ]]M4_YY_PREFIX[[_switch_to_buffer_ALREADY_DEFINED",
139   "#else",
140   "#define yy_switch_to_buffer ]]M4_YY_PREFIX[[_switch_to_buffer",
141   "#endif]]",
142   "",
143   "    ",
144   "[[#ifdef yypush_buffer_state",
145   "#define ]]M4_YY_PREFIX[[push_buffer_state_ALREADY_DEFINED",
146   "#else",
147   "#define yypush_buffer_state ]]M4_YY_PREFIX[[push_buffer_state",
148   "#endif]]",
149   "",
150   "    ",
151   "[[#ifdef yypop_buffer_state",
152   "#define ]]M4_YY_PREFIX[[pop_buffer_state_ALREADY_DEFINED",
153   "#else",
154   "#define yypop_buffer_state ]]M4_YY_PREFIX[[pop_buffer_state",
155   "#endif]]",
156   "",
157   "    ",
158   "[[#ifdef yyensure_buffer_stack",
159   "#define ]]M4_YY_PREFIX[[ensure_buffer_stack_ALREADY_DEFINED",
160   "#else",
161   "#define yyensure_buffer_stack ]]M4_YY_PREFIX[[ensure_buffer_stack",
162   "#endif]]",
163   "",
164   "    ",
165   "[[#ifdef yylex",
166   "#define ]]M4_YY_PREFIX[[lex_ALREADY_DEFINED",
167   "#else",
168   "#define yylex ]]M4_YY_PREFIX[[lex",
169   "#endif]]",
170   "",
171   "    ",
172   "[[#ifdef yyrestart",
173   "#define ]]M4_YY_PREFIX[[restart_ALREADY_DEFINED",
174   "#else",
175   "#define yyrestart ]]M4_YY_PREFIX[[restart",
176   "#endif]]",
177   "",
178   "    ",
179   "[[#ifdef yylex_init",
180   "#define ]]M4_YY_PREFIX[[lex_init_ALREADY_DEFINED",
181   "#else",
182   "#define yylex_init ]]M4_YY_PREFIX[[lex_init",
183   "#endif]]",
184   "",
185   "    ",
186   "[[#ifdef yylex_init_extra",
187   "#define ]]M4_YY_PREFIX[[lex_init_extra_ALREADY_DEFINED",
188   "#else",
189   "#define yylex_init_extra ]]M4_YY_PREFIX[[lex_init_extra",
190   "#endif]]",
191   "",
192   "    ",
193   "[[#ifdef yylex_destroy",
194   "#define ]]M4_YY_PREFIX[[lex_destroy_ALREADY_DEFINED",
195   "#else",
196   "#define yylex_destroy ]]M4_YY_PREFIX[[lex_destroy",
197   "#endif]]",
198   "",
199   "    ",
200   "[[#ifdef yyget_debug",
201   "#define ]]M4_YY_PREFIX[[get_debug_ALREADY_DEFINED",
202   "#else",
203   "#define yyget_debug ]]M4_YY_PREFIX[[get_debug",
204   "#endif]]",
205   "",
206   "    ",
207   "[[#ifdef yyset_debug",
208   "#define ]]M4_YY_PREFIX[[set_debug_ALREADY_DEFINED",
209   "#else",
210   "#define yyset_debug ]]M4_YY_PREFIX[[set_debug",
211   "#endif]]",
212   "",
213   "    ",
214   "[[#ifdef yyget_extra",
215   "#define ]]M4_YY_PREFIX[[get_extra_ALREADY_DEFINED",
216   "#else",
217   "#define yyget_extra ]]M4_YY_PREFIX[[get_extra",
218   "#endif]]",
219   "",
220   "    ",
221   "[[#ifdef yyset_extra",
222   "#define ]]M4_YY_PREFIX[[set_extra_ALREADY_DEFINED",
223   "#else",
224   "#define yyset_extra ]]M4_YY_PREFIX[[set_extra",
225   "#endif]]",
226   "",
227   "    ",
228   "[[#ifdef yyget_in",
229   "#define ]]M4_YY_PREFIX[[get_in_ALREADY_DEFINED",
230   "#else",
231   "#define yyget_in ]]M4_YY_PREFIX[[get_in",
232   "#endif]]",
233   "",
234   "    ",
235   "[[#ifdef yyset_in",
236   "#define ]]M4_YY_PREFIX[[set_in_ALREADY_DEFINED",
237   "#else",
238   "#define yyset_in ]]M4_YY_PREFIX[[set_in",
239   "#endif]]",
240   "",
241   "    ",
242   "[[#ifdef yyget_out",
243   "#define ]]M4_YY_PREFIX[[get_out_ALREADY_DEFINED",
244   "#else",
245   "#define yyget_out ]]M4_YY_PREFIX[[get_out",
246   "#endif]]",
247   "",
248   "    ",
249   "[[#ifdef yyset_out",
250   "#define ]]M4_YY_PREFIX[[set_out_ALREADY_DEFINED",
251   "#else",
252   "#define yyset_out ]]M4_YY_PREFIX[[set_out",
253   "#endif]]",
254   "",
255   "    ",
256   "[[#ifdef yyget_leng",
257   "#define ]]M4_YY_PREFIX[[get_leng_ALREADY_DEFINED",
258   "#else",
259   "#define yyget_leng ]]M4_YY_PREFIX[[get_leng",
260   "#endif]]",
261   "",
262   "    ",
263   "[[#ifdef yyget_text",
264   "#define ]]M4_YY_PREFIX[[get_text_ALREADY_DEFINED",
265   "#else",
266   "#define yyget_text ]]M4_YY_PREFIX[[get_text",
267   "#endif]]",
268   "",
269   "    ",
270   "[[#ifdef yyget_lineno",
271   "#define ]]M4_YY_PREFIX[[get_lineno_ALREADY_DEFINED",
272   "#else",
273   "#define yyget_lineno ]]M4_YY_PREFIX[[get_lineno",
274   "#endif]]",
275   "",
276   "    ",
277   "[[#ifdef yyset_lineno",
278   "#define ]]M4_YY_PREFIX[[set_lineno_ALREADY_DEFINED",
279   "#else",
280   "#define yyset_lineno ]]M4_YY_PREFIX[[set_lineno",
281   "#endif]]",
282   "",
283   "    m4_ifdef( [[M4_YY_REENTRANT]],",
284   "    [[",
285   "        ",
286   "[[#ifdef yyget_column",
287   "#define ]]M4_YY_PREFIX[[get_column_ALREADY_DEFINED",
288   "#else",
289   "#define yyget_column ]]M4_YY_PREFIX[[get_column",
290   "#endif]]",
291   "",
292   "        ",
293   "[[#ifdef yyset_column",
294   "#define ]]M4_YY_PREFIX[[set_column_ALREADY_DEFINED",
295   "#else",
296   "#define yyset_column ]]M4_YY_PREFIX[[set_column",
297   "#endif]]",
298   "",
299   "    ]])",
300   "    ",
301   "[[#ifdef yywrap",
302   "#define ]]M4_YY_PREFIX[[wrap_ALREADY_DEFINED",
303   "#else",
304   "#define yywrap ]]M4_YY_PREFIX[[wrap",
305   "#endif]]",
306   "",
307   ")",
308   "%endif",
309   "",
310   "m4_ifdef( [[M4_YY_BISON_LVAL]],",
311   "[[",
312   "    ",
313   "[[#ifdef yyget_lval",
314   "#define ]]M4_YY_PREFIX[[get_lval_ALREADY_DEFINED",
315   "#else",
316   "#define yyget_lval ]]M4_YY_PREFIX[[get_lval",
317   "#endif]]",
318   "",
319   "    ",
320   "[[#ifdef yyset_lval",
321   "#define ]]M4_YY_PREFIX[[set_lval_ALREADY_DEFINED",
322   "#else",
323   "#define yyset_lval ]]M4_YY_PREFIX[[set_lval",
324   "#endif]]",
325   "",
326   "]])",
327   "",
328   "m4_ifdef( [[<M4_YY_BISON_LLOC>]],",
329   "[[",
330   "    ",
331   "[[#ifdef yyget_lloc",
332   "#define ]]M4_YY_PREFIX[[get_lloc_ALREADY_DEFINED",
333   "#else",
334   "#define yyget_lloc ]]M4_YY_PREFIX[[get_lloc",
335   "#endif]]",
336   "",
337   "    ",
338   "[[#ifdef yyset_lloc",
339   "#define ]]M4_YY_PREFIX[[set_lloc_ALREADY_DEFINED",
340   "#else",
341   "#define yyset_lloc ]]M4_YY_PREFIX[[set_lloc",
342   "#endif]]",
343   "",
344   "]])",
345   "",
346   "",
347   "m4_ifelse(M4_YY_PREFIX,yy,,",
348   "    ",
349   "[[#ifdef yyalloc",
350   "#define ]]M4_YY_PREFIX[[alloc_ALREADY_DEFINED",
351   "#else",
352   "#define yyalloc ]]M4_YY_PREFIX[[alloc",
353   "#endif]]",
354   "",
355   "    ",
356   "[[#ifdef yyrealloc",
357   "#define ]]M4_YY_PREFIX[[realloc_ALREADY_DEFINED",
358   "#else",
359   "#define yyrealloc ]]M4_YY_PREFIX[[realloc",
360   "#endif]]",
361   "",
362   "    ",
363   "[[#ifdef yyfree",
364   "#define ]]M4_YY_PREFIX[[free_ALREADY_DEFINED",
365   "#else",
366   "#define yyfree ]]M4_YY_PREFIX[[free",
367   "#endif]]",
368   "",
369   ")",
370   "",
371   "%if-c-only",
372   "m4_ifelse(M4_YY_PREFIX,yy,,",
373   "m4_ifdef( [[M4_YY_NOT_REENTRANT]],",
374   "[[",
375   "    ",
376   "[[#ifdef yytext",
377   "#define ]]M4_YY_PREFIX[[text_ALREADY_DEFINED",
378   "#else",
379   "#define yytext ]]M4_YY_PREFIX[[text",
380   "#endif]]",
381   "",
382   "    ",
383   "[[#ifdef yyleng",
384   "#define ]]M4_YY_PREFIX[[leng_ALREADY_DEFINED",
385   "#else",
386   "#define yyleng ]]M4_YY_PREFIX[[leng",
387   "#endif]]",
388   "",
389   "    ",
390   "[[#ifdef yyin",
391   "#define ]]M4_YY_PREFIX[[in_ALREADY_DEFINED",
392   "#else",
393   "#define yyin ]]M4_YY_PREFIX[[in",
394   "#endif]]",
395   "",
396   "    ",
397   "[[#ifdef yyout",
398   "#define ]]M4_YY_PREFIX[[out_ALREADY_DEFINED",
399   "#else",
400   "#define yyout ]]M4_YY_PREFIX[[out",
401   "#endif]]",
402   "",
403   "    ",
404   "[[#ifdef yy_flex_debug",
405   "#define ]]M4_YY_PREFIX[[_flex_debug_ALREADY_DEFINED",
406   "#else",
407   "#define yy_flex_debug ]]M4_YY_PREFIX[[_flex_debug",
408   "#endif]]",
409   "",
410   "    ",
411   "[[#ifdef yylineno",
412   "#define ]]M4_YY_PREFIX[[lineno_ALREADY_DEFINED",
413   "#else",
414   "#define yylineno ]]M4_YY_PREFIX[[lineno",
415   "#endif]]",
416   "",
417   "]])",
418   ")",
419   "%endif",
420   "",
421   "",
422   "m4_ifdef( [[M4_YY_TABLES_EXTERNAL]],",
423   "[[",
424   "    ",
425   "[[#ifdef yytables_fload",
426   "#define ]]M4_YY_PREFIX[[tables_fload_ALREADY_DEFINED",
427   "#else",
428   "#define yytables_fload ]]M4_YY_PREFIX[[tables_fload",
429   "#endif]]",
430   "",
431   "    ",
432   "[[#ifdef yytables_destroy",
433   "#define ]]M4_YY_PREFIX[[tables_destroy_ALREADY_DEFINED",
434   "#else",
435   "#define yytables_destroy ]]M4_YY_PREFIX[[tables_destroy",
436   "#endif]]",
437   "",
438   "    ",
439   "[[#ifdef yyTABLES_NAME",
440   "#define ]]M4_YY_PREFIX[[TABLES_NAME_ALREADY_DEFINED",
441   "#else",
442   "#define yyTABLES_NAME ]]M4_YY_PREFIX[[TABLES_NAME",
443   "#endif]]",
444   "",
445   "]])",
446   "",
447   "/* First, we deal with  platform-specific or compiler-specific issues. */",
448   "",
449   "/* begin standard C headers. */",
450   "%if-c-only",
451   "#include <stdio.h>",
452   "#include <string.h>",
453   "#include <errno.h>",
454   "#include <stdlib.h>",
455   "%endif",
456   "",
457   "%if-tables-serialization",
458   "#include <sys/types.h>",
459   "#include <netinet/in.h>",
460   "%endif",
461   "/* end standard C headers. */",
462   "",
463   "%if-c-or-c++",
464   "/* flex integer type definitions */",
465   "",
466   "#ifndef FLEXINT_H",
467   "#define FLEXINT_H",
468   "",
469   "/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */",
470   "",
471   "#if defined(__FreeBSD__) || \\",
472   "    (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)",
473   "",
474   "/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,",
475   " * if you want the limit (max/min) macros for int types. ",
476   " */",
477   "#ifndef __STDC_LIMIT_MACROS",
478   "#define __STDC_LIMIT_MACROS 1",
479   "#endif",
480   "",
481   "#include <inttypes.h>",
482   "typedef int8_t flex_int8_t;",
483   "typedef uint8_t flex_uint8_t;",
484   "typedef int16_t flex_int16_t;",
485   "typedef uint16_t flex_uint16_t;",
486   "typedef int32_t flex_int32_t;",
487   "typedef uint32_t flex_uint32_t;",
488   "#else",
489   "typedef signed char flex_int8_t;",
490   "typedef short int flex_int16_t;",
491   "typedef int flex_int32_t;",
492   "typedef unsigned char flex_uint8_t; ",
493   "typedef unsigned short int flex_uint16_t;",
494   "typedef unsigned int flex_uint32_t;",
495   "",
496   "/* Limits of integral types. */",
497   "#ifndef INT8_MIN",
498   "#define INT8_MIN               (-128)",
499   "#endif",
500   "#ifndef INT16_MIN",
501   "#define INT16_MIN              (-32767-1)",
502   "#endif",
503   "#ifndef INT32_MIN",
504   "#define INT32_MIN              (-2147483647-1)",
505   "#endif",
506   "#ifndef INT8_MAX",
507   "#define INT8_MAX               (127)",
508   "#endif",
509   "#ifndef INT16_MAX",
510   "#define INT16_MAX              (32767)",
511   "#endif",
512   "#ifndef INT32_MAX",
513   "#define INT32_MAX              (2147483647)",
514   "#endif",
515   "#ifndef UINT8_MAX",
516   "#define UINT8_MAX              (255U)",
517   "#endif",
518   "#ifndef UINT16_MAX",
519   "#define UINT16_MAX             (65535U)",
520   "#endif",
521   "#ifndef UINT32_MAX",
522   "#define UINT32_MAX             (4294967295U)",
523   "#endif",
524   "",
525   "#ifndef SIZE_MAX",
526   "#define SIZE_MAX               (~(size_t)0)",
527   "#endif",
528   "",
529   "#endif /* ! C99 */",
530   "",
531   "#endif /* ! FLEXINT_H */",
532   "",
533   "%endif",
534   "",
535   "/* begin standard C++ headers. */",
536   "%if-c++-only",
537   "#include <iostream>",
538   "#include <errno.h>",
539   "#include <cstdlib>",
540   "#include <cstdio>",
541   "#include <cstring>",
542   "/* end standard C++ headers. */",
543   "%endif",
544   "",
545   "/* TODO: this is always defined, so inline it */",
546   "#define yyconst const",
547   "",
548   "#if defined(__GNUC__) && __GNUC__ >= 3",
549   "#define yynoreturn __attribute__((__noreturn__))",
550   "#else",
551   "#define yynoreturn",
552   "#endif",
553   "",
554   "%not-for-header",
555   "/* Returned upon end-of-file. */",
556   "#define YY_NULL 0",
557   "%ok-for-header",
558   "",
559   "%not-for-header",
560   "/* Promotes a possibly negative, possibly signed char to an",
561   " *   integer in range [0..255] for use as an array index.",
562   " */",
563   "#define YY_SC_TO_UI(c) ((YY_CHAR) (c))",
564   "%ok-for-header",
565   "",
566   "",
567   "",
568   "%if-reentrant",
569   "",
570   "/* An opaque pointer. */",
571   "#ifndef YY_TYPEDEF_YY_SCANNER_T",
572   "#define YY_TYPEDEF_YY_SCANNER_T",
573   "typedef void* yyscan_t;",
574   "#endif",
575   "",
576   "m4_define( [[M4_YY_DECL_GUTS_VAR]], [[struct yyguts_t * yyg = (struct yyguts_t*)yyscanner]])",
577   "m4_define( [[M4_YY_NOOP_GUTS_VAR]], [[(void)yyg]])",
578   "m4_define( [[YY_G]], [[yyg->$1]])",
579   "",
580   "m4_define( [[M4_YY_PROTO_LAST_ARG]],  [[, yyscan_t yyscanner]])",
581   "m4_define( [[M4_YY_PROTO_ONLY_ARG]],  [[yyscan_t yyscanner]])",
582   "",
583   "m4_define( [[M4_YY_DEF_LAST_ARG]],  [[, yyscan_t yyscanner]])",
584   "m4_define( [[M4_YY_DEF_ONLY_ARG]],  [[yyscan_t yyscanner]])",
585   "m4_define( [[M4_YY_DECL_LAST_ARG]],  [[yyscan_t yyscanner;]])",
586   "",
587   "m4_define( [[M4_YY_CALL_LAST_ARG]], [[, yyscanner]])",
588   "m4_define( [[M4_YY_CALL_ONLY_ARG]], [[yyscanner]])",
589   "",
590   "m4_define( [[M4_YY_DOC_PARAM]], [[@param yyscanner The scanner object.]])",
591   "",
592   "/* For convenience, these vars (plus the bison vars far below)",
593   "   are macros in the reentrant scanner. */",
594   "#define yyin YY_G(yyin_r)",
595   "#define yyout YY_G(yyout_r)",
596   "#define yyextra YY_G(yyextra_r)",
597   "#define yyleng YY_G(yyleng_r)",
598   "#define yytext YY_G(yytext_r)",
599   "#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)",
600   "#define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)",
601   "#define yy_flex_debug YY_G(yy_flex_debug_r)",
602   "",
603   "m4_define( [[M4_YY_INCR_LINENO]],",
604   "[[",
605   "    do{ yylineno++;",
606   "        yycolumn=0;",
607   "    }while(0)",
608   "]])",
609   "",
610   "%endif",
611   "",
612   "",
613   "",
614   "%if-not-reentrant",
615   "",
616   "m4_define( [[M4_YY_INCR_LINENO]],",
617   "[[",
618   "    yylineno++;",
619   "]])",
620   "",
621   "m4_define( [[M4_YY_DECL_GUTS_VAR]], [[m4_dnl]])",
622   "m4_define( [[M4_YY_NOOP_GUTS_VAR]], [[m4_dnl]])",
623   "m4_define( [[YY_G]], [[($1)]])",
624   "m4_define( [[M4_YY_PROTO_LAST_ARG]])",
625   "m4_define( [[M4_YY_PROTO_ONLY_ARG]],  [[void]])",
626   "m4_define( [[M4_YY_DEF_LAST_ARG]])",
627   "",
628   "m4_define( [[M4_YY_DEF_ONLY_ARG]],  [[void]])",
629   "m4_define([[M4_YY_DECL_LAST_ARG]])",
630   "m4_define([[M4_YY_CALL_LAST_ARG]])",
631   "m4_define([[M4_YY_CALL_ONLY_ARG]])",
632   "m4_define( [[M4_YY_DOC_PARAM]], )",
633   "",
634   "%endif",
635   "",
636   "",
637   "m4_define( [[YYFARGS1]], [[($1 $2 M4_YY_DEF_LAST_ARG)]])",
638   "m4_define( [[YYFARGS2]], [[($1 $2, $3 $4 M4_YY_DEF_LAST_ARG)]])",
639   "m4_define( [[YYFARGS3]], [[($1 $2, $3 $4, $5 $6 M4_YY_DEF_LAST_ARG)]])",
640   "",
641   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
642   "[[",
643   "/* Enter a start condition.  This macro really ought to take a parameter,",
644   " * but we do it the disgusting crufty way forced on us by the ()-less",
645   " * definition of BEGIN.",
646   " */",
647   "#define BEGIN YY_G(yy_start) = 1 + 2 *",
648   "/* Translate the current start state into a value that can be later handed",
649   " * to BEGIN to return to the state.  The YYSTATE alias is for lex",
650   " * compatibility.",
651   " */",
652   "#define YY_START ((YY_G(yy_start) - 1) / 2)",
653   "#define YYSTATE YY_START",
654   "/* Action number for EOF rule of a given start state. */",
655   "#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)",
656   "/* Special action meaning \"start processing a new file\". */",
657   "#define YY_NEW_FILE yyrestart( yyin M4_YY_CALL_LAST_ARG )",
658   "#define YY_END_OF_BUFFER_CHAR 0",
659   "]])",
660   "",
661   "/* Size of default input buffer. */",
662   "#ifndef YY_BUF_SIZE",
663   "#ifdef __ia64__",
664   "/* On IA-64, the buffer size is 16k, not 8k.",
665   " * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.",
666   " * Ditto for the __ia64__ case accordingly.",
667   " */",
668   "#define YY_BUF_SIZE 32768",
669   "#else",
670   "#define YY_BUF_SIZE 16384",
671   "#endif /* __ia64__ */",
672   "#endif",
673   "",
674   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
675   "[[",
676   "/* The state buf must be large enough to hold one state per character in the main buffer.",
677   " */",
678   "#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))",
679   "]])",
680   "",
681   "",
682   "#ifndef YY_TYPEDEF_YY_BUFFER_STATE",
683   "#define YY_TYPEDEF_YY_BUFFER_STATE",
684   "typedef struct yy_buffer_state *YY_BUFFER_STATE;",
685   "#endif",
686   "",
687   "#ifndef YY_TYPEDEF_YY_SIZE_T",
688   "#define YY_TYPEDEF_YY_SIZE_T",
689   "typedef size_t yy_size_t;",
690   "#endif",
691   "",
692   "%if-not-reentrant",
693   "extern int yyleng;",
694   "%endif",
695   "",
696   "%if-c-only",
697   "%if-not-reentrant",
698   "extern FILE *yyin, *yyout;",
699   "%endif",
700   "%endif",
701   "",
702   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
703   "[[",
704   "#define EOB_ACT_CONTINUE_SCAN 0",
705   "#define EOB_ACT_END_OF_FILE 1",
706   "#define EOB_ACT_LAST_MATCH 2",
707   "    m4_ifdef( [[M4_YY_USE_LINENO]],",
708   "    [[",
709   "    /* Note: We specifically omit the test for yy_rule_can_match_eol because it requires",
710   "     *       access to the local variable yy_act. Since yyless() is a macro, it would break",
711   "     *       existing scanners that call yyless() from OUTSIDE yylex.",
712   "     *       One obvious solution it to make yy_act a global. I tried that, and saw",
713   "     *       a 5% performance hit in a non-yylineno scanner, because yy_act is",
714   "     *       normally declared as a register variable-- so it is not worth it.",
715   "     */",
716   "    #define  YY_LESS_LINENO(n) \\",
717   "            do { \\",
718   "                int yyl;\\",
719   "                for ( yyl = n; yyl < yyleng; ++yyl )\\",
720   "                    if ( yytext[yyl] == '\\n' )\\",
721   "                        --yylineno;\\",
722   "            }while(0)",
723   "    #define YY_LINENO_REWIND_TO(dst) \\",
724   "            do {\\",
725   "                const char *p;\\",
726   "                for ( p = yy_cp-1; p >= (dst); --p)\\",
727   "                    if ( *p == '\\n' )\\",
728   "                        --yylineno;\\",
729   "            }while(0)",
730   "    ]],",
731   "    [[",
732   "    #define YY_LESS_LINENO(n)",
733   "    #define YY_LINENO_REWIND_TO(ptr)",
734   "    ]])",
735   "/* Return all but the first \"n\" matched characters back to the input stream. */",
736   "#define yyless(n) \\",
737   "	do \\",
738   "		{ \\",
739   "		/* Undo effects of setting up yytext. */ \\",
740   "        int yyless_macro_arg = (n); \\",
741   "        YY_LESS_LINENO(yyless_macro_arg);\\",
742   "		*yy_cp = YY_G(yy_hold_char); \\",
743   "		YY_RESTORE_YY_MORE_OFFSET \\",
744   "		YY_G(yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \\",
745   "		YY_DO_BEFORE_ACTION; /* set up yytext again */ \\",
746   "		} \\",
747   "	while ( 0 )",
748   "#define unput(c) yyunput( c, YY_G(yytext_ptr) M4_YY_CALL_LAST_ARG )",
749   "]])",
750   "",
751   "#ifndef YY_STRUCT_YY_BUFFER_STATE",
752   "#define YY_STRUCT_YY_BUFFER_STATE",
753   "struct yy_buffer_state",
754   "	{",
755   "%if-c-only",
756   "	FILE *yy_input_file;",
757   "%endif",
758   "",
759   "%if-c++-only",
760   "	std::streambuf* yy_input_file;",
761   "%endif",
762   "",
763   "",
764   "	char *yy_ch_buf;		/* input buffer */",
765   "	char *yy_buf_pos;		/* current position in input buffer */",
766   "",
767   "	/* Size of input buffer in bytes, not including room for EOB",
768   "	 * characters.",
769   "	 */",
770   "	int yy_buf_size;",
771   "",
772   "	/* Number of characters read into yy_ch_buf, not including EOB",
773   "	 * characters.",
774   "	 */",
775   "	int yy_n_chars;",
776   "",
777   "	/* Whether we \"own\" the buffer - i.e., we know we created it,",
778   "	 * and can realloc() it to grow it, and should free() it to",
779   "	 * delete it.",
780   "	 */",
781   "	int yy_is_our_buffer;",
782   "",
783   "	/* Whether this is an \"interactive\" input source; if so, and",
784   "	 * if we're using stdio for input, then we want to use getc()",
785   "	 * instead of fread(), to make sure we stop fetching input after",
786   "	 * each newline.",
787   "	 */",
788   "	int yy_is_interactive;",
789   "",
790   "	/* Whether we're considered to be at the beginning of a line.",
791   "	 * If so, '^' rules will be active on the next match, otherwise",
792   "	 * not.",
793   "	 */",
794   "	int yy_at_bol;",
795   "",
796   "    int yy_bs_lineno; /**< The line count. */",
797   "    int yy_bs_column; /**< The column count. */",
798   "",
799   "",
800   "	/* Whether to try to fill the input buffer when we reach the",
801   "	 * end of it.",
802   "	 */",
803   "	int yy_fill_buffer;",
804   "",
805   "	int yy_buffer_status;",
806   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
807   "[[",
808   "#define YY_BUFFER_NEW 0",
809   "#define YY_BUFFER_NORMAL 1",
810   "	/* When an EOF's been seen but there's still some text to process",
811   "	 * then we mark the buffer as YY_EOF_PENDING, to indicate that we",
812   "	 * shouldn't try reading from the input source any more.  We might",
813   "	 * still have a bunch of tokens to match, though, because of",
814   "	 * possible backing-up.",
815   "	 *",
816   "	 * When we actually see the EOF, we change the status to \"new\"",
817   "	 * (via yyrestart()), so that the user can continue scanning by",
818   "	 * just pointing yyin at a new input file.",
819   "	 */",
820   "#define YY_BUFFER_EOF_PENDING 2",
821   "]])",
822   "	};",
823   "#endif /* !YY_STRUCT_YY_BUFFER_STATE */",
824   "",
825   "%if-c-only Standard (non-C++) definition",
826   "%not-for-header",
827   "%if-not-reentrant",
828   "",
829   "/* Stack of input buffers. */",
830   "static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */",
831   "static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */",
832   "static YY_BUFFER_STATE * yy_buffer_stack = NULL; /**< Stack as an array. */",
833   "%endif",
834   "%ok-for-header",
835   "%endif",
836   "",
837   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
838   "[[",
839   "/* We provide macros for accessing buffer states in case in the",
840   " * future we want to put the buffer states in a more general",
841   " * \"scanner state\".",
842   " *",
843   " * Returns the top of the stack, or NULL.",
844   " */",
845   "#define YY_CURRENT_BUFFER ( YY_G(yy_buffer_stack) \\",
846   "                          ? YY_G(yy_buffer_stack)[YY_G(yy_buffer_stack_top)] \\",
847   "                          : NULL)",
848   "#define yy_current_buffer YY_CURRENT_BUFFER",
849   "/* Same as previous macro, but useful when we know that the buffer stack is not",
850   " * NULL or when we need an lvalue. For internal use only.",
851   " */",
852   "#define YY_CURRENT_BUFFER_LVALUE YY_G(yy_buffer_stack)[YY_G(yy_buffer_stack_top)]",
853   "]])",
854   "",
855   "%if-c-only Standard (non-C++) definition",
856   "",
857   "%if-not-reentrant",
858   "%not-for-header",
859   "/* yy_hold_char holds the character lost when yytext is formed. */",
860   "static char yy_hold_char;",
861   "static int yy_n_chars;		/* number of characters read into yy_ch_buf */",
862   "int yyleng;",
863   "",
864   "/* Points to current character in buffer. */",
865   "static char *yy_c_buf_p = NULL;",
866   "static int yy_init = 0;		/* whether we need to initialize */",
867   "static int yy_start = 0;	/* start state number */",
868   "",
869   "/* Flag which is used to allow yywrap()'s to do buffer switches",
870   " * instead of setting up a fresh yyin.  A bit of a hack ...",
871   " */",
872   "static int yy_did_buffer_switch_on_eof;",
873   "%ok-for-header",
874   "%endif",
875   "",
876   "void yyrestart ( FILE *input_file M4_YY_PROTO_LAST_ARG );",
877   "void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer M4_YY_PROTO_LAST_ARG );",
878   "YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size M4_YY_PROTO_LAST_ARG );",
879   "void yy_delete_buffer ( YY_BUFFER_STATE b M4_YY_PROTO_LAST_ARG );",
880   "void yy_flush_buffer ( YY_BUFFER_STATE b M4_YY_PROTO_LAST_ARG );",
881   "void yypush_buffer_state ( YY_BUFFER_STATE new_buffer M4_YY_PROTO_LAST_ARG );",
882   "void yypop_buffer_state ( M4_YY_PROTO_ONLY_ARG );",
883   "",
884   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
885   "[[",
886   "static void yyensure_buffer_stack ( M4_YY_PROTO_ONLY_ARG );",
887   "static void yy_load_buffer_state ( M4_YY_PROTO_ONLY_ARG );",
888   "static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file M4_YY_PROTO_LAST_ARG );",
889   "#define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER M4_YY_CALL_LAST_ARG)",
890   "]])",
891   "",
892   "YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size M4_YY_PROTO_LAST_ARG );",
893   "YY_BUFFER_STATE yy_scan_string ( const char *yy_str M4_YY_PROTO_LAST_ARG );",
894   "YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len M4_YY_PROTO_LAST_ARG );",
895   "",
896   "%endif",
897   "",
898   "void *yyalloc ( yy_size_t M4_YY_PROTO_LAST_ARG );",
899   "void *yyrealloc ( void *, yy_size_t M4_YY_PROTO_LAST_ARG );",
900   "void yyfree ( void * M4_YY_PROTO_LAST_ARG );",
901   "",
902   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
903   "[[",
904   "#define yy_new_buffer yy_create_buffer",
905   "#define yy_set_interactive(is_interactive) \\",
906   "	{ \\",
907   "	if ( ! YY_CURRENT_BUFFER ){ \\",
908   "        yyensure_buffer_stack (M4_YY_CALL_ONLY_ARG); \\",
909   "		YY_CURRENT_BUFFER_LVALUE =    \\",
910   "            yy_create_buffer( yyin, YY_BUF_SIZE M4_YY_CALL_LAST_ARG); \\",
911   "	} \\",
912   "	YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \\",
913   "	}",
914   "#define yy_set_bol(at_bol) \\",
915   "	{ \\",
916   "	if ( ! YY_CURRENT_BUFFER ){\\",
917   "        yyensure_buffer_stack (M4_YY_CALL_ONLY_ARG); \\",
918   "		YY_CURRENT_BUFFER_LVALUE =    \\",
919   "            yy_create_buffer( yyin, YY_BUF_SIZE M4_YY_CALL_LAST_ARG); \\",
920   "	} \\",
921   "	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \\",
922   "	}",
923   "#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)",
924   "]])",
925   "",
926   "%% [1.0] yytext/yyin/yyout/yy_state_type/yylineno etc. def's & init go here",
927   "",
928   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
929   "[[",
930   "%% [1.5] DFA",
931   "]])",
932   "",
933   "%if-c-only Standard (non-C++) definition",
934   "",
935   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
936   "[[",
937   "static yy_state_type yy_get_previous_state ( M4_YY_PROTO_ONLY_ARG );",
938   "static yy_state_type yy_try_NUL_trans ( yy_state_type current_state  M4_YY_PROTO_LAST_ARG);",
939   "static int yy_get_next_buffer ( M4_YY_PROTO_ONLY_ARG );",
940   "static void yynoreturn yy_fatal_error ( const char* msg M4_YY_PROTO_LAST_ARG );",
941   "]])",
942   "",
943   "%endif",
944   "",
945   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
946   "[[",
947   "/* Done after the current pattern has been matched and before the",
948   " * corresponding action - sets up yytext.",
949   " */",
950   "#define YY_DO_BEFORE_ACTION \\",
951   "	YY_G(yytext_ptr) = yy_bp; \\",
952   "%% [2.0] code to fiddle yytext and yyleng for yymore() goes here \\",
953   "	YY_G(yy_hold_char) = *yy_cp; \\",
954   "	*yy_cp = '\\0'; \\",
955   "%% [3.0] code to copy yytext_ptr to yytext[] goes here, if %array \\",
956   "	YY_G(yy_c_buf_p) = yy_cp;",
957   "%% [4.0] data tables for the DFA and the user's section 1 definitions go here",
958   "]])",
959   "",
960   "m4_ifdef( [[M4_YY_IN_HEADER]], [[#ifdef YY_HEADER_EXPORT_START_CONDITIONS]])",
961   "M4_YY_SC_DEFS",
962   "m4_ifdef( [[M4_YY_IN_HEADER]], [[#endif]])",
963   "",
964   "m4_ifdef( [[M4_YY_NO_UNISTD_H]],,",
965   "[[",
966   "#ifndef YY_NO_UNISTD_H",
967   "/* Special case for \"unistd.h\", since it is non-ANSI. We include it way",
968   " * down here because we want the user's section 1 to have been scanned first.",
969   " * The user has a chance to override it with an option.",
970   " */",
971   "%if-c-only",
972   "#include <unistd.h>",
973   "%endif",
974   "%if-c++-only",
975   "#include <unistd.h>",
976   "%endif",
977   "#endif",
978   "]])",
979   "",
980   "m4_ifdef( [[M4_EXTRA_TYPE_DEFS]],",
981   "[[",
982   "#define YY_EXTRA_TYPE M4_EXTRA_TYPE_DEFS",
983   "]],",
984   "[[",
985   "#ifndef YY_EXTRA_TYPE",
986   "#define YY_EXTRA_TYPE void *",
987   "#endif",
988   "]]",
989   ")",
990   "",
991   "%if-c-only Reentrant structure and macros (non-C++).",
992   "%if-reentrant",
993   "",
994   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
995   "[[",
996   "/* Holds the entire state of the reentrant scanner. */",
997   "struct yyguts_t",
998   "    {",
999   "",
1000   "    /* User-defined. Not touched by flex. */",
1001   "    YY_EXTRA_TYPE yyextra_r;",
1002   "",
1003   "    /* The rest are the same as the globals declared in the non-reentrant scanner. */",
1004   "    FILE *yyin_r, *yyout_r;",
1005   "    size_t yy_buffer_stack_top; /**< index of top of stack. */",
1006   "    size_t yy_buffer_stack_max; /**< capacity of stack. */",
1007   "    YY_BUFFER_STATE * yy_buffer_stack; /**< Stack as an array. */",
1008   "    char yy_hold_char;",
1009   "    int yy_n_chars;",
1010   "    int yyleng_r;",
1011   "    char *yy_c_buf_p;",
1012   "    int yy_init;",
1013   "    int yy_start;",
1014   "    int yy_did_buffer_switch_on_eof;",
1015   "    int yy_start_stack_ptr;",
1016   "    int yy_start_stack_depth;",
1017   "    int *yy_start_stack;",
1018   "    yy_state_type yy_last_accepting_state;",
1019   "    char* yy_last_accepting_cpos;",
1020   "",
1021   "    int yylineno_r;",
1022   "    int yy_flex_debug_r;",
1023   "",
1024   "m4_ifdef( [[M4_YY_USES_REJECT]],",
1025   "[[",
1026   "    yy_state_type *yy_state_buf;",
1027   "    yy_state_type *yy_state_ptr;",
1028   "    char *yy_full_match;",
1029   "    int yy_lp;",
1030   "",
1031   "    /* These are only needed for trailing context rules,",
1032   "     * but there's no conditional variable for that yet. */",
1033   "    int yy_looking_for_trail_begin;",
1034   "    int yy_full_lp;",
1035   "    int *yy_full_state;",
1036   "]])",
1037   "",
1038   "m4_ifdef( [[M4_YY_TEXT_IS_ARRAY]],",
1039   "[[",
1040   "    char yytext_r[YYLMAX];",
1041   "    char *yytext_ptr;",
1042   "    int yy_more_offset;",
1043   "    int yy_prev_more_offset;",
1044   "]],",
1045   "[[",
1046   "    char *yytext_r;",
1047   "    int yy_more_flag;",
1048   "    int yy_more_len;",
1049   "]])",
1050   "",
1051   "m4_ifdef( [[M4_YY_BISON_LVAL]],",
1052   "[[",
1053   "    YYSTYPE * yylval_r;",
1054   "]])",
1055   "",
1056   "m4_ifdef( [[<M4_YY_BISON_LLOC>]],",
1057   "[[",
1058   "    YYLTYPE * yylloc_r;",
1059   "]])",
1060   "",
1061   "    }; /* end struct yyguts_t */",
1062   "]])",
1063   "",
1064   "",
1065   "%if-c-only",
1066   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
1067   "[[",
1068   "static int yy_init_globals ( M4_YY_PROTO_ONLY_ARG );",
1069   "]])",
1070   "%endif",
1071   "",
1072   "%if-reentrant",
1073   "",
1074   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
1075   "[[",
1076   "    m4_ifdef( [[M4_YY_BISON_LVAL]],",
1077   "    [[",
1078   "    /* This must go here because YYSTYPE and YYLTYPE are included",
1079   "     * from bison output in section 1.*/",
1080   "    #    define yylval YY_G(yylval_r)",
1081   "    ]])",
1082   "",
1083   "    m4_ifdef( [[<M4_YY_BISON_LLOC>]],",
1084   "    [[",
1085   "    #    define yylloc YY_G(yylloc_r)",
1086   "    ]])",
1087   "]])",
1088   "",
1089   "int yylex_init (yyscan_t* scanner);",
1090   "",
1091   "int yylex_init_extra ( YY_EXTRA_TYPE user_defined, yyscan_t* scanner);",
1092   "",
1093   "%endif",
1094   "",
1095   "%endif End reentrant structures and macros.",
1096   "",
1097   "/* Accessor methods to globals.",
1098   "   These are made visible to non-reentrant scanners for convenience. */",
1099   "",
1100   "m4_ifdef( [[M4_YY_NO_DESTROY]],,",
1101   "[[",
1102   "int yylex_destroy ( M4_YY_PROTO_ONLY_ARG );",
1103   "]])",
1104   "",
1105   "m4_ifdef( [[M4_YY_NO_GET_DEBUG]],,",
1106   "[[",
1107   "int yyget_debug ( M4_YY_PROTO_ONLY_ARG );",
1108   "]])",
1109   "",
1110   "m4_ifdef( [[M4_YY_NO_SET_DEBUG]],,",
1111   "[[",
1112   "void yyset_debug ( int debug_flag M4_YY_PROTO_LAST_ARG );",
1113   "]])",
1114   "",
1115   "m4_ifdef( [[M4_YY_NO_GET_EXTRA]],,",
1116   "[[",
1117   "YY_EXTRA_TYPE yyget_extra ( M4_YY_PROTO_ONLY_ARG );",
1118   "]])",
1119   "",
1120   "m4_ifdef( [[M4_YY_NO_SET_EXTRA]],,",
1121   "[[",
1122   "void yyset_extra ( YY_EXTRA_TYPE user_defined M4_YY_PROTO_LAST_ARG );",
1123   "]])",
1124   "",
1125   "m4_ifdef( [[M4_YY_NO_GET_IN]],,",
1126   "[[",
1127   "FILE *yyget_in ( M4_YY_PROTO_ONLY_ARG );",
1128   "]])",
1129   "",
1130   "m4_ifdef( [[M4_YY_NO_SET_IN]],,",
1131   "[[",
1132   "void yyset_in  ( FILE * _in_str M4_YY_PROTO_LAST_ARG );",
1133   "]])",
1134   "",
1135   "m4_ifdef( [[M4_YY_NO_GET_OUT]],,",
1136   "[[",
1137   "FILE *yyget_out ( M4_YY_PROTO_ONLY_ARG );",
1138   "]])",
1139   "",
1140   "m4_ifdef( [[M4_YY_NO_SET_OUT]],,",
1141   "[[",
1142   "void yyset_out  ( FILE * _out_str M4_YY_PROTO_LAST_ARG );",
1143   "]])",
1144   "",
1145   "m4_ifdef( [[M4_YY_NO_GET_LENG]],,",
1146   "[[",
1147   "			int yyget_leng ( M4_YY_PROTO_ONLY_ARG );",
1148   "]])",
1149   "",
1150   "m4_ifdef( [[M4_YY_NO_GET_TEXT]],,",
1151   "[[",
1152   "char *yyget_text ( M4_YY_PROTO_ONLY_ARG );",
1153   "]])",
1154   "",
1155   "m4_ifdef( [[M4_YY_NO_GET_LINENO]],,",
1156   "[[",
1157   "int yyget_lineno ( M4_YY_PROTO_ONLY_ARG );",
1158   "]])",
1159   "",
1160   "m4_ifdef( [[M4_YY_NO_SET_LINENO]],,",
1161   "[[",
1162   "void yyset_lineno ( int _line_number M4_YY_PROTO_LAST_ARG );",
1163   "]])",
1164   "",
1165   "m4_ifdef( [[M4_YY_REENTRANT]],",
1166   "[[",
1167   "m4_ifdef( [[M4_YY_NO_GET_COLUMN]],,",
1168   "[[",
1169   "int yyget_column  ( M4_YY_PROTO_ONLY_ARG );",
1170   "]])",
1171   "]])",
1172   "",
1173   "m4_ifdef( [[M4_YY_REENTRANT]],",
1174   "[[",
1175   "m4_ifdef( [[M4_YY_NO_SET_COLUMN]],,",
1176   "[[",
1177   "void yyset_column ( int _column_no M4_YY_PROTO_LAST_ARG );",
1178   "]])",
1179   "]])",
1180   "",
1181   "%if-bison-bridge",
1182   "m4_ifdef( [[M4_YY_NO_GET_LVAL]],,",
1183   "[[",
1184   "YYSTYPE * yyget_lval ( M4_YY_PROTO_ONLY_ARG );",
1185   "]])",
1186   "",
1187   "void yyset_lval ( YYSTYPE * yylval_param M4_YY_PROTO_LAST_ARG );",
1188   "",
1189   "m4_ifdef( [[<M4_YY_BISON_LLOC>]],",
1190   "[[",
1191   "    m4_ifdef( [[M4_YY_NO_GET_LLOC]],,",
1192   "    [[",
1193   "       YYLTYPE *yyget_lloc ( M4_YY_PROTO_ONLY_ARG );",
1194   "    ]])",
1195   "",
1196   "    m4_ifdef( [[M4_YY_NO_SET_LLOC]],,",
1197   "    [[",
1198   "        void yyset_lloc ( YYLTYPE * yylloc_param M4_YY_PROTO_LAST_ARG );",
1199   "    ]])",
1200   "]])",
1201   "%endif",
1202   "",
1203   "/* Macros after this point can all be overridden by user definitions in",
1204   " * section 1.",
1205   " */",
1206   "",
1207   "#ifndef YY_SKIP_YYWRAP",
1208   "#ifdef __cplusplus",
1209   "extern \"C\" int yywrap ( M4_YY_PROTO_ONLY_ARG );",
1210   "#else",
1211   "extern int yywrap ( M4_YY_PROTO_ONLY_ARG );",
1212   "#endif",
1213   "#endif",
1214   "",
1215   "%not-for-header",
1216   "#ifndef YY_NO_UNPUT",
1217   "    m4_ifdef( [[M4_YY_NO_UNPUT]],,",
1218   "    [[",
1219   "    static void yyunput ( int c, char *buf_ptr  M4_YY_PROTO_LAST_ARG);",
1220   "    ]])",
1221   "#endif",
1222   "%ok-for-header",
1223   "%endif",
1224   "",
1225   "#ifndef yytext_ptr",
1226   "static void yy_flex_strncpy ( char *, const char *, int M4_YY_PROTO_LAST_ARG);",
1227   "#endif",
1228   "",
1229   "#ifdef YY_NEED_STRLEN",
1230   "static int yy_flex_strlen ( const char * M4_YY_PROTO_LAST_ARG);",
1231   "#endif",
1232   "",
1233   "#ifndef YY_NO_INPUT",
1234   "%if-c-only Standard (non-C++) definition",
1235   "%not-for-header",
1236   "#ifdef __cplusplus",
1237   "static int yyinput ( M4_YY_PROTO_ONLY_ARG );",
1238   "#else",
1239   "static int input ( M4_YY_PROTO_ONLY_ARG );",
1240   "#endif",
1241   "%ok-for-header",
1242   "%endif",
1243   "#endif",
1244   "",
1245   "",
1246   "%if-c-only",
1247   "m4_ifdef( [[M4_YY_STACK_USED]],",
1248   "[[",
1249   "",
1250   "m4_ifdef( [[M4_YY_NOT_REENTRANT]],",
1251   "[[",
1252   "    m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
1253   "    [[",
1254   "        static int yy_start_stack_ptr = 0;",
1255   "        static int yy_start_stack_depth = 0;",
1256   "        static int *yy_start_stack = NULL;",
1257   "    ]])",
1258   "]])",
1259   "",
1260   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
1261   "[[",
1262   "    m4_ifdef( [[M4_YY_NO_PUSH_STATE]],,",
1263   "    [[",
1264   "    static void yy_push_state ( int _new_state M4_YY_PROTO_LAST_ARG);",
1265   "    ]])",
1266   "    m4_ifdef( [[M4_YY_NO_POP_STATE]],,",
1267   "    [[",
1268   "    static void yy_pop_state ( M4_YY_PROTO_ONLY_ARG );",
1269   "    ]])",
1270   "    m4_ifdef( [[M4_YY_NO_TOP_STATE]],,",
1271   "    [[",
1272   "    static int yy_top_state ( M4_YY_PROTO_ONLY_ARG );",
1273   "    ]])",
1274   "]])",
1275   "",
1276   "]],",
1277   "[[",
1278   "m4_define( [[M4_YY_NO_PUSH_STATE]])",
1279   "m4_define( [[M4_YY_NO_POP_STATE]])",
1280   "m4_define( [[M4_YY_NO_TOP_STATE]])",
1281   "]])",
1282   "%endif",
1283   "",
1284   "/* Amount of stuff to slurp up with each read. */",
1285   "#ifndef YY_READ_BUF_SIZE",
1286   "#ifdef __ia64__",
1287   "/* On IA-64, the buffer size is 16k, not 8k */",
1288   "#define YY_READ_BUF_SIZE 16384",
1289   "#else",
1290   "#define YY_READ_BUF_SIZE 8192",
1291   "#endif /* __ia64__ */",
1292   "#endif",
1293   "",
1294   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
1295   "[[",
1296   "/* Copy whatever the last rule matched to the standard output. */",
1297   "#ifndef ECHO",
1298   "%if-c-only Standard (non-C++) definition",
1299   "/* This used to be an fputs(), but since the string might contain NUL's,",
1300   " * we now use fwrite().",
1301   " */",
1302   "#define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)",
1303   "%endif",
1304   "%if-c++-only C++ definition",
1305   "#define ECHO LexerOutput( yytext, yyleng )",
1306   "%endif",
1307   "#endif",
1308   "]])",
1309   "",
1310   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
1311   "[[",
1312   "/* Gets input and stuffs it into \"buf\".  number of characters read, or YY_NULL,",
1313   " * is returned in \"result\".",
1314   " */",
1315   "#ifndef YY_INPUT",
1316   "#define YY_INPUT(buf,result,max_size) \\",
1317   "%% [5.0] fread()/read() definition of YY_INPUT goes here unless we're doing C++ \\",
1318   "\\",
1319   "%if-c++-only C++ definition \\",
1320   "	if ( (int)(result = LexerInput( (char *) buf, max_size )) < 0 ) \\",
1321   "		YY_FATAL_ERROR( \"input in flex scanner failed\" );",
1322   "%endif",
1323   "",
1324   "#endif",
1325   "]])",
1326   "",
1327   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
1328   "[[",
1329   "/* No semi-colon after return; correct usage is to write \"yyterminate();\" -",
1330   " * we don't want an extra ';' after the \"return\" because that will cause",
1331   " * some compilers to complain about unreachable statements.",
1332   " */",
1333   "#ifndef yyterminate",
1334   "#define yyterminate() return YY_NULL",
1335   "#endif",
1336   "]])",
1337   "",
1338   "/* Number of entries by which start-condition stack grows. */",
1339   "#ifndef YY_START_STACK_INCR",
1340   "#define YY_START_STACK_INCR 25",
1341   "#endif",
1342   "",
1343   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
1344   "[[",
1345   "/* Report a fatal error. */",
1346   "#ifndef YY_FATAL_ERROR",
1347   "%if-c-only",
1348   "#define YY_FATAL_ERROR(msg) yy_fatal_error( msg M4_YY_CALL_LAST_ARG)",
1349   "%endif",
1350   "%if-c++-only",
1351   "#define YY_FATAL_ERROR(msg) LexerError( msg )",
1352   "%endif",
1353   "#endif",
1354   "]])",
1355   "",
1356   "%if-tables-serialization structures and prototypes",
1357   "#ifdef FLEX_SCANNER",
1358   "/*",
1359   "dnl  tables_shared.h - tables serialization header",
1360   "dnl",
1361   "dnl  Copyright (c) 1990 The Regents of the University of California.",
1362   "dnl  All rights reserved.",
1363   "dnl",
1364   "dnl  This code is derived from software contributed to Berkeley by",
1365   "dnl  Vern Paxson.",
1366   "dnl",
1367   "dnl  The United States Government has rights in this work pursuant",
1368   "dnl  to contract no. DE-AC03-76SF00098 between the United States",
1369   "dnl  Department of Energy and the University of California.",
1370   "dnl",
1371   "dnl  This file is part of flex.",
1372   "dnl",
1373   "dnl  Redistribution and use in source and binary forms, with or without",
1374   "dnl  modification, are permitted provided that the following conditions",
1375   "dnl  are met:",
1376   "dnl",
1377   "dnl  1. Redistributions of source code must retain the above copyright",
1378   "dnl     notice, this list of conditions and the following disclaimer.",
1379   "dnl  2. Redistributions in binary form must reproduce the above copyright",
1380   "dnl     notice, this list of conditions and the following disclaimer in the",
1381   "dnl     documentation and/or other materials provided with the distribution.",
1382   "dnl",
1383   "dnl  Neither the name of the University nor the names of its contributors",
1384   "dnl  may be used to endorse or promote products derived from this software",
1385   "dnl  without specific prior written permission.",
1386   "dnl",
1387   "dnl  THIS SOFTWARE IS PROVIDED `AS IS' AND WITHOUT ANY EXPRESS OR",
1388   "dnl  IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED",
1389   "dnl  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR",
1390   "dnl  PURPOSE.",
1391   "",
1392   "dnl",
1393   "dnl  This file is meant to be included in both the skeleton and the actual",
1394   "dnl  flex code (hence the name \"_shared\").",
1395   "*/",
1396   "#ifndef yyskel_static",
1397   "#define yyskel_static static",
1398   "#endif",
1399   "#else",
1400   "#ifndef yyskel_static",
1401   "#define yyskel_static",
1402   "#endif",
1403   "#endif",
1404   "",
1405   "/* Structures and prototypes for serializing flex tables.  The",
1406   " * binary format is documented in the manual.",
1407   " *",
1408   " * Design considerations:",
1409   " *",
1410   " *  -  The format allows many tables per file.",
1411   " *  -  The tables can be streamed.",
1412   " *  -  All data is stored in network byte order.",
1413   " *  -  We do not hinder future unicode support.",
1414   " *  -  We can lookup tables by name.",
1415   " */",
1416   "",
1417   "/** Magic number for serialized format. */",
1418   "#ifndef YYTBL_MAGIC",
1419   "#define YYTBL_MAGIC 0xF13C57B1",
1420   "#endif",
1421   "",
1422   "/** Calculate (0-7) = number bytes needed to pad n to next 64-bit boundary. */",
1423   "#ifndef yypad64",
1424   "#define yypad64(n) ((8-((n)%8))%8)",
1425   "#endif",
1426   "",
1427   "",
1428   "#ifndef YYTABLES_TYPES",
1429   "#define YYTABLES_TYPES",
1430   "/** Possible values for td_id field. Each one corresponds to a",
1431   " *  scanner table of the same name.",
1432   " */",
1433   "enum yytbl_id {",
1434   "	YYTD_ID_ACCEPT = 0x01,		/**< 1-dim ints */",
1435   "	YYTD_ID_BASE = 0x02,		/**< 1-dim ints */",
1436   "	YYTD_ID_CHK = 0x03,		/**< 1-dim ints */",
1437   "	YYTD_ID_DEF = 0x04,		/**< 1-dim ints */",
1438   "	YYTD_ID_EC = 0x05,		/**< 1-dim ints */",
1439   "	YYTD_ID_META = 0x06,		/**< 1-dim ints */",
1440   "	YYTD_ID_NUL_TRANS = 0x07,	/**< 1-dim ints, maybe indices */",
1441   "	YYTD_ID_NXT = 0x08,		/**< may be 2 dimensional ints */",
1442   "	YYTD_ID_RULE_CAN_MATCH_EOL = 0x09, /**< 1-dim ints */",
1443   "	YYTD_ID_START_STATE_LIST = 0x0A,	/**< 1-dim indices into trans tbl  */",
1444   "	YYTD_ID_TRANSITION = 0x0B,	/**< structs */",
1445   "	YYTD_ID_ACCLIST = 0x0C		/**< 1-dim ints */",
1446   "};",
1447   "",
1448   "/** bit flags for t_flags field of struct yytbl_data */",
1449   "enum yytbl_flags {",
1450   "	/* These first three are mutually exclusive */",
1451   "	YYTD_DATA8 = 0x01,   /**< data is an array of type flex_int8_t */",
1452   "	YYTD_DATA16 = 0x02,  /**< data is an array of type flex_int16_t */",
1453   "	YYTD_DATA32 = 0x04,  /**< data is an array of type flex_int32_t */",
1454   "",
1455   "	/* These two are mutually exclusive. */",
1456   "	YYTD_PTRANS = 0x08,  /**< data is a list of indexes of entries",
1457   "                                 into the expanded yy_transition",
1458   "                                 array. See notes in manual. */",
1459   "	YYTD_STRUCT = 0x10  /**< data consists of yy_trans_info structs */",
1460   "};",
1461   "",
1462   "/* The serialized tables header. */",
1463   "struct yytbl_hdr {",
1464   "	flex_uint32_t th_magic;  /**< Must be 0xF13C57B1 (comes from \"Flex Table\") */",
1465   "	flex_uint32_t th_hsize;  /**< Size of this header in bytes. */",
1466   "	flex_uint32_t th_ssize;  /**< Size of this dataset, in bytes, including header. */",
1467   "	flex_uint16_t th_flags;  /**< Currently unused, must be 0 */",
1468   "	char   *th_version; /**< Flex version string. NUL terminated. */",
1469   "	char   *th_name;    /**< The name of this table set. NUL terminated. */",
1470   "};",
1471   "",
1472   "/** A single serialized table */",
1473   "struct yytbl_data {",
1474   "	flex_uint16_t td_id;      /**< enum yytbl_id table identifier */",
1475   "	flex_uint16_t td_flags;   /**< how to interpret this data */",
1476   "	flex_uint32_t td_hilen;   /**< num elements in highest dimension array */",
1477   "	flex_uint32_t td_lolen;   /**< num elements in lowest dimension array */",
1478   "	void   *td_data;     /**< table data */",
1479   "};",
1480   "#endif",
1481   "",
1482   "/** Extract corresponding data size_t from td_flags */",
1483   "#ifndef YYTDFLAGS2BYTES",
1484   "#define YYTDFLAGS2BYTES(td_flags)\\",
1485   "        (((td_flags) & YYTD_DATA8)\\",
1486   "            ? sizeof(flex_int8_t)\\",
1487   "            :(((td_flags) & YYTD_DATA16)\\",
1488   "                ? sizeof(flex_int16_t)\\",
1489   "                :sizeof(flex_int32_t)))",
1490   "#endif",
1491   "",
1492   "#ifdef FLEX_SCANNER",
1493   "%not-for-header",
1494   "#endif",
1495   "yyskel_static flex_int32_t yytbl_calc_total_len (const struct yytbl_data *tbl);",
1496   "#ifdef FLEX_SCANNER",
1497   "%ok-for-header",
1498   "#endif",
1499   "",
1500   "/* vim:set noexpandtab cindent tabstop=8 softtabstop=0 shiftwidth=8 textwidth=0: */",
1501   "",
1502   "",
1503   "/* Load the DFA tables from the given stream.  */",
1504   "int yytables_fload (FILE * fp M4_YY_PROTO_LAST_ARG);",
1505   "",
1506   "/* Unload the tables from memory. */",
1507   "int yytables_destroy (M4_YY_PROTO_ONLY_ARG);",
1508   "%not-for-header",
1509   "",
1510   "/** Describes a mapping from a serialized table id to its deserialized state in",
1511   " * this scanner.  This is the bridge between our \"generic\" deserialization code",
1512   " * and the specifics of this scanner.",
1513   " */",
1514   "struct yytbl_dmap {",
1515   "	enum yytbl_id dm_id;/**< table identifier */",
1516   "	void  **dm_arr;		/**< address of pointer to store the deserialized table. */",
1517   "	size_t  dm_sz;		/**< local sizeof() each element in table. */",
1518   "};",
1519   "",
1520   "/** A {0,0,0}-terminated list of structs, forming the map */",
1521   "static struct yytbl_dmap yydmap[] =",
1522   "{",
1523   "%tables-yydmap generated elements",
1524   "    {0,0,0}",
1525   "};",
1526   "",
1527   "/** A tables-reader object to maintain some state in the read. */",
1528   "struct yytbl_reader {",
1529   "    FILE * fp; /**< input stream */",
1530   "    flex_uint32_t bread; /**< bytes read since beginning of current tableset */",
1531   "};",
1532   "",
1533   "%endif",
1534   "/* end tables serialization structures and prototypes */",
1535   "",
1536   "%ok-for-header",
1537   "",
1538   "/* Default declaration of generated scanner - a define so the user can",
1539   " * easily add parameters.",
1540   " */",
1541   "#ifndef YY_DECL",
1542   "#define YY_DECL_IS_OURS 1",
1543   "%if-c-only Standard (non-C++) definition",
1544   "",
1545   "",
1546   "m4_define( [[M4_YY_LEX_PROTO]], [[(M4_YY_PROTO_ONLY_ARG)]])",
1547   "m4_define( [[M4_YY_LEX_DECLARATION]], [[(M4_YY_DEF_ONLY_ARG)]])",
1548   "",
1549   "m4_ifdef( [[M4_YY_BISON_LVAL]],",
1550   "[[",
1551   "    m4_dnl  The bison pure parser is used. Redefine yylex to",
1552   "    m4_dnl  accept the lval parameter.",
1553   "",
1554   "    m4_define( [[M4_YY_LEX_PROTO]], [[\\]]",
1555   "               [[(YYSTYPE * yylval_param M4_YY_PROTO_LAST_ARG)]])",
1556   "    m4_define( [[M4_YY_LEX_DECLARATION]], [[\\]]",
1557   "               [[YYFARGS1(YYSTYPE *,yylval_param)]])",
1558   "]])",
1559   "",
1560   "m4_ifdef( [[<M4_YY_BISON_LLOC>]],",
1561   "[[",
1562   "    m4_dnl  Locations are used. yylex should also accept the ylloc parameter.",
1563   "",
1564   "    m4_define( [[M4_YY_LEX_PROTO]], [[\\]]",
1565   "               [[(YYSTYPE * yylval_param, YYLTYPE * yylloc_param M4_YY_PROTO_LAST_ARG)]])",
1566   "    m4_define( [[M4_YY_LEX_DECLARATION]], [[\\]]",
1567   "               [[YYFARGS2(YYSTYPE *,yylval_param, YYLTYPE *,yylloc_param)]])",
1568   "]])",
1569   "",
1570   "extern int yylex M4_YY_LEX_PROTO;",
1571   "",
1572   "#define YY_DECL int yylex M4_YY_LEX_DECLARATION",
1573   "%endif",
1574   "%if-c++-only C++ definition",
1575   "#define YY_DECL int yyFlexLexer::yylex()",
1576   "%endif",
1577   "#endif /* !YY_DECL */",
1578   "",
1579   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
1580   "[[",
1581   "/* Code executed at the beginning of each rule, after yytext and yyleng",
1582   " * have been set up.",
1583   " */",
1584   "#ifndef YY_USER_ACTION",
1585   "#define YY_USER_ACTION",
1586   "#endif",
1587   "]])",
1588   "",
1589   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
1590   "[[",
1591   "/* Code executed at the end of each rule. */",
1592   "#ifndef YY_BREAK",
1593   "#define YY_BREAK /*LINTED*/break;",
1594   "#endif",
1595   "]])",
1596   "",
1597   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
1598   "[[",
1599   "%% [6.0] YY_RULE_SETUP definition goes here",
1600   "]])",
1601   "",
1602   "%not-for-header",
1603   "/** The main scanner function which does all the work.",
1604   " */",
1605   "YY_DECL",
1606   "{",
1607   "	yy_state_type yy_current_state;",
1608   "	char *yy_cp, *yy_bp;",
1609   "	int yy_act;",
1610   "    M4_YY_DECL_GUTS_VAR();",
1611   "",
1612   "m4_ifdef( [[M4_YY_NOT_REENTRANT]],",
1613   "[[",
1614   "    m4_ifdef( [[M4_YY_BISON_LVAL]],",
1615   "    [[",
1616   "        YYSTYPE * yylval;",
1617   "    ]])",
1618   "    m4_ifdef( [[<M4_YY_BISON_LLOC>]],",
1619   "    [[",
1620   "        YYLTYPE * yylloc;",
1621   "    ]])",
1622   "]])",
1623   "",
1624   "m4_ifdef( [[M4_YY_BISON_LVAL]],",
1625   "[[",
1626   "    yylval = yylval_param;",
1627   "]])",
1628   "",
1629   "m4_ifdef( [[<M4_YY_BISON_LLOC>]],",
1630   "[[",
1631   "    yylloc = yylloc_param;",
1632   "]])",
1633   "",
1634   "	if ( !YY_G(yy_init) )",
1635   "		{",
1636   "		YY_G(yy_init) = 1;",
1637   "",
1638   "#ifdef YY_USER_INIT",
1639   "		YY_USER_INIT;",
1640   "#endif",
1641   "",
1642   "m4_ifdef( [[M4_YY_USES_REJECT]],",
1643   "[[",
1644   "        /* Create the reject buffer large enough to save one state per allowed character. */",
1645   "        if ( ! YY_G(yy_state_buf) )",
1646   "            YY_G(yy_state_buf) = (yy_state_type *)yyalloc(YY_STATE_BUF_SIZE  M4_YY_CALL_LAST_ARG);",
1647   "            if ( ! YY_G(yy_state_buf) )",
1648   "                YY_FATAL_ERROR( \"out of dynamic memory in yylex()\" );",
1649   "]])",
1650   "",
1651   "		if ( ! YY_G(yy_start) )",
1652   "			YY_G(yy_start) = 1;	/* first start state */",
1653   "",
1654   "		if ( ! yyin )",
1655   "%if-c-only",
1656   "			yyin = stdin;",
1657   "%endif",
1658   "%if-c++-only",
1659   "			yyin.rdbuf(std::cin.rdbuf());",
1660   "%endif",
1661   "",
1662   "		if ( ! yyout )",
1663   "%if-c-only",
1664   "			yyout = stdout;",
1665   "%endif",
1666   "%if-c++-only",
1667   "			yyout.rdbuf(std::cout.rdbuf());",
1668   "%endif",
1669   "",
1670   "		if ( ! YY_CURRENT_BUFFER ) {",
1671   "			yyensure_buffer_stack (M4_YY_CALL_ONLY_ARG);",
1672   "			YY_CURRENT_BUFFER_LVALUE =",
1673   "				yy_create_buffer( yyin, YY_BUF_SIZE M4_YY_CALL_LAST_ARG);",
1674   "		}",
1675   "",
1676   "		yy_load_buffer_state( M4_YY_CALL_ONLY_ARG );",
1677   "		}",
1678   "",
1679   "	{",
1680   "%% [7.0] user's declarations go here",
1681   "",
1682   "	while ( /*CONSTCOND*/1 )		/* loops until end-of-file is reached */",
1683   "		{",
1684   "%% [8.0] yymore()-related code goes here",
1685   "		yy_cp = YY_G(yy_c_buf_p);",
1686   "",
1687   "		/* Support of yytext. */",
1688   "		*yy_cp = YY_G(yy_hold_char);",
1689   "",
1690   "		/* yy_bp points to the position in yy_ch_buf of the start of",
1691   "		 * the current run.",
1692   "		 */",
1693   "		yy_bp = yy_cp;",
1694   "",
1695   "%% [9.0] code to set up and find next match goes here",
1696   "",
1697   "yy_find_action:",
1698   "%% [10.0] code to find the action number goes here",
1699   "",
1700   "		YY_DO_BEFORE_ACTION;",
1701   "",
1702   "%% [11.0] code for yylineno update goes here",
1703   "",
1704   "do_action:	/* This label is used only to access EOF actions. */",
1705   "",
1706   "%% [12.0] debug code goes here",
1707   "",
1708   "		switch ( yy_act )",
1709   "	{ /* beginning of action switch */",
1710   "%% [13.0] actions go here",
1711   "",
1712   "	case YY_END_OF_BUFFER:",
1713   "		{",
1714   "		/* Amount of text matched not including the EOB char. */",
1715   "		int yy_amount_of_matched_text = (int) (yy_cp - YY_G(yytext_ptr)) - 1;",
1716   "",
1717   "		/* Undo the effects of YY_DO_BEFORE_ACTION. */",
1718   "		*yy_cp = YY_G(yy_hold_char);",
1719   "		YY_RESTORE_YY_MORE_OFFSET",
1720   "",
1721   "		if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )",
1722   "			{",
1723   "			/* We're scanning a new file or input source.  It's",
1724   "			 * possible that this happened because the user",
1725   "			 * just pointed yyin at a new source and called",
1726   "			 * yylex().  If so, then we have to assure",
1727   "			 * consistency between YY_CURRENT_BUFFER and our",
1728   "			 * globals.  Here is the right place to do so, because",
1729   "			 * this is the first action (other than possibly a",
1730   "			 * back-up) that will match for the new input source.",
1731   "			 */",
1732   "			YY_G(yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;",
1733   "%if-c-only",
1734   "			YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;",
1735   "%endif",
1736   "%if-c++-only",
1737   "			YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin.rdbuf();",
1738   "%endif",
1739   "			YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;",
1740   "			}",
1741   "",
1742   "		/* Note that here we test for yy_c_buf_p \"<=\" to the position",
1743   "		 * of the first EOB in the buffer, since yy_c_buf_p will",
1744   "		 * already have been incremented past the NUL character",
1745   "		 * (since all states make transitions on EOB to the",
1746   "		 * end-of-buffer state).  Contrast this with the test",
1747   "		 * in input().",
1748   "		 */",
1749   "		if ( YY_G(yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[YY_G(yy_n_chars)] )",
1750   "			{ /* This was really a NUL. */",
1751   "			yy_state_type yy_next_state;",
1752   "",
1753   "			YY_G(yy_c_buf_p) = YY_G(yytext_ptr) + yy_amount_of_matched_text;",
1754   "",
1755   "			yy_current_state = yy_get_previous_state( M4_YY_CALL_ONLY_ARG );",
1756   "",
1757   "			/* Okay, we're now positioned to make the NUL",
1758   "			 * transition.  We couldn't have",
1759   "			 * yy_get_previous_state() go ahead and do it",
1760   "			 * for us because it doesn't know how to deal",
1761   "			 * with the possibility of jamming (and we don't",
1762   "			 * want to build jamming into it because then it",
1763   "			 * will run more slowly).",
1764   "			 */",
1765   "",
1766   "			yy_next_state = yy_try_NUL_trans( yy_current_state M4_YY_CALL_LAST_ARG);",
1767   "",
1768   "			yy_bp = YY_G(yytext_ptr) + YY_MORE_ADJ;",
1769   "",
1770   "			if ( yy_next_state )",
1771   "				{",
1772   "				/* Consume the NUL. */",
1773   "				yy_cp = ++YY_G(yy_c_buf_p);",
1774   "				yy_current_state = yy_next_state;",
1775   "				goto yy_match;",
1776   "				}",
1777   "",
1778   "			else",
1779   "				{",
1780   "%% [14.0] code to do back-up for compressed tables and set up yy_cp goes here",
1781   "				goto yy_find_action;",
1782   "				}",
1783   "			}",
1784   "",
1785   "		else switch ( yy_get_next_buffer( M4_YY_CALL_ONLY_ARG ) )",
1786   "			{",
1787   "			case EOB_ACT_END_OF_FILE:",
1788   "				{",
1789   "				YY_G(yy_did_buffer_switch_on_eof) = 0;",
1790   "",
1791   "				if ( yywrap( M4_YY_CALL_ONLY_ARG ) )",
1792   "					{",
1793   "					/* Note: because we've taken care in",
1794   "					 * yy_get_next_buffer() to have set up",
1795   "					 * yytext, we can now set up",
1796   "					 * yy_c_buf_p so that if some total",
1797   "					 * hoser (like flex itself) wants to",
1798   "					 * call the scanner after we return the",
1799   "					 * YY_NULL, it'll still work - another",
1800   "					 * YY_NULL will get returned.",
1801   "					 */",
1802   "					YY_G(yy_c_buf_p) = YY_G(yytext_ptr) + YY_MORE_ADJ;",
1803   "",
1804   "					yy_act = YY_STATE_EOF(YY_START);",
1805   "					goto do_action;",
1806   "					}",
1807   "",
1808   "				else",
1809   "					{",
1810   "					if ( ! YY_G(yy_did_buffer_switch_on_eof) )",
1811   "						YY_NEW_FILE;",
1812   "					}",
1813   "				break;",
1814   "				}",
1815   "",
1816   "			case EOB_ACT_CONTINUE_SCAN:",
1817   "				YY_G(yy_c_buf_p) =",
1818   "					YY_G(yytext_ptr) + yy_amount_of_matched_text;",
1819   "",
1820   "				yy_current_state = yy_get_previous_state( M4_YY_CALL_ONLY_ARG );",
1821   "",
1822   "				yy_cp = YY_G(yy_c_buf_p);",
1823   "				yy_bp = YY_G(yytext_ptr) + YY_MORE_ADJ;",
1824   "				goto yy_match;",
1825   "",
1826   "			case EOB_ACT_LAST_MATCH:",
1827   "				YY_G(yy_c_buf_p) =",
1828   "				&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[YY_G(yy_n_chars)];",
1829   "",
1830   "				yy_current_state = yy_get_previous_state( M4_YY_CALL_ONLY_ARG );",
1831   "",
1832   "				yy_cp = YY_G(yy_c_buf_p);",
1833   "				yy_bp = YY_G(yytext_ptr) + YY_MORE_ADJ;",
1834   "				goto yy_find_action;",
1835   "			}",
1836   "		break;",
1837   "		}",
1838   "",
1839   "	default:",
1840   "		YY_FATAL_ERROR(",
1841   "			\"fatal flex scanner internal error--no action found\" );",
1842   "	} /* end of action switch */",
1843   "		} /* end of scanning one token */",
1844   "	} /* end of user's declarations */",
1845   "} /* end of yylex */",
1846   "%ok-for-header",
1847   "",
1848   "%if-c++-only",
1849   "%not-for-header",
1850   "/* The contents of this function are C++ specific, so the YY_G macro is not used.",
1851   " * This constructor simply maintains backward compatibility.",
1852   " * DEPRECATED",
1853   " */",
1854   "yyFlexLexer::yyFlexLexer( std::istream* arg_yyin, std::ostream* arg_yyout ):",
1855   "	yyin(arg_yyin ? arg_yyin->rdbuf() : std::cin.rdbuf()),",
1856   "	yyout(arg_yyout ? arg_yyout->rdbuf() : std::cout.rdbuf())",
1857   "{",
1858   "	ctor_common();",
1859   "}",
1860   "",
1861   "/* The contents of this function are C++ specific, so the YY_G macro is not used.",
1862   " */",
1863   "yyFlexLexer::yyFlexLexer( std::istream& arg_yyin, std::ostream& arg_yyout ):",
1864   "	yyin(arg_yyin.rdbuf()),",
1865   "	yyout(arg_yyout.rdbuf())",
1866   "{",
1867   "	ctor_common();",
1868   "}",
1869   "",
1870   "/* The contents of this function are C++ specific, so the YY_G macro is not used.",
1871   " */",
1872   "void yyFlexLexer::ctor_common()",
1873   "{",
1874   "	yy_c_buf_p = 0;",
1875   "	yy_init = 0;",
1876   "	yy_start = 0;",
1877   "	yy_flex_debug = 0;",
1878   "	yylineno = 1;	// this will only get updated if %option yylineno",
1879   "",
1880   "	yy_did_buffer_switch_on_eof = 0;",
1881   "",
1882   "	yy_looking_for_trail_begin = 0;",
1883   "	yy_more_flag = 0;",
1884   "	yy_more_len = 0;",
1885   "	yy_more_offset = yy_prev_more_offset = 0;",
1886   "",
1887   "	yy_start_stack_ptr = yy_start_stack_depth = 0;",
1888   "	yy_start_stack = NULL;",
1889   "",
1890   "	yy_buffer_stack = NULL;",
1891   "	yy_buffer_stack_top = 0;",
1892   "	yy_buffer_stack_max = 0;",
1893   "",
1894   "",
1895   "m4_ifdef( [[M4_YY_USES_REJECT]],",
1896   "[[",
1897   "	yy_state_buf = new yy_state_type[YY_STATE_BUF_SIZE];",
1898   "]],",
1899   "[[",
1900   "	yy_state_buf = 0;",
1901   "]])",
1902   "}",
1903   "",
1904   "/* The contents of this function are C++ specific, so the YY_G macro is not used.",
1905   " */",
1906   "yyFlexLexer::~yyFlexLexer()",
1907   "{",
1908   "	delete [] yy_state_buf;",
1909   "	yyfree( yy_start_stack M4_YY_CALL_LAST_ARG );",
1910   "	yy_delete_buffer( YY_CURRENT_BUFFER M4_YY_CALL_LAST_ARG);",
1911   "	yyfree( yy_buffer_stack M4_YY_CALL_LAST_ARG );",
1912   "}",
1913   "",
1914   "/* The contents of this function are C++ specific, so the YY_G macro is not used.",
1915   " */",
1916   "void yyFlexLexer::switch_streams( std::istream& new_in, std::ostream& new_out )",
1917   "{",
1918   "	// was if( new_in )",
1919   "	yy_delete_buffer( YY_CURRENT_BUFFER M4_YY_CALL_LAST_ARG);",
1920   "	yy_switch_to_buffer( yy_create_buffer( new_in, YY_BUF_SIZE  M4_YY_CALL_LAST_ARG) M4_YY_CALL_LAST_ARG);",
1921   "",
1922   "	// was if( new_out )",
1923   "	yyout.rdbuf(new_out.rdbuf());",
1924   "}",
1925   "",
1926   "/* The contents of this function are C++ specific, so the YY_G macro is not used.",
1927   " */",
1928   "void yyFlexLexer::switch_streams( std::istream* new_in, std::ostream* new_out )",
1929   "{",
1930   "	if( ! new_in ) {",
1931   "		new_in = &yyin;",
1932   "	}",
1933   "",
1934   "	if ( ! new_out ) {",
1935   "		new_out = &yyout;",
1936   "	}",
1937   "",
1938   "	switch_streams(*new_in, *new_out);",
1939   "}",
1940   "",
1941   "#ifdef YY_INTERACTIVE",
1942   "int yyFlexLexer::LexerInput( char* buf, int /* max_size */ )",
1943   "#else",
1944   "int yyFlexLexer::LexerInput( char* buf, int max_size )",
1945   "#endif",
1946   "{",
1947   "	if ( yyin.eof() || yyin.fail() )",
1948   "		return 0;",
1949   "",
1950   "#ifdef YY_INTERACTIVE",
1951   "	yyin.get( buf[0] );",
1952   "",
1953   "	if ( yyin.eof() )",
1954   "		return 0;",
1955   "",
1956   "	if ( yyin.bad() )",
1957   "		return -1;",
1958   "",
1959   "	return 1;",
1960   "",
1961   "#else",
1962   "	(void) yyin.read( buf, max_size );",
1963   "",
1964   "	if ( yyin.bad() )",
1965   "		return -1;",
1966   "	else",
1967   "		return yyin.gcount();",
1968   "#endif",
1969   "}",
1970   "",
1971   "void yyFlexLexer::LexerOutput( const char* buf, int size )",
1972   "{",
1973   "	(void) yyout.write( buf, size );",
1974   "}",
1975   "%ok-for-header",
1976   "%endif",
1977   "",
1978   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
1979   "[[",
1980   "/* yy_get_next_buffer - try to read in a new buffer",
1981   " *",
1982   " * Returns a code representing an action:",
1983   " *	EOB_ACT_LAST_MATCH -",
1984   " *	EOB_ACT_CONTINUE_SCAN - continue scanning from current position",
1985   " *	EOB_ACT_END_OF_FILE - end of file",
1986   " */",
1987   "%if-c-only",
1988   "static int yy_get_next_buffer (M4_YY_DEF_ONLY_ARG)",
1989   "%endif",
1990   "%if-c++-only",
1991   "int yyFlexLexer::yy_get_next_buffer()",
1992   "%endif",
1993   "{",
1994   "    M4_YY_DECL_GUTS_VAR();",
1995   "	char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;",
1996   "	char *source = YY_G(yytext_ptr);",
1997   "	int number_to_move, i;",
1998   "	int ret_val;",
1999   "",
2000   "	if ( YY_G(yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[YY_G(yy_n_chars) + 1] )",
2001   "		YY_FATAL_ERROR(",
2002   "		\"fatal flex scanner internal error--end of buffer missed\" );",
2003   "",
2004   "	if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )",
2005   "		{ /* Don't try to fill the buffer, so this is an EOF. */",
2006   "		if ( YY_G(yy_c_buf_p) - YY_G(yytext_ptr) - YY_MORE_ADJ == 1 )",
2007   "			{",
2008   "			/* We matched a single character, the EOB, so",
2009   "			 * treat this as a final EOF.",
2010   "			 */",
2011   "			return EOB_ACT_END_OF_FILE;",
2012   "			}",
2013   "",
2014   "		else",
2015   "			{",
2016   "			/* We matched some text prior to the EOB, first",
2017   "			 * process it.",
2018   "			 */",
2019   "			return EOB_ACT_LAST_MATCH;",
2020   "			}",
2021   "		}",
2022   "",
2023   "	/* Try to read more data. */",
2024   "",
2025   "	/* First move last chars to start of buffer. */",
2026   "	number_to_move = (int) (YY_G(yy_c_buf_p) - YY_G(yytext_ptr) - 1);",
2027   "",
2028   "	for ( i = 0; i < number_to_move; ++i )",
2029   "		*(dest++) = *(source++);",
2030   "",
2031   "	if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )",
2032   "		/* don't do the read, it's not guaranteed to return an EOF,",
2033   "		 * just force an EOF",
2034   "		 */",
2035   "		YY_CURRENT_BUFFER_LVALUE->yy_n_chars = YY_G(yy_n_chars) = 0;",
2036   "",
2037   "	else",
2038   "		{",
2039   "			int num_to_read =",
2040   "			YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;",
2041   "",
2042   "		while ( num_to_read <= 0 )",
2043   "			{ /* Not enough room in the buffer - grow it. */",
2044   "m4_ifdef( [[M4_YY_USES_REJECT]],",
2045   "[[",
2046   "			YY_FATAL_ERROR(",
2047   "\"input buffer overflow, can't enlarge buffer because scanner uses REJECT\" );",
2048   "]],",
2049   "[[",
2050   "			/* just a shorter name for the current buffer */",
2051   "			YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;",
2052   "",
2053   "			int yy_c_buf_p_offset =",
2054   "				(int) (YY_G(yy_c_buf_p) - b->yy_ch_buf);",
2055   "",
2056   "			if ( b->yy_is_our_buffer )",
2057   "				{",
2058   "				int new_size = b->yy_buf_size * 2;",
2059   "",
2060   "				if ( new_size <= 0 )",
2061   "					b->yy_buf_size += b->yy_buf_size / 8;",
2062   "				else",
2063   "					b->yy_buf_size *= 2;",
2064   "",
2065   "				b->yy_ch_buf = (char *)",
2066   "					/* Include room in for 2 EOB chars. */",
2067   "					yyrealloc( (void *) b->yy_ch_buf,",
2068   "							 (yy_size_t) (b->yy_buf_size + 2) M4_YY_CALL_LAST_ARG );",
2069   "				}",
2070   "			else",
2071   "				/* Can't grow it, we don't own it. */",
2072   "				b->yy_ch_buf = NULL;",
2073   "",
2074   "			if ( ! b->yy_ch_buf )",
2075   "				YY_FATAL_ERROR(",
2076   "				\"fatal error - scanner input buffer overflow\" );",
2077   "",
2078   "			YY_G(yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];",
2079   "",
2080   "			num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -",
2081   "						number_to_move - 1;",
2082   "]])",
2083   "			}",
2084   "",
2085   "		if ( num_to_read > YY_READ_BUF_SIZE )",
2086   "			num_to_read = YY_READ_BUF_SIZE;",
2087   "",
2088   "		/* Read in more data. */",
2089   "		YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),",
2090   "			YY_G(yy_n_chars), num_to_read );",
2091   "",
2092   "		YY_CURRENT_BUFFER_LVALUE->yy_n_chars = YY_G(yy_n_chars);",
2093   "		}",
2094   "",
2095   "	if ( YY_G(yy_n_chars) == 0 )",
2096   "		{",
2097   "		if ( number_to_move == YY_MORE_ADJ )",
2098   "			{",
2099   "			ret_val = EOB_ACT_END_OF_FILE;",
2100   "			yyrestart( yyin  M4_YY_CALL_LAST_ARG);",
2101   "			}",
2102   "",
2103   "		else",
2104   "			{",
2105   "			ret_val = EOB_ACT_LAST_MATCH;",
2106   "			YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =",
2107   "				YY_BUFFER_EOF_PENDING;",
2108   "			}",
2109   "		}",
2110   "",
2111   "	else",
2112   "		ret_val = EOB_ACT_CONTINUE_SCAN;",
2113   "",
2114   "	if ((YY_G(yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {",
2115   "		/* Extend the array by 50%, plus the number we really need. */",
2116   "		int new_size = YY_G(yy_n_chars) + number_to_move + (YY_G(yy_n_chars) >> 1);",
2117   "		YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(",
2118   "			(void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size M4_YY_CALL_LAST_ARG );",
2119   "		if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )",
2120   "			YY_FATAL_ERROR( \"out of dynamic memory in yy_get_next_buffer()\" );",
2121   "		/* \"- 2\" to take care of EOB's */",
2122   "		YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);",
2123   "	}",
2124   "",
2125   "	YY_G(yy_n_chars) += number_to_move;",
2126   "	YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[YY_G(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;",
2127   "	YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[YY_G(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;",
2128   "",
2129   "	YY_G(yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];",
2130   "",
2131   "	return ret_val;",
2132   "}",
2133   "]])",
2134   "",
2135   "/* yy_get_previous_state - get the state just before the EOB char was reached */",
2136   "",
2137   "%if-c-only",
2138   "%not-for-header",
2139   "    static yy_state_type yy_get_previous_state (M4_YY_DEF_ONLY_ARG)",
2140   "%endif",
2141   "%if-c++-only",
2142   "    yy_state_type yyFlexLexer::yy_get_previous_state()",
2143   "%endif",
2144   "{",
2145   "	yy_state_type yy_current_state;",
2146   "	char *yy_cp;",
2147   "    M4_YY_DECL_GUTS_VAR();",
2148   "",
2149   "%% [15.0] code to get the start state into yy_current_state goes here",
2150   "",
2151   "	for ( yy_cp = YY_G(yytext_ptr) + YY_MORE_ADJ; yy_cp < YY_G(yy_c_buf_p); ++yy_cp )",
2152   "		{",
2153   "%% [16.0] code to find the next state goes here",
2154   "		}",
2155   "",
2156   "	return yy_current_state;",
2157   "}",
2158   "",
2159   "",
2160   "/* yy_try_NUL_trans - try to make a transition on the NUL character",
2161   " *",
2162   " * synopsis",
2163   " *	next_state = yy_try_NUL_trans( current_state );",
2164   " */",
2165   "%if-c-only",
2166   "    static yy_state_type yy_try_NUL_trans  YYFARGS1( yy_state_type, yy_current_state)",
2167   "%endif",
2168   "%if-c++-only",
2169   "    yy_state_type yyFlexLexer::yy_try_NUL_trans( yy_state_type yy_current_state )",
2170   "%endif",
2171   "{",
2172   "	int yy_is_jam;",
2173   "    M4_YY_DECL_GUTS_VAR(); /* This var may be unused depending upon options. */",
2174   "%% [17.0] code to find the next state, and perhaps do backing up, goes here",
2175   "",
2176   "	M4_YY_NOOP_GUTS_VAR();",
2177   "	return yy_is_jam ? 0 : yy_current_state;",
2178   "}",
2179   "",
2180   "",
2181   "#ifndef YY_NO_UNPUT",
2182   "%if-c-only",
2183   "m4_ifdef( [[M4_YY_NO_UNPUT]],,",
2184   "[[",
2185   "    static void yyunput YYFARGS2( int,c, char *,yy_bp)",
2186   "%endif",
2187   "%if-c++-only",
2188   "    void yyFlexLexer::yyunput( int c, char* yy_bp)",
2189   "%endif",
2190   "{",
2191   "	char *yy_cp;",
2192   "    M4_YY_DECL_GUTS_VAR();",
2193   "",
2194   "    yy_cp = YY_G(yy_c_buf_p);",
2195   "",
2196   "	/* undo effects of setting up yytext */",
2197   "	*yy_cp = YY_G(yy_hold_char);",
2198   "",
2199   "	if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )",
2200   "		{ /* need to shift things up to make room */",
2201   "		/* +2 for EOB chars. */",
2202   "		int number_to_move = YY_G(yy_n_chars) + 2;",
2203   "		char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[",
2204   "					YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];",
2205   "		char *source =",
2206   "				&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];",
2207   "",
2208   "		while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )",
2209   "			*--dest = *--source;",
2210   "",
2211   "		yy_cp += (int) (dest - source);",
2212   "		yy_bp += (int) (dest - source);",
2213   "		YY_CURRENT_BUFFER_LVALUE->yy_n_chars =",
2214   "			YY_G(yy_n_chars) = (int) YY_CURRENT_BUFFER_LVALUE->yy_buf_size;",
2215   "",
2216   "		if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )",
2217   "			YY_FATAL_ERROR( \"flex scanner push-back overflow\" );",
2218   "		}",
2219   "",
2220   "	*--yy_cp = (char) c;",
2221   "",
2222   "%% [18.0] update yylineno here",
2223   "m4_ifdef( [[M4_YY_USE_LINENO]],",
2224   "[[",
2225   "    if ( c == '\\n' ){",
2226   "        --yylineno;",
2227   "    }",
2228   "]])",
2229   "",
2230   "	YY_G(yytext_ptr) = yy_bp;",
2231   "	YY_G(yy_hold_char) = *yy_cp;",
2232   "	YY_G(yy_c_buf_p) = yy_cp;",
2233   "}",
2234   "%if-c-only",
2235   "]])",
2236   "%endif",
2237   "#endif",
2238   "",
2239   "%if-c-only",
2240   "#ifndef YY_NO_INPUT",
2241   "#ifdef __cplusplus",
2242   "    static int yyinput (M4_YY_DEF_ONLY_ARG)",
2243   "#else",
2244   "    static int input  (M4_YY_DEF_ONLY_ARG)",
2245   "#endif",
2246   "",
2247   "%endif",
2248   "%if-c++-only",
2249   "    int yyFlexLexer::yyinput()",
2250   "%endif",
2251   "{",
2252   "	int c;",
2253   "    M4_YY_DECL_GUTS_VAR();",
2254   "",
2255   "	*YY_G(yy_c_buf_p) = YY_G(yy_hold_char);",
2256   "",
2257   "	if ( *YY_G(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )",
2258   "		{",
2259   "		/* yy_c_buf_p now points to the character we want to return.",
2260   "		 * If this occurs *before* the EOB characters, then it's a",
2261   "		 * valid NUL; if not, then we've hit the end of the buffer.",
2262   "		 */",
2263   "		if ( YY_G(yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[YY_G(yy_n_chars)] )",
2264   "			/* This was really a NUL. */",
2265   "			*YY_G(yy_c_buf_p) = '\\0';",
2266   "",
2267   "		else",
2268   "			{ /* need more input */",
2269   "			int offset = (int) (YY_G(yy_c_buf_p) - YY_G(yytext_ptr));",
2270   "			++YY_G(yy_c_buf_p);",
2271   "",
2272   "			switch ( yy_get_next_buffer( M4_YY_CALL_ONLY_ARG ) )",
2273   "				{",
2274   "				case EOB_ACT_LAST_MATCH:",
2275   "					/* This happens because yy_g_n_b()",
2276   "					 * sees that we've accumulated a",
2277   "					 * token and flags that we need to",
2278   "					 * try matching the token before",
2279   "					 * proceeding.  But for input(),",
2280   "					 * there's no matching to consider.",
2281   "					 * So convert the EOB_ACT_LAST_MATCH",
2282   "					 * to EOB_ACT_END_OF_FILE.",
2283   "					 */",
2284   "",
2285   "					/* Reset buffer status. */",
2286   "					yyrestart( yyin M4_YY_CALL_LAST_ARG);",
2287   "",
2288   "					/*FALLTHROUGH*/",
2289   "",
2290   "				case EOB_ACT_END_OF_FILE:",
2291   "					{",
2292   "					if ( yywrap( M4_YY_CALL_ONLY_ARG ) )",
2293   "#ifdef YY_FLEX_LEX_COMPAT",
2294   "						return 0;",
2295   "#else",
2296   "						return EOF;",
2297   "#endif",
2298   "",
2299   "					if ( ! YY_G(yy_did_buffer_switch_on_eof) )",
2300   "						YY_NEW_FILE;",
2301   "#ifdef __cplusplus",
2302   "					return yyinput(M4_YY_CALL_ONLY_ARG);",
2303   "#else",
2304   "					return input(M4_YY_CALL_ONLY_ARG);",
2305   "#endif",
2306   "					}",
2307   "",
2308   "				case EOB_ACT_CONTINUE_SCAN:",
2309   "					YY_G(yy_c_buf_p) = YY_G(yytext_ptr) + offset;",
2310   "					break;",
2311   "				}",
2312   "			}",
2313   "		}",
2314   "",
2315   "	c = *(unsigned char *) YY_G(yy_c_buf_p);	/* cast for 8-bit char's */",
2316   "	*YY_G(yy_c_buf_p) = '\\0';	/* preserve yytext */",
2317   "	YY_G(yy_hold_char) = *++YY_G(yy_c_buf_p);",
2318   "",
2319   "%% [19.0] update BOL and yylineno",
2320   "",
2321   "	return c;",
2322   "}",
2323   "%if-c-only",
2324   "#endif	/* ifndef YY_NO_INPUT */",
2325   "%endif",
2326   "",
2327   "/** Immediately switch to a different input stream.",
2328   " * @param input_file A readable stream.",
2329   " * M4_YY_DOC_PARAM",
2330   " * @note This function does not reset the start condition to @c INITIAL .",
2331   " */",
2332   "%if-c-only",
2333   "    void yyrestart  YYFARGS1( FILE *,input_file)",
2334   "%endif",
2335   "%if-c++-only",
2336   "    void yyFlexLexer::yyrestart( std::istream& input_file )",
2337   "%endif",
2338   "{",
2339   "    M4_YY_DECL_GUTS_VAR();",
2340   "",
2341   "	if ( ! YY_CURRENT_BUFFER ){",
2342   "        yyensure_buffer_stack (M4_YY_CALL_ONLY_ARG);",
2343   "		YY_CURRENT_BUFFER_LVALUE =",
2344   "            yy_create_buffer( yyin, YY_BUF_SIZE M4_YY_CALL_LAST_ARG);",
2345   "	}",
2346   "",
2347   "	yy_init_buffer( YY_CURRENT_BUFFER, input_file M4_YY_CALL_LAST_ARG);",
2348   "	yy_load_buffer_state( M4_YY_CALL_ONLY_ARG );",
2349   "}",
2350   "",
2351   "%if-c++-only",
2352   "/** Delegate to the new version that takes an istream reference.",
2353   " * @param input_file A readable stream.",
2354   " * M4_YY_DOC_PARAM",
2355   " * @note This function does not reset the start condition to @c INITIAL .",
2356   " */",
2357   "void yyFlexLexer::yyrestart( std::istream* input_file )",
2358   "{",
2359   "	if( ! input_file ) {",
2360   "		input_file = &yyin;",
2361   "	}",
2362   "	yyrestart( *input_file );",
2363   "}",
2364   "%endif",
2365   "",
2366   "/** Switch to a different input buffer.",
2367   " * @param new_buffer The new input buffer.",
2368   " * M4_YY_DOC_PARAM",
2369   " */",
2370   "%if-c-only",
2371   "    void yy_switch_to_buffer  YYFARGS1( YY_BUFFER_STATE ,new_buffer)",
2372   "%endif",
2373   "%if-c++-only",
2374   "    void yyFlexLexer::yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )",
2375   "%endif",
2376   "{",
2377   "    M4_YY_DECL_GUTS_VAR();",
2378   "",
2379   "	/* TODO. We should be able to replace this entire function body",
2380   "	 * with",
2381   "	 *		yypop_buffer_state();",
2382   "	 *		yypush_buffer_state(new_buffer);",
2383   "     */",
2384   "	yyensure_buffer_stack (M4_YY_CALL_ONLY_ARG);",
2385   "	if ( YY_CURRENT_BUFFER == new_buffer )",
2386   "		return;",
2387   "",
2388   "	if ( YY_CURRENT_BUFFER )",
2389   "		{",
2390   "		/* Flush out information for old buffer. */",
2391   "		*YY_G(yy_c_buf_p) = YY_G(yy_hold_char);",
2392   "		YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = YY_G(yy_c_buf_p);",
2393   "		YY_CURRENT_BUFFER_LVALUE->yy_n_chars = YY_G(yy_n_chars);",
2394   "		}",
2395   "",
2396   "	YY_CURRENT_BUFFER_LVALUE = new_buffer;",
2397   "	yy_load_buffer_state( M4_YY_CALL_ONLY_ARG );",
2398   "",
2399   "	/* We don't actually know whether we did this switch during",
2400   "	 * EOF (yywrap()) processing, but the only time this flag",
2401   "	 * is looked at is after yywrap() is called, so it's safe",
2402   "	 * to go ahead and always set it.",
2403   "	 */",
2404   "	YY_G(yy_did_buffer_switch_on_eof) = 1;",
2405   "}",
2406   "",
2407   "",
2408   "%if-c-only",
2409   "static void yy_load_buffer_state  (M4_YY_DEF_ONLY_ARG)",
2410   "%endif",
2411   "%if-c++-only",
2412   "    void yyFlexLexer::yy_load_buffer_state()",
2413   "%endif",
2414   "{",
2415   "    M4_YY_DECL_GUTS_VAR();",
2416   "	YY_G(yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;",
2417   "	YY_G(yytext_ptr) = YY_G(yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;",
2418   "%if-c-only",
2419   "	yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;",
2420   "%endif",
2421   "%if-c++-only",
2422   "	yyin.rdbuf(YY_CURRENT_BUFFER_LVALUE->yy_input_file);",
2423   "%endif",
2424   "	YY_G(yy_hold_char) = *YY_G(yy_c_buf_p);",
2425   "}",
2426   "",
2427   "/** Allocate and initialize an input buffer state.",
2428   " * @param file A readable stream.",
2429   " * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.",
2430   " * M4_YY_DOC_PARAM",
2431   " * @return the allocated buffer state.",
2432   " */",
2433   "%if-c-only",
2434   "    YY_BUFFER_STATE yy_create_buffer  YYFARGS2( FILE *,file, int ,size)",
2435   "%endif",
2436   "%if-c++-only",
2437   "    YY_BUFFER_STATE yyFlexLexer::yy_create_buffer( std::istream& file, int size )",
2438   "%endif",
2439   "{",
2440   "	YY_BUFFER_STATE b;",
2441   "    m4_dnl M4_YY_DECL_GUTS_VAR();",
2442   "",
2443   "	b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) M4_YY_CALL_LAST_ARG );",
2444   "	if ( ! b )",
2445   "		YY_FATAL_ERROR( \"out of dynamic memory in yy_create_buffer()\" );",
2446   "",
2447   "	b->yy_buf_size = size;",
2448   "",
2449   "	/* yy_ch_buf has to be 2 characters longer than the size given because",
2450   "	 * we need to put in 2 end-of-buffer characters.",
2451   "	 */",
2452   "	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) M4_YY_CALL_LAST_ARG );",
2453   "	if ( ! b->yy_ch_buf )",
2454   "		YY_FATAL_ERROR( \"out of dynamic memory in yy_create_buffer()\" );",
2455   "",
2456   "	b->yy_is_our_buffer = 1;",
2457   "",
2458   "	yy_init_buffer( b, file M4_YY_CALL_LAST_ARG);",
2459   "",
2460   "	return b;",
2461   "}",
2462   "",
2463   "%if-c++-only",
2464   "/** Delegate creation of buffers to the new version that takes an istream reference.",
2465   " * @param file A readable stream.",
2466   " * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.",
2467   " * M4_YY_DOC_PARAM",
2468   " * @return the allocated buffer state.",
2469   " */",
2470   "	YY_BUFFER_STATE yyFlexLexer::yy_create_buffer( std::istream* file, int size )",
2471   "{",
2472   "	return yy_create_buffer( *file, size );",
2473   "}",
2474   "%endif",
2475   "",
2476   "/** Destroy the buffer.",
2477   " * @param b a buffer created with yy_create_buffer()",
2478   " * M4_YY_DOC_PARAM",
2479   " */",
2480   "%if-c-only",
2481   "    void yy_delete_buffer YYFARGS1( YY_BUFFER_STATE ,b)",
2482   "%endif",
2483   "%if-c++-only",
2484   "    void yyFlexLexer::yy_delete_buffer( YY_BUFFER_STATE b )",
2485   "%endif",
2486   "{",
2487   "    M4_YY_DECL_GUTS_VAR();",
2488   "",
2489   "	if ( ! b )",
2490   "		return;",
2491   "",
2492   "	if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */",
2493   "		YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;",
2494   "",
2495   "	if ( b->yy_is_our_buffer )",
2496   "		yyfree( (void *) b->yy_ch_buf M4_YY_CALL_LAST_ARG );",
2497   "",
2498   "	yyfree( (void *) b M4_YY_CALL_LAST_ARG );",
2499   "}",
2500   "",
2501   "",
2502   "/* Initializes or reinitializes a buffer.",
2503   " * This function is sometimes called more than once on the same buffer,",
2504   " * such as during a yyrestart() or at EOF.",
2505   " */",
2506   "%if-c-only",
2507   "    static void yy_init_buffer  YYFARGS2( YY_BUFFER_STATE ,b, FILE *,file)",
2508   "%endif",
2509   "%if-c++-only",
2510   "    void yyFlexLexer::yy_init_buffer( YY_BUFFER_STATE b, std::istream& file )",
2511   "%endif",
2512   "",
2513   "{",
2514   "	int oerrno = errno;",
2515   "    M4_YY_DECL_GUTS_VAR();",
2516   "",
2517   "	yy_flush_buffer( b M4_YY_CALL_LAST_ARG);",
2518   "",
2519   "%if-c-only",
2520   "	b->yy_input_file = file;",
2521   "%endif",
2522   "%if-c++-only",
2523   "	b->yy_input_file = file.rdbuf();",
2524   "%endif",
2525   "	b->yy_fill_buffer = 1;",
2526   "",
2527   "    /* If b is the current buffer, then yy_init_buffer was _probably_",
2528   "     * called from yyrestart() or through yy_get_next_buffer.",
2529   "     * In that case, we don't want to reset the lineno or column.",
2530   "     */",
2531   "    if (b != YY_CURRENT_BUFFER){",
2532   "        b->yy_bs_lineno = 1;",
2533   "        b->yy_bs_column = 0;",
2534   "    }",
2535   "",
2536   "%if-c-only",
2537   "m4_ifdef( [[M4_YY_ALWAYS_INTERACTIVE]],",
2538   "[[",
2539   "	b->yy_is_interactive = 1;",
2540   "]],",
2541   "[[",
2542   "    m4_ifdef( [[M4_YY_NEVER_INTERACTIVE]],",
2543   "    [[",
2544   "        b->yy_is_interactive = 0;",
2545   "    ]],",
2546   "    [[",
2547   "        b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;",
2548   "    ]])",
2549   "]])",
2550   "%endif",
2551   "%if-c++-only",
2552   "	b->yy_is_interactive = 0;",
2553   "%endif",
2554   "	errno = oerrno;",
2555   "}",
2556   "",
2557   "/** Discard all buffered characters. On the next scan, YY_INPUT will be called.",
2558   " * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.",
2559   " * M4_YY_DOC_PARAM",
2560   " */",
2561   "%if-c-only",
2562   "    void yy_flush_buffer YYFARGS1( YY_BUFFER_STATE ,b)",
2563   "%endif",
2564   "%if-c++-only",
2565   "    void yyFlexLexer::yy_flush_buffer( YY_BUFFER_STATE b )",
2566   "%endif",
2567   "{",
2568   "    M4_YY_DECL_GUTS_VAR();",
2569   "	if ( ! b )",
2570   "		return;",
2571   "",
2572   "	b->yy_n_chars = 0;",
2573   "",
2574   "	/* We always need two end-of-buffer characters.  The first causes",
2575   "	 * a transition to the end-of-buffer state.  The second causes",
2576   "	 * a jam in that state.",
2577   "	 */",
2578   "	b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;",
2579   "	b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;",
2580   "",
2581   "	b->yy_buf_pos = &b->yy_ch_buf[0];",
2582   "",
2583   "	b->yy_at_bol = 1;",
2584   "	b->yy_buffer_status = YY_BUFFER_NEW;",
2585   "",
2586   "	if ( b == YY_CURRENT_BUFFER )",
2587   "		yy_load_buffer_state( M4_YY_CALL_ONLY_ARG );",
2588   "}",
2589   "",
2590   "%if-c-or-c++",
2591   "/** Pushes the new state onto the stack. The new state becomes",
2592   " *  the current state. This function will allocate the stack",
2593   " *  if necessary.",
2594   " *  @param new_buffer The new state.",
2595   " *  M4_YY_DOC_PARAM",
2596   " */",
2597   "%if-c-only",
2598   "void yypush_buffer_state YYFARGS1(YY_BUFFER_STATE,new_buffer)",
2599   "%endif",
2600   "%if-c++-only",
2601   "void yyFlexLexer::yypush_buffer_state (YY_BUFFER_STATE new_buffer)",
2602   "%endif",
2603   "{",
2604   "    M4_YY_DECL_GUTS_VAR();",
2605   "	if (new_buffer == NULL)",
2606   "		return;",
2607   "",
2608   "	yyensure_buffer_stack(M4_YY_CALL_ONLY_ARG);",
2609   "",
2610   "	/* This block is copied from yy_switch_to_buffer. */",
2611   "	if ( YY_CURRENT_BUFFER )",
2612   "		{",
2613   "		/* Flush out information for old buffer. */",
2614   "		*YY_G(yy_c_buf_p) = YY_G(yy_hold_char);",
2615   "		YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = YY_G(yy_c_buf_p);",
2616   "		YY_CURRENT_BUFFER_LVALUE->yy_n_chars = YY_G(yy_n_chars);",
2617   "		}",
2618   "",
2619   "	/* Only push if top exists. Otherwise, replace top. */",
2620   "	if (YY_CURRENT_BUFFER)",
2621   "		YY_G(yy_buffer_stack_top)++;",
2622   "	YY_CURRENT_BUFFER_LVALUE = new_buffer;",
2623   "",
2624   "	/* copied from yy_switch_to_buffer. */",
2625   "	yy_load_buffer_state( M4_YY_CALL_ONLY_ARG );",
2626   "	YY_G(yy_did_buffer_switch_on_eof) = 1;",
2627   "}",
2628   "%endif",
2629   "",
2630   "",
2631   "%if-c-or-c++",
2632   "/** Removes and deletes the top of the stack, if present.",
2633   " *  The next element becomes the new top.",
2634   " *  M4_YY_DOC_PARAM",
2635   " */",
2636   "%if-c-only",
2637   "void yypop_buffer_state (M4_YY_DEF_ONLY_ARG)",
2638   "%endif",
2639   "%if-c++-only",
2640   "void yyFlexLexer::yypop_buffer_state (void)",
2641   "%endif",
2642   "{",
2643   "    M4_YY_DECL_GUTS_VAR();",
2644   "	if (!YY_CURRENT_BUFFER)",
2645   "		return;",
2646   "",
2647   "	yy_delete_buffer(YY_CURRENT_BUFFER M4_YY_CALL_LAST_ARG);",
2648   "	YY_CURRENT_BUFFER_LVALUE = NULL;",
2649   "	if (YY_G(yy_buffer_stack_top) > 0)",
2650   "		--YY_G(yy_buffer_stack_top);",
2651   "",
2652   "	if (YY_CURRENT_BUFFER) {",
2653   "		yy_load_buffer_state( M4_YY_CALL_ONLY_ARG );",
2654   "		YY_G(yy_did_buffer_switch_on_eof) = 1;",
2655   "	}",
2656   "}",
2657   "%endif",
2658   "",
2659   "",
2660   "%if-c-or-c++",
2661   "/* Allocates the stack if it does not exist.",
2662   " *  Guarantees space for at least one push.",
2663   " */",
2664   "%if-c-only",
2665   "static void yyensure_buffer_stack (M4_YY_DEF_ONLY_ARG)",
2666   "%endif",
2667   "%if-c++-only",
2668   "void yyFlexLexer::yyensure_buffer_stack(void)",
2669   "%endif",
2670   "{",
2671   "	yy_size_t num_to_alloc;",
2672   "    M4_YY_DECL_GUTS_VAR();",
2673   "",
2674   "	if (!YY_G(yy_buffer_stack)) {",
2675   "",
2676   "		/* First allocation is just for 2 elements, since we don't know if this",
2677   "		 * scanner will even need a stack. We use 2 instead of 1 to avoid an",
2678   "		 * immediate realloc on the next call.",
2679   "         */",
2680   "      num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */",
2681   "		YY_G(yy_buffer_stack) = (struct yy_buffer_state**)yyalloc",
2682   "								(num_to_alloc * sizeof(struct yy_buffer_state*)",
2683   "								M4_YY_CALL_LAST_ARG);",
2684   "		if ( ! YY_G(yy_buffer_stack) )",
2685   "			YY_FATAL_ERROR( \"out of dynamic memory in yyensure_buffer_stack()\" );",
2686   "",
2687   "",
2688   "		memset(YY_G(yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));",
2689   "",
2690   "		YY_G(yy_buffer_stack_max) = num_to_alloc;",
2691   "		YY_G(yy_buffer_stack_top) = 0;",
2692   "		return;",
2693   "	}",
2694   "",
2695   "	if (YY_G(yy_buffer_stack_top) >= (YY_G(yy_buffer_stack_max)) - 1){",
2696   "",
2697   "		/* Increase the buffer to prepare for a possible push. */",
2698   "		yy_size_t grow_size = 8 /* arbitrary grow size */;",
2699   "",
2700   "		num_to_alloc = YY_G(yy_buffer_stack_max) + grow_size;",
2701   "		YY_G(yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc",
2702   "								(YY_G(yy_buffer_stack),",
2703   "								num_to_alloc * sizeof(struct yy_buffer_state*)",
2704   "								M4_YY_CALL_LAST_ARG);",
2705   "		if ( ! YY_G(yy_buffer_stack) )",
2706   "			YY_FATAL_ERROR( \"out of dynamic memory in yyensure_buffer_stack()\" );",
2707   "",
2708   "		/* zero only the new slots.*/",
2709   "		memset(YY_G(yy_buffer_stack) + YY_G(yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));",
2710   "		YY_G(yy_buffer_stack_max) = num_to_alloc;",
2711   "	}",
2712   "}",
2713   "%endif",
2714   "",
2715   "",
2716   "",
2717   "",
2718   "m4_ifdef( [[M4_YY_NO_SCAN_BUFFER]],,",
2719   "[[",
2720   "%if-c-only",
2721   "/** Setup the input buffer state to scan directly from a user-specified character buffer.",
2722   " * @param base the character buffer",
2723   " * @param size the size in bytes of the character buffer",
2724   " * M4_YY_DOC_PARAM",
2725   " * @return the newly allocated buffer state object.",
2726   " */",
2727   "YY_BUFFER_STATE yy_scan_buffer  YYFARGS2( char *,base, yy_size_t ,size)",
2728   "{",
2729   "	YY_BUFFER_STATE b;",
2730   "    m4_dnl M4_YY_DECL_GUTS_VAR();",
2731   "",
2732   "	if ( size < 2 ||",
2733   "	     base[size-2] != YY_END_OF_BUFFER_CHAR ||",
2734   "	     base[size-1] != YY_END_OF_BUFFER_CHAR )",
2735   "		/* They forgot to leave room for the EOB's. */",
2736   "		return NULL;",
2737   "",
2738   "	b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) M4_YY_CALL_LAST_ARG );",
2739   "	if ( ! b )",
2740   "		YY_FATAL_ERROR( \"out of dynamic memory in yy_scan_buffer()\" );",
2741   "",
2742   "	b->yy_buf_size = (int) (size - 2);	/* \"- 2\" to take care of EOB's */",
2743   "	b->yy_buf_pos = b->yy_ch_buf = base;",
2744   "	b->yy_is_our_buffer = 0;",
2745   "	b->yy_input_file = NULL;",
2746   "	b->yy_n_chars = b->yy_buf_size;",
2747   "	b->yy_is_interactive = 0;",
2748   "	b->yy_at_bol = 1;",
2749   "	b->yy_fill_buffer = 0;",
2750   "	b->yy_buffer_status = YY_BUFFER_NEW;",
2751   "",
2752   "	yy_switch_to_buffer( b M4_YY_CALL_LAST_ARG );",
2753   "",
2754   "	return b;",
2755   "}",
2756   "%endif",
2757   "]])",
2758   "",
2759   "",
2760   "m4_ifdef( [[M4_YY_NO_SCAN_STRING]],,",
2761   "[[",
2762   "%if-c-only",
2763   "/** Setup the input buffer state to scan a string. The next call to yylex() will",
2764   " * scan from a @e copy of @a str.",
2765   " * @param yystr a NUL-terminated string to scan",
2766   " * M4_YY_DOC_PARAM",
2767   " * @return the newly allocated buffer state object.",
2768   " * @note If you want to scan bytes that may contain NUL values, then use",
2769   " *       yy_scan_bytes() instead.",
2770   " */",
2771   "YY_BUFFER_STATE yy_scan_string YYFARGS1( const char *, yystr)",
2772   "{",
2773   "    m4_dnl M4_YY_DECL_GUTS_VAR();",
2774   "",
2775   "	return yy_scan_bytes( yystr, (int) strlen(yystr) M4_YY_CALL_LAST_ARG);",
2776   "}",
2777   "%endif",
2778   "]])",
2779   "",
2780   "",
2781   "m4_ifdef( [[M4_YY_NO_SCAN_BYTES]],,",
2782   "[[",
2783   "%if-c-only",
2784   "/** Setup the input buffer state to scan the given bytes. The next call to yylex() will",
2785   " * scan from a @e copy of @a bytes.",
2786   " * @param yybytes the byte buffer to scan",
2787   " * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.",
2788   " * M4_YY_DOC_PARAM",
2789   " * @return the newly allocated buffer state object.",
2790   " */",
2791   "YY_BUFFER_STATE yy_scan_bytes  YYFARGS2( const char *,yybytes, int ,_yybytes_len)",
2792   "{",
2793   "	YY_BUFFER_STATE b;",
2794   "	char *buf;",
2795   "	yy_size_t n;",
2796   "	int i;",
2797   "    m4_dnl M4_YY_DECL_GUTS_VAR();",
2798   "",
2799   "	/* Get memory for full buffer, including space for trailing EOB's. */",
2800   "	n = (yy_size_t) (_yybytes_len + 2);",
2801   "	buf = (char *) yyalloc( n M4_YY_CALL_LAST_ARG );",
2802   "	if ( ! buf )",
2803   "		YY_FATAL_ERROR( \"out of dynamic memory in yy_scan_bytes()\" );",
2804   "",
2805   "	for ( i = 0; i < _yybytes_len; ++i )",
2806   "		buf[i] = yybytes[i];",
2807   "",
2808   "	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;",
2809   "",
2810   "	b = yy_scan_buffer( buf, n M4_YY_CALL_LAST_ARG);",
2811   "	if ( ! b )",
2812   "		YY_FATAL_ERROR( \"bad buffer in yy_scan_bytes()\" );",
2813   "",
2814   "	/* It's okay to grow etc. this buffer, and we should throw it",
2815   "	 * away when we're done.",
2816   "	 */",
2817   "	b->yy_is_our_buffer = 1;",
2818   "",
2819   "	return b;",
2820   "}",
2821   "%endif",
2822   "]])",
2823   "",
2824   "",
2825   "m4_ifdef( [[M4_YY_NO_PUSH_STATE]],,",
2826   "[[",
2827   "%if-c-only",
2828   "    static void yy_push_state YYFARGS1( int ,_new_state)",
2829   "%endif",
2830   "%if-c++-only",
2831   "    void yyFlexLexer::yy_push_state( int _new_state )",
2832   "%endif",
2833   "{",
2834   "    M4_YY_DECL_GUTS_VAR();",
2835   "	if ( YY_G(yy_start_stack_ptr) >= YY_G(yy_start_stack_depth) )",
2836   "		{",
2837   "		yy_size_t new_size;",
2838   "",
2839   "		YY_G(yy_start_stack_depth) += YY_START_STACK_INCR;",
2840   "		new_size = (yy_size_t) YY_G(yy_start_stack_depth) * sizeof( int );",
2841   "",
2842   "		if ( ! YY_G(yy_start_stack) )",
2843   "			YY_G(yy_start_stack) = (int *) yyalloc( new_size M4_YY_CALL_LAST_ARG );",
2844   "",
2845   "		else",
2846   "			YY_G(yy_start_stack) = (int *) yyrealloc(",
2847   "					(void *) YY_G(yy_start_stack), new_size M4_YY_CALL_LAST_ARG );",
2848   "",
2849   "		if ( ! YY_G(yy_start_stack) )",
2850   "			YY_FATAL_ERROR( \"out of memory expanding start-condition stack\" );",
2851   "		}",
2852   "",
2853   "	YY_G(yy_start_stack)[YY_G(yy_start_stack_ptr)++] = YY_START;",
2854   "",
2855   "	BEGIN(_new_state);",
2856   "}",
2857   "]])",
2858   "",
2859   "",
2860   "m4_ifdef( [[M4_YY_NO_POP_STATE]],,",
2861   "[[",
2862   "%if-c-only",
2863   "    static void yy_pop_state  (M4_YY_DEF_ONLY_ARG)",
2864   "%endif",
2865   "%if-c++-only",
2866   "    void yyFlexLexer::yy_pop_state()",
2867   "%endif",
2868   "{",
2869   "    M4_YY_DECL_GUTS_VAR();",
2870   "	if ( --YY_G(yy_start_stack_ptr) < 0 )",
2871   "		YY_FATAL_ERROR( \"start-condition stack underflow\" );",
2872   "",
2873   "	BEGIN(YY_G(yy_start_stack)[YY_G(yy_start_stack_ptr)]);",
2874   "}",
2875   "]])",
2876   "",
2877   "",
2878   "m4_ifdef( [[M4_YY_NO_TOP_STATE]],,",
2879   "[[",
2880   "%if-c-only",
2881   "    static int yy_top_state  (M4_YY_DEF_ONLY_ARG)",
2882   "%endif",
2883   "%if-c++-only",
2884   "    int yyFlexLexer::yy_top_state()",
2885   "%endif",
2886   "{",
2887   "    M4_YY_DECL_GUTS_VAR();",
2888   "	return YY_G(yy_start_stack)[YY_G(yy_start_stack_ptr) - 1];",
2889   "}",
2890   "]])",
2891   "",
2892   "#ifndef YY_EXIT_FAILURE",
2893   "#define YY_EXIT_FAILURE 2",
2894   "#endif",
2895   "",
2896   "%if-c-only",
2897   "static void yynoreturn yy_fatal_error YYFARGS1(const char*, msg)",
2898   "{",
2899   "	M4_YY_DECL_GUTS_VAR();",
2900   "	M4_YY_NOOP_GUTS_VAR();",
2901   "	fprintf( stderr, \"%s\\n\", msg );",
2902   "	exit( YY_EXIT_FAILURE );",
2903   "}",
2904   "%endif",
2905   "%if-c++-only",
2906   "void yyFlexLexer::LexerError( const char* msg )",
2907   "{",
2908   "    M4_YY_DECL_GUTS_VAR();",
2909   "	std::cerr << msg << std::endl;",
2910   "	exit( YY_EXIT_FAILURE );",
2911   "}",
2912   "%endif",
2913   "",
2914   "/* Redefine yyless() so it works in section 3 code. */",
2915   "",
2916   "#undef yyless",
2917   "#define yyless(n) \\",
2918   "	do \\",
2919   "		{ \\",
2920   "		/* Undo effects of setting up yytext. */ \\",
2921   "        int yyless_macro_arg = (n); \\",
2922   "        YY_LESS_LINENO(yyless_macro_arg);\\",
2923   "		yytext[yyleng] = YY_G(yy_hold_char); \\",
2924   "		YY_G(yy_c_buf_p) = yytext + yyless_macro_arg; \\",
2925   "		YY_G(yy_hold_char) = *YY_G(yy_c_buf_p); \\",
2926   "		*YY_G(yy_c_buf_p) = '\\0'; \\",
2927   "		yyleng = yyless_macro_arg; \\",
2928   "		} \\",
2929   "	while ( 0 )",
2930   "",
2931   "",
2932   "",
2933   "/* Accessor  methods (get/set functions) to struct members. */",
2934   "",
2935   "%if-c-only",
2936   "%if-reentrant",
2937   "m4_ifdef( [[M4_YY_NO_GET_EXTRA]],,",
2938   "[[",
2939   "/** Get the user-defined data for this scanner.",
2940   " * M4_YY_DOC_PARAM",
2941   " */",
2942   "YY_EXTRA_TYPE yyget_extra  (M4_YY_DEF_ONLY_ARG)",
2943   "{",
2944   "    M4_YY_DECL_GUTS_VAR();",
2945   "    return yyextra;",
2946   "}",
2947   "]])",
2948   "%endif",
2949   "",
2950   "m4_ifdef( [[M4_YY_NO_GET_LINENO]],,",
2951   "[[",
2952   "/** Get the current line number.",
2953   " * M4_YY_DOC_PARAM",
2954   " */",
2955   "int yyget_lineno  (M4_YY_DEF_ONLY_ARG)",
2956   "{",
2957   "    M4_YY_DECL_GUTS_VAR();",
2958   "",
2959   "    m4_ifdef( [[M4_YY_REENTRANT]],",
2960   "    [[",
2961   "        if (! YY_CURRENT_BUFFER)",
2962   "            return 0;",
2963   "    ]])",
2964   "    return yylineno;",
2965   "}",
2966   "]])",
2967   "",
2968   "m4_ifdef( [[M4_YY_REENTRANT]],",
2969   "[[",
2970   "m4_ifdef( [[M4_YY_NO_GET_COLUMN]],,",
2971   "[[",
2972   "/** Get the current column number.",
2973   " * M4_YY_DOC_PARAM",
2974   " */",
2975   "int yyget_column  (M4_YY_DEF_ONLY_ARG)",
2976   "{",
2977   "    M4_YY_DECL_GUTS_VAR();",
2978   "",
2979   "    m4_ifdef( [[M4_YY_REENTRANT]],",
2980   "    [[",
2981   "        if (! YY_CURRENT_BUFFER)",
2982   "            return 0;",
2983   "    ]])",
2984   "    return yycolumn;",
2985   "}",
2986   "]])",
2987   "]])",
2988   "",
2989   "m4_ifdef( [[M4_YY_NO_GET_IN]],,",
2990   "[[",
2991   "/** Get the input stream.",
2992   " * M4_YY_DOC_PARAM",
2993   " */",
2994   "FILE *yyget_in  (M4_YY_DEF_ONLY_ARG)",
2995   "{",
2996   "    M4_YY_DECL_GUTS_VAR();",
2997   "    return yyin;",
2998   "}",
2999   "]])",
3000   "",
3001   "m4_ifdef( [[M4_YY_NO_GET_OUT]],,",
3002   "[[",
3003   "/** Get the output stream.",
3004   " * M4_YY_DOC_PARAM",
3005   " */",
3006   "FILE *yyget_out  (M4_YY_DEF_ONLY_ARG)",
3007   "{",
3008   "    M4_YY_DECL_GUTS_VAR();",
3009   "    return yyout;",
3010   "}",
3011   "]])",
3012   "",
3013   "m4_ifdef( [[M4_YY_NO_GET_LENG]],,",
3014   "[[",
3015   "/** Get the length of the current token.",
3016   " * M4_YY_DOC_PARAM",
3017   " */",
3018   "int yyget_leng  (M4_YY_DEF_ONLY_ARG)",
3019   "{",
3020   "    M4_YY_DECL_GUTS_VAR();",
3021   "    return yyleng;",
3022   "}",
3023   "]])",
3024   "",
3025   "/** Get the current token.",
3026   " * M4_YY_DOC_PARAM",
3027   " */",
3028   "m4_ifdef( [[M4_YY_NO_GET_TEXT]],,",
3029   "[[",
3030   "char *yyget_text  (M4_YY_DEF_ONLY_ARG)",
3031   "{",
3032   "    M4_YY_DECL_GUTS_VAR();",
3033   "    return yytext;",
3034   "}",
3035   "]])",
3036   "",
3037   "%if-reentrant",
3038   "m4_ifdef( [[M4_YY_NO_SET_EXTRA]],,",
3039   "[[",
3040   "/** Set the user-defined data. This data is never touched by the scanner.",
3041   " * @param user_defined The data to be associated with this scanner.",
3042   " * M4_YY_DOC_PARAM",
3043   " */",
3044   "void yyset_extra YYFARGS1( YY_EXTRA_TYPE ,user_defined)",
3045   "{",
3046   "    M4_YY_DECL_GUTS_VAR();",
3047   "    yyextra = user_defined ;",
3048   "}",
3049   "]])",
3050   "%endif",
3051   "",
3052   "m4_ifdef( [[M4_YY_NO_SET_LINENO]],,",
3053   "[[",
3054   "/** Set the current line number.",
3055   " * @param _line_number line number",
3056   " * M4_YY_DOC_PARAM",
3057   " */",
3058   "void yyset_lineno YYFARGS1( int ,_line_number)",
3059   "{",
3060   "    M4_YY_DECL_GUTS_VAR();",
3061   "",
3062   "    m4_ifdef( [[M4_YY_REENTRANT]],",
3063   "    [[",
3064   "        /* lineno is only valid if an input buffer exists. */",
3065   "        if (! YY_CURRENT_BUFFER )",
3066   "           YY_FATAL_ERROR( \"yyset_lineno called with no buffer\" );",
3067   "    ]])",
3068   "    yylineno = _line_number;",
3069   "}",
3070   "]])",
3071   "",
3072   "m4_ifdef( [[M4_YY_REENTRANT]],",
3073   "[[",
3074   "m4_ifdef( [[M4_YY_NO_SET_COLUMN]],,",
3075   "[[",
3076   "/** Set the current column.",
3077   " * @param _column_no column number",
3078   " * M4_YY_DOC_PARAM",
3079   " */",
3080   "void yyset_column YYFARGS1( int , _column_no)",
3081   "{",
3082   "    M4_YY_DECL_GUTS_VAR();",
3083   "",
3084   "    m4_ifdef( [[M4_YY_REENTRANT]],",
3085   "    [[",
3086   "        /* column is only valid if an input buffer exists. */",
3087   "        if (! YY_CURRENT_BUFFER )",
3088   "           YY_FATAL_ERROR( \"yyset_column called with no buffer\" );",
3089   "    ]])",
3090   "    yycolumn = _column_no;",
3091   "}",
3092   "]])",
3093   "]])",
3094   "",
3095   "",
3096   "m4_ifdef( [[M4_YY_NO_SET_IN]],,",
3097   "[[",
3098   "/** Set the input stream. This does not discard the current",
3099   " * input buffer.",
3100   " * @param _in_str A readable stream.",
3101   " * M4_YY_DOC_PARAM",
3102   " * @see yy_switch_to_buffer",
3103   " */",
3104   "void yyset_in YYFARGS1( FILE * ,_in_str)",
3105   "{",
3106   "    M4_YY_DECL_GUTS_VAR();",
3107   "    yyin = _in_str ;",
3108   "}",
3109   "]])",
3110   "",
3111   "m4_ifdef( [[M4_YY_NO_SET_OUT]],,",
3112   "[[",
3113   "void yyset_out YYFARGS1( FILE * ,_out_str)",
3114   "{",
3115   "    M4_YY_DECL_GUTS_VAR();",
3116   "    yyout = _out_str ;",
3117   "}",
3118   "]])",
3119   "",
3120   "",
3121   "m4_ifdef( [[M4_YY_NO_GET_DEBUG]],,",
3122   "[[",
3123   "int yyget_debug  (M4_YY_DEF_ONLY_ARG)",
3124   "{",
3125   "    M4_YY_DECL_GUTS_VAR();",
3126   "    return yy_flex_debug;",
3127   "}",
3128   "]])",
3129   "",
3130   "m4_ifdef( [[M4_YY_NO_SET_DEBUG]],,",
3131   "[[",
3132   "void yyset_debug YYFARGS1( int ,_bdebug)",
3133   "{",
3134   "    M4_YY_DECL_GUTS_VAR();",
3135   "    yy_flex_debug = _bdebug ;",
3136   "}",
3137   "]])",
3138   "%endif",
3139   "",
3140   "%if-reentrant",
3141   "/* Accessor methods for yylval and yylloc */",
3142   "",
3143   "%if-bison-bridge",
3144   "m4_ifdef( [[M4_YY_NO_GET_LVAL]],,",
3145   "[[",
3146   "YYSTYPE * yyget_lval  (M4_YY_DEF_ONLY_ARG)",
3147   "{",
3148   "    M4_YY_DECL_GUTS_VAR();",
3149   "    return yylval;",
3150   "}",
3151   "]])",
3152   "",
3153   "m4_ifdef( [[M4_YY_NO_SET_LVAL]],,",
3154   "[[",
3155   "void yyset_lval YYFARGS1( YYSTYPE * ,yylval_param)",
3156   "{",
3157   "    M4_YY_DECL_GUTS_VAR();",
3158   "    yylval = yylval_param;",
3159   "}",
3160   "]])",
3161   "",
3162   "m4_ifdef( [[<M4_YY_BISON_LLOC>]],",
3163   "[[",
3164   "    m4_ifdef( [[M4_YY_NO_GET_LLOC]],,",
3165   "    [[",
3166   "YYLTYPE *yyget_lloc  (M4_YY_DEF_ONLY_ARG)",
3167   "{",
3168   "    M4_YY_DECL_GUTS_VAR();",
3169   "    return yylloc;",
3170   "}",
3171   "    ]])",
3172   "",
3173   "    m4_ifdef( [[M4_YY_NO_SET_LLOC]],,",
3174   "    [[",
3175   "void yyset_lloc YYFARGS1( YYLTYPE * ,yylloc_param)",
3176   "{",
3177   "    M4_YY_DECL_GUTS_VAR();",
3178   "    yylloc = yylloc_param;",
3179   "}",
3180   "    ]])",
3181   "]])",
3182   "",
3183   "%endif",
3184   "",
3185   "",
3186   "/* User-visible API */",
3187   "",
3188   "/* yylex_init is special because it creates the scanner itself, so it is",
3189   " * the ONLY reentrant function that doesn't take the scanner as the last argument.",
3190   " * That's why we explicitly handle the declaration, instead of using our macros.",
3191   " */",
3192   "int yylex_init(yyscan_t* ptr_yy_globals)",
3193   "{",
3194   "    if (ptr_yy_globals == NULL){",
3195   "        errno = EINVAL;",
3196   "        return 1;",
3197   "    }",
3198   "",
3199   "    *ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), NULL );",
3200   "",
3201   "    if (*ptr_yy_globals == NULL){",
3202   "        errno = ENOMEM;",
3203   "        return 1;",
3204   "    }",
3205   "",
3206   "    /* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for releases. */",
3207   "    memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));",
3208   "",
3209   "    return yy_init_globals ( *ptr_yy_globals );",
3210   "}",
3211   "",
3212   "",
3213   "/* yylex_init_extra has the same functionality as yylex_init, but follows the",
3214   " * convention of taking the scanner as the last argument. Note however, that",
3215   " * this is a *pointer* to a scanner, as it will be allocated by this call (and",
3216   " * is the reason, too, why this function also must handle its own declaration).",
3217   " * The user defined value in the first argument will be available to yyalloc in",
3218   " * the yyextra field.",
3219   " */",
3220   "int yylex_init_extra( YY_EXTRA_TYPE yy_user_defined, yyscan_t* ptr_yy_globals )",
3221   "{",
3222   "    struct yyguts_t dummy_yyguts;",
3223   "",
3224   "    yyset_extra (yy_user_defined, &dummy_yyguts);",
3225   "",
3226   "    if (ptr_yy_globals == NULL){",
3227   "        errno = EINVAL;",
3228   "        return 1;",
3229   "    }",
3230   "",
3231   "    *ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), &dummy_yyguts );",
3232   "",
3233   "    if (*ptr_yy_globals == NULL){",
3234   "        errno = ENOMEM;",
3235   "        return 1;",
3236   "    }",
3237   "",
3238   "    /* By setting to 0xAA, we expose bugs in",
3239   "    yy_init_globals. Leave at 0x00 for releases. */",
3240   "    memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));",
3241   "",
3242   "    yyset_extra (yy_user_defined, *ptr_yy_globals);",
3243   "",
3244   "    return yy_init_globals ( *ptr_yy_globals );",
3245   "}",
3246   "",
3247   "%endif if-c-only",
3248   "",
3249   "%if-c-only",
3250   "static int yy_init_globals (M4_YY_DEF_ONLY_ARG)",
3251   "{",
3252   "    M4_YY_DECL_GUTS_VAR();",
3253   "    /* Initialization is the same as for the non-reentrant scanner.",
3254   "     * This function is called from yylex_destroy(), so don't allocate here.",
3255   "     */",
3256   "",
3257   "m4_ifdef( [[M4_YY_USE_LINENO]],",
3258   "[[",
3259   "    m4_ifdef( [[M4_YY_NOT_REENTRANT]],",
3260   "    [[",
3261   "    /* We do not touch yylineno unless the option is enabled. */",
3262   "    yylineno =  1;",
3263   "    ]])",
3264   "]])",
3265   "    YY_G(yy_buffer_stack) = NULL;",
3266   "    YY_G(yy_buffer_stack_top) = 0;",
3267   "    YY_G(yy_buffer_stack_max) = 0;",
3268   "    YY_G(yy_c_buf_p) = NULL;",
3269   "    YY_G(yy_init) = 0;",
3270   "    YY_G(yy_start) = 0;",
3271   "",
3272   "m4_ifdef( [[M4_YY_HAS_START_STACK_VARS]],",
3273   "[[",
3274   "    YY_G(yy_start_stack_ptr) = 0;",
3275   "    YY_G(yy_start_stack_depth) = 0;",
3276   "    YY_G(yy_start_stack) =  NULL;",
3277   "]])",
3278   "",
3279   "m4_ifdef( [[M4_YY_USES_REJECT]],",
3280   "[[",
3281   "    YY_G(yy_state_buf) = 0;",
3282   "    YY_G(yy_state_ptr) = 0;",
3283   "    YY_G(yy_full_match) = 0;",
3284   "    YY_G(yy_lp) = 0;",
3285   "]])",
3286   "",
3287   "m4_ifdef( [[M4_YY_TEXT_IS_ARRAY]],",
3288   "[[",
3289   "    YY_G(yytext_ptr) = 0;",
3290   "    YY_G(yy_more_offset) = 0;",
3291   "    YY_G(yy_prev_more_offset) = 0;",
3292   "]])",
3293   "",
3294   "/* Defined in main.c */",
3295   "#ifdef YY_STDINIT",
3296   "    yyin = stdin;",
3297   "    yyout = stdout;",
3298   "#else",
3299   "    yyin = NULL;",
3300   "    yyout = NULL;",
3301   "#endif",
3302   "",
3303   "    /* For future reference: Set errno on error, since we are called by",
3304   "     * yylex_init()",
3305   "     */",
3306   "    return 0;",
3307   "}",
3308   "%endif",
3309   "",
3310   "",
3311   "%if-c-only SNIP! this currently causes conflicts with the c++ scanner",
3312   "/* yylex_destroy is for both reentrant and non-reentrant scanners. */",
3313   "int yylex_destroy  (M4_YY_DEF_ONLY_ARG)",
3314   "{",
3315   "    M4_YY_DECL_GUTS_VAR();",
3316   "",
3317   "    /* Pop the buffer stack, destroying each element. */",
3318   "	while(YY_CURRENT_BUFFER){",
3319   "		yy_delete_buffer( YY_CURRENT_BUFFER M4_YY_CALL_LAST_ARG );",
3320   "		YY_CURRENT_BUFFER_LVALUE = NULL;",
3321   "		yypop_buffer_state(M4_YY_CALL_ONLY_ARG);",
3322   "	}",
3323   "",
3324   "	/* Destroy the stack itself. */",
3325   "	yyfree(YY_G(yy_buffer_stack) M4_YY_CALL_LAST_ARG);",
3326   "	YY_G(yy_buffer_stack) = NULL;",
3327   "",
3328   "m4_ifdef( [[M4_YY_HAS_START_STACK_VARS]],",
3329   "[[",
3330   "    /* Destroy the start condition stack. */",
3331   "        yyfree( YY_G(yy_start_stack) M4_YY_CALL_LAST_ARG );",
3332   "        YY_G(yy_start_stack) = NULL;",
3333   "]])",
3334   "",
3335   "m4_ifdef( [[M4_YY_USES_REJECT]],",
3336   "[[",
3337   "    yyfree ( YY_G(yy_state_buf) M4_YY_CALL_LAST_ARG);",
3338   "    YY_G(yy_state_buf)  = NULL;",
3339   "]])",
3340   "",
3341   "    /* Reset the globals. This is important in a non-reentrant scanner so the next time",
3342   "     * yylex() is called, initialization will occur. */",
3343   "    yy_init_globals( M4_YY_CALL_ONLY_ARG);",
3344   "",
3345   "%if-reentrant",
3346   "    /* Destroy the main struct (reentrant only). */",
3347   "    yyfree ( yyscanner M4_YY_CALL_LAST_ARG );",
3348   "    yyscanner = NULL;",
3349   "%endif",
3350   "    return 0;",
3351   "}",
3352   "%endif",
3353   "",
3354   "",
3355   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
3356   "[[",
3357   "/*",
3358   " * Internal utility routines.",
3359   " */",
3360   "]])",
3361   "",
3362   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
3363   "[[",
3364   "#ifndef yytext_ptr",
3365   "static void yy_flex_strncpy YYFARGS3( char*,s1, const char *,s2, int,n)",
3366   "{",
3367   "	M4_YY_DECL_GUTS_VAR();",
3368   "	M4_YY_NOOP_GUTS_VAR();",
3369   "",
3370   "	int i;",
3371   "	for ( i = 0; i < n; ++i )",
3372   "		s1[i] = s2[i];",
3373   "}",
3374   "#endif",
3375   "]])",
3376   "",
3377   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
3378   "[[",
3379   "#ifdef YY_NEED_STRLEN",
3380   "static int yy_flex_strlen YYFARGS1( const char *,s)",
3381   "{",
3382   "	int n;",
3383   "	for ( n = 0; s[n]; ++n )",
3384   "		;",
3385   "",
3386   "	return n;",
3387   "}",
3388   "#endif",
3389   "]])",
3390   "",
3391   "m4_ifdef( [[M4_YY_NO_FLEX_ALLOC]],,",
3392   "[[",
3393   "void *yyalloc YYFARGS1( yy_size_t ,size)",
3394   "{",
3395   "	M4_YY_DECL_GUTS_VAR();",
3396   "	M4_YY_NOOP_GUTS_VAR();",
3397   "	return malloc(size);",
3398   "}",
3399   "]])",
3400   "",
3401   "m4_ifdef( [[M4_YY_NO_FLEX_REALLOC]],,",
3402   "[[",
3403   "void *yyrealloc  YYFARGS2( void *,ptr, yy_size_t ,size)",
3404   "{",
3405   "	M4_YY_DECL_GUTS_VAR();",
3406   "	M4_YY_NOOP_GUTS_VAR();",
3407   "",
3408   "	/* The cast to (char *) in the following accommodates both",
3409   "	 * implementations that use char* generic pointers, and those",
3410   "	 * that use void* generic pointers.  It works with the latter",
3411   "	 * because both ANSI C and C++ allow castless assignment from",
3412   "	 * any pointer type to void*, and deal with argument conversions",
3413   "	 * as though doing an assignment.",
3414   "	 */",
3415   "	return realloc(ptr, size);",
3416   "}",
3417   "]])",
3418   "",
3419   "m4_ifdef( [[M4_YY_NO_FLEX_FREE]],,",
3420   "[[",
3421   "void yyfree YYFARGS1( void *,ptr)",
3422   "{",
3423   "	M4_YY_DECL_GUTS_VAR();",
3424   "	M4_YY_NOOP_GUTS_VAR();",
3425   "	free( (char *) ptr );	/* see yyrealloc() for (char *) cast */",
3426   "}",
3427   "]])",
3428   "",
3429   "%if-tables-serialization definitions",
3430   "#ifdef FLEX_SCANNER",
3431   "/*",
3432   "dnl   tables_shared.c - tables serialization code",
3433   "dnl ",
3434   "dnl   Copyright (c) 1990 The Regents of the University of California.",
3435   "dnl   All rights reserved.",
3436   "dnl ",
3437   "dnl   This code is derived from software contributed to Berkeley by",
3438   "dnl   Vern Paxson.",
3439   "dnl ",
3440   "dnl   The United States Government has rights in this work pursuant",
3441   "dnl   to contract no. DE-AC03-76SF00098 between the United States",
3442   "dnl   Department of Energy and the University of California.",
3443   "dnl ",
3444   "dnl   This file is part of flex.",
3445   "dnl ",
3446   "dnl   Redistribution and use in source and binary forms, with or without",
3447   "dnl   modification, are permitted provided that the following conditions",
3448   "dnl   are met:",
3449   "dnl ",
3450   "dnl   1. Redistributions of source code must retain the above copyright",
3451   "dnl      notice, this list of conditions and the following disclaimer.",
3452   "dnl   2. Redistributions in binary form must reproduce the above copyright",
3453   "dnl      notice, this list of conditions and the following disclaimer in the",
3454   "dnl      documentation and/or other materials provided with the distribution.",
3455   "dnl ",
3456   "dnl   Neither the name of the University nor the names of its contributors",
3457   "dnl   may be used to endorse or promote products derived from this software",
3458   "dnl   without specific prior written permission.",
3459   "dnl ",
3460   "dnl   THIS SOFTWARE IS PROVIDED `AS IS' AND WITHOUT ANY EXPRESS OR",
3461   "dnl   IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED",
3462   "dnl   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR",
3463   "dnl   PURPOSE.",
3464   "dnl ",
3465   "*/",
3466   "",
3467   "/* This file is meant to be included in both the skeleton and the actual",
3468   " * flex code (hence the name \"_shared\"). ",
3469   " */",
3470   "#ifndef yyskel_static",
3471   "#define yyskel_static static",
3472   "#endif",
3473   "#else",
3474   "#include \"flexdef.h\"",
3475   "#include \"tables.h\"",
3476   "#ifndef yyskel_static",
3477   "#define yyskel_static",
3478   "#endif",
3479   "#endif",
3480   "",
3481   "",
3482   "/** Get the number of integers in this table. This is NOT the",
3483   " *  same thing as the number of elements.",
3484   " *  @param tbl the table",
3485   " *  @return the number of integers in the table",
3486   " */",
3487   "yyskel_static flex_int32_t yytbl_calc_total_len (const struct yytbl_data *tbl)",
3488   "{",
3489   "	flex_uint32_t n;",
3490   "",
3491   "	/* total number of ints */",
3492   "	n = tbl->td_lolen;",
3493   "	if (tbl->td_hilen > 0)",
3494   "		n *= tbl->td_hilen;",
3495   "",
3496   "	if (tbl->td_id == YYTD_ID_TRANSITION)",
3497   "		n *= 2;",
3498   "	return (flex_int32_t) n;",
3499   "}",
3500   "",
3501   "",
3502   "static int yytbl_read8 (void *v, struct yytbl_reader * rd)",
3503   "{",
3504   "    errno = 0;",
3505   "    if (fread (v, sizeof (flex_uint8_t), 1, rd->fp) != 1){",
3506   "        errno = EIO;",
3507   "        return -1;",
3508   "    }",
3509   "    rd->bread += (flex_uint32_t) sizeof(flex_uint8_t);",
3510   "    return 0;",
3511   "}",
3512   "",
3513   "static int yytbl_read16 (void *v, struct yytbl_reader * rd)",
3514   "{",
3515   "    errno = 0;",
3516   "    if (fread (v, sizeof (flex_uint16_t), 1, rd->fp) != 1){",
3517   "        errno = EIO;",
3518   "        return -1;",
3519   "    }",
3520   "    *((flex_uint16_t *) v) = ntohs (*((flex_uint16_t *) v));",
3521   "    rd->bread += (flex_uint32_t) sizeof(flex_uint16_t);",
3522   "    return 0;",
3523   "}",
3524   "",
3525   "static int yytbl_read32 (void *v, struct yytbl_reader * rd)",
3526   "{",
3527   "    errno = 0;",
3528   "    if (fread (v, sizeof (flex_uint32_t), 1, rd->fp) != 1){",
3529   "        errno = EIO;",
3530   "        return -1;",
3531   "    }",
3532   "    *((flex_uint32_t *) v) = ntohl (*((flex_uint32_t *) v));",
3533   "    rd->bread += (flex_uint32_t) sizeof(flex_uint32_t);",
3534   "    return 0;",
3535   "}",
3536   "",
3537   "/** Read the header */",
3538   "static int yytbl_hdr_read YYFARGS2(struct yytbl_hdr *, th, struct yytbl_reader *, rd)",
3539   "{",
3540   "    size_t  bytes;",
3541   "    memset (th, 0, sizeof (struct yytbl_hdr));",
3542   "",
3543   "    if (yytbl_read32 (&(th->th_magic), rd) != 0)",
3544   "        return -1;",
3545   "",
3546   "    if (th->th_magic != YYTBL_MAGIC){",
3547   "        YY_FATAL_ERROR( \"bad magic number\" );   /* TODO: not fatal. */",
3548   "        return -1;",
3549   "    }",
3550   "",
3551   "    if (yytbl_read32 (&(th->th_hsize), rd) != 0",
3552   "        || yytbl_read32 (&(th->th_ssize), rd) != 0",
3553   "        || yytbl_read16 (&(th->th_flags), rd) != 0)",
3554   "        return -1;",
3555   "",
3556   "    /* Sanity check on header size. Greater than 1k suggests some funny business. */",
3557   "    if (th->th_hsize < 16 || th->th_hsize > 1024){",
3558   "        YY_FATAL_ERROR( \"insane header size detected\" );   /* TODO: not fatal. */",
3559   "        return -1;",
3560   "    }",
3561   "",
3562   "    /* Allocate enough space for the version and name fields */",
3563   "    bytes = th->th_hsize - 14;",
3564   "    th->th_version = (char *) yyalloc (bytes M4_YY_CALL_LAST_ARG);",
3565   "    if ( ! th->th_version )",
3566   "        YY_FATAL_ERROR( \"out of dynamic memory in yytbl_hdr_read()\" );",
3567   "",
3568   "    /* we read it all into th_version, and point th_name into that data */",
3569   "    if (fread (th->th_version, 1, bytes, rd->fp) != bytes){",
3570   "        errno = EIO;",
3571   "        yyfree(th->th_version M4_YY_CALL_LAST_ARG);",
3572   "        th->th_version = NULL;",
3573   "        return -1;",
3574   "    }",
3575   "    else",
3576   "        rd->bread += (flex_uint32_t) bytes;",
3577   "",
3578   "    th->th_name = th->th_version + strlen (th->th_version) + 1;",
3579   "    return 0;",
3580   "}",
3581   "",
3582   "/** lookup id in the dmap list.",
3583   " *  @param dmap pointer to first element in list",
3584   " *  @return NULL if not found.",
3585   " */",
3586   "static struct yytbl_dmap *yytbl_dmap_lookup YYFARGS2(struct yytbl_dmap *, dmap,",
3587   "                                                      int, id)",
3588   "{",
3589   "	M4_YY_DECL_GUTS_VAR();",
3590   "	M4_YY_NOOP_GUTS_VAR();",
3591   "",
3592   "    while (dmap->dm_id)",
3593   "        if ((int)(dmap->dm_id) == id)",
3594   "            return dmap;",
3595   "        else",
3596   "            dmap++;",
3597   "    return NULL;",
3598   "}",
3599   "",
3600   "/** Read a table while mapping its contents to the local array.",
3601   " *  @param dmap used to performing mapping",
3602   " *  @return 0 on success",
3603   " */",
3604   "static int yytbl_data_load YYFARGS2(struct yytbl_dmap *, dmap, struct yytbl_reader*, rd)",
3605   "{",
3606   "    struct yytbl_data td;",
3607   "    struct yytbl_dmap *transdmap=0;",
3608   "    int     len, i, rv, inner_loop_count;",
3609   "    void   *p=0;",
3610   "",
3611   "    memset (&td, 0, sizeof (struct yytbl_data));",
3612   "",
3613   "    if (yytbl_read16 (&td.td_id, rd) != 0",
3614   "        || yytbl_read16 (&td.td_flags, rd) != 0",
3615   "        || yytbl_read32 (&td.td_hilen, rd) != 0",
3616   "        || yytbl_read32 (&td.td_lolen, rd) != 0)",
3617   "        return -1;",
3618   "",
3619   "    /* Lookup the map for the transition table so we have it in case we need it",
3620   "     * inside the loop below. This scanner might not even have a transition",
3621   "     * table, which is ok.",
3622   "     */",
3623   "    transdmap = yytbl_dmap_lookup (dmap, YYTD_ID_TRANSITION M4_YY_CALL_LAST_ARG);",
3624   "",
3625   "    if ((dmap = yytbl_dmap_lookup (dmap, td.td_id M4_YY_CALL_LAST_ARG)) == NULL){",
3626   "        YY_FATAL_ERROR( \"table id not found in map.\" );   /* TODO: not fatal. */",
3627   "        return -1;",
3628   "    }",
3629   "",
3630   "    /* Allocate space for table.",
3631   "     * The --full yy_transition table is a special case, since we",
3632   "     * need the dmap.dm_sz entry to tell us the sizeof the individual",
3633   "     * struct members.",
3634   "     */",
3635   "    {",
3636   "    size_t  bytes;",
3637   "",
3638   "    if ((td.td_flags & YYTD_STRUCT))",
3639   "        bytes = sizeof(struct yy_trans_info) * td.td_lolen * (td.td_hilen ? td.td_hilen : 1);",
3640   "    else",
3641   "        bytes = td.td_lolen * (td.td_hilen ? td.td_hilen : 1) * dmap->dm_sz;",
3642   "",
3643   "    if(M4_YY_TABLES_VERIFY)",
3644   "        /* We point to the array itself */",
3645   "        p = dmap->dm_arr;",
3646   "    else",
3647   "        /* We point to the address of a pointer. */",
3648   "        *dmap->dm_arr = p = (void *) yyalloc (bytes M4_YY_CALL_LAST_ARG);",
3649   "        if ( ! p )",
3650   "            YY_FATAL_ERROR( \"out of dynamic memory in yytbl_data_load()\" );",
3651   "    }",
3652   "",
3653   "    /* If it's a struct, we read 2 integers to get one element */",
3654   "    if ((td.td_flags & YYTD_STRUCT) != 0)",
3655   "        inner_loop_count = 2;",
3656   "    else",
3657   "        inner_loop_count = 1;",
3658   "",
3659   "    /* read and map each element.",
3660   "     * This loop iterates once for each element of the td_data array.",
3661   "     * Notice that we increment 'i' in the inner loop.",
3662   "     */",
3663   "    len = yytbl_calc_total_len (&td);",
3664   "    for (i = 0; i < len; ){",
3665   "        int    j;",
3666   "",
3667   "",
3668   "        /* This loop really executes exactly 1 or 2 times.",
3669   "         * The second time is to handle the second member of the",
3670   "         * YYTD_STRUCT for the yy_transition array.",
3671   "         */",
3672   "        for (j = 0; j < inner_loop_count; j++, i++) {",
3673   "            flex_int32_t t32;",
3674   "",
3675   "            /* read into t32 no matter what the real size is. */",
3676   "            {",
3677   "            flex_int16_t t16;",
3678   "            flex_int8_t  t8;",
3679   "",
3680   "            switch (YYTDFLAGS2BYTES (td.td_flags)) {",
3681   "            case sizeof (flex_int32_t):",
3682   "                rv = yytbl_read32 (&t32, rd);",
3683   "                break;",
3684   "            case sizeof (flex_int16_t):",
3685   "                rv = yytbl_read16 (&t16, rd);",
3686   "                t32 = t16;",
3687   "                break;",
3688   "            case sizeof (flex_int8_t):",
3689   "                rv = yytbl_read8 (&t8, rd);",
3690   "                t32 = t8;",
3691   "                break;",
3692   "            default:",
3693   "                YY_FATAL_ERROR( \"invalid td_flags\" );   /* TODO: not fatal. */",
3694   "                return -1;",
3695   "            }",
3696   "            }",
3697   "            if (rv != 0)",
3698   "                return -1;",
3699   "",
3700   "            /* copy into the deserialized array... */",
3701   "",
3702   "            if ((td.td_flags & YYTD_STRUCT)) {",
3703   "                /* t32 is the j'th member of a two-element struct. */",
3704   "                void   *v;",
3705   "",
3706   "                v = j == 0 ? &(((struct yy_trans_info *) p)->yy_verify)",
3707   "                    : &(((struct yy_trans_info *) p)->yy_nxt);",
3708   "",
3709   "                switch (dmap->dm_sz) {",
3710   "                case sizeof (flex_int32_t):",
3711   "                    if (M4_YY_TABLES_VERIFY){",
3712   "                        if( ((flex_int32_t *) v)[0] != (flex_int32_t) t32)",
3713   "                           YY_FATAL_ERROR( \"tables verification failed at YYTD_STRUCT flex_int32_t\" );",
3714   "                    }else",
3715   "                        ((flex_int32_t *) v)[0] = (flex_int32_t) t32;",
3716   "                    break;",
3717   "                case sizeof (flex_int16_t):",
3718   "                    if (M4_YY_TABLES_VERIFY ){",
3719   "                        if(((flex_int16_t *) v)[0] != (flex_int16_t) t32)",
3720   "                        YY_FATAL_ERROR( \"tables verification failed at YYTD_STRUCT flex_int16_t\" );",
3721   "                    }else",
3722   "                        ((flex_int16_t *) v)[0] = (flex_int16_t) t32;",
3723   "                    break;",
3724   "                case sizeof(flex_int8_t):",
3725   "                    if (M4_YY_TABLES_VERIFY ){",
3726   "                         if( ((flex_int8_t *) v)[0] != (flex_int8_t) t32)",
3727   "                        YY_FATAL_ERROR( \"tables verification failed at YYTD_STRUCT flex_int8_t\" );",
3728   "                    }else",
3729   "                        ((flex_int8_t *) v)[0] = (flex_int8_t) t32;",
3730   "                    break;",
3731   "                default:",
3732   "                    YY_FATAL_ERROR( \"invalid dmap->dm_sz for struct\" );   /* TODO: not fatal. */",
3733   "                    return -1;",
3734   "                }",
3735   "",
3736   "                /* if we're done with j, increment p */",
3737   "                if (j == 1)",
3738   "                    p = (struct yy_trans_info *) p + 1;",
3739   "            }",
3740   "            else if ((td.td_flags & YYTD_PTRANS)) {",
3741   "                /* t32 is an index into the transition array. */",
3742   "                struct yy_trans_info *v;",
3743   "",
3744   "",
3745   "                if (!transdmap){",
3746   "                    YY_FATAL_ERROR( \"transition table not found\" );   /* TODO: not fatal. */",
3747   "                    return -1;",
3748   "                }",
3749   "",
3750   "                if( M4_YY_TABLES_VERIFY)",
3751   "                    v = &(((struct yy_trans_info *) (transdmap->dm_arr))[t32]);",
3752   "                else",
3753   "                    v = &((*((struct yy_trans_info **) (transdmap->dm_arr)))[t32]);",
3754   "",
3755   "                if(M4_YY_TABLES_VERIFY ){",
3756   "                    if( ((struct yy_trans_info **) p)[0] != v)",
3757   "                        YY_FATAL_ERROR( \"tables verification failed at YYTD_PTRANS\" );",
3758   "                }else",
3759   "                    ((struct yy_trans_info **) p)[0] = v;",
3760   "",
3761   "                /* increment p */",
3762   "                p = (struct yy_trans_info **) p + 1;",
3763   "            }",
3764   "            else {",
3765   "                /* t32 is a plain int. copy data, then incrememnt p. */",
3766   "                switch (dmap->dm_sz) {",
3767   "                case sizeof (flex_int32_t):",
3768   "                    if(M4_YY_TABLES_VERIFY ){",
3769   "                        if( ((flex_int32_t *) p)[0] != (flex_int32_t) t32)",
3770   "                        YY_FATAL_ERROR( \"tables verification failed at flex_int32_t\" );",
3771   "                    }else",
3772   "                        ((flex_int32_t *) p)[0] = (flex_int32_t) t32;",
3773   "                    p = ((flex_int32_t *) p) + 1;",
3774   "                    break;",
3775   "                case sizeof (flex_int16_t):",
3776   "                    if(M4_YY_TABLES_VERIFY ){",
3777   "                        if( ((flex_int16_t *) p)[0] != (flex_int16_t) t32)",
3778   "                        YY_FATAL_ERROR( \"tables verification failed at flex_int16_t\" );",
3779   "                    }else",
3780   "                        ((flex_int16_t *) p)[0] = (flex_int16_t) t32;",
3781   "                    p = ((flex_int16_t *) p) + 1;",
3782   "                    break;",
3783   "                case sizeof (flex_int8_t):",
3784   "                    if(M4_YY_TABLES_VERIFY ){",
3785   "                        if( ((flex_int8_t *) p)[0] != (flex_int8_t) t32)",
3786   "                        YY_FATAL_ERROR( \"tables verification failed at flex_int8_t\" );",
3787   "                    }else",
3788   "                        ((flex_int8_t *) p)[0] = (flex_int8_t) t32;",
3789   "                    p = ((flex_int8_t *) p) + 1;",
3790   "                    break;",
3791   "                default:",
3792   "                    YY_FATAL_ERROR( \"invalid dmap->dm_sz for plain int\" );   /* TODO: not fatal. */",
3793   "                    return -1;",
3794   "                }",
3795   "            }",
3796   "        }",
3797   "",
3798   "    }",
3799   "",
3800   "    /* Now eat padding. */",
3801   "    {",
3802   "        int pad;",
3803   "        pad = yypad64(rd->bread);",
3804   "        while(--pad >= 0){",
3805   "            flex_int8_t t8;",
3806   "            if(yytbl_read8(&t8,rd) != 0)",
3807   "                return -1;",
3808   "        }",
3809   "    }",
3810   "",
3811   "    return 0;",
3812   "}",
3813   "",
3814   "%define-yytables   The name for this specific scanner's tables.",
3815   "",
3816   "/* Find the key and load the DFA tables from the given stream.  */",
3817   "static int yytbl_fload YYFARGS2(FILE *, fp, const char *, key)",
3818   "{",
3819   "    int rv=0;",
3820   "    struct yytbl_hdr th;",
3821   "    struct yytbl_reader rd;",
3822   "",
3823   "    rd.fp = fp;",
3824   "    th.th_version = NULL;",
3825   "",
3826   "    /* Keep trying until we find the right set of tables or end of file. */",
3827   "    while (!feof(rd.fp)) {",
3828   "        rd.bread = 0;",
3829   "        if (yytbl_hdr_read (&th, &rd M4_YY_CALL_LAST_ARG) != 0){",
3830   "            rv = -1;",
3831   "            goto return_rv;",
3832   "        }",
3833   "",
3834   "        /* A NULL key means choose the first set of tables. */",
3835   "        if (key == NULL)",
3836   "            break;",
3837   "",
3838   "        if (strcmp(th.th_name,key) != 0){",
3839   "            /* Skip ahead to next set */",
3840   "            fseek(rd.fp, th.th_ssize - th.th_hsize, SEEK_CUR);",
3841   "            yyfree(th.th_version M4_YY_CALL_LAST_ARG);",
3842   "            th.th_version = NULL;",
3843   "        }",
3844   "        else",
3845   "            break;",
3846   "    }",
3847   "",
3848   "    while (rd.bread < th.th_ssize){",
3849   "        /* Load the data tables */",
3850   "        if(yytbl_data_load (yydmap,&rd M4_YY_CALL_LAST_ARG) != 0){",
3851   "            rv = -1;",
3852   "            goto return_rv;",
3853   "        }",
3854   "    }",
3855   "",
3856   "return_rv:",
3857   "    if(th.th_version){",
3858   "        yyfree(th.th_version M4_YY_CALL_LAST_ARG);",
3859   "        th.th_version = NULL;",
3860   "    }",
3861   "",
3862   "    return rv;",
3863   "}",
3864   "",
3865   "/** Load the DFA tables for this scanner from the given stream.  */",
3866   "int yytables_fload YYFARGS1(FILE *, fp)",
3867   "{",
3868   "",
3869   "    if( yytbl_fload(fp, YYTABLES_NAME M4_YY_CALL_LAST_ARG) != 0)",
3870   "        return -1;",
3871   "    return 0;",
3872   "}",
3873   "",
3874   "/** Destroy the loaded tables, freeing memory, etc.. */",
3875   "int yytables_destroy (M4_YY_DEF_ONLY_ARG)",
3876   "{",
3877   "    struct yytbl_dmap *dmap=0;",
3878   "",
3879   "    if(!M4_YY_TABLES_VERIFY){",
3880   "        /* Walk the dmap, freeing the pointers */",
3881   "        for(dmap=yydmap; dmap->dm_id; dmap++) {",
3882   "            void * v;",
3883   "            v = dmap->dm_arr;",
3884   "            if(v && *(char**)v){",
3885   "                    yyfree(*(char**)v M4_YY_CALL_LAST_ARG);",
3886   "                    *(char**)v = NULL;",
3887   "            }",
3888   "        }",
3889   "    }",
3890   "",
3891   "    return 0;",
3892   "}",
3893   "",
3894   "/* end table serialization code definitions */",
3895   "%endif",
3896   "",
3897   "",
3898   "m4_ifdef([[M4_YY_MAIN]], [[",
3899   "int main (void);",
3900   "",
3901   "int main ()",
3902   "{",
3903   "",
3904   "%if-reentrant",
3905   "    yyscan_t lexer;",
3906   "    yylex_init(&lexer);",
3907   "    yylex( lexer );",
3908   "    yylex_destroy( lexer);",
3909   "",
3910   "%endif",
3911   "%if-not-reentrant",
3912   "	yylex();",
3913   "%endif",
3914   "",
3915   "	return 0;",
3916   "}",
3917   "]])",
3918   "",
3919   "%ok-for-header",
3920   "m4_ifdef( [[M4_YY_IN_HEADER]],",
3921   "[[",
3922   "#undef YY_NEW_FILE",
3923   "#undef YY_FLUSH_BUFFER",
3924   "#undef yy_set_bol",
3925   "#undef yy_new_buffer",
3926   "#undef yy_set_interactive",
3927   "#undef YY_DO_BEFORE_ACTION",
3928   "",
3929   "#ifdef YY_DECL_IS_OURS",
3930   "#undef YY_DECL_IS_OURS",
3931   "#undef YY_DECL",
3932   "#endif",
3933   "",
3934   "[[#ifndef ]]M4_YY_PREFIX[[_create_buffer_ALREADY_DEFINED",
3935   "#undef yy_create_buffer",
3936   "#endif]]",
3937   "[[#ifndef ]]M4_YY_PREFIX[[_delete_buffer_ALREADY_DEFINED",
3938   "#undef yy_delete_buffer",
3939   "#endif]]",
3940   "[[#ifndef ]]M4_YY_PREFIX[[_scan_buffer_ALREADY_DEFINED",
3941   "#undef yy_scan_buffer",
3942   "#endif]]",
3943   "[[#ifndef ]]M4_YY_PREFIX[[_scan_string_ALREADY_DEFINED",
3944   "#undef yy_scan_string",
3945   "#endif]]",
3946   "[[#ifndef ]]M4_YY_PREFIX[[_scan_bytes_ALREADY_DEFINED",
3947   "#undef yy_scan_bytes",
3948   "#endif]]",
3949   "[[#ifndef ]]M4_YY_PREFIX[[_init_buffer_ALREADY_DEFINED",
3950   "#undef yy_init_buffer",
3951   "#endif]]",
3952   "[[#ifndef ]]M4_YY_PREFIX[[_flush_buffer_ALREADY_DEFINED",
3953   "#undef yy_flush_buffer",
3954   "#endif]]",
3955   "[[#ifndef ]]M4_YY_PREFIX[[_load_buffer_state_ALREADY_DEFINED",
3956   "#undef yy_load_buffer_state",
3957   "#endif]]",
3958   "[[#ifndef ]]M4_YY_PREFIX[[_switch_to_buffer_ALREADY_DEFINED",
3959   "#undef yy_switch_to_buffer",
3960   "#endif]]",
3961   "[[#ifndef ]]M4_YY_PREFIX[[push_buffer_state_ALREADY_DEFINED",
3962   "#undef yypush_buffer_state",
3963   "#endif]]",
3964   "[[#ifndef ]]M4_YY_PREFIX[[pop_buffer_state_ALREADY_DEFINED",
3965   "#undef yypop_buffer_state",
3966   "#endif]]",
3967   "[[#ifndef ]]M4_YY_PREFIX[[ensure_buffer_stack_ALREADY_DEFINED",
3968   "#undef yyensure_buffer_stack",
3969   "#endif]]",
3970   "[[#ifndef ]]M4_YY_PREFIX[[lex_ALREADY_DEFINED",
3971   "#undef yylex",
3972   "#endif]]",
3973   "[[#ifndef ]]M4_YY_PREFIX[[restart_ALREADY_DEFINED",
3974   "#undef yyrestart",
3975   "#endif]]",
3976   "[[#ifndef ]]M4_YY_PREFIX[[lex_init_ALREADY_DEFINED",
3977   "#undef yylex_init",
3978   "#endif]]",
3979   "[[#ifndef ]]M4_YY_PREFIX[[lex_init_extra_ALREADY_DEFINED",
3980   "#undef yylex_init_extra",
3981   "#endif]]",
3982   "[[#ifndef ]]M4_YY_PREFIX[[lex_destroy_ALREADY_DEFINED",
3983   "#undef yylex_destroy",
3984   "#endif]]",
3985   "[[#ifndef ]]M4_YY_PREFIX[[get_debug_ALREADY_DEFINED",
3986   "#undef yyget_debug",
3987   "#endif]]",
3988   "[[#ifndef ]]M4_YY_PREFIX[[set_debug_ALREADY_DEFINED",
3989   "#undef yyset_debug",
3990   "#endif]]",
3991   "[[#ifndef ]]M4_YY_PREFIX[[get_extra_ALREADY_DEFINED",
3992   "#undef yyget_extra",
3993   "#endif]]",
3994   "[[#ifndef ]]M4_YY_PREFIX[[set_extra_ALREADY_DEFINED",
3995   "#undef yyset_extra",
3996   "#endif]]",
3997   "[[#ifndef ]]M4_YY_PREFIX[[get_in_ALREADY_DEFINED",
3998   "#undef yyget_in",
3999   "#endif]]",
4000   "[[#ifndef ]]M4_YY_PREFIX[[set_in_ALREADY_DEFINED",
4001   "#undef yyset_in",
4002   "#endif]]",
4003   "[[#ifndef ]]M4_YY_PREFIX[[get_out_ALREADY_DEFINED",
4004   "#undef yyget_out",
4005   "#endif]]",
4006   "[[#ifndef ]]M4_YY_PREFIX[[set_out_ALREADY_DEFINED",
4007   "#undef yyset_out",
4008   "#endif]]",
4009   "[[#ifndef ]]M4_YY_PREFIX[[get_leng_ALREADY_DEFINED",
4010   "#undef yyget_leng",
4011   "#endif]]",
4012   "[[#ifndef ]]M4_YY_PREFIX[[get_text_ALREADY_DEFINED",
4013   "#undef yyget_text",
4014   "#endif]]",
4015   "[[#ifndef ]]M4_YY_PREFIX[[get_lineno_ALREADY_DEFINED",
4016   "#undef yyget_lineno",
4017   "#endif]]",
4018   "[[#ifndef ]]M4_YY_PREFIX[[set_lineno_ALREADY_DEFINED",
4019   "#undef yyset_lineno",
4020   "#endif]]",
4021   "[[#ifndef ]]M4_YY_PREFIX[[get_column_ALREADY_DEFINED",
4022   "#undef yyget_column",
4023   "#endif]]",
4024   "[[#ifndef ]]M4_YY_PREFIX[[set_column_ALREADY_DEFINED",
4025   "#undef yyset_column",
4026   "#endif]]",
4027   "[[#ifndef ]]M4_YY_PREFIX[[wrap_ALREADY_DEFINED",
4028   "#undef yywrap",
4029   "#endif]]",
4030   "[[#ifndef ]]M4_YY_PREFIX[[get_lval_ALREADY_DEFINED",
4031   "#undef yyget_lval",
4032   "#endif]]",
4033   "[[#ifndef ]]M4_YY_PREFIX[[set_lval_ALREADY_DEFINED",
4034   "#undef yyset_lval",
4035   "#endif]]",
4036   "[[#ifndef ]]M4_YY_PREFIX[[get_lloc_ALREADY_DEFINED",
4037   "#undef yyget_lloc",
4038   "#endif]]",
4039   "[[#ifndef ]]M4_YY_PREFIX[[set_lloc_ALREADY_DEFINED",
4040   "#undef yyset_lloc",
4041   "#endif]]",
4042   "[[#ifndef ]]M4_YY_PREFIX[[alloc_ALREADY_DEFINED",
4043   "#undef yyalloc",
4044   "#endif]]",
4045   "[[#ifndef ]]M4_YY_PREFIX[[realloc_ALREADY_DEFINED",
4046   "#undef yyrealloc",
4047   "#endif]]",
4048   "[[#ifndef ]]M4_YY_PREFIX[[free_ALREADY_DEFINED",
4049   "#undef yyfree",
4050   "#endif]]",
4051   "[[#ifndef ]]M4_YY_PREFIX[[text_ALREADY_DEFINED",
4052   "#undef yytext",
4053   "#endif]]",
4054   "[[#ifndef ]]M4_YY_PREFIX[[leng_ALREADY_DEFINED",
4055   "#undef yyleng",
4056   "#endif]]",
4057   "[[#ifndef ]]M4_YY_PREFIX[[in_ALREADY_DEFINED",
4058   "#undef yyin",
4059   "#endif]]",
4060   "[[#ifndef ]]M4_YY_PREFIX[[out_ALREADY_DEFINED",
4061   "#undef yyout",
4062   "#endif]]",
4063   "[[#ifndef ]]M4_YY_PREFIX[[_flex_debug_ALREADY_DEFINED",
4064   "#undef yy_flex_debug",
4065   "#endif]]",
4066   "[[#ifndef ]]M4_YY_PREFIX[[lineno_ALREADY_DEFINED",
4067   "#undef yylineno",
4068   "#endif]]",
4069   "[[#ifndef ]]M4_YY_PREFIX[[tables_fload_ALREADY_DEFINED",
4070   "#undef yytables_fload",
4071   "#endif]]",
4072   "[[#ifndef ]]M4_YY_PREFIX[[tables_destroy_ALREADY_DEFINED",
4073   "#undef yytables_destroy",
4074   "#endif]]",
4075   "[[#ifndef ]]M4_YY_PREFIX[[TABLES_NAME_ALREADY_DEFINED",
4076   "#undef yyTABLES_NAME",
4077   "#endif]]",
4078   "]])",
4079   0
4080 };
4081