Subversion Repositories Kolibri OS

Rev

Rev 5563 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1.  
  2. #line 2 "<stdout>"
  3.  
  4. #define  YY_INT_ALIGNED short int
  5.  
  6. /* A lexical scanner generated by flex */
  7.  
  8. #define FLEX_SCANNER
  9. #define YY_FLEX_MAJOR_VERSION 2
  10. #define YY_FLEX_MINOR_VERSION 6
  11. #define YY_FLEX_SUBMINOR_VERSION 4
  12. #if YY_FLEX_SUBMINOR_VERSION > 0
  13. #define FLEX_BETA
  14. #endif
  15.  
  16. #ifdef yy_create_buffer
  17. #define glcpp__create_buffer_ALREADY_DEFINED
  18. #else
  19. #define yy_create_buffer glcpp__create_buffer
  20. #endif
  21.  
  22. #ifdef yy_delete_buffer
  23. #define glcpp__delete_buffer_ALREADY_DEFINED
  24. #else
  25. #define yy_delete_buffer glcpp__delete_buffer
  26. #endif
  27.  
  28. #ifdef yy_scan_buffer
  29. #define glcpp__scan_buffer_ALREADY_DEFINED
  30. #else
  31. #define yy_scan_buffer glcpp__scan_buffer
  32. #endif
  33.  
  34. #ifdef yy_scan_string
  35. #define glcpp__scan_string_ALREADY_DEFINED
  36. #else
  37. #define yy_scan_string glcpp__scan_string
  38. #endif
  39.  
  40. #ifdef yy_scan_bytes
  41. #define glcpp__scan_bytes_ALREADY_DEFINED
  42. #else
  43. #define yy_scan_bytes glcpp__scan_bytes
  44. #endif
  45.  
  46. #ifdef yy_init_buffer
  47. #define glcpp__init_buffer_ALREADY_DEFINED
  48. #else
  49. #define yy_init_buffer glcpp__init_buffer
  50. #endif
  51.  
  52. #ifdef yy_flush_buffer
  53. #define glcpp__flush_buffer_ALREADY_DEFINED
  54. #else
  55. #define yy_flush_buffer glcpp__flush_buffer
  56. #endif
  57.  
  58. #ifdef yy_load_buffer_state
  59. #define glcpp__load_buffer_state_ALREADY_DEFINED
  60. #else
  61. #define yy_load_buffer_state glcpp__load_buffer_state
  62. #endif
  63.  
  64. #ifdef yy_switch_to_buffer
  65. #define glcpp__switch_to_buffer_ALREADY_DEFINED
  66. #else
  67. #define yy_switch_to_buffer glcpp__switch_to_buffer
  68. #endif
  69.  
  70. #ifdef yypush_buffer_state
  71. #define glcpp_push_buffer_state_ALREADY_DEFINED
  72. #else
  73. #define yypush_buffer_state glcpp_push_buffer_state
  74. #endif
  75.  
  76. #ifdef yypop_buffer_state
  77. #define glcpp_pop_buffer_state_ALREADY_DEFINED
  78. #else
  79. #define yypop_buffer_state glcpp_pop_buffer_state
  80. #endif
  81.  
  82. #ifdef yyensure_buffer_stack
  83. #define glcpp_ensure_buffer_stack_ALREADY_DEFINED
  84. #else
  85. #define yyensure_buffer_stack glcpp_ensure_buffer_stack
  86. #endif
  87.  
  88. #ifdef yylex
  89. #define glcpp_lex_ALREADY_DEFINED
  90. #else
  91. #define yylex glcpp_lex
  92. #endif
  93.  
  94. #ifdef yyrestart
  95. #define glcpp_restart_ALREADY_DEFINED
  96. #else
  97. #define yyrestart glcpp_restart
  98. #endif
  99.  
  100. #ifdef yylex_init
  101. #define glcpp_lex_init_ALREADY_DEFINED
  102. #else
  103. #define yylex_init glcpp_lex_init
  104. #endif
  105.  
  106. #ifdef yylex_init_extra
  107. #define glcpp_lex_init_extra_ALREADY_DEFINED
  108. #else
  109. #define yylex_init_extra glcpp_lex_init_extra
  110. #endif
  111.  
  112. #ifdef yylex_destroy
  113. #define glcpp_lex_destroy_ALREADY_DEFINED
  114. #else
  115. #define yylex_destroy glcpp_lex_destroy
  116. #endif
  117.  
  118. #ifdef yyget_debug
  119. #define glcpp_get_debug_ALREADY_DEFINED
  120. #else
  121. #define yyget_debug glcpp_get_debug
  122. #endif
  123.  
  124. #ifdef yyset_debug
  125. #define glcpp_set_debug_ALREADY_DEFINED
  126. #else
  127. #define yyset_debug glcpp_set_debug
  128. #endif
  129.  
  130. #ifdef yyget_extra
  131. #define glcpp_get_extra_ALREADY_DEFINED
  132. #else
  133. #define yyget_extra glcpp_get_extra
  134. #endif
  135.  
  136. #ifdef yyset_extra
  137. #define glcpp_set_extra_ALREADY_DEFINED
  138. #else
  139. #define yyset_extra glcpp_set_extra
  140. #endif
  141.  
  142. #ifdef yyget_in
  143. #define glcpp_get_in_ALREADY_DEFINED
  144. #else
  145. #define yyget_in glcpp_get_in
  146. #endif
  147.  
  148. #ifdef yyset_in
  149. #define glcpp_set_in_ALREADY_DEFINED
  150. #else
  151. #define yyset_in glcpp_set_in
  152. #endif
  153.  
  154. #ifdef yyget_out
  155. #define glcpp_get_out_ALREADY_DEFINED
  156. #else
  157. #define yyget_out glcpp_get_out
  158. #endif
  159.  
  160. #ifdef yyset_out
  161. #define glcpp_set_out_ALREADY_DEFINED
  162. #else
  163. #define yyset_out glcpp_set_out
  164. #endif
  165.  
  166. #ifdef yyget_leng
  167. #define glcpp_get_leng_ALREADY_DEFINED
  168. #else
  169. #define yyget_leng glcpp_get_leng
  170. #endif
  171.  
  172. #ifdef yyget_text
  173. #define glcpp_get_text_ALREADY_DEFINED
  174. #else
  175. #define yyget_text glcpp_get_text
  176. #endif
  177.  
  178. #ifdef yyget_lineno
  179. #define glcpp_get_lineno_ALREADY_DEFINED
  180. #else
  181. #define yyget_lineno glcpp_get_lineno
  182. #endif
  183.  
  184. #ifdef yyset_lineno
  185. #define glcpp_set_lineno_ALREADY_DEFINED
  186. #else
  187. #define yyset_lineno glcpp_set_lineno
  188. #endif
  189.  
  190. #ifdef yyget_column
  191. #define glcpp_get_column_ALREADY_DEFINED
  192. #else
  193. #define yyget_column glcpp_get_column
  194. #endif
  195.  
  196. #ifdef yyset_column
  197. #define glcpp_set_column_ALREADY_DEFINED
  198. #else
  199. #define yyset_column glcpp_set_column
  200. #endif
  201.  
  202. #ifdef yywrap
  203. #define glcpp_wrap_ALREADY_DEFINED
  204. #else
  205. #define yywrap glcpp_wrap
  206. #endif
  207.  
  208. #ifdef yyget_lval
  209. #define glcpp_get_lval_ALREADY_DEFINED
  210. #else
  211. #define yyget_lval glcpp_get_lval
  212. #endif
  213.  
  214. #ifdef yyset_lval
  215. #define glcpp_set_lval_ALREADY_DEFINED
  216. #else
  217. #define yyset_lval glcpp_set_lval
  218. #endif
  219.  
  220. #ifdef yyget_lloc
  221. #define glcpp_get_lloc_ALREADY_DEFINED
  222. #else
  223. #define yyget_lloc glcpp_get_lloc
  224. #endif
  225.  
  226. #ifdef yyset_lloc
  227. #define glcpp_set_lloc_ALREADY_DEFINED
  228. #else
  229. #define yyset_lloc glcpp_set_lloc
  230. #endif
  231.  
  232. #ifdef yyalloc
  233. #define glcpp_alloc_ALREADY_DEFINED
  234. #else
  235. #define yyalloc glcpp_alloc
  236. #endif
  237.  
  238. #ifdef yyrealloc
  239. #define glcpp_realloc_ALREADY_DEFINED
  240. #else
  241. #define yyrealloc glcpp_realloc
  242. #endif
  243.  
  244. #ifdef yyfree
  245. #define glcpp_free_ALREADY_DEFINED
  246. #else
  247. #define yyfree glcpp_free
  248. #endif
  249.  
  250. /* First, we deal with  platform-specific or compiler-specific issues. */
  251.  
  252. /* begin standard C headers. */
  253. #include <stdio.h>
  254. #include <string.h>
  255. #include <errno.h>
  256. #include <stdlib.h>
  257.  
  258. /* end standard C headers. */
  259.  
  260. /* flex integer type definitions */
  261.  
  262. #ifndef FLEXINT_H
  263. #define FLEXINT_H
  264.  
  265. /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
  266.  
  267. #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
  268.  
  269. /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
  270.  * if you want the limit (max/min) macros for int types.
  271.  */
  272. #ifndef __STDC_LIMIT_MACROS
  273. #define __STDC_LIMIT_MACROS 1
  274. #endif
  275.  
  276. #include <inttypes.h>
  277. typedef int8_t flex_int8_t;
  278. typedef uint8_t flex_uint8_t;
  279. typedef int16_t flex_int16_t;
  280. typedef uint16_t flex_uint16_t;
  281. typedef int32_t flex_int32_t;
  282. typedef uint32_t flex_uint32_t;
  283. #else
  284. typedef signed char flex_int8_t;
  285. typedef short int flex_int16_t;
  286. typedef int flex_int32_t;
  287. typedef unsigned char flex_uint8_t;
  288. typedef unsigned short int flex_uint16_t;
  289. typedef unsigned int flex_uint32_t;
  290.  
  291. /* Limits of integral types. */
  292. #ifndef INT8_MIN
  293. #define INT8_MIN               (-128)
  294. #endif
  295. #ifndef INT16_MIN
  296. #define INT16_MIN              (-32767-1)
  297. #endif
  298. #ifndef INT32_MIN
  299. #define INT32_MIN              (-2147483647-1)
  300. #endif
  301. #ifndef INT8_MAX
  302. #define INT8_MAX               (127)
  303. #endif
  304. #ifndef INT16_MAX
  305. #define INT16_MAX              (32767)
  306. #endif
  307. #ifndef INT32_MAX
  308. #define INT32_MAX              (2147483647)
  309. #endif
  310. #ifndef UINT8_MAX
  311. #define UINT8_MAX              (255U)
  312. #endif
  313. #ifndef UINT16_MAX
  314. #define UINT16_MAX             (65535U)
  315. #endif
  316. #ifndef UINT32_MAX
  317. #define UINT32_MAX             (4294967295U)
  318. #endif
  319.  
  320. #ifndef SIZE_MAX
  321. #define SIZE_MAX               (~(size_t)0)
  322. #endif
  323.  
  324. #endif /* ! C99 */
  325.  
  326. #endif /* ! FLEXINT_H */
  327.  
  328. /* begin standard C++ headers. */
  329.  
  330. /* TODO: this is always defined, so inline it */
  331. #define yyconst const
  332.  
  333. #if defined(__GNUC__) && __GNUC__ >= 3
  334. #define yynoreturn __attribute__((__noreturn__))
  335. #else
  336. #define yynoreturn
  337. #endif
  338.  
  339. /* Returned upon end-of-file. */
  340. #define YY_NULL 0
  341.  
  342. /* Promotes a possibly negative, possibly signed char to an
  343.  *   integer in range [0..255] for use as an array index.
  344.  */
  345. #define YY_SC_TO_UI(c) ((YY_CHAR) (c))
  346.  
  347. /* An opaque pointer. */
  348. #ifndef YY_TYPEDEF_YY_SCANNER_T
  349. #define YY_TYPEDEF_YY_SCANNER_T
  350. typedef void* yyscan_t;
  351. #endif
  352.  
  353. /* For convenience, these vars (plus the bison vars far below)
  354.    are macros in the reentrant scanner. */
  355. #define yyin yyg->yyin_r
  356. #define yyout yyg->yyout_r
  357. #define yyextra yyg->yyextra_r
  358. #define yyleng yyg->yyleng_r
  359. #define yytext yyg->yytext_r
  360. #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
  361. #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
  362. #define yy_flex_debug yyg->yy_flex_debug_r
  363.  
  364. /* Enter a start condition.  This macro really ought to take a parameter,
  365.  * but we do it the disgusting crufty way forced on us by the ()-less
  366.  * definition of BEGIN.
  367.  */
  368. #define BEGIN yyg->yy_start = 1 + 2 *
  369. /* Translate the current start state into a value that can be later handed
  370.  * to BEGIN to return to the state.  The YYSTATE alias is for lex
  371.  * compatibility.
  372.  */
  373. #define YY_START ((yyg->yy_start - 1) / 2)
  374. #define YYSTATE YY_START
  375. /* Action number for EOF rule of a given start state. */
  376. #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  377. /* Special action meaning "start processing a new file". */
  378. #define YY_NEW_FILE yyrestart( yyin , yyscanner )
  379. #define YY_END_OF_BUFFER_CHAR 0
  380.  
  381. /* Size of default input buffer. */
  382. #ifndef YY_BUF_SIZE
  383. #ifdef __ia64__
  384. /* On IA-64, the buffer size is 16k, not 8k.
  385.  * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
  386.  * Ditto for the __ia64__ case accordingly.
  387.  */
  388. #define YY_BUF_SIZE 32768
  389. #else
  390. #define YY_BUF_SIZE 16384
  391. #endif /* __ia64__ */
  392. #endif
  393.  
  394. /* The state buf must be large enough to hold one state per character in the main buffer.
  395.  */
  396. #define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
  397.  
  398. #ifndef YY_TYPEDEF_YY_BUFFER_STATE
  399. #define YY_TYPEDEF_YY_BUFFER_STATE
  400. typedef struct yy_buffer_state *YY_BUFFER_STATE;
  401. #endif
  402.  
  403. #ifndef YY_TYPEDEF_YY_SIZE_T
  404. #define YY_TYPEDEF_YY_SIZE_T
  405. typedef size_t yy_size_t;
  406. #endif
  407.  
  408. #define EOB_ACT_CONTINUE_SCAN 0
  409. #define EOB_ACT_END_OF_FILE 1
  410. #define EOB_ACT_LAST_MATCH 2
  411.    
  412.     #define YY_LESS_LINENO(n)
  413.     #define YY_LINENO_REWIND_TO(ptr)
  414.    
  415. /* Return all but the first "n" matched characters back to the input stream. */
  416. #define yyless(n) \
  417.         do \
  418.                 { \
  419.                 /* Undo effects of setting up yytext. */ \
  420.         int yyless_macro_arg = (n); \
  421.         YY_LESS_LINENO(yyless_macro_arg);\
  422.                 *yy_cp = yyg->yy_hold_char; \
  423.                 YY_RESTORE_YY_MORE_OFFSET \
  424.                 yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
  425.                 YY_DO_BEFORE_ACTION; /* set up yytext again */ \
  426.                 } \
  427.         while ( 0 )
  428. #define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner )
  429.  
  430. #ifndef YY_STRUCT_YY_BUFFER_STATE
  431. #define YY_STRUCT_YY_BUFFER_STATE
  432. struct yy_buffer_state
  433.         {
  434.         FILE *yy_input_file;
  435.  
  436.         char *yy_ch_buf;                /* input buffer */
  437.         char *yy_buf_pos;               /* current position in input buffer */
  438.  
  439.         /* Size of input buffer in bytes, not including room for EOB
  440.          * characters.
  441.          */
  442.         int yy_buf_size;
  443.  
  444.         /* Number of characters read into yy_ch_buf, not including EOB
  445.          * characters.
  446.          */
  447.         int yy_n_chars;
  448.  
  449.         /* Whether we "own" the buffer - i.e., we know we created it,
  450.          * and can realloc() it to grow it, and should free() it to
  451.          * delete it.
  452.          */
  453.         int yy_is_our_buffer;
  454.  
  455.         /* Whether this is an "interactive" input source; if so, and
  456.          * if we're using stdio for input, then we want to use getc()
  457.          * instead of fread(), to make sure we stop fetching input after
  458.          * each newline.
  459.          */
  460.         int yy_is_interactive;
  461.  
  462.         /* Whether we're considered to be at the beginning of a line.
  463.          * If so, '^' rules will be active on the next match, otherwise
  464.          * not.
  465.          */
  466.         int yy_at_bol;
  467.  
  468.     int yy_bs_lineno; /**< The line count. */
  469.     int yy_bs_column; /**< The column count. */
  470.  
  471.         /* Whether to try to fill the input buffer when we reach the
  472.          * end of it.
  473.          */
  474.         int yy_fill_buffer;
  475.  
  476.         int yy_buffer_status;
  477.  
  478. #define YY_BUFFER_NEW 0
  479. #define YY_BUFFER_NORMAL 1
  480.         /* When an EOF's been seen but there's still some text to process
  481.          * then we mark the buffer as YY_EOF_PENDING, to indicate that we
  482.          * shouldn't try reading from the input source any more.  We might
  483.          * still have a bunch of tokens to match, though, because of
  484.          * possible backing-up.
  485.          *
  486.          * When we actually see the EOF, we change the status to "new"
  487.          * (via yyrestart()), so that the user can continue scanning by
  488.          * just pointing yyin at a new input file.
  489.          */
  490. #define YY_BUFFER_EOF_PENDING 2
  491.  
  492.         };
  493. #endif /* !YY_STRUCT_YY_BUFFER_STATE */
  494.  
  495. /* We provide macros for accessing buffer states in case in the
  496.  * future we want to put the buffer states in a more general
  497.  * "scanner state".
  498.  *
  499.  * Returns the top of the stack, or NULL.
  500.  */
  501. #define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \
  502.                           ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
  503.                           : NULL)
  504. /* Same as previous macro, but useful when we know that the buffer stack is not
  505.  * NULL or when we need an lvalue. For internal use only.
  506.  */
  507. #define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  508.  
  509. void yyrestart ( FILE *input_file , yyscan_t yyscanner );
  510. void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer , yyscan_t yyscanner );
  511. YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size , yyscan_t yyscanner );
  512. void yy_delete_buffer ( YY_BUFFER_STATE b , yyscan_t yyscanner );
  513. void yy_flush_buffer ( YY_BUFFER_STATE b , yyscan_t yyscanner );
  514. void yypush_buffer_state ( YY_BUFFER_STATE new_buffer , yyscan_t yyscanner );
  515. void yypop_buffer_state ( yyscan_t yyscanner );
  516.  
  517. static void yyensure_buffer_stack ( yyscan_t yyscanner );
  518. static void yy_load_buffer_state ( yyscan_t yyscanner );
  519. static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file , yyscan_t yyscanner );
  520. #define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER , yyscanner)
  521.  
  522. YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size , yyscan_t yyscanner );
  523. YY_BUFFER_STATE yy_scan_string ( const char *yy_str , yyscan_t yyscanner );
  524. YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len , yyscan_t yyscanner );
  525.  
  526. void *yyalloc ( yy_size_t , yyscan_t yyscanner );
  527. void *yyrealloc ( void *, yy_size_t , yyscan_t yyscanner );
  528. void yyfree ( void * , yyscan_t yyscanner );
  529.  
  530. #define yy_new_buffer yy_create_buffer
  531. #define yy_set_interactive(is_interactive) \
  532.         { \
  533.         if ( ! YY_CURRENT_BUFFER ){ \
  534.         yyensure_buffer_stack (yyscanner); \
  535.                 YY_CURRENT_BUFFER_LVALUE =    \
  536.             yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); \
  537.         } \
  538.         YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
  539.         }
  540. #define yy_set_bol(at_bol) \
  541.         { \
  542.         if ( ! YY_CURRENT_BUFFER ){\
  543.         yyensure_buffer_stack (yyscanner); \
  544.                 YY_CURRENT_BUFFER_LVALUE =    \
  545.             yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); \
  546.         } \
  547.         YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
  548.         }
  549. #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
  550.  
  551. /* Begin user sect3 */
  552.  
  553. #define glcpp_wrap(yyscanner) (/*CONSTCOND*/1)
  554. #define YY_SKIP_YYWRAP
  555. typedef flex_uint8_t YY_CHAR;
  556.  
  557. typedef int yy_state_type;
  558.  
  559. #define yytext_ptr yytext_r
  560.  
  561. static yy_state_type yy_get_previous_state ( yyscan_t yyscanner );
  562. static yy_state_type yy_try_NUL_trans ( yy_state_type current_state  , yyscan_t yyscanner);
  563. static int yy_get_next_buffer ( yyscan_t yyscanner );
  564. static void yynoreturn yy_fatal_error ( const char* msg , yyscan_t yyscanner );
  565.  
  566. /* Done after the current pattern has been matched and before the
  567.  * corresponding action - sets up yytext.
  568.  */
  569. #define YY_DO_BEFORE_ACTION \
  570.         yyg->yytext_ptr = yy_bp; \
  571.         yyleng = (int) (yy_cp - yy_bp); \
  572.         yyg->yy_hold_char = *yy_cp; \
  573.         *yy_cp = '\0'; \
  574.         yyg->yy_c_buf_p = yy_cp;
  575. #define YY_NUM_RULES 43
  576. #define YY_END_OF_BUFFER 44
  577. /* This struct is not used in this scanner,
  578.    but its presence is necessary. */
  579. struct yy_trans_info
  580.         {
  581.         flex_int32_t yy_verify;
  582.         flex_int32_t yy_nxt;
  583.         };
  584. static const flex_int16_t yy_accept[150] =
  585.     {   0,
  586.         0,    0,    0,    0,    3,    3,    0,    0,    0,    0,
  587.         0,    0,   44,   39,   40,   41,   43,   38,   43,   38,
  588.        38,   38,   25,   24,   38,   38,   38,   37,   37,   38,
  589.        40,   23,    3,    4,    5,   42,   17,   17,   17,   21,
  590.        39,   40,   32,   35,   33,    2,    1,   25,   25,    0,
  591.        24,   24,   27,   29,   31,   30,   28,   37,   37,   34,
  592.        40,   23,   23,    0,    0,    0,    0,    0,    0,    0,
  593.         3,    4,    5,    6,    5,    7,    0,    0,    0,    0,
  594.        20,   21,    1,   26,   37,    0,    0,    0,    0,    0,
  595.         0,    0,    0,    0,    0,   26,   37,    0,    0,    0,
  596.  
  597.         0,    0,    0,   13,    0,    0,    0,    0,    0,    0,
  598.        37,    0,    0,   15,    0,    0,    0,    0,    0,    0,
  599.         0,    0,    0,   37,    0,   14,   16,   18,    0,   11,
  600.         0,   10,    0,   22,    0,   36,    0,   18,    0,   12,
  601.         0,    0,   19,    0,    9,    0,    0,    8,    0
  602.     } ;
  603.  
  604. static const YY_CHAR yy_ec[256] =
  605.     {   0,
  606.         1,    1,    1,    1,    1,    1,    1,    1,    2,    3,
  607.         4,    4,    4,    1,    1,    1,    1,    1,    1,    1,
  608.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  609.         1,    2,    5,    1,    6,    1,    7,    8,    1,    9,
  610.         7,   10,    7,    7,    7,    7,   11,   12,   13,   13,
  611.        13,   13,   13,   13,   13,   14,   14,    1,    7,   15,
  612.        16,   17,    1,    1,   18,   18,   18,   18,   18,   18,
  613.        19,   19,   19,   19,   19,   19,   19,   19,   19,   19,
  614.        19,   19,   19,   19,   20,   19,   19,   21,   19,   19,
  615.         7,    1,    7,    7,   19,    1,   22,   18,   18,   23,
  616.  
  617.        24,   25,   26,   19,   27,   19,   19,   28,   29,   30,
  618.        31,   32,   19,   33,   34,   35,   36,   37,   19,   38,
  619.        19,   19,    7,   39,    7,    7,    1,    1,    1,    1,
  620.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  621.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  622.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  623.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  624.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  625.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  626.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  627.  
  628.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  629.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  630.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  631.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  632.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  633.         1,    1,    1,    1,    1
  634.     } ;
  635.  
  636. static const YY_CHAR yy_meta[40] =
  637.     {   0,
  638.         1,    1,    2,    1,    1,    1,    1,    1,    3,    4,
  639.         1,    5,    5,    5,    1,    1,    1,    5,    6,    6,
  640.         6,    5,    7,    5,    5,    6,    6,    6,    6,    8,
  641.         6,    6,    6,    6,    6,    6,    6,    6,    1
  642.     } ;
  643.  
  644. static const flex_int16_t yy_base[164] =
  645.     {   0,
  646.         0,   38,    0,    0,   38,   39,  321,  320,  319,   44,
  647.        50,    0,  321,  319,  317,  325,  325,  302,  311,  325,
  648.       308,   80,   80,   83,   83,  299,   88,    0,  290,  274,
  649.       100,  118,  309,  325,  104,  325,  325,  106,  107,  302,
  650.       309,  307,  325,  325,  325,  325,    0,  113,  325,    0,
  651.       115,  325,  325,  325,  325,  325,  325,    0,  283,  325,
  652.       111,  301,  300,  281,  110,  279,  276,  269,  271,  276,
  653.       296,  325,  149,  325,  153,  325,  130,  120,  151,   15,
  654.       325,  289,    0,   74,  270,  271,   96,  272,  261,  258,
  655.       135,  262,  269,  267,  256,  325,  258,  260,  261,  261,
  656.  
  657.       257,  252,  258,  325,  257,  257,  255,  252,  253,  242,
  658.       245,  231,    0,  325,  228,  219,  216,  213,  208,  216,
  659.       148,  151,  147,  150,  148,  325,  325,    0,  137,  325,
  660.       145,  167,  146,  325,  136,    0,  164,    0,  135,  325,
  661.         0,  131,  155,  108,    0,  135,   91,  109,  325,  178,
  662.       186,  194,  202,  206,  214,  222,  228,  236,  240,  247,
  663.       255,  259,  267
  664.     } ;
  665.  
  666. static const flex_int16_t yy_def[164] =
  667.     {   0,
  668.       149,    1,  150,  150,  151,  151,  152,  152,  153,  153,
  669.       149,   11,  149,  149,  149,  149,  149,  149,  149,  149,
  670.       149,  149,  149,  149,  149,  149,  149,  154,  154,  149,
  671.       149,  149,  155,  149,  156,  149,  149,  149,  149,  157,
  672.       149,  149,  149,  149,  149,  149,  158,  149,  149,  159,
  673.       149,  149,  149,  149,  149,  149,  149,  154,  154,  149,
  674.       149,   32,   32,  149,  149,  149,  149,  149,  149,  149,
  675.       155,  149,  156,  149,  156,  149,  149,  149,  149,  149,
  676.       149,  157,  158,  159,  154,  149,  149,  149,  149,  149,
  677.       160,  149,  149,  149,  149,  149,  154,  149,  149,  149,
  678.  
  679.       149,  149,  149,  149,  149,  149,  149,  149,  149,  149,
  680.       154,  149,  161,  149,  149,  149,  149,  149,  149,  149,
  681.       149,  149,  149,  154,  149,  149,  149,  162,  149,  149,
  682.       149,  149,  149,  149,  149,  154,  149,  162,  149,  149,
  683.       163,  149,  149,  149,  163,  149,  149,  149,    0,  149,
  684.       149,  149,  149,  149,  149,  149,  149,  149,  149,  149,
  685.       149,  149,  149
  686.     } ;
  687.  
  688. static const flex_int16_t yy_nxt[365] =
  689.     {   0,
  690.        14,   15,   16,   17,   18,   19,   20,   21,   20,   20,
  691.        22,   23,   24,   24,   25,   26,   27,   28,   28,   28,
  692.        28,   28,   29,   28,   28,   28,   28,   28,   28,   28,
  693.        28,   28,   28,   28,   28,   28,   28,   28,   30,   31,
  694.        34,   34,   87,   32,   88,   38,   16,   35,   35,   39,
  695.        17,   17,   17,   17,   17,   17,   17,   17,   17,   17,
  696.        17,   17,   17,   17,   17,   17,   17,   40,   40,   40,
  697.        40,   40,   40,   40,   40,   40,   40,   40,   40,   40,
  698.        40,   40,   40,   40,   40,   40,   40,   40,   17,   46,
  699.        47,   48,   48,   96,   51,   51,   51,   53,   54,   49,
  700.  
  701.        50,   61,   52,   56,   57,   62,   74,   77,   79,   96,
  702.       148,   78,   61,   75,   76,   49,   62,   50,   52,   63,
  703.       141,   79,   99,   44,   48,   48,   51,   51,   51,  100,
  704.        80,   77,   49,   66,   52,   78,  148,   87,  147,   88,
  705.        64,   65,   89,   80,   66,   67,   66,   90,   49,   68,
  706.        52,   74,   79,   69,   70,   74,  143,  105,  149,  149,
  707.       146,  144,   75,   76,  106,  143,  142,  141,  132,  140,
  708.       139,  137,  136,  135,   80,  134,  133,   66,   17,   17,
  709.        17,   17,   17,   17,   17,   17,   33,   33,   33,   33,
  710.        33,   33,   33,   33,   36,   36,   36,   36,   36,   36,
  711.  
  712.        36,   36,   37,   37,   37,   37,   37,   37,   37,   37,
  713.        58,   58,   58,   58,   71,   71,   71,  132,   71,   71,
  714.        71,   71,   73,   73,   73,   73,   73,   73,   73,   73,
  715.        82,  131,   82,   82,   82,   82,   83,  130,   83,   83,
  716.        83,   83,   83,   83,   84,  129,   84,  104,  104,  104,
  717.       104,  128,  127,  104,  104,  126,  126,  126,  126,  138,
  718.       125,  138,  138,  138,  138,  138,  138,  145,  124,  145,
  719.       145,  145,  145,  145,  145,  123,  122,  121,  120,  119,
  720.       118,  117,  116,  115,  114,  113,  112,  111,  110,  109,
  721.       108,  107,  103,  102,  101,   98,   97,   81,   72,   95,
  722.  
  723.        94,   93,   92,   91,   86,  149,  149,   85,   42,   41,
  724.        81,   72,   60,   59,   55,   45,   44,   43,   42,   41,
  725.       149,   16,   17,   17,   13,  149,  149,  149,  149,  149,
  726.       149,  149,  149,  149,  149,  149,  149,  149,  149,  149,
  727.       149,  149,  149,  149,  149,  149,  149,  149,  149,  149,
  728.       149,  149,  149,  149,  149,  149,  149,  149,  149,  149,
  729.       149,  149,  149,  149
  730.     } ;
  731.  
  732. static const flex_int16_t yy_chk[365] =
  733.     {   0,
  734.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  735.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  736.         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
  737.         1,    1,    1,    1,    1,    1,    1,    1,    1,    2,
  738.         5,    6,   80,    2,   80,   10,   10,    5,    6,   10,
  739.        11,   11,   11,   11,   11,   11,   11,   11,   11,   11,
  740.        11,   11,   11,   11,   11,   11,   11,   11,   11,   11,
  741.        11,   11,   11,   11,   11,   11,   11,   11,   11,   11,
  742.        11,   11,   11,   11,   11,   11,   11,   11,   11,   22,
  743.        22,   23,   23,   84,   24,   24,   24,   25,   25,   23,
  744.  
  745.        23,   31,   24,   27,   27,   31,   35,   38,   39,   84,
  746.       148,   38,   61,   35,   35,   23,   61,   23,   24,   32,
  747.       147,   78,   87,   32,   48,   48,   51,   51,   51,   87,
  748.        39,   77,   48,   39,   51,   77,  146,   65,  144,   65,
  749.        32,   32,   65,   78,   32,   32,   78,   65,   48,   32,
  750.        51,   73,   79,   32,   32,   75,  143,   91,   73,   73,
  751.       142,  139,   75,   75,   91,  137,  135,  133,  132,  131,
  752.       129,  125,  124,  123,   79,  122,  121,   79,  150,  150,
  753.       150,  150,  150,  150,  150,  150,  151,  151,  151,  151,
  754.       151,  151,  151,  151,  152,  152,  152,  152,  152,  152,
  755.  
  756.       152,  152,  153,  153,  153,  153,  153,  153,  153,  153,
  757.       154,  154,  154,  154,  155,  155,  155,  120,  155,  155,
  758.       155,  155,  156,  156,  156,  156,  156,  156,  156,  156,
  759.       157,  119,  157,  157,  157,  157,  158,  118,  158,  158,
  760.       158,  158,  158,  158,  159,  117,  159,  160,  160,  160,
  761.       160,  116,  115,  160,  160,  161,  161,  161,  161,  162,
  762.       112,  162,  162,  162,  162,  162,  162,  163,  111,  163,
  763.       163,  163,  163,  163,  163,  110,  109,  108,  107,  106,
  764.       105,  103,  102,  101,  100,   99,   98,   97,   95,   94,
  765.        93,   92,   90,   89,   88,   86,   85,   82,   71,   70,
  766.  
  767.        69,   68,   67,   66,   64,   63,   62,   59,   42,   41,
  768.        40,   33,   30,   29,   26,   21,   19,   18,   15,   14,
  769.        13,    9,    8,    7,  149,  149,  149,  149,  149,  149,
  770.       149,  149,  149,  149,  149,  149,  149,  149,  149,  149,
  771.       149,  149,  149,  149,  149,  149,  149,  149,  149,  149,
  772.       149,  149,  149,  149,  149,  149,  149,  149,  149,  149,
  773.       149,  149,  149,  149
  774.     } ;
  775.  
  776. /* The intent behind this definition is that it'll catch
  777.  * any uses of REJECT which flex missed.
  778.  */
  779. #define REJECT reject_used_but_not_detected
  780. #define yymore() yymore_used_but_not_detected
  781. #define YY_MORE_ADJ 0
  782. #define YY_RESTORE_YY_MORE_OFFSET
  783. #line 1 "glcpp/glcpp-lex.l"
  784. #line 2 "glcpp/glcpp-lex.l"
  785. /*
  786.  * Copyright © 2010 Intel Corporation
  787.  *
  788.  * Permission is hereby granted, free of charge, to any person obtaining a
  789.  * copy of this software and associated documentation files (the "Software"),
  790.  * to deal in the Software without restriction, including without limitation
  791.  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  792.  * and/or sell copies of the Software, and to permit persons to whom the
  793.  * Software is furnished to do so, subject to the following conditions:
  794.  *
  795.  * The above copyright notice and this permission notice (including the next
  796.  * paragraph) shall be included in all copies or substantial portions of the
  797.  * Software.
  798.  *
  799.  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  800.  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  801.  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
  802.  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  803.  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  804.  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  805.  * DEALINGS IN THE SOFTWARE.
  806.  */
  807.  
  808. #include <stdio.h>
  809. #include <string.h>
  810. #include <ctype.h>
  811.  
  812. #include "glcpp.h"
  813. #include "glcpp-parse.h"
  814.  
  815. /* Flex annoyingly generates some functions without making them
  816.  * static. Let's declare them here. */
  817. int glcpp_get_column  (yyscan_t yyscanner);
  818. void glcpp_set_column (int  column_no , yyscan_t yyscanner);
  819.  
  820. #ifdef _MSC_VER
  821. #define YY_NO_UNISTD_H
  822. #endif
  823.  
  824. #define YY_NO_INPUT
  825.  
  826. #define YY_USER_ACTION                                                  \
  827.         do {                                                            \
  828.                 if (parser->has_new_line_number)                        \
  829.                         yylineno = parser->new_line_number;             \
  830.                 if (parser->has_new_source_number)                      \
  831.                         yylloc->source = parser->new_source_number;     \
  832.                 yylloc->first_column = yycolumn + 1;                    \
  833.                 yylloc->first_line = yylineno;                          \
  834.                 yycolumn += yyleng;                                     \
  835.                 parser->has_new_line_number = 0;                        \
  836.                 parser->has_new_source_number = 0;                      \
  837.  } while(0);
  838.  
  839. #define YY_USER_INIT                    \
  840.         do {                            \
  841.                 yylineno = 1;           \
  842.                 yycolumn = 1;           \
  843.                 yylloc->source = 0;     \
  844.         } while(0)
  845. #line 845 "<stdout>"
  846.  
  847. /* The OTHER class is simply a catch-all for things that the CPP
  848. parser just doesn't care about. Since flex regular expressions that
  849. match longer strings take priority over those matching shorter
  850. strings, we have to be careful to avoid OTHER matching and hiding
  851. something that CPP does care about. So we simply exclude all
  852. characters that appear in any other expressions. */
  853. #line 853 "<stdout>"
  854.  
  855. #define INITIAL 0
  856. #define DONE 1
  857. #define COMMENT 2
  858. #define UNREACHABLE 3
  859. #define SKIP 4
  860. #define DEFINE 5
  861.  
  862. #ifndef YY_NO_UNISTD_H
  863. /* Special case for "unistd.h", since it is non-ANSI. We include it way
  864.  * down here because we want the user's section 1 to have been scanned first.
  865.  * The user has a chance to override it with an option.
  866.  */
  867. #include <unistd.h>
  868. #endif
  869.  
  870. #define YY_EXTRA_TYPE glcpp_parser_t *
  871.  
  872. /* Holds the entire state of the reentrant scanner. */
  873. struct yyguts_t
  874.     {
  875.  
  876.     /* User-defined. Not touched by flex. */
  877.     YY_EXTRA_TYPE yyextra_r;
  878.  
  879.     /* The rest are the same as the globals declared in the non-reentrant scanner. */
  880.     FILE *yyin_r, *yyout_r;
  881.     size_t yy_buffer_stack_top; /**< index of top of stack. */
  882.     size_t yy_buffer_stack_max; /**< capacity of stack. */
  883.     YY_BUFFER_STATE * yy_buffer_stack; /**< Stack as an array. */
  884.     char yy_hold_char;
  885.     int yy_n_chars;
  886.     int yyleng_r;
  887.     char *yy_c_buf_p;
  888.     int yy_init;
  889.     int yy_start;
  890.     int yy_did_buffer_switch_on_eof;
  891.     int yy_start_stack_ptr;
  892.     int yy_start_stack_depth;
  893.     int *yy_start_stack;
  894.     yy_state_type yy_last_accepting_state;
  895.     char* yy_last_accepting_cpos;
  896.  
  897.     int yylineno_r;
  898.     int yy_flex_debug_r;
  899.  
  900.     char *yytext_r;
  901.     int yy_more_flag;
  902.     int yy_more_len;
  903.  
  904.     YYSTYPE * yylval_r;
  905.  
  906.     YYLTYPE * yylloc_r;
  907.  
  908.     }; /* end struct yyguts_t */
  909.  
  910. static int yy_init_globals ( yyscan_t yyscanner );
  911.  
  912.     /* This must go here because YYSTYPE and YYLTYPE are included
  913.      * from bison output in section 1.*/
  914.     #    define yylval yyg->yylval_r
  915.    
  916.     #    define yylloc yyg->yylloc_r
  917.    
  918. int yylex_init (yyscan_t* scanner);
  919.  
  920. int yylex_init_extra ( YY_EXTRA_TYPE user_defined, yyscan_t* scanner);
  921.  
  922. /* Accessor methods to globals.
  923.    These are made visible to non-reentrant scanners for convenience. */
  924.  
  925. int yylex_destroy ( yyscan_t yyscanner );
  926.  
  927. int yyget_debug ( yyscan_t yyscanner );
  928.  
  929. void yyset_debug ( int debug_flag , yyscan_t yyscanner );
  930.  
  931. YY_EXTRA_TYPE yyget_extra ( yyscan_t yyscanner );
  932.  
  933. void yyset_extra ( YY_EXTRA_TYPE user_defined , yyscan_t yyscanner );
  934.  
  935. FILE *yyget_in ( yyscan_t yyscanner );
  936.  
  937. void yyset_in  ( FILE * _in_str , yyscan_t yyscanner );
  938.  
  939. FILE *yyget_out ( yyscan_t yyscanner );
  940.  
  941. void yyset_out  ( FILE * _out_str , yyscan_t yyscanner );
  942.  
  943.                         int yyget_leng ( yyscan_t yyscanner );
  944.  
  945. char *yyget_text ( yyscan_t yyscanner );
  946.  
  947. int yyget_lineno ( yyscan_t yyscanner );
  948.  
  949. void yyset_lineno ( int _line_number , yyscan_t yyscanner );
  950.  
  951. int yyget_column  ( yyscan_t yyscanner );
  952.  
  953. void yyset_column ( int _column_no , yyscan_t yyscanner );
  954.  
  955. YYSTYPE * yyget_lval ( yyscan_t yyscanner );
  956.  
  957. void yyset_lval ( YYSTYPE * yylval_param , yyscan_t yyscanner );
  958.  
  959.        YYLTYPE *yyget_lloc ( yyscan_t yyscanner );
  960.    
  961.         void yyset_lloc ( YYLTYPE * yylloc_param , yyscan_t yyscanner );
  962.    
  963. /* Macros after this point can all be overridden by user definitions in
  964.  * section 1.
  965.  */
  966.  
  967. #ifndef YY_SKIP_YYWRAP
  968. #ifdef __cplusplus
  969. extern "C" int yywrap ( yyscan_t yyscanner );
  970. #else
  971. extern int yywrap ( yyscan_t yyscanner );
  972. #endif
  973. #endif
  974.  
  975. #ifndef YY_NO_UNPUT
  976.    
  977.     static void yyunput ( int c, char *buf_ptr  , yyscan_t yyscanner);
  978.    
  979. #endif
  980.  
  981. #ifndef yytext_ptr
  982. static void yy_flex_strncpy ( char *, const char *, int , yyscan_t yyscanner);
  983. #endif
  984.  
  985. #ifdef YY_NEED_STRLEN
  986. static int yy_flex_strlen ( const char * , yyscan_t yyscanner);
  987. #endif
  988.  
  989. #ifndef YY_NO_INPUT
  990. #ifdef __cplusplus
  991. static int yyinput ( yyscan_t yyscanner );
  992. #else
  993. static int input ( yyscan_t yyscanner );
  994. #endif
  995.  
  996. #endif
  997.  
  998.     static void yy_push_state ( int _new_state , yyscan_t yyscanner);
  999.    
  1000.     static void yy_pop_state ( yyscan_t yyscanner );
  1001.    
  1002.     static int yy_top_state ( yyscan_t yyscanner );
  1003.    
  1004. /* Amount of stuff to slurp up with each read. */
  1005. #ifndef YY_READ_BUF_SIZE
  1006. #ifdef __ia64__
  1007. /* On IA-64, the buffer size is 16k, not 8k */
  1008. #define YY_READ_BUF_SIZE 16384
  1009. #else
  1010. #define YY_READ_BUF_SIZE 8192
  1011. #endif /* __ia64__ */
  1012. #endif
  1013.  
  1014. /* Copy whatever the last rule matched to the standard output. */
  1015. #ifndef ECHO
  1016. /* This used to be an fputs(), but since the string might contain NUL's,
  1017.  * we now use fwrite().
  1018.  */
  1019. #define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
  1020. #endif
  1021.  
  1022. /* Gets input and stuffs it into "buf".  number of characters read, or YY_NULL,
  1023.  * is returned in "result".
  1024.  */
  1025. #ifndef YY_INPUT
  1026. #define YY_INPUT(buf,result,max_size) \
  1027.         if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
  1028.                 { \
  1029.                 int c = '*'; \
  1030.                 int n; \
  1031.                 for ( n = 0; n < max_size && \
  1032.                              (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
  1033.                         buf[n] = (char) c; \
  1034.                 if ( c == '\n' ) \
  1035.                         buf[n++] = (char) c; \
  1036.                 if ( c == EOF && ferror( yyin ) ) \
  1037.                         YY_FATAL_ERROR( "input in flex scanner failed" ); \
  1038.                 result = n; \
  1039.                 } \
  1040.         else \
  1041.                 { \
  1042.                 errno=0; \
  1043.                 while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
  1044.                         { \
  1045.                         if( errno != EINTR) \
  1046.                                 { \
  1047.                                 YY_FATAL_ERROR( "input in flex scanner failed" ); \
  1048.                                 break; \
  1049.                                 } \
  1050.                         errno=0; \
  1051.                         clearerr(yyin); \
  1052.                         } \
  1053.                 }\
  1054. \
  1055.  
  1056. #endif
  1057.  
  1058. /* No semi-colon after return; correct usage is to write "yyterminate();" -
  1059.  * we don't want an extra ';' after the "return" because that will cause
  1060.  * some compilers to complain about unreachable statements.
  1061.  */
  1062. #ifndef yyterminate
  1063. #define yyterminate() return YY_NULL
  1064. #endif
  1065.  
  1066. /* Number of entries by which start-condition stack grows. */
  1067. #ifndef YY_START_STACK_INCR
  1068. #define YY_START_STACK_INCR 25
  1069. #endif
  1070.  
  1071. /* Report a fatal error. */
  1072. #ifndef YY_FATAL_ERROR
  1073. #define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner)
  1074. #endif
  1075.  
  1076. /* end tables serialization structures and prototypes */
  1077.  
  1078. /* Default declaration of generated scanner - a define so the user can
  1079.  * easily add parameters.
  1080.  */
  1081. #ifndef YY_DECL
  1082. #define YY_DECL_IS_OURS 1
  1083.  
  1084. extern int yylex \
  1085.                (YYSTYPE * yylval_param, YYLTYPE * yylloc_param , yyscan_t yyscanner);
  1086.  
  1087. #define YY_DECL int yylex \
  1088.                (YYSTYPE * yylval_param, YYLTYPE * yylloc_param , yyscan_t yyscanner)
  1089. #endif /* !YY_DECL */
  1090.  
  1091. /* Code executed at the beginning of each rule, after yytext and yyleng
  1092.  * have been set up.
  1093.  */
  1094. #ifndef YY_USER_ACTION
  1095. #define YY_USER_ACTION
  1096. #endif
  1097.  
  1098. /* Code executed at the end of each rule. */
  1099. #ifndef YY_BREAK
  1100. #define YY_BREAK /*LINTED*/break;
  1101. #endif
  1102.  
  1103. #define YY_RULE_SETUP \
  1104.         if ( yyleng > 0 ) \
  1105.                 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
  1106.                                 (yytext[yyleng - 1] == '\n'); \
  1107.         YY_USER_ACTION
  1108.  
  1109. /** The main scanner function which does all the work.
  1110.  */
  1111. YY_DECL
  1112. {
  1113.         yy_state_type yy_current_state;
  1114.         char *yy_cp, *yy_bp;
  1115.         int yy_act;
  1116.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1117.  
  1118.     yylval = yylval_param;
  1119.  
  1120.     yylloc = yylloc_param;
  1121.  
  1122.         if ( !yyg->yy_init )
  1123.                 {
  1124.                 yyg->yy_init = 1;
  1125.  
  1126. #ifdef YY_USER_INIT
  1127.                 YY_USER_INIT;
  1128. #endif
  1129.  
  1130.                 if ( ! yyg->yy_start )
  1131.                         yyg->yy_start = 1;      /* first start state */
  1132.  
  1133.                 if ( ! yyin )
  1134.                         yyin = stdin;
  1135.  
  1136.                 if ( ! yyout )
  1137.                         yyout = stdout;
  1138.  
  1139.                 if ( ! YY_CURRENT_BUFFER ) {
  1140.                         yyensure_buffer_stack (yyscanner);
  1141.                         YY_CURRENT_BUFFER_LVALUE =
  1142.                                 yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner);
  1143.                 }
  1144.  
  1145.                 yy_load_buffer_state( yyscanner );
  1146.                 }
  1147.  
  1148.         {
  1149. #line 94 "glcpp/glcpp-lex.l"
  1150.  
  1151. #line 96 "glcpp/glcpp-lex.l"
  1152.         /* Implicitly switch between SKIP and INITIAL (non-skipping);
  1153.          * don't switch if some other state was explicitly set.
  1154.          */
  1155.         glcpp_parser_t *parser = yyextra;
  1156.         if (YY_START == 0 || YY_START == SKIP) {
  1157.                 if (parser->lexing_if || parser->skip_stack == NULL || parser->skip_stack->type == SKIP_NO_SKIP) {
  1158.                         BEGIN 0;
  1159.                 } else {
  1160.                         BEGIN SKIP;
  1161.                 }
  1162.         }
  1163.  
  1164.         /* Single-line comments */
  1165. #line 1165 "<stdout>"
  1166.  
  1167.         while ( /*CONSTCOND*/1 )                /* loops until end-of-file is reached */
  1168.                 {
  1169.                 yy_cp = yyg->yy_c_buf_p;
  1170.  
  1171.                 /* Support of yytext. */
  1172.                 *yy_cp = yyg->yy_hold_char;
  1173.  
  1174.                 /* yy_bp points to the position in yy_ch_buf of the start of
  1175.                  * the current run.
  1176.                  */
  1177.                 yy_bp = yy_cp;
  1178.  
  1179.                 yy_current_state = yyg->yy_start;
  1180.                 yy_current_state += YY_AT_BOL();
  1181. yy_match:
  1182.                 do
  1183.                         {
  1184.                         YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
  1185.                         if ( yy_accept[yy_current_state] )
  1186.                                 {
  1187.                                 yyg->yy_last_accepting_state = yy_current_state;
  1188.                                 yyg->yy_last_accepting_cpos = yy_cp;
  1189.                                 }
  1190.                         while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  1191.                                 {
  1192.                                 yy_current_state = (int) yy_def[yy_current_state];
  1193.                                 if ( yy_current_state >= 150 )
  1194.                                         yy_c = yy_meta[yy_c];
  1195.                                 }
  1196.                         yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  1197.                         ++yy_cp;
  1198.                         }
  1199.                 while ( yy_current_state != 149 );
  1200.                 yy_cp = yyg->yy_last_accepting_cpos;
  1201.                 yy_current_state = yyg->yy_last_accepting_state;
  1202.  
  1203. yy_find_action:
  1204.                 yy_act = yy_accept[yy_current_state];
  1205.  
  1206.                 YY_DO_BEFORE_ACTION;
  1207.  
  1208. do_action:      /* This label is used only to access EOF actions. */
  1209.  
  1210.                 switch ( yy_act )
  1211.         { /* beginning of action switch */
  1212.                         case 0: /* must back up */
  1213.                         /* undo the effects of YY_DO_BEFORE_ACTION */
  1214.                         *yy_cp = yyg->yy_hold_char;
  1215.                         yy_cp = yyg->yy_last_accepting_cpos;
  1216.                         yy_current_state = yyg->yy_last_accepting_state;
  1217.                         goto yy_find_action;
  1218.  
  1219. case 1:
  1220. YY_RULE_SETUP
  1221. #line 109 "glcpp/glcpp-lex.l"
  1222. {
  1223. }
  1224.         YY_BREAK
  1225. /* Multi-line comments */
  1226. case 2:
  1227. YY_RULE_SETUP
  1228. #line 113 "glcpp/glcpp-lex.l"
  1229. { yy_push_state(COMMENT, yyscanner); }
  1230.         YY_BREAK
  1231. case 3:
  1232. YY_RULE_SETUP
  1233. #line 114 "glcpp/glcpp-lex.l"
  1234.  
  1235.         YY_BREAK
  1236. case 4:
  1237. /* rule 4 can match eol */
  1238. YY_RULE_SETUP
  1239. #line 115 "glcpp/glcpp-lex.l"
  1240. { yylineno++; yycolumn = 0; return NEWLINE; }
  1241.         YY_BREAK
  1242. case 5:
  1243. YY_RULE_SETUP
  1244. #line 116 "glcpp/glcpp-lex.l"
  1245.  
  1246.         YY_BREAK
  1247. case 6:
  1248. /* rule 6 can match eol */
  1249. YY_RULE_SETUP
  1250. #line 117 "glcpp/glcpp-lex.l"
  1251. { yylineno++; yycolumn = 0; return NEWLINE; }
  1252.         YY_BREAK
  1253. case 7:
  1254. YY_RULE_SETUP
  1255. #line 118 "glcpp/glcpp-lex.l"
  1256. {
  1257.         yy_pop_state(yyscanner);
  1258.         if (yyextra->space_tokens)
  1259.                 return SPACE;
  1260. }
  1261.         YY_BREAK
  1262. case 8:
  1263. YY_RULE_SETUP
  1264. #line 124 "glcpp/glcpp-lex.l"
  1265. {
  1266.         yylval->str = ralloc_strdup (yyextra, yytext);
  1267.         yyextra->space_tokens = 0;
  1268.         return HASH_VERSION;
  1269. }
  1270.         YY_BREAK
  1271. /* glcpp doesn't handle #extension, #version, or #pragma directives.
  1272.          * Simply pass them through to the main compiler's lexer/parser. */
  1273. case 9:
  1274. YY_RULE_SETUP
  1275. #line 132 "glcpp/glcpp-lex.l"
  1276. {
  1277.         yylval->str = ralloc_strdup (yyextra, yytext);
  1278.         yylineno++;
  1279.         yycolumn = 0;
  1280.         return OTHER;
  1281. }
  1282.         YY_BREAK
  1283. case 10:
  1284. YY_RULE_SETUP
  1285. #line 139 "glcpp/glcpp-lex.l"
  1286. {
  1287.         return HASH_LINE;
  1288. }
  1289.         YY_BREAK
  1290.  
  1291. case 11:
  1292. YY_RULE_SETUP
  1293. #line 144 "glcpp/glcpp-lex.l"
  1294. {
  1295.         yyextra->lexing_if = 1;
  1296.         yyextra->space_tokens = 0;
  1297.         return HASH_IFDEF;
  1298. }
  1299.         YY_BREAK
  1300. case 12:
  1301. YY_RULE_SETUP
  1302. #line 150 "glcpp/glcpp-lex.l"
  1303. {
  1304.         yyextra->lexing_if = 1;
  1305.         yyextra->space_tokens = 0;
  1306.         return HASH_IFNDEF;
  1307. }
  1308.         YY_BREAK
  1309. case 13:
  1310. /* rule 13 can match eol */
  1311. *yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
  1312. YY_LINENO_REWIND_TO(yy_cp - 1);
  1313. yyg->yy_c_buf_p = yy_cp -= 1;
  1314. YY_DO_BEFORE_ACTION; /* set up yytext again */
  1315. YY_RULE_SETUP
  1316. #line 156 "glcpp/glcpp-lex.l"
  1317. {
  1318.         yyextra->lexing_if = 1;
  1319.         yyextra->space_tokens = 0;
  1320.         return HASH_IF;
  1321. }
  1322.         YY_BREAK
  1323. case 14:
  1324. /* rule 14 can match eol */
  1325. *yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
  1326. YY_LINENO_REWIND_TO(yy_cp - 1);
  1327. yyg->yy_c_buf_p = yy_cp -= 1;
  1328. YY_DO_BEFORE_ACTION; /* set up yytext again */
  1329. YY_RULE_SETUP
  1330. #line 162 "glcpp/glcpp-lex.l"
  1331. {
  1332.         yyextra->lexing_if = 1;
  1333.         yyextra->space_tokens = 0;
  1334.         return HASH_ELIF;
  1335. }
  1336.         YY_BREAK
  1337. case 15:
  1338. YY_RULE_SETUP
  1339. #line 168 "glcpp/glcpp-lex.l"
  1340. {
  1341.         yyextra->space_tokens = 0;
  1342.         return HASH_ELSE;
  1343. }
  1344.         YY_BREAK
  1345. case 16:
  1346. YY_RULE_SETUP
  1347. #line 173 "glcpp/glcpp-lex.l"
  1348. {
  1349.         yyextra->space_tokens = 0;
  1350.         return HASH_ENDIF;
  1351. }
  1352.         YY_BREAK
  1353.  
  1354. case 17:
  1355. YY_RULE_SETUP
  1356. #line 179 "glcpp/glcpp-lex.l"
  1357. ;
  1358.         YY_BREAK
  1359. case 18:
  1360. YY_RULE_SETUP
  1361. #line 181 "glcpp/glcpp-lex.l"
  1362. {
  1363.         char *p;
  1364.         for (p = yytext; !isalpha(p[0]); p++); /* skip "  #   " */
  1365.         p += 5; /* skip "error" */
  1366.         glcpp_error(yylloc, yyextra, "#error%s", p);
  1367. }
  1368.         YY_BREAK
  1369. case 19:
  1370. YY_RULE_SETUP
  1371. #line 188 "glcpp/glcpp-lex.l"
  1372. {
  1373.         yyextra->space_tokens = 0;
  1374.         yy_push_state(DEFINE, yyscanner);
  1375.         return HASH_DEFINE;
  1376. }
  1377.         YY_BREAK
  1378. case 20:
  1379. *yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
  1380. yyg->yy_c_buf_p = yy_cp -= 1;
  1381. YY_DO_BEFORE_ACTION; /* set up yytext again */
  1382. YY_RULE_SETUP
  1383. #line 194 "glcpp/glcpp-lex.l"
  1384. {
  1385.         yy_pop_state(yyscanner);
  1386.         yylval->str = ralloc_strdup (yyextra, yytext);
  1387.         return FUNC_IDENTIFIER;
  1388. }
  1389.         YY_BREAK
  1390. case 21:
  1391. YY_RULE_SETUP
  1392. #line 200 "glcpp/glcpp-lex.l"
  1393. {
  1394.         yy_pop_state(yyscanner);
  1395.         yylval->str = ralloc_strdup (yyextra, yytext);
  1396.         return OBJ_IDENTIFIER;
  1397. }
  1398.         YY_BREAK
  1399. case 22:
  1400. YY_RULE_SETUP
  1401. #line 206 "glcpp/glcpp-lex.l"
  1402. {
  1403.         yyextra->space_tokens = 0;
  1404.         return HASH_UNDEF;
  1405. }
  1406.         YY_BREAK
  1407. case 23:
  1408. YY_RULE_SETUP
  1409. #line 211 "glcpp/glcpp-lex.l"
  1410. {
  1411.         yyextra->space_tokens = 0;
  1412.         return HASH;
  1413. }
  1414.         YY_BREAK
  1415. case 24:
  1416. YY_RULE_SETUP
  1417. #line 216 "glcpp/glcpp-lex.l"
  1418. {
  1419.         yylval->str = ralloc_strdup (yyextra, yytext);
  1420.         return INTEGER_STRING;
  1421. }
  1422.         YY_BREAK
  1423. case 25:
  1424. YY_RULE_SETUP
  1425. #line 221 "glcpp/glcpp-lex.l"
  1426. {
  1427.         yylval->str = ralloc_strdup (yyextra, yytext);
  1428.         return INTEGER_STRING;
  1429. }
  1430.         YY_BREAK
  1431. case 26:
  1432. YY_RULE_SETUP
  1433. #line 226 "glcpp/glcpp-lex.l"
  1434. {
  1435.         yylval->str = ralloc_strdup (yyextra, yytext);
  1436.         return INTEGER_STRING;
  1437. }
  1438.         YY_BREAK
  1439. case 27:
  1440. YY_RULE_SETUP
  1441. #line 231 "glcpp/glcpp-lex.l"
  1442. {
  1443.         return LEFT_SHIFT;
  1444. }
  1445.         YY_BREAK
  1446. case 28:
  1447. YY_RULE_SETUP
  1448. #line 235 "glcpp/glcpp-lex.l"
  1449. {
  1450.         return RIGHT_SHIFT;
  1451. }
  1452.         YY_BREAK
  1453. case 29:
  1454. YY_RULE_SETUP
  1455. #line 239 "glcpp/glcpp-lex.l"
  1456. {
  1457.         return LESS_OR_EQUAL;
  1458. }
  1459.         YY_BREAK
  1460. case 30:
  1461. YY_RULE_SETUP
  1462. #line 243 "glcpp/glcpp-lex.l"
  1463. {
  1464.         return GREATER_OR_EQUAL;
  1465. }
  1466.         YY_BREAK
  1467. case 31:
  1468. YY_RULE_SETUP
  1469. #line 247 "glcpp/glcpp-lex.l"
  1470. {
  1471.         return EQUAL;
  1472. }
  1473.         YY_BREAK
  1474. case 32:
  1475. YY_RULE_SETUP
  1476. #line 251 "glcpp/glcpp-lex.l"
  1477. {
  1478.         return NOT_EQUAL;
  1479. }
  1480.         YY_BREAK
  1481. case 33:
  1482. YY_RULE_SETUP
  1483. #line 255 "glcpp/glcpp-lex.l"
  1484. {
  1485.         return AND;
  1486. }
  1487.         YY_BREAK
  1488. case 34:
  1489. YY_RULE_SETUP
  1490. #line 259 "glcpp/glcpp-lex.l"
  1491. {
  1492.         return OR;
  1493. }
  1494.         YY_BREAK
  1495. case 35:
  1496. YY_RULE_SETUP
  1497. #line 263 "glcpp/glcpp-lex.l"
  1498. {
  1499.         if (parser->is_gles)
  1500.                 glcpp_error(yylloc, yyextra, "Token pasting (##) is illegal in GLES");
  1501.         return PASTE;
  1502. }
  1503.         YY_BREAK
  1504. case 36:
  1505. YY_RULE_SETUP
  1506. #line 269 "glcpp/glcpp-lex.l"
  1507. {
  1508.         return DEFINED;
  1509. }
  1510.         YY_BREAK
  1511. case 37:
  1512. YY_RULE_SETUP
  1513. #line 273 "glcpp/glcpp-lex.l"
  1514. {
  1515.         yylval->str = ralloc_strdup (yyextra, yytext);
  1516.         return IDENTIFIER;
  1517. }
  1518.         YY_BREAK
  1519. case 38:
  1520. YY_RULE_SETUP
  1521. #line 278 "glcpp/glcpp-lex.l"
  1522. {
  1523.         return yytext[0];
  1524. }
  1525.         YY_BREAK
  1526. case 39:
  1527. YY_RULE_SETUP
  1528. #line 282 "glcpp/glcpp-lex.l"
  1529. {
  1530.         yylval->str = ralloc_strdup (yyextra, yytext);
  1531.         return OTHER;
  1532. }
  1533.         YY_BREAK
  1534. case 40:
  1535. YY_RULE_SETUP
  1536. #line 287 "glcpp/glcpp-lex.l"
  1537. {
  1538.         if (yyextra->space_tokens) {
  1539.                 return SPACE;
  1540.         }
  1541. }
  1542.         YY_BREAK
  1543. case 41:
  1544. /* rule 41 can match eol */
  1545. YY_RULE_SETUP
  1546. #line 293 "glcpp/glcpp-lex.l"
  1547. {
  1548.         yyextra->lexing_if = 0;
  1549.         yylineno++;
  1550.         yycolumn = 0;
  1551.         return NEWLINE;
  1552. }
  1553.         YY_BREAK
  1554. /* Handle missing newline at EOF. */
  1555. case YY_STATE_EOF(INITIAL):
  1556. #line 301 "glcpp/glcpp-lex.l"
  1557. {
  1558.         BEGIN DONE; /* Don't keep matching this rule forever. */
  1559.         yyextra->lexing_if = 0;
  1560.         return NEWLINE;
  1561. }
  1562.         YY_BREAK
  1563. /* We don't actually use the UNREACHABLE start condition. We
  1564.         only have this action here so that we can pretend to call some
  1565.         generated functions, (to avoid "defined but not used"
  1566.         warnings. */
  1567. case 42:
  1568. YY_RULE_SETUP
  1569. #line 311 "glcpp/glcpp-lex.l"
  1570. {
  1571.         unput('.');
  1572.         yy_top_state(yyextra);
  1573. }
  1574.         YY_BREAK
  1575. case 43:
  1576. YY_RULE_SETUP
  1577. #line 316 "glcpp/glcpp-lex.l"
  1578. ECHO;
  1579.         YY_BREAK
  1580. #line 1580 "<stdout>"
  1581. case YY_STATE_EOF(DONE):
  1582. case YY_STATE_EOF(COMMENT):
  1583. case YY_STATE_EOF(UNREACHABLE):
  1584. case YY_STATE_EOF(SKIP):
  1585. case YY_STATE_EOF(DEFINE):
  1586.         yyterminate();
  1587.  
  1588.         case YY_END_OF_BUFFER:
  1589.                 {
  1590.                 /* Amount of text matched not including the EOB char. */
  1591.                 int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr) - 1;
  1592.  
  1593.                 /* Undo the effects of YY_DO_BEFORE_ACTION. */
  1594.                 *yy_cp = yyg->yy_hold_char;
  1595.                 YY_RESTORE_YY_MORE_OFFSET
  1596.  
  1597.                 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
  1598.                         {
  1599.                         /* We're scanning a new file or input source.  It's
  1600.                          * possible that this happened because the user
  1601.                          * just pointed yyin at a new source and called
  1602.                          * yylex().  If so, then we have to assure
  1603.                          * consistency between YY_CURRENT_BUFFER and our
  1604.                          * globals.  Here is the right place to do so, because
  1605.                          * this is the first action (other than possibly a
  1606.                          * back-up) that will match for the new input source.
  1607.                          */
  1608.                         yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  1609.                         YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
  1610.                         YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
  1611.                         }
  1612.  
  1613.                 /* Note that here we test for yy_c_buf_p "<=" to the position
  1614.                  * of the first EOB in the buffer, since yy_c_buf_p will
  1615.                  * already have been incremented past the NUL character
  1616.                  * (since all states make transitions on EOB to the
  1617.                  * end-of-buffer state).  Contrast this with the test
  1618.                  * in input().
  1619.                  */
  1620.                 if ( yyg->yy_c_buf_p <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
  1621.                         { /* This was really a NUL. */
  1622.                         yy_state_type yy_next_state;
  1623.  
  1624.                         yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text;
  1625.  
  1626.                         yy_current_state = yy_get_previous_state( yyscanner );
  1627.  
  1628.                         /* Okay, we're now positioned to make the NUL
  1629.                          * transition.  We couldn't have
  1630.                          * yy_get_previous_state() go ahead and do it
  1631.                          * for us because it doesn't know how to deal
  1632.                          * with the possibility of jamming (and we don't
  1633.                          * want to build jamming into it because then it
  1634.                          * will run more slowly).
  1635.                          */
  1636.  
  1637.                         yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner);
  1638.  
  1639.                         yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
  1640.  
  1641.                         if ( yy_next_state )
  1642.                                 {
  1643.                                 /* Consume the NUL. */
  1644.                                 yy_cp = ++yyg->yy_c_buf_p;
  1645.                                 yy_current_state = yy_next_state;
  1646.                                 goto yy_match;
  1647.                                 }
  1648.  
  1649.                         else
  1650.                                 {
  1651.                                 yy_cp = yyg->yy_last_accepting_cpos;
  1652.                                 yy_current_state = yyg->yy_last_accepting_state;
  1653.                                 goto yy_find_action;
  1654.                                 }
  1655.                         }
  1656.  
  1657.                 else switch ( yy_get_next_buffer( yyscanner ) )
  1658.                         {
  1659.                         case EOB_ACT_END_OF_FILE:
  1660.                                 {
  1661.                                 yyg->yy_did_buffer_switch_on_eof = 0;
  1662.  
  1663.                                 if ( yywrap( yyscanner ) )
  1664.                                         {
  1665.                                         /* Note: because we've taken care in
  1666.                                          * yy_get_next_buffer() to have set up
  1667.                                          * yytext, we can now set up
  1668.                                          * yy_c_buf_p so that if some total
  1669.                                          * hoser (like flex itself) wants to
  1670.                                          * call the scanner after we return the
  1671.                                          * YY_NULL, it'll still work - another
  1672.                                          * YY_NULL will get returned.
  1673.                                          */
  1674.                                         yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ;
  1675.  
  1676.                                         yy_act = YY_STATE_EOF(YY_START);
  1677.                                         goto do_action;
  1678.                                         }
  1679.  
  1680.                                 else
  1681.                                         {
  1682.                                         if ( ! yyg->yy_did_buffer_switch_on_eof )
  1683.                                                 YY_NEW_FILE;
  1684.                                         }
  1685.                                 break;
  1686.                                 }
  1687.  
  1688.                         case EOB_ACT_CONTINUE_SCAN:
  1689.                                 yyg->yy_c_buf_p =
  1690.                                         yyg->yytext_ptr + yy_amount_of_matched_text;
  1691.  
  1692.                                 yy_current_state = yy_get_previous_state( yyscanner );
  1693.  
  1694.                                 yy_cp = yyg->yy_c_buf_p;
  1695.                                 yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
  1696.                                 goto yy_match;
  1697.  
  1698.                         case EOB_ACT_LAST_MATCH:
  1699.                                 yyg->yy_c_buf_p =
  1700.                                 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars];
  1701.  
  1702.                                 yy_current_state = yy_get_previous_state( yyscanner );
  1703.  
  1704.                                 yy_cp = yyg->yy_c_buf_p;
  1705.                                 yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
  1706.                                 goto yy_find_action;
  1707.                         }
  1708.                 break;
  1709.                 }
  1710.  
  1711.         default:
  1712.                 YY_FATAL_ERROR(
  1713.                         "fatal flex scanner internal error--no action found" );
  1714.         } /* end of action switch */
  1715.                 } /* end of scanning one token */
  1716.         } /* end of user's declarations */
  1717. } /* end of yylex */
  1718.  
  1719. /* yy_get_next_buffer - try to read in a new buffer
  1720.  *
  1721.  * Returns a code representing an action:
  1722.  *      EOB_ACT_LAST_MATCH -
  1723.  *      EOB_ACT_CONTINUE_SCAN - continue scanning from current position
  1724.  *      EOB_ACT_END_OF_FILE - end of file
  1725.  */
  1726. static int yy_get_next_buffer (yyscan_t yyscanner)
  1727. {
  1728.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1729.         char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
  1730.         char *source = yyg->yytext_ptr;
  1731.         int number_to_move, i;
  1732.         int ret_val;
  1733.  
  1734.         if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] )
  1735.                 YY_FATAL_ERROR(
  1736.                 "fatal flex scanner internal error--end of buffer missed" );
  1737.  
  1738.         if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
  1739.                 { /* Don't try to fill the buffer, so this is an EOF. */
  1740.                 if ( yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1 )
  1741.                         {
  1742.                         /* We matched a single character, the EOB, so
  1743.                          * treat this as a final EOF.
  1744.                          */
  1745.                         return EOB_ACT_END_OF_FILE;
  1746.                         }
  1747.  
  1748.                 else
  1749.                         {
  1750.                         /* We matched some text prior to the EOB, first
  1751.                          * process it.
  1752.                          */
  1753.                         return EOB_ACT_LAST_MATCH;
  1754.                         }
  1755.                 }
  1756.  
  1757.         /* Try to read more data. */
  1758.  
  1759.         /* First move last chars to start of buffer. */
  1760.         number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr - 1);
  1761.  
  1762.         for ( i = 0; i < number_to_move; ++i )
  1763.                 *(dest++) = *(source++);
  1764.  
  1765.         if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
  1766.                 /* don't do the read, it's not guaranteed to return an EOF,
  1767.                  * just force an EOF
  1768.                  */
  1769.                 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars = 0;
  1770.  
  1771.         else
  1772.                 {
  1773.                         int num_to_read =
  1774.                         YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
  1775.  
  1776.                 while ( num_to_read <= 0 )
  1777.                         { /* Not enough room in the buffer - grow it. */
  1778.  
  1779.                         /* just a shorter name for the current buffer */
  1780.                         YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
  1781.  
  1782.                         int yy_c_buf_p_offset =
  1783.                                 (int) (yyg->yy_c_buf_p - b->yy_ch_buf);
  1784.  
  1785.                         if ( b->yy_is_our_buffer )
  1786.                                 {
  1787.                                 int new_size = b->yy_buf_size * 2;
  1788.  
  1789.                                 if ( new_size <= 0 )
  1790.                                         b->yy_buf_size += b->yy_buf_size / 8;
  1791.                                 else
  1792.                                         b->yy_buf_size *= 2;
  1793.  
  1794.                                 b->yy_ch_buf = (char *)
  1795.                                         /* Include room in for 2 EOB chars. */
  1796.                                         yyrealloc( (void *) b->yy_ch_buf,
  1797.                                                          (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
  1798.                                 }
  1799.                         else
  1800.                                 /* Can't grow it, we don't own it. */
  1801.                                 b->yy_ch_buf = NULL;
  1802.  
  1803.                         if ( ! b->yy_ch_buf )
  1804.                                 YY_FATAL_ERROR(
  1805.                                 "fatal error - scanner input buffer overflow" );
  1806.  
  1807.                         yyg->yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
  1808.  
  1809.                         num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
  1810.                                                 number_to_move - 1;
  1811.  
  1812.                         }
  1813.  
  1814.                 if ( num_to_read > YY_READ_BUF_SIZE )
  1815.                         num_to_read = YY_READ_BUF_SIZE;
  1816.  
  1817.                 /* Read in more data. */
  1818.                 YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
  1819.                         yyg->yy_n_chars, num_to_read );
  1820.  
  1821.                 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
  1822.                 }
  1823.  
  1824.         if ( yyg->yy_n_chars == 0 )
  1825.                 {
  1826.                 if ( number_to_move == YY_MORE_ADJ )
  1827.                         {
  1828.                         ret_val = EOB_ACT_END_OF_FILE;
  1829.                         yyrestart( yyin  , yyscanner);
  1830.                         }
  1831.  
  1832.                 else
  1833.                         {
  1834.                         ret_val = EOB_ACT_LAST_MATCH;
  1835.                         YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
  1836.                                 YY_BUFFER_EOF_PENDING;
  1837.                         }
  1838.                 }
  1839.  
  1840.         else
  1841.                 ret_val = EOB_ACT_CONTINUE_SCAN;
  1842.  
  1843.         if ((yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
  1844.                 /* Extend the array by 50%, plus the number we really need. */
  1845.                 int new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1);
  1846.                 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
  1847.                         (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size , yyscanner );
  1848.                 if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
  1849.                         YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
  1850.                 /* "- 2" to take care of EOB's */
  1851.                 YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
  1852.         }
  1853.  
  1854.         yyg->yy_n_chars += number_to_move;
  1855.         YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR;
  1856.         YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
  1857.  
  1858.         yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
  1859.  
  1860.         return ret_val;
  1861. }
  1862.  
  1863. /* yy_get_previous_state - get the state just before the EOB char was reached */
  1864.  
  1865.     static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
  1866. {
  1867.         yy_state_type yy_current_state;
  1868.         char *yy_cp;
  1869.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1870.  
  1871.         yy_current_state = yyg->yy_start;
  1872.         yy_current_state += YY_AT_BOL();
  1873.  
  1874.         for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
  1875.                 {
  1876.                 YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
  1877.                 if ( yy_accept[yy_current_state] )
  1878.                         {
  1879.                         yyg->yy_last_accepting_state = yy_current_state;
  1880.                         yyg->yy_last_accepting_cpos = yy_cp;
  1881.                         }
  1882.                 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  1883.                         {
  1884.                         yy_current_state = (int) yy_def[yy_current_state];
  1885.                         if ( yy_current_state >= 150 )
  1886.                                 yy_c = yy_meta[yy_c];
  1887.                         }
  1888.                 yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  1889.                 }
  1890.  
  1891.         return yy_current_state;
  1892. }
  1893.  
  1894. /* yy_try_NUL_trans - try to make a transition on the NUL character
  1895.  *
  1896.  * synopsis
  1897.  *      next_state = yy_try_NUL_trans( current_state );
  1898.  */
  1899.     static yy_state_type yy_try_NUL_trans  (yy_state_type yy_current_state , yyscan_t yyscanner)
  1900. {
  1901.         int yy_is_jam;
  1902.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */
  1903.         char *yy_cp = yyg->yy_c_buf_p;
  1904.  
  1905.         YY_CHAR yy_c = 1;
  1906.         if ( yy_accept[yy_current_state] )
  1907.                 {
  1908.                 yyg->yy_last_accepting_state = yy_current_state;
  1909.                 yyg->yy_last_accepting_cpos = yy_cp;
  1910.                 }
  1911.         while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  1912.                 {
  1913.                 yy_current_state = (int) yy_def[yy_current_state];
  1914.                 if ( yy_current_state >= 150 )
  1915.                         yy_c = yy_meta[yy_c];
  1916.                 }
  1917.         yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  1918.         yy_is_jam = (yy_current_state == 149);
  1919.  
  1920.         (void)yyg;
  1921.         return yy_is_jam ? 0 : yy_current_state;
  1922. }
  1923.  
  1924. #ifndef YY_NO_UNPUT
  1925.  
  1926.     static void yyunput (int c, char * yy_bp , yyscan_t yyscanner)
  1927. {
  1928.         char *yy_cp;
  1929.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1930.  
  1931.     yy_cp = yyg->yy_c_buf_p;
  1932.  
  1933.         /* undo effects of setting up yytext */
  1934.         *yy_cp = yyg->yy_hold_char;
  1935.  
  1936.         if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
  1937.                 { /* need to shift things up to make room */
  1938.                 /* +2 for EOB chars. */
  1939.                 int number_to_move = yyg->yy_n_chars + 2;
  1940.                 char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
  1941.                                         YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
  1942.                 char *source =
  1943.                                 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
  1944.  
  1945.                 while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
  1946.                         *--dest = *--source;
  1947.  
  1948.                 yy_cp += (int) (dest - source);
  1949.                 yy_bp += (int) (dest - source);
  1950.                 YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
  1951.                         yyg->yy_n_chars = (int) YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
  1952.  
  1953.                 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
  1954.                         YY_FATAL_ERROR( "flex scanner push-back overflow" );
  1955.                 }
  1956.  
  1957.         *--yy_cp = (char) c;
  1958.  
  1959.         yyg->yytext_ptr = yy_bp;
  1960.         yyg->yy_hold_char = *yy_cp;
  1961.         yyg->yy_c_buf_p = yy_cp;
  1962. }
  1963.  
  1964. #endif
  1965.  
  1966. #ifndef YY_NO_INPUT
  1967. #ifdef __cplusplus
  1968.     static int yyinput (yyscan_t yyscanner)
  1969. #else
  1970.     static int input  (yyscan_t yyscanner)
  1971. #endif
  1972.  
  1973. {
  1974.         int c;
  1975.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  1976.  
  1977.         *yyg->yy_c_buf_p = yyg->yy_hold_char;
  1978.  
  1979.         if ( *yyg->yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
  1980.                 {
  1981.                 /* yy_c_buf_p now points to the character we want to return.
  1982.                  * If this occurs *before* the EOB characters, then it's a
  1983.                  * valid NUL; if not, then we've hit the end of the buffer.
  1984.                  */
  1985.                 if ( yyg->yy_c_buf_p < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
  1986.                         /* This was really a NUL. */
  1987.                         *yyg->yy_c_buf_p = '\0';
  1988.  
  1989.                 else
  1990.                         { /* need more input */
  1991.                         int offset = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr);
  1992.                         ++yyg->yy_c_buf_p;
  1993.  
  1994.                         switch ( yy_get_next_buffer( yyscanner ) )
  1995.                                 {
  1996.                                 case EOB_ACT_LAST_MATCH:
  1997.                                         /* This happens because yy_g_n_b()
  1998.                                          * sees that we've accumulated a
  1999.                                          * token and flags that we need to
  2000.                                          * try matching the token before
  2001.                                          * proceeding.  But for input(),
  2002.                                          * there's no matching to consider.
  2003.                                          * So convert the EOB_ACT_LAST_MATCH
  2004.                                          * to EOB_ACT_END_OF_FILE.
  2005.                                          */
  2006.  
  2007.                                         /* Reset buffer status. */
  2008.                                         yyrestart( yyin , yyscanner);
  2009.  
  2010.                                         /*FALLTHROUGH*/
  2011.  
  2012.                                 case EOB_ACT_END_OF_FILE:
  2013.                                         {
  2014.                                         if ( yywrap( yyscanner ) )
  2015.                                                 return 0;
  2016.  
  2017.                                         if ( ! yyg->yy_did_buffer_switch_on_eof )
  2018.                                                 YY_NEW_FILE;
  2019. #ifdef __cplusplus
  2020.                                         return yyinput(yyscanner);
  2021. #else
  2022.                                         return input(yyscanner);
  2023. #endif
  2024.                                         }
  2025.  
  2026.                                 case EOB_ACT_CONTINUE_SCAN:
  2027.                                         yyg->yy_c_buf_p = yyg->yytext_ptr + offset;
  2028.                                         break;
  2029.                                 }
  2030.                         }
  2031.                 }
  2032.  
  2033.         c = *(unsigned char *) yyg->yy_c_buf_p; /* cast for 8-bit char's */
  2034.         *yyg->yy_c_buf_p = '\0';        /* preserve yytext */
  2035.         yyg->yy_hold_char = *++yyg->yy_c_buf_p;
  2036.  
  2037.         YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n');
  2038.  
  2039.         return c;
  2040. }
  2041. #endif  /* ifndef YY_NO_INPUT */
  2042.  
  2043. /** Immediately switch to a different input stream.
  2044.  * @param input_file A readable stream.
  2045.  * @param yyscanner The scanner object.
  2046.  * @note This function does not reset the start condition to @c INITIAL .
  2047.  */
  2048.     void yyrestart  (FILE * input_file , yyscan_t yyscanner)
  2049. {
  2050.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2051.  
  2052.         if ( ! YY_CURRENT_BUFFER ){
  2053.         yyensure_buffer_stack (yyscanner);
  2054.                 YY_CURRENT_BUFFER_LVALUE =
  2055.             yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner);
  2056.         }
  2057.  
  2058.         yy_init_buffer( YY_CURRENT_BUFFER, input_file , yyscanner);
  2059.         yy_load_buffer_state( yyscanner );
  2060. }
  2061.  
  2062. /** Switch to a different input buffer.
  2063.  * @param new_buffer The new input buffer.
  2064.  * @param yyscanner The scanner object.
  2065.  */
  2066.     void yy_switch_to_buffer  (YY_BUFFER_STATE  new_buffer , yyscan_t yyscanner)
  2067. {
  2068.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2069.  
  2070.         /* TODO. We should be able to replace this entire function body
  2071.          * with
  2072.          *              yypop_buffer_state();
  2073.          *              yypush_buffer_state(new_buffer);
  2074.      */
  2075.         yyensure_buffer_stack (yyscanner);
  2076.         if ( YY_CURRENT_BUFFER == new_buffer )
  2077.                 return;
  2078.  
  2079.         if ( YY_CURRENT_BUFFER )
  2080.                 {
  2081.                 /* Flush out information for old buffer. */
  2082.                 *yyg->yy_c_buf_p = yyg->yy_hold_char;
  2083.                 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
  2084.                 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
  2085.                 }
  2086.  
  2087.         YY_CURRENT_BUFFER_LVALUE = new_buffer;
  2088.         yy_load_buffer_state( yyscanner );
  2089.  
  2090.         /* We don't actually know whether we did this switch during
  2091.          * EOF (yywrap()) processing, but the only time this flag
  2092.          * is looked at is after yywrap() is called, so it's safe
  2093.          * to go ahead and always set it.
  2094.          */
  2095.         yyg->yy_did_buffer_switch_on_eof = 1;
  2096. }
  2097.  
  2098. static void yy_load_buffer_state  (yyscan_t yyscanner)
  2099. {
  2100.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2101.         yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  2102.         yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
  2103.         yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
  2104.         yyg->yy_hold_char = *yyg->yy_c_buf_p;
  2105. }
  2106.  
  2107. /** Allocate and initialize an input buffer state.
  2108.  * @param file A readable stream.
  2109.  * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
  2110.  * @param yyscanner The scanner object.
  2111.  * @return the allocated buffer state.
  2112.  */
  2113.     YY_BUFFER_STATE yy_create_buffer  (FILE * file, int  size , yyscan_t yyscanner)
  2114. {
  2115.         YY_BUFFER_STATE b;
  2116.    
  2117.         b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) , yyscanner );
  2118.         if ( ! b )
  2119.                 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  2120.  
  2121.         b->yy_buf_size = size;
  2122.  
  2123.         /* yy_ch_buf has to be 2 characters longer than the size given because
  2124.          * we need to put in 2 end-of-buffer characters.
  2125.          */
  2126.         b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
  2127.         if ( ! b->yy_ch_buf )
  2128.                 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  2129.  
  2130.         b->yy_is_our_buffer = 1;
  2131.  
  2132.         yy_init_buffer( b, file , yyscanner);
  2133.  
  2134.         return b;
  2135. }
  2136.  
  2137. /** Destroy the buffer.
  2138.  * @param b a buffer created with yy_create_buffer()
  2139.  * @param yyscanner The scanner object.
  2140.  */
  2141.     void yy_delete_buffer (YY_BUFFER_STATE  b , yyscan_t yyscanner)
  2142. {
  2143.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2144.  
  2145.         if ( ! b )
  2146.                 return;
  2147.  
  2148.         if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
  2149.                 YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
  2150.  
  2151.         if ( b->yy_is_our_buffer )
  2152.                 yyfree( (void *) b->yy_ch_buf , yyscanner );
  2153.  
  2154.         yyfree( (void *) b , yyscanner );
  2155. }
  2156.  
  2157. /* Initializes or reinitializes a buffer.
  2158.  * This function is sometimes called more than once on the same buffer,
  2159.  * such as during a yyrestart() or at EOF.
  2160.  */
  2161.     static void yy_init_buffer  (YY_BUFFER_STATE  b, FILE * file , yyscan_t yyscanner)
  2162.  
  2163. {
  2164.         int oerrno = errno;
  2165.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2166.  
  2167.         yy_flush_buffer( b , yyscanner);
  2168.  
  2169.         b->yy_input_file = file;
  2170.         b->yy_fill_buffer = 1;
  2171.  
  2172.     /* If b is the current buffer, then yy_init_buffer was _probably_
  2173.      * called from yyrestart() or through yy_get_next_buffer.
  2174.      * In that case, we don't want to reset the lineno or column.
  2175.      */
  2176.     if (b != YY_CURRENT_BUFFER){
  2177.         b->yy_bs_lineno = 1;
  2178.         b->yy_bs_column = 0;
  2179.     }
  2180.  
  2181.         b->yy_is_interactive = 0;
  2182.    
  2183.         errno = oerrno;
  2184. }
  2185.  
  2186. /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
  2187.  * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
  2188.  * @param yyscanner The scanner object.
  2189.  */
  2190.     void yy_flush_buffer (YY_BUFFER_STATE  b , yyscan_t yyscanner)
  2191. {
  2192.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2193.         if ( ! b )
  2194.                 return;
  2195.  
  2196.         b->yy_n_chars = 0;
  2197.  
  2198.         /* We always need two end-of-buffer characters.  The first causes
  2199.          * a transition to the end-of-buffer state.  The second causes
  2200.          * a jam in that state.
  2201.          */
  2202.         b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
  2203.         b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
  2204.  
  2205.         b->yy_buf_pos = &b->yy_ch_buf[0];
  2206.  
  2207.         b->yy_at_bol = 1;
  2208.         b->yy_buffer_status = YY_BUFFER_NEW;
  2209.  
  2210.         if ( b == YY_CURRENT_BUFFER )
  2211.                 yy_load_buffer_state( yyscanner );
  2212. }
  2213.  
  2214. /** Pushes the new state onto the stack. The new state becomes
  2215.  *  the current state. This function will allocate the stack
  2216.  *  if necessary.
  2217.  *  @param new_buffer The new state.
  2218.  *  @param yyscanner The scanner object.
  2219.  */
  2220. void yypush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
  2221. {
  2222.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2223.         if (new_buffer == NULL)
  2224.                 return;
  2225.  
  2226.         yyensure_buffer_stack(yyscanner);
  2227.  
  2228.         /* This block is copied from yy_switch_to_buffer. */
  2229.         if ( YY_CURRENT_BUFFER )
  2230.                 {
  2231.                 /* Flush out information for old buffer. */
  2232.                 *yyg->yy_c_buf_p = yyg->yy_hold_char;
  2233.                 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
  2234.                 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
  2235.                 }
  2236.  
  2237.         /* Only push if top exists. Otherwise, replace top. */
  2238.         if (YY_CURRENT_BUFFER)
  2239.                 yyg->yy_buffer_stack_top++;
  2240.         YY_CURRENT_BUFFER_LVALUE = new_buffer;
  2241.  
  2242.         /* copied from yy_switch_to_buffer. */
  2243.         yy_load_buffer_state( yyscanner );
  2244.         yyg->yy_did_buffer_switch_on_eof = 1;
  2245. }
  2246.  
  2247. /** Removes and deletes the top of the stack, if present.
  2248.  *  The next element becomes the new top.
  2249.  *  @param yyscanner The scanner object.
  2250.  */
  2251. void yypop_buffer_state (yyscan_t yyscanner)
  2252. {
  2253.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2254.         if (!YY_CURRENT_BUFFER)
  2255.                 return;
  2256.  
  2257.         yy_delete_buffer(YY_CURRENT_BUFFER , yyscanner);
  2258.         YY_CURRENT_BUFFER_LVALUE = NULL;
  2259.         if (yyg->yy_buffer_stack_top > 0)
  2260.                 --yyg->yy_buffer_stack_top;
  2261.  
  2262.         if (YY_CURRENT_BUFFER) {
  2263.                 yy_load_buffer_state( yyscanner );
  2264.                 yyg->yy_did_buffer_switch_on_eof = 1;
  2265.         }
  2266. }
  2267.  
  2268. /* Allocates the stack if it does not exist.
  2269.  *  Guarantees space for at least one push.
  2270.  */
  2271. static void yyensure_buffer_stack (yyscan_t yyscanner)
  2272. {
  2273.         yy_size_t num_to_alloc;
  2274.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2275.  
  2276.         if (!yyg->yy_buffer_stack) {
  2277.  
  2278.                 /* First allocation is just for 2 elements, since we don't know if this
  2279.                  * scanner will even need a stack. We use 2 instead of 1 to avoid an
  2280.                  * immediate realloc on the next call.
  2281.          */
  2282.       num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
  2283.                 yyg->yy_buffer_stack = (struct yy_buffer_state**)yyalloc
  2284.                                                                 (num_to_alloc * sizeof(struct yy_buffer_state*)
  2285.                                                                 , yyscanner);
  2286.                 if ( ! yyg->yy_buffer_stack )
  2287.                         YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
  2288.  
  2289.                 memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state*));
  2290.  
  2291.                 yyg->yy_buffer_stack_max = num_to_alloc;
  2292.                 yyg->yy_buffer_stack_top = 0;
  2293.                 return;
  2294.         }
  2295.  
  2296.         if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1){
  2297.  
  2298.                 /* Increase the buffer to prepare for a possible push. */
  2299.                 yy_size_t grow_size = 8 /* arbitrary grow size */;
  2300.  
  2301.                 num_to_alloc = yyg->yy_buffer_stack_max + grow_size;
  2302.                 yyg->yy_buffer_stack = (struct yy_buffer_state**)yyrealloc
  2303.                                                                 (yyg->yy_buffer_stack,
  2304.                                                                 num_to_alloc * sizeof(struct yy_buffer_state*)
  2305.                                                                 , yyscanner);
  2306.                 if ( ! yyg->yy_buffer_stack )
  2307.                         YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
  2308.  
  2309.                 /* zero only the new slots.*/
  2310.                 memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size * sizeof(struct yy_buffer_state*));
  2311.                 yyg->yy_buffer_stack_max = num_to_alloc;
  2312.         }
  2313. }
  2314.  
  2315. /** Setup the input buffer state to scan directly from a user-specified character buffer.
  2316.  * @param base the character buffer
  2317.  * @param size the size in bytes of the character buffer
  2318.  * @param yyscanner The scanner object.
  2319.  * @return the newly allocated buffer state object.
  2320.  */
  2321. YY_BUFFER_STATE yy_scan_buffer  (char * base, yy_size_t  size , yyscan_t yyscanner)
  2322. {
  2323.         YY_BUFFER_STATE b;
  2324.    
  2325.         if ( size < 2 ||
  2326.              base[size-2] != YY_END_OF_BUFFER_CHAR ||
  2327.              base[size-1] != YY_END_OF_BUFFER_CHAR )
  2328.                 /* They forgot to leave room for the EOB's. */
  2329.                 return NULL;
  2330.  
  2331.         b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) , yyscanner );
  2332.         if ( ! b )
  2333.                 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
  2334.  
  2335.         b->yy_buf_size = (int) (size - 2);      /* "- 2" to take care of EOB's */
  2336.         b->yy_buf_pos = b->yy_ch_buf = base;
  2337.         b->yy_is_our_buffer = 0;
  2338.         b->yy_input_file = NULL;
  2339.         b->yy_n_chars = b->yy_buf_size;
  2340.         b->yy_is_interactive = 0;
  2341.         b->yy_at_bol = 1;
  2342.         b->yy_fill_buffer = 0;
  2343.         b->yy_buffer_status = YY_BUFFER_NEW;
  2344.  
  2345.         yy_switch_to_buffer( b , yyscanner );
  2346.  
  2347.         return b;
  2348. }
  2349.  
  2350. /** Setup the input buffer state to scan a string. The next call to yylex() will
  2351.  * scan from a @e copy of @a str.
  2352.  * @param yystr a NUL-terminated string to scan
  2353.  * @param yyscanner The scanner object.
  2354.  * @return the newly allocated buffer state object.
  2355.  * @note If you want to scan bytes that may contain NUL values, then use
  2356.  *       yy_scan_bytes() instead.
  2357.  */
  2358. YY_BUFFER_STATE yy_scan_string (const char * yystr , yyscan_t yyscanner)
  2359. {
  2360.    
  2361.         return yy_scan_bytes( yystr, (int) strlen(yystr) , yyscanner);
  2362. }
  2363.  
  2364. /** Setup the input buffer state to scan the given bytes. The next call to yylex() will
  2365.  * scan from a @e copy of @a bytes.
  2366.  * @param yybytes the byte buffer to scan
  2367.  * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
  2368.  * @param yyscanner The scanner object.
  2369.  * @return the newly allocated buffer state object.
  2370.  */
  2371. YY_BUFFER_STATE yy_scan_bytes  (const char * yybytes, int  _yybytes_len , yyscan_t yyscanner)
  2372. {
  2373.         YY_BUFFER_STATE b;
  2374.         char *buf;
  2375.         yy_size_t n;
  2376.         int i;
  2377.    
  2378.         /* Get memory for full buffer, including space for trailing EOB's. */
  2379.         n = (yy_size_t) (_yybytes_len + 2);
  2380.         buf = (char *) yyalloc( n , yyscanner );
  2381.         if ( ! buf )
  2382.                 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
  2383.  
  2384.         for ( i = 0; i < _yybytes_len; ++i )
  2385.                 buf[i] = yybytes[i];
  2386.  
  2387.         buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
  2388.  
  2389.         b = yy_scan_buffer( buf, n , yyscanner);
  2390.         if ( ! b )
  2391.                 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
  2392.  
  2393.         /* It's okay to grow etc. this buffer, and we should throw it
  2394.          * away when we're done.
  2395.          */
  2396.         b->yy_is_our_buffer = 1;
  2397.  
  2398.         return b;
  2399. }
  2400.  
  2401.     static void yy_push_state (int  _new_state , yyscan_t yyscanner)
  2402. {
  2403.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2404.         if ( yyg->yy_start_stack_ptr >= yyg->yy_start_stack_depth )
  2405.                 {
  2406.                 yy_size_t new_size;
  2407.  
  2408.                 yyg->yy_start_stack_depth += YY_START_STACK_INCR;
  2409.                 new_size = (yy_size_t) yyg->yy_start_stack_depth * sizeof( int );
  2410.  
  2411.                 if ( ! yyg->yy_start_stack )
  2412.                         yyg->yy_start_stack = (int *) yyalloc( new_size , yyscanner );
  2413.  
  2414.                 else
  2415.                         yyg->yy_start_stack = (int *) yyrealloc(
  2416.                                         (void *) yyg->yy_start_stack, new_size , yyscanner );
  2417.  
  2418.                 if ( ! yyg->yy_start_stack )
  2419.                         YY_FATAL_ERROR( "out of memory expanding start-condition stack" );
  2420.                 }
  2421.  
  2422.         yyg->yy_start_stack[yyg->yy_start_stack_ptr++] = YY_START;
  2423.  
  2424.         BEGIN(_new_state);
  2425. }
  2426.  
  2427.     static void yy_pop_state  (yyscan_t yyscanner)
  2428. {
  2429.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2430.         if ( --yyg->yy_start_stack_ptr < 0 )
  2431.                 YY_FATAL_ERROR( "start-condition stack underflow" );
  2432.  
  2433.         BEGIN(yyg->yy_start_stack[yyg->yy_start_stack_ptr]);
  2434. }
  2435.  
  2436.     static int yy_top_state  (yyscan_t yyscanner)
  2437. {
  2438.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2439.         return yyg->yy_start_stack[yyg->yy_start_stack_ptr - 1];
  2440. }
  2441.  
  2442. #ifndef YY_EXIT_FAILURE
  2443. #define YY_EXIT_FAILURE 2
  2444. #endif
  2445.  
  2446. static void yynoreturn yy_fatal_error (const char* msg , yyscan_t yyscanner)
  2447. {
  2448.         struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2449.         (void)yyg;
  2450.         fprintf( stderr, "%s\n", msg );
  2451.         exit( YY_EXIT_FAILURE );
  2452. }
  2453.  
  2454. /* Redefine yyless() so it works in section 3 code. */
  2455.  
  2456. #undef yyless
  2457. #define yyless(n) \
  2458.         do \
  2459.                 { \
  2460.                 /* Undo effects of setting up yytext. */ \
  2461.         int yyless_macro_arg = (n); \
  2462.         YY_LESS_LINENO(yyless_macro_arg);\
  2463.                 yytext[yyleng] = yyg->yy_hold_char; \
  2464.                 yyg->yy_c_buf_p = yytext + yyless_macro_arg; \
  2465.                 yyg->yy_hold_char = *yyg->yy_c_buf_p; \
  2466.                 *yyg->yy_c_buf_p = '\0'; \
  2467.                 yyleng = yyless_macro_arg; \
  2468.                 } \
  2469.         while ( 0 )
  2470.  
  2471. /* Accessor  methods (get/set functions) to struct members. */
  2472.  
  2473. /** Get the user-defined data for this scanner.
  2474.  * @param yyscanner The scanner object.
  2475.  */
  2476. YY_EXTRA_TYPE yyget_extra  (yyscan_t yyscanner)
  2477. {
  2478.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2479.     return yyextra;
  2480. }
  2481.  
  2482. /** Get the current line number.
  2483.  * @param yyscanner The scanner object.
  2484.  */
  2485. int yyget_lineno  (yyscan_t yyscanner)
  2486. {
  2487.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2488.  
  2489.         if (! YY_CURRENT_BUFFER)
  2490.             return 0;
  2491.    
  2492.     return yylineno;
  2493. }
  2494.  
  2495. /** Get the current column number.
  2496.  * @param yyscanner The scanner object.
  2497.  */
  2498. int yyget_column  (yyscan_t yyscanner)
  2499. {
  2500.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2501.  
  2502.         if (! YY_CURRENT_BUFFER)
  2503.             return 0;
  2504.    
  2505.     return yycolumn;
  2506. }
  2507.  
  2508. /** Get the input stream.
  2509.  * @param yyscanner The scanner object.
  2510.  */
  2511. FILE *yyget_in  (yyscan_t yyscanner)
  2512. {
  2513.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2514.     return yyin;
  2515. }
  2516.  
  2517. /** Get the output stream.
  2518.  * @param yyscanner The scanner object.
  2519.  */
  2520. FILE *yyget_out  (yyscan_t yyscanner)
  2521. {
  2522.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2523.     return yyout;
  2524. }
  2525.  
  2526. /** Get the length of the current token.
  2527.  * @param yyscanner The scanner object.
  2528.  */
  2529. int yyget_leng  (yyscan_t yyscanner)
  2530. {
  2531.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2532.     return yyleng;
  2533. }
  2534.  
  2535. /** Get the current token.
  2536.  * @param yyscanner The scanner object.
  2537.  */
  2538.  
  2539. char *yyget_text  (yyscan_t yyscanner)
  2540. {
  2541.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2542.     return yytext;
  2543. }
  2544.  
  2545. /** Set the user-defined data. This data is never touched by the scanner.
  2546.  * @param user_defined The data to be associated with this scanner.
  2547.  * @param yyscanner The scanner object.
  2548.  */
  2549. void yyset_extra (YY_EXTRA_TYPE  user_defined , yyscan_t yyscanner)
  2550. {
  2551.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2552.     yyextra = user_defined ;
  2553. }
  2554.  
  2555. /** Set the current line number.
  2556.  * @param _line_number line number
  2557.  * @param yyscanner The scanner object.
  2558.  */
  2559. void yyset_lineno (int  _line_number , yyscan_t yyscanner)
  2560. {
  2561.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2562.  
  2563.         /* lineno is only valid if an input buffer exists. */
  2564.         if (! YY_CURRENT_BUFFER )
  2565.            YY_FATAL_ERROR( "yyset_lineno called with no buffer" );
  2566.    
  2567.     yylineno = _line_number;
  2568. }
  2569.  
  2570. /** Set the current column.
  2571.  * @param _column_no column number
  2572.  * @param yyscanner The scanner object.
  2573.  */
  2574. void yyset_column (int  _column_no , yyscan_t yyscanner)
  2575. {
  2576.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2577.  
  2578.         /* column is only valid if an input buffer exists. */
  2579.         if (! YY_CURRENT_BUFFER )
  2580.            YY_FATAL_ERROR( "yyset_column called with no buffer" );
  2581.    
  2582.     yycolumn = _column_no;
  2583. }
  2584.  
  2585. /** Set the input stream. This does not discard the current
  2586.  * input buffer.
  2587.  * @param _in_str A readable stream.
  2588.  * @param yyscanner The scanner object.
  2589.  * @see yy_switch_to_buffer
  2590.  */
  2591. void yyset_in (FILE *  _in_str , yyscan_t yyscanner)
  2592. {
  2593.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2594.     yyin = _in_str ;
  2595. }
  2596.  
  2597. void yyset_out (FILE *  _out_str , yyscan_t yyscanner)
  2598. {
  2599.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2600.     yyout = _out_str ;
  2601. }
  2602.  
  2603. int yyget_debug  (yyscan_t yyscanner)
  2604. {
  2605.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2606.     return yy_flex_debug;
  2607. }
  2608.  
  2609. void yyset_debug (int  _bdebug , yyscan_t yyscanner)
  2610. {
  2611.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2612.     yy_flex_debug = _bdebug ;
  2613. }
  2614.  
  2615. /* Accessor methods for yylval and yylloc */
  2616.  
  2617. YYSTYPE * yyget_lval  (yyscan_t yyscanner)
  2618. {
  2619.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2620.     return yylval;
  2621. }
  2622.  
  2623. void yyset_lval (YYSTYPE *  yylval_param , yyscan_t yyscanner)
  2624. {
  2625.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2626.     yylval = yylval_param;
  2627. }
  2628.  
  2629. YYLTYPE *yyget_lloc  (yyscan_t yyscanner)
  2630. {
  2631.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2632.     return yylloc;
  2633. }
  2634.    
  2635. void yyset_lloc (YYLTYPE *  yylloc_param , yyscan_t yyscanner)
  2636. {
  2637.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2638.     yylloc = yylloc_param;
  2639. }
  2640.    
  2641. /* User-visible API */
  2642.  
  2643. /* yylex_init is special because it creates the scanner itself, so it is
  2644.  * the ONLY reentrant function that doesn't take the scanner as the last argument.
  2645.  * That's why we explicitly handle the declaration, instead of using our macros.
  2646.  */
  2647. int yylex_init(yyscan_t* ptr_yy_globals)
  2648. {
  2649.     if (ptr_yy_globals == NULL){
  2650.         errno = EINVAL;
  2651.         return 1;
  2652.     }
  2653.  
  2654.     *ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), NULL );
  2655.  
  2656.     if (*ptr_yy_globals == NULL){
  2657.         errno = ENOMEM;
  2658.         return 1;
  2659.     }
  2660.  
  2661.     /* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for releases. */
  2662.     memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));
  2663.  
  2664.     return yy_init_globals ( *ptr_yy_globals );
  2665. }
  2666.  
  2667. /* yylex_init_extra has the same functionality as yylex_init, but follows the
  2668.  * convention of taking the scanner as the last argument. Note however, that
  2669.  * this is a *pointer* to a scanner, as it will be allocated by this call (and
  2670.  * is the reason, too, why this function also must handle its own declaration).
  2671.  * The user defined value in the first argument will be available to yyalloc in
  2672.  * the yyextra field.
  2673.  */
  2674. int yylex_init_extra( YY_EXTRA_TYPE yy_user_defined, yyscan_t* ptr_yy_globals )
  2675. {
  2676.     struct yyguts_t dummy_yyguts;
  2677.  
  2678.     yyset_extra (yy_user_defined, &dummy_yyguts);
  2679.  
  2680.     if (ptr_yy_globals == NULL){
  2681.         errno = EINVAL;
  2682.         return 1;
  2683.     }
  2684.  
  2685.     *ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), &dummy_yyguts );
  2686.  
  2687.     if (*ptr_yy_globals == NULL){
  2688.         errno = ENOMEM;
  2689.         return 1;
  2690.     }
  2691.  
  2692.     /* By setting to 0xAA, we expose bugs in
  2693.     yy_init_globals. Leave at 0x00 for releases. */
  2694.     memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));
  2695.  
  2696.     yyset_extra (yy_user_defined, *ptr_yy_globals);
  2697.  
  2698.     return yy_init_globals ( *ptr_yy_globals );
  2699. }
  2700.  
  2701. static int yy_init_globals (yyscan_t yyscanner)
  2702. {
  2703.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2704.     /* Initialization is the same as for the non-reentrant scanner.
  2705.      * This function is called from yylex_destroy(), so don't allocate here.
  2706.      */
  2707.  
  2708.     yyg->yy_buffer_stack = NULL;
  2709.     yyg->yy_buffer_stack_top = 0;
  2710.     yyg->yy_buffer_stack_max = 0;
  2711.     yyg->yy_c_buf_p = NULL;
  2712.     yyg->yy_init = 0;
  2713.     yyg->yy_start = 0;
  2714.  
  2715.     yyg->yy_start_stack_ptr = 0;
  2716.     yyg->yy_start_stack_depth = 0;
  2717.     yyg->yy_start_stack =  NULL;
  2718.  
  2719. /* Defined in main.c */
  2720. #ifdef YY_STDINIT
  2721.     yyin = stdin;
  2722.     yyout = stdout;
  2723. #else
  2724.     yyin = NULL;
  2725.     yyout = NULL;
  2726. #endif
  2727.  
  2728.     /* For future reference: Set errno on error, since we are called by
  2729.      * yylex_init()
  2730.      */
  2731.     return 0;
  2732. }
  2733.  
  2734. /* yylex_destroy is for both reentrant and non-reentrant scanners. */
  2735. int yylex_destroy  (yyscan_t yyscanner)
  2736. {
  2737.     struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2738.  
  2739.     /* Pop the buffer stack, destroying each element. */
  2740.         while(YY_CURRENT_BUFFER){
  2741.                 yy_delete_buffer( YY_CURRENT_BUFFER , yyscanner );
  2742.                 YY_CURRENT_BUFFER_LVALUE = NULL;
  2743.                 yypop_buffer_state(yyscanner);
  2744.         }
  2745.  
  2746.         /* Destroy the stack itself. */
  2747.         yyfree(yyg->yy_buffer_stack , yyscanner);
  2748.         yyg->yy_buffer_stack = NULL;
  2749.  
  2750.     /* Destroy the start condition stack. */
  2751.         yyfree( yyg->yy_start_stack , yyscanner );
  2752.         yyg->yy_start_stack = NULL;
  2753.  
  2754.     /* Reset the globals. This is important in a non-reentrant scanner so the next time
  2755.      * yylex() is called, initialization will occur. */
  2756.     yy_init_globals( yyscanner);
  2757.  
  2758.     /* Destroy the main struct (reentrant only). */
  2759.     yyfree ( yyscanner , yyscanner );
  2760.     yyscanner = NULL;
  2761.     return 0;
  2762. }
  2763.  
  2764. /*
  2765.  * Internal utility routines.
  2766.  */
  2767.  
  2768. #ifndef yytext_ptr
  2769. static void yy_flex_strncpy (char* s1, const char * s2, int n , yyscan_t yyscanner)
  2770. {
  2771.         struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2772.         (void)yyg;
  2773.  
  2774.         int i;
  2775.         for ( i = 0; i < n; ++i )
  2776.                 s1[i] = s2[i];
  2777. }
  2778. #endif
  2779.  
  2780. #ifdef YY_NEED_STRLEN
  2781. static int yy_flex_strlen (const char * s , yyscan_t yyscanner)
  2782. {
  2783.         int n;
  2784.         for ( n = 0; s[n]; ++n )
  2785.                 ;
  2786.  
  2787.         return n;
  2788. }
  2789. #endif
  2790.  
  2791. void *yyalloc (yy_size_t  size , yyscan_t yyscanner)
  2792. {
  2793.         struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2794.         (void)yyg;
  2795.         return malloc(size);
  2796. }
  2797.  
  2798. void *yyrealloc  (void * ptr, yy_size_t  size , yyscan_t yyscanner)
  2799. {
  2800.         struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2801.         (void)yyg;
  2802.  
  2803.         /* The cast to (char *) in the following accommodates both
  2804.          * implementations that use char* generic pointers, and those
  2805.          * that use void* generic pointers.  It works with the latter
  2806.          * because both ANSI C and C++ allow castless assignment from
  2807.          * any pointer type to void*, and deal with argument conversions
  2808.          * as though doing an assignment.
  2809.          */
  2810.         return realloc(ptr, size);
  2811. }
  2812.  
  2813. void yyfree (void * ptr , yyscan_t yyscanner)
  2814. {
  2815.         struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
  2816.         (void)yyg;
  2817.         free( (char *) ptr );   /* see yyrealloc() for (char *) cast */
  2818. }
  2819.  
  2820. #define YYTABLES_NAME "yytables"
  2821.  
  2822. #line 316 "glcpp/glcpp-lex.l"
  2823.  
  2824.  
  2825. void
  2826. glcpp_lex_set_source_string(glcpp_parser_t *parser, const char *shader)
  2827. {
  2828.         yy_scan_string(shader, parser->scanner);
  2829. }
  2830.  
  2831.