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