Debian Codegraph @

src/lib/lex.yy.c

raw symbols SCIP
1
2 #line 3 "lex.yy.c"
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 5
11 #define YY_FLEX_SUBMINOR_VERSION 39
12 #if YY_FLEX_SUBMINOR_VERSION > 0
13 #define FLEX_BETA
14 #endif
15
16 /* First, we deal with platform-specific or compiler-specific issues. */
17
18 /* begin standard C headers. */
19 #include <stdio.h>
20 #include <string.h>
21 #include <errno.h>
22 #include <stdlib.h>
23
24 // Linux and Mac
25 #if defined (__unix__) || (defined (__APPLE__) && defined (__MACH__))
26
27 #include <unistd.h>
28
29 #endif
30
31
32 /* end standard C headers. */
33
34 /* flex integer type definitions */
35
36 #ifndef FLEXINT_H
37 #define FLEXINT_H
38
39 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
40
41 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
42
43 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
44 * if you want the limit (max/min) macros for int types.
45 */
46 #ifndef __STDC_LIMIT_MACROS
47 #define __STDC_LIMIT_MACROS 1
48 #endif
49
50 #include <inttypes.h>
51 typedef int8_t flex_int8_t;
52 typedef uint8_t flex_uint8_t;
53 typedef int16_t flex_int16_t;
54 typedef uint16_t flex_uint16_t;
55 typedef int32_t flex_int32_t;
56 typedef uint32_t flex_uint32_t;
57 #else
58 typedef signed char flex_int8_t;
59 typedef short int flex_int16_t;
60 typedef int flex_int32_t;
61 typedef unsigned char flex_uint8_t;
62 typedef unsigned short int flex_uint16_t;
63 typedef unsigned int flex_uint32_t;
64
65 /* Limits of integral types. */
66 #ifndef INT8_MIN
67 #define INT8_MIN (-128)
68 #endif
69 #ifndef INT16_MIN
70 #define INT16_MIN (-32767-1)
71 #endif
72 #ifndef INT32_MIN
73 #define INT32_MIN (-2147483647-1)
74 #endif
75 #ifndef INT8_MAX
76 #define INT8_MAX (127)
77 #endif
78 #ifndef INT16_MAX
79 #define INT16_MAX (32767)
80 #endif
81 #ifndef INT32_MAX
82 #define INT32_MAX (2147483647)
83 #endif
84 #ifndef UINT8_MAX
85 #define UINT8_MAX (255U)
86 #endif
87 #ifndef UINT16_MAX
88 #define UINT16_MAX (65535U)
89 #endif
90 #ifndef UINT32_MAX
91 #define UINT32_MAX (4294967295U)
92 #endif
93
94 #endif /* ! C99 */
95
96 #endif /* ! FLEXINT_H */
97
98 #ifdef __cplusplus
99
100 /* The "const" storage-class-modifier is valid. */
101 #define YY_USE_CONST
102
103 #else /* ! __cplusplus */
104
105 /* C99 requires __STDC__ to be defined as 1. */
106 #if defined (__STDC__)
107
108 #define YY_USE_CONST
109
110 #endif /* defined (__STDC__) */
111 #endif /* ! __cplusplus */
112
113 #ifdef YY_USE_CONST
114 #define yyconst const
115 #else
116 #define yyconst
117 #endif
118
119 /* Returned upon end-of-file. */
120 #define YY_NULL 0
121
122 /* Promotes a possibly negative, possibly signed char to an unsigned
123 * integer for use as an array index. If the signed char is negative,
124 * we want to instead treat it as an 8-bit unsigned char, hence the
125 * double cast.
126 */
127 #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
128
129 /* Enter a start condition. This macro really ought to take a parameter,
130 * but we do it the disgusting crufty way forced on us by the ()-less
131 * definition of BEGIN.
132 */
133 #define BEGIN (yy_start) = 1 + 2 *
134
135 /* Translate the current start state into a value that can be later handed
136 * to BEGIN to return to the state. The YYSTATE alias is for lex
137 * compatibility.
138 */
139 #define YY_START (((yy_start) - 1) / 2)
140 #define YYSTATE YY_START
141
142 /* Action number for EOF rule of a given start state. */
143 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
144
145 /* Special action meaning "start processing a new file". */
146 #define YY_NEW_FILE yyrestart(yyin )
147
148 #define YY_END_OF_BUFFER_CHAR 0
149
150 /* Size of default input buffer. */
151 #ifndef YY_BUF_SIZE
152 #ifdef __ia64__
153 /* On IA-64, the buffer size is 16k, not 8k.
154 * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
155 * Ditto for the __ia64__ case accordingly.
156 */
157 #define YY_BUF_SIZE 32768
158 #else
159 #define YY_BUF_SIZE 16384
160 #endif /* __ia64__ */
161 #endif
162
163 /* The state buf must be large enough to hold one state per character in the main buffer.
164 */
165 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
166
167 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
168 #define YY_TYPEDEF_YY_BUFFER_STATE
169 typedef struct yy_buffer_state *YY_BUFFER_STATE;
170 #endif
171
172 #ifndef YY_TYPEDEF_YY_SIZE_T
173 #define YY_TYPEDEF_YY_SIZE_T
174 typedef size_t yy_size_t;
175 #endif
176
177 extern yy_size_t yyleng;
178
179 extern FILE *yyin, *yyout;
180
181 #define EOB_ACT_CONTINUE_SCAN 0
182 #define EOB_ACT_END_OF_FILE 1
183 #define EOB_ACT_LAST_MATCH 2
184
185 /* Note: We specifically omit the test for yy_rule_can_match_eol because it requires
186 * access to the local variable yy_act. Since yyless() is a macro, it would break
187 * existing scanners that call yyless() from OUTSIDE yylex.
188 * One obvious solution it to make yy_act a global. I tried that, and saw
189 * a 5% performance hit in a non-yylineno scanner, because yy_act is
190 * normally declared as a register variable-- so it is not worth it.
191 */
192 #define YY_LESS_LINENO(n) \
193 do { \
194 int yyl;\
195 for ( yyl = n; yyl < yyleng; ++yyl )\
196 if ( yytext[yyl] == '\n' )\
197 --yylineno;\
198 }while(0)
199 #define YY_LINENO_REWIND_TO(dst) \
200 do {\
201 const char *p;\
202 for ( p = yy_cp-1; p >= (dst); --p)\
203 if ( *p == '\n' )\
204 --yylineno;\
205 }while(0)
206
207 /* Return all but the first "n" matched characters back to the input stream. */
208 #define yyless(n) \
209 do \
210 { \
211 /* Undo effects of setting up yytext. */ \
212 int yyless_macro_arg = (n); \
213 YY_LESS_LINENO(yyless_macro_arg);\
214 *yy_cp = (yy_hold_char); \
215 YY_RESTORE_YY_MORE_OFFSET \
216 (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
217 YY_DO_BEFORE_ACTION; /* set up yytext again */ \
218 } \
219 while ( 0 )
220
221 #define unput(c) yyunput( c, (yytext_ptr) )
222
223 #ifndef YY_STRUCT_YY_BUFFER_STATE
224 #define YY_STRUCT_YY_BUFFER_STATE
225 struct yy_buffer_state
226 {
227 FILE *yy_input_file;
228
229 char *yy_ch_buf; /* input buffer */
230 char *yy_buf_pos; /* current position in input buffer */
231
232 /* Size of input buffer in bytes, not including room for EOB
233 * characters.
234 */
235 yy_size_t yy_buf_size;
236
237 /* Number of characters read into yy_ch_buf, not including EOB
238 * characters.
239 */
240 yy_size_t yy_n_chars;
241
242 /* Whether we "own" the buffer - i.e., we know we created it,
243 * and can realloc() it to grow it, and should free() it to
244 * delete it.
245 */
246 int yy_is_our_buffer;
247
248 /* Whether this is an "interactive" input source; if so, and
249 * if we're using stdio for input, then we want to use getc()
250 * instead of fread(), to make sure we stop fetching input after
251 * each newline.
252 */
253 int yy_is_interactive;
254
255 /* Whether we're considered to be at the beginning of a line.
256 * If so, '^' rules will be active on the next match, otherwise
257 * not.
258 */
259 int yy_at_bol;
260
261 int yy_bs_lineno; /**< The line count. */
262 int yy_bs_column; /**< The column count. */
263
264 /* Whether to try to fill the input buffer when we reach the
265 * end of it.
266 */
267 int yy_fill_buffer;
268
269 int yy_buffer_status;
270
271 #define YY_BUFFER_NEW 0
272 #define YY_BUFFER_NORMAL 1
273 /* When an EOF's been seen but there's still some text to process
274 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
275 * shouldn't try reading from the input source any more. We might
276 * still have a bunch of tokens to match, though, because of
277 * possible backing-up.
278 *
279 * When we actually see the EOF, we change the status to "new"
280 * (via yyrestart()), so that the user can continue scanning by
281 * just pointing yyin at a new input file.
282 */
283 #define YY_BUFFER_EOF_PENDING 2
284
285 };
286 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
287
288 /* Stack of input buffers. */
289 static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
290 static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
291 static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
292
293 /* We provide macros for accessing buffer states in case in the
294 * future we want to put the buffer states in a more general
295 * "scanner state".
296 *
297 * Returns the top of the stack, or NULL.
298 */
299 #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
300 ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
301 : NULL)
302
303 /* Same as previous macro, but useful when we know that the buffer stack is not
304 * NULL or when we need an lvalue. For internal use only.
305 */
306 #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
307
308 /* yy_hold_char holds the character lost when yytext is formed. */
309 static char yy_hold_char;
310 static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */
311 yy_size_t yyleng;
312
313 /* Points to current character in buffer. */
314 static char *yy_c_buf_p = (char *) 0;
315 static int yy_init = 0; /* whether we need to initialize */
316 static int yy_start = 0; /* start state number */
317
318 /* Flag which is used to allow yywrap()'s to do buffer switches
319 * instead of setting up a fresh yyin. A bit of a hack ...
320 */
321 static int yy_did_buffer_switch_on_eof;
322
323 void yyrestart (FILE *input_file );
324 void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer );
325 YY_BUFFER_STATE yy_create_buffer (FILE *file,int size );
326 void yy_delete_buffer (YY_BUFFER_STATE b );
327 void yy_flush_buffer (YY_BUFFER_STATE b );
328 void yypush_buffer_state (YY_BUFFER_STATE new_buffer );
329 void yypop_buffer_state (void );
330
331 static void yyensure_buffer_stack (void );
332 static void yy_load_buffer_state (void );
333 static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file );
334
335 #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER )
336
337 YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size );
338 YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str );
339 YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len );
340
341 void *yyalloc (yy_size_t );
342 void *yyrealloc (void *,yy_size_t );
343 void yyfree (void * );
344
345 #define yy_new_buffer yy_create_buffer
346
347 #define yy_set_interactive(is_interactive) \
348 { \
349 if ( ! YY_CURRENT_BUFFER ){ \
350 yyensure_buffer_stack (); \
351 YY_CURRENT_BUFFER_LVALUE = \
352 yy_create_buffer(yyin,YY_BUF_SIZE ); \
353 } \
354 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
355 }
356
357 #define yy_set_bol(at_bol) \
358 { \
359 if ( ! YY_CURRENT_BUFFER ){\
360 yyensure_buffer_stack (); \
361 YY_CURRENT_BUFFER_LVALUE = \
362 yy_create_buffer(yyin,YY_BUF_SIZE ); \
363 } \
364 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
365 }
366
367 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
368
369 /* Begin user sect3 */
370
371 #define yywrap() 1
372 #define YY_SKIP_YYWRAP
373
374 typedef unsigned char YY_CHAR;
375
376 FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
377
378 typedef int yy_state_type;
379
380 extern int yylineno;
381
382 int yylineno = 1;
383
384 extern char *yytext;
385 #define yytext_ptr yytext
386
387 static yy_state_type yy_get_previous_state (void );
388 static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
389 static int yy_get_next_buffer (void );
390 static void yy_fatal_error (yyconst char msg[] );
391
392 /* Done after the current pattern has been matched and before the
393 * corresponding action - sets up yytext.
394 */
395 #define YY_DO_BEFORE_ACTION \
396 (yytext_ptr) = yy_bp; \
397 yyleng = (size_t) (yy_cp - yy_bp); \
398 (yy_hold_char) = *yy_cp; \
399 *yy_cp = '\0'; \
400 (yy_c_buf_p) = yy_cp;
401
402 #define YY_NUM_RULES 20
403 #define YY_END_OF_BUFFER 21
404 /* This struct is not used in this scanner,
405 but its presence is necessary. */
406 struct yy_trans_info
407 {
408 flex_int32_t yy_verify;
409 flex_int32_t yy_nxt;
410 };
411 static yyconst flex_int16_t yy_accept[72] =
412 { 0,
413 8, 8, 0, 0, 21, 14, 8, 18, 19, 19,
414 9, 19, 19, 14, 14, 14, 14, 19, 17, 20,
415 20, 13, 14, 8, 0, 0, 0, 10, 0, 10,
416 0, 16, 9, 0, 15, 14, 14, 14, 14, 14,
417 7, 0, 12, 12, 10, 0, 0, 11, 11, 14,
418 14, 14, 14, 14, 12, 11, 14, 14, 14, 14,
419 14, 14, 14, 1, 5, 3, 6, 14, 4, 2,
420 0
421 } ;
422
423 static yyconst flex_int32_t yy_ec[256] =
424 { 0,
425 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
426 1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
427 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
428 1, 2, 5, 6, 7, 8, 5, 5, 9, 5,
429 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
430 5, 5, 5, 5, 5, 5, 5, 5, 10, 5,
431 5, 5, 5, 5, 11, 12, 5, 13, 14, 5,
432 15, 5, 5, 5, 5, 16, 5, 5, 17, 18,
433 5, 5, 19, 20, 5, 21, 5, 5, 5, 5,
434 8, 5, 8, 5, 22, 5, 11, 12, 5, 13,
435
436 14, 5, 15, 5, 5, 5, 5, 16, 5, 5,
437 17, 18, 5, 5, 19, 20, 5, 21, 5, 5,
438 5, 5, 5, 5, 5, 5, 1, 1, 1, 1,
439 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
440 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
441 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
442 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
443 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
444 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
445 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
446
447 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
448 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
449 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
450 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
451 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
452 1, 1, 1, 1, 1
453 } ;
454
455 static yyconst flex_int32_t yy_meta[24] =
456 { 0,
457 1, 2, 3, 3, 4, 4, 4, 4, 4, 4,
458 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
459 4, 4, 1
460 } ;
461
462 static yyconst flex_int16_t yy_base[84] =
463 { 0,
464 0, 0, 21, 23, 128, 0, 32, 117, 27, 120,
465 25, 129, 116, 113, 107, 105, 21, 0, 129, 39,
466 129, 129, 0, 0, 111, 35, 43, 129, 45, 110,
467 113, 112, 47, 108, 107, 95, 97, 96, 91, 94,
468 0, 49, 51, 53, 100, 55, 57, 59, 61, 98,
469 96, 89, 92, 87, 63, 65, 82, 92, 80, 79,
470 78, 0, 83, 0, 0, 0, 0, 76, 0, 0,
471 129, 69, 82, 73, 76, 80, 83, 75, 86, 90,
472 93, 40, 36
473 } ;
474
475 static yyconst flex_int16_t yy_def[84] =
476 { 0,
477 71, 1, 72, 72, 71, 73, 71, 74, 74, 75,
478 76, 71, 77, 73, 73, 73, 73, 78, 71, 79,
479 71, 71, 73, 7, 74, 74, 80, 71, 81, 74,
480 75, 75, 76, 77, 77, 73, 73, 73, 73, 73,
481 78, 79, 71, 71, 74, 80, 81, 71, 71, 73,
482 73, 73, 73, 73, 71, 71, 73, 73, 73, 73,
483 73, 82, 73, 73, 83, 73, 82, 73, 83, 73,
484 0, 71, 71, 71, 71, 71, 71, 71, 71, 71,
485 71, 71, 71
486 } ;
487
488 static yyconst flex_int16_t yy_nxt[153] =
489 { 0,
490 6, 7, 8, 9, 6, 10, 11, 12, 13, 6,
491 6, 6, 14, 6, 15, 16, 6, 6, 17, 6,
492 6, 18, 19, 21, 21, 21, 21, 25, 26, 30,
493 22, 39, 22, 24, 25, 26, 71, 45, 27, 69,
494 40, 43, 44, 67, 71, 25, 26, 48, 49, 25,
495 26, 43, 44, 43, 44, 55, 44, 25, 26, 48,
496 49, 48, 49, 56, 49, 43, 44, 48, 49, 20,
497 20, 20, 20, 28, 28, 28, 28, 31, 41, 31,
498 33, 33, 33, 33, 34, 23, 34, 42, 42, 42,
499 46, 46, 46, 46, 47, 47, 47, 70, 68, 66,
500
501 65, 64, 63, 62, 61, 60, 59, 58, 57, 71,
502 54, 53, 52, 51, 50, 35, 35, 32, 32, 29,
503 71, 38, 37, 36, 35, 32, 29, 71, 5, 71,
504 71, 71, 71, 71, 71, 71, 71, 71, 71, 71,
505 71, 71, 71, 71, 71, 71, 71, 71, 71, 71,
506 71, 71
507 } ;
508
509 static yyconst flex_int16_t yy_chk[153] =
510 { 0,
511 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
512 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
513 1, 1, 1, 3, 3, 4, 4, 11, 11, 9,
514 3, 17, 4, 7, 7, 7, 9, 26, 7, 83,
515 17, 20, 20, 82, 26, 27, 27, 29, 29, 33,
516 33, 42, 42, 43, 43, 44, 44, 46, 46, 47,
517 47, 48, 48, 49, 49, 55, 55, 56, 56, 72,
518 72, 72, 72, 74, 74, 74, 74, 75, 78, 75,
519 76, 76, 76, 76, 77, 73, 77, 79, 79, 79,
520 80, 80, 80, 80, 81, 81, 81, 68, 63, 61,
521
522 60, 59, 58, 57, 54, 53, 52, 51, 50, 45,
523 40, 39, 38, 37, 36, 35, 34, 32, 31, 30,
524 25, 16, 15, 14, 13, 10, 8, 5, 71, 71,
525 71, 71, 71, 71, 71, 71, 71, 71, 71, 71,
526 71, 71, 71, 71, 71, 71, 71, 71, 71, 71,
527 71, 71
528 } ;
529
530 /* Table of booleans, true if rule could match eol. */
531 static yyconst flex_int32_t yy_rule_can_match_eol[21] =
532 { 0,
533 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0,
534 0, };
535
536 static yy_state_type yy_last_accepting_state;
537 static char *yy_last_accepting_cpos;
538
539 extern int yy_flex_debug;
540 int yy_flex_debug = 0;
541
542 /* The intent behind this definition is that it'll catch
543 * any uses of REJECT which flex missed.
544 */
545 #define REJECT reject_used_but_not_detected
546 #define yymore() yymore_used_but_not_detected
547 #define YY_MORE_ADJ 0
548 #define YY_RESTORE_YY_MORE_OFFSET
549 char *yytext;
550 #line 1 "star.l"
551 /*******************************************************************************
552 This code borrows some patterns from star.l,
553 which was written and designed by
554 Andrew Gene HALL of I.N. Services Pty. Ltd., Scarborough WA, Australia,
555 for the University of Western Australia, Crawley WA, Australia.
556
557 Present code by JRH to work with PyCIFRW v 3.1
558 Match for EOL at EOF contributed by Boris Dusek
559 *******************************************************************************/
560 /* Lex Definitions for a STAR File */
561 #line 13 "star.l"
562
563 /* Global Definitions */
564 #include <ctype.h>
565 #include <stdio.h>
566
567 #include "star_scanner.h"
568
569 #define YY_DECL int star_scanner()
570
571 /* redefine YY_INPUT to come from our global string */
572 #define YY_INPUT(buf,result,max_size)\
573 {\
574 if(string_pos == in_string_len) result = YY_NULL;\
575 if(string_pos + max_size <= in_string_len) {\
576 strncpy(buf,input_string+string_pos,max_size);\
577 string_pos +=max_size;\
578 result =max_size;\
579 } else {\
580 strncpy(buf,input_string+string_pos,in_string_len - string_pos);\
581 result = in_string_len - string_pos;\
582 string_pos = in_string_len;\
583 }\
584 }
585
586 /* These have been modified from starbase, as they allow all sorts of
587 forbidden characters */
588
589 /* Lex Rules fo a STAR File */
590 #line 583 "lex.yy.c"
591
592 #define INITIAL 0
593 #define Alltext 1
594
595 #ifndef YY_EXTRA_TYPE
596 #define YY_EXTRA_TYPE void *
597 #endif
598
599 static int yy_init_globals (void );
600
601 /* Accessor methods to globals.
602 These are made visible to non-reentrant scanners for convenience. */
603
604 int yylex_destroy (void );
605
606 int yyget_debug (void );
607
608 void yyset_debug (int debug_flag );
609
610 YY_EXTRA_TYPE yyget_extra (void );
611
612 void yyset_extra (YY_EXTRA_TYPE user_defined );
613
614 FILE *yyget_in (void );
615
616 void yyset_in (FILE * in_str );
617
618 FILE *yyget_out (void );
619
620 void yyset_out (FILE * out_str );
621
622 yy_size_t yyget_leng (void );
623
624 char *yyget_text (void );
625
626 int yyget_lineno (void );
627
628 void yyset_lineno (int line_number );
629
630 /* Macros after this point can all be overridden by user definitions in
631 * section 1.
632 */
633
634 #ifndef YY_SKIP_YYWRAP
635 #ifdef __cplusplus
636 extern "C" int yywrap (void );
637 #else
638 extern int yywrap (void );
639 #endif
640 #endif
641
642 static void yyunput (int c,char *buf_ptr );
643
644 #ifndef yytext_ptr
645 static void yy_flex_strncpy (char *,yyconst char *,int );
646 #endif
647
648 #ifdef YY_NEED_STRLEN
649 static int yy_flex_strlen (yyconst char * );
650 #endif
651
652 #ifndef YY_NO_INPUT
653
654 #ifdef __cplusplus
655 static int yyinput (void );
656 #else
657 static int input (void );
658 #endif
659
660 #endif
661
662 /* Amount of stuff to slurp up with each read. */
663 #ifndef YY_READ_BUF_SIZE
664 #ifdef __ia64__
665 /* On IA-64, the buffer size is 16k, not 8k */
666 #define YY_READ_BUF_SIZE 16384
667 #else
668 #define YY_READ_BUF_SIZE 8192
669 #endif /* __ia64__ */
670 #endif
671
672 /* Copy whatever the last rule matched to the standard output. */
673 #ifndef ECHO
674 /* This used to be an fputs(), but since the string might contain NUL's,
675 * we now use fwrite().
676 */
677 #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
678 #endif
679
680 /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
681 * is returned in "result".
682 */
683 #ifndef YY_INPUT
684 #define YY_INPUT(buf,result,max_size) \
685 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
686 { \
687 int c = '*'; \
688 size_t n; \
689 for ( n = 0; n < max_size && \
690 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
691 buf[n] = (char) c; \
692 if ( c == '\n' ) \
693 buf[n++] = (char) c; \
694 if ( c == EOF && ferror( yyin ) ) \
695 YY_FATAL_ERROR( "input in flex scanner failed" ); \
696 result = n; \
697 } \
698 else \
699 { \
700 errno=0; \
701 while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
702 { \
703 if( errno != EINTR) \
704 { \
705 YY_FATAL_ERROR( "input in flex scanner failed" ); \
706 break; \
707 } \
708 errno=0; \
709 clearerr(yyin); \
710 } \
711 }\
712 \
713
714 #endif
715
716 /* No semi-colon after return; correct usage is to write "yyterminate();" -
717 * we don't want an extra ';' after the "return" because that will cause
718 * some compilers to complain about unreachable statements.
719 */
720 #ifndef yyterminate
721 #define yyterminate() return YY_NULL
722 #endif
723
724 /* Number of entries by which start-condition stack grows. */
725 #ifndef YY_START_STACK_INCR
726 #define YY_START_STACK_INCR 25
727 #endif
728
729 /* Report a fatal error. */
730 #ifndef YY_FATAL_ERROR
731 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
732 #endif
733
734 /* end tables serialization structures and prototypes */
735
736 /* Default declaration of generated scanner - a define so the user can
737 * easily add parameters.
738 */
739 #ifndef YY_DECL
740 #define YY_DECL_IS_OURS 1
741
742 extern int yylex (void);
743
744 #define YY_DECL int yylex (void)
745 #endif /* !YY_DECL */
746
747 /* Code executed at the beginning of each rule, after yytext and yyleng
748 * have been set up.
749 */
750 #ifndef YY_USER_ACTION
751 #define YY_USER_ACTION
752 #endif
753
754 /* Code executed at the end of each rule. */
755 #ifndef YY_BREAK
756 #define YY_BREAK break;
757 #endif
758
759 #define YY_RULE_SETUP \
760 YY_USER_ACTION
761
762 /** The main scanner function which does all the work.
763 */
764 YY_DECL
765 {
766 register yy_state_type yy_current_state;
767 register char *yy_cp, *yy_bp;
768 register int yy_act;
769
770 if ( !(yy_init) )
771 {
772 (yy_init) = 1;
773
774 #ifdef YY_USER_INIT
775 YY_USER_INIT;
776 #endif
777
778 if ( ! (yy_start) )
779 (yy_start) = 1; /* first start state */
780
781 if ( ! yyin )
782 yyin = stdin;
783
784 if ( ! yyout )
785 yyout = stdout;
786
787 if ( ! YY_CURRENT_BUFFER ) {
788 yyensure_buffer_stack ();
789 YY_CURRENT_BUFFER_LVALUE =
790 yy_create_buffer(yyin,YY_BUF_SIZE );
791 }
792
793 yy_load_buffer_state( );
794 }
795
796 {
797 #line 78 "star.l"
798
799 #line 792 "lex.yy.c"
800
801 while ( 1 ) /* loops until end-of-file is reached */
802 {
803 yy_cp = (yy_c_buf_p);
804
805 /* Support of yytext. */
806 *yy_cp = (yy_hold_char);
807
808 /* yy_bp points to the position in yy_ch_buf of the start of
809 * the current run.
810 */
811 yy_bp = yy_cp;
812
813 yy_current_state = (yy_start);
814 yy_match:
815 do
816 {
817 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
818 if ( yy_accept[yy_current_state] )
819 {
820 (yy_last_accepting_state) = yy_current_state;
821 (yy_last_accepting_cpos) = yy_cp;
822 }
823 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
824 {
825 yy_current_state = (int) yy_def[yy_current_state];
826 if ( yy_current_state >= 72 )
827 yy_c = yy_meta[(unsigned int) yy_c];
828 }
829 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
830 ++yy_cp;
831 }
832 while ( yy_base[yy_current_state] != 129 );
833
834 yy_find_action:
835 yy_act = yy_accept[yy_current_state];
836 if ( yy_act == 0 )
837 { /* have to back up */
838 yy_cp = (yy_last_accepting_cpos);
839 yy_current_state = (yy_last_accepting_state);
840 yy_act = yy_accept[yy_current_state];
841 }
842
843 YY_DO_BEFORE_ACTION;
844
845 if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] )
846 {
847 yy_size_t yyl;
848 for ( yyl = 0; yyl < yyleng; ++yyl )
849 if ( yytext[yyl] == '\n' )
850
851 yylineno++;
852 ;
853 }
854
855 do_action: /* This label is used only to access EOF actions. */
856
857 switch ( yy_act )
858 { /* beginning of action switch */
859 case 0: /* must back up */
860 /* undo the effects of YY_DO_BEFORE_ACTION */
861 *yy_cp = (yy_hold_char);
862 yy_cp = (yy_last_accepting_cpos);
863 yy_current_state = (yy_last_accepting_state);
864 goto yy_find_action;
865
866 case 1:
867 YY_RULE_SETUP
868 #line 79 "star.l"
869 {return(DLBLOCK);}
870 YY_BREAK
871 case 2:
872 YY_RULE_SETUP
873 #line 80 "star.l"
874 {return(DGLOBAL);}
875 YY_BREAK
876 case 3:
877 YY_RULE_SETUP
878 #line 81 "star.l"
879 {return(DSTOP);}
880 YY_BREAK
881 case 4:
882 YY_RULE_SETUP
883 #line 82 "star.l"
884 {return(DSAVE_HEADING);}
885 YY_BREAK
886 case 5:
887 YY_RULE_SETUP
888 #line 83 "star.l"
889 {return(DSAVE_END);}
890 YY_BREAK
891 case 6:
892 YY_RULE_SETUP
893 #line 84 "star.l"
894 {return(DDATA_HEADING);}
895 YY_BREAK
896 case 7:
897 YY_RULE_SETUP
898 #line 85 "star.l"
899 {return(DDATA_NAME);}
900 YY_BREAK
901 case 8:
902 YY_RULE_SETUP
903 #line 86 "star.l"
904 {/* do nothing */}
905 YY_BREAK
906 case 9:
907 YY_RULE_SETUP
908 #line 87 "star.l"
909 {/* do nothing */}
910 YY_BREAK
911 case 10:
912 /* rule 10 can match eol */
913 *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
914 YY_LINENO_REWIND_TO(yy_cp - 1);
915 (yy_c_buf_p) = yy_cp -= 1;
916 YY_DO_BEFORE_ACTION; /* set up yytext again */
917 YY_RULE_SETUP
918 #line 88 "star.l"
919 {/* do nothing */}
920 YY_BREAK
921 case 11:
922 /* rule 11 can match eol */
923 YY_RULE_SETUP
924 #line 90 "star.l"
925 {BEGIN(Alltext);return(DSTART_SC_LINE);}
926 YY_BREAK
927 case 12:
928 /* rule 12 can match eol */
929 YY_RULE_SETUP
930 #line 91 "star.l"
931 {return(DSC_LINE_OF_TEXT);}
932 YY_BREAK
933 case 13:
934 YY_RULE_SETUP
935 #line 92 "star.l"
936 {BEGIN(INITIAL);
937 return(DEND_SC_LINE);}
938 YY_BREAK
939 case 14:
940 YY_RULE_SETUP
941 #line 95 "star.l"
942 {return(DDATA_VALUE_1);}
943 YY_BREAK
944 case 15:
945 YY_RULE_SETUP
946 #line 97 "star.l"
947 {/* this code borrowed from star.l in
948 starbase. We can't write a rule in
949 flex to accept a quote if the following
950 character is not blank, and accepting
951 the following non-blank may swallow the
952 closing quote! */
953
954 char *p;
955 p = yytext;
956 /* step over first quote */
957 p++;
958 /* scan to "?
959 * (? == null) or (? == space) => end of string, stop
960 */
961 while ( p = strchr( p, '\''))
962 if (isspace( *(++p))) {
963 /* (? == space) => push back rest of the input,
964 * S_Q_T_S */
965 /* this is to avoid side effects in the macro */
966 int i = yyleng - strlen(p);
967 yyless( i );
968 }
969 return(DDATA_VALUE_1);
970 }
971 YY_BREAK
972 case 16:
973 YY_RULE_SETUP
974 #line 122 "star.l"
975 {/* this code borrowed from star.l in
976 starbase. We can't write a rule in
977 flex to accept a quote only if the following
978 character is not blank, and writing a
979 quote-nonblank rule may swallow the
980 closing quote. */
981
982 char *p;
983 p = yytext;
984 /* step over first quote */
985 p++;
986 /* scan to '?
987 * (? == null) or (? == space) => end of string, stop
988 */
989 while ( p = strchr( p, '\"'))
990 if (isspace( *(++p))) {
991 /* (? == space) => push back rest of the input,
992 * S_Q_T_S */
993 /* this is to avoid side effects in the macro */
994 int i = yyleng - strlen(p);
995 yyless( i );
996 }
997 return(DDATA_VALUE_1);
998 }
999 YY_BREAK
1000 case 17:
1001 YY_RULE_SETUP
1002 #line 147 "star.l"
1003 {YY_FLUSH_BUFFER; return(DEND);}
1004 YY_BREAK
1005 case 18:
1006 /* rule 18 can match eol */
1007 YY_RULE_SETUP
1008 #line 148 "star.l"
1009 {/*printf("Stray carriage return...\n");*/}
1010 YY_BREAK
1011 case 19:
1012 YY_RULE_SETUP
1013 #line 149 "star.l"
1014 {
1015 /* printf("Unexpected Character\n");*/
1016 /* printf("<%d>\n",yytext[0]);*/
1017 YY_FLUSH_BUFFER;
1018 return(DERROR);
1019 }
1020 YY_BREAK
1021 case 20:
1022 YY_RULE_SETUP
1023 #line 155 "star.l"
1024 ECHO;
1025 YY_BREAK
1026 #line 1019 "lex.yy.c"
1027 case YY_STATE_EOF(INITIAL):
1028 case YY_STATE_EOF(Alltext):
1029 yyterminate();
1030
1031 case YY_END_OF_BUFFER:
1032 {
1033 /* Amount of text matched not including the EOB char. */
1034 int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
1035
1036 /* Undo the effects of YY_DO_BEFORE_ACTION. */
1037 *yy_cp = (yy_hold_char);
1038 YY_RESTORE_YY_MORE_OFFSET
1039
1040 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
1041 {
1042 /* We're scanning a new file or input source. It's
1043 * possible that this happened because the user
1044 * just pointed yyin at a new source and called
1045 * yylex(). If so, then we have to assure
1046 * consistency between YY_CURRENT_BUFFER and our
1047 * globals. Here is the right place to do so, because
1048 * this is the first action (other than possibly a
1049 * back-up) that will match for the new input source.
1050 */
1051 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1052 YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
1053 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
1054 }
1055
1056 /* Note that here we test for yy_c_buf_p "<=" to the position
1057 * of the first EOB in the buffer, since yy_c_buf_p will
1058 * already have been incremented past the NUL character
1059 * (since all states make transitions on EOB to the
1060 * end-of-buffer state). Contrast this with the test
1061 * in input().
1062 */
1063 if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
1064 { /* This was really a NUL. */
1065 yy_state_type yy_next_state;
1066
1067 (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
1068
1069 yy_current_state = yy_get_previous_state( );
1070
1071 /* Okay, we're now positioned to make the NUL
1072 * transition. We couldn't have
1073 * yy_get_previous_state() go ahead and do it
1074 * for us because it doesn't know how to deal
1075 * with the possibility of jamming (and we don't
1076 * want to build jamming into it because then it
1077 * will run more slowly).
1078 */
1079
1080 yy_next_state = yy_try_NUL_trans( yy_current_state );
1081
1082 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
1083
1084 if ( yy_next_state )
1085 {
1086 /* Consume the NUL. */
1087 yy_cp = ++(yy_c_buf_p);
1088 yy_current_state = yy_next_state;
1089 goto yy_match;
1090 }
1091
1092 else
1093 {
1094 yy_cp = (yy_c_buf_p);
1095 goto yy_find_action;
1096 }
1097 }
1098
1099 else switch ( yy_get_next_buffer( ) )
1100 {
1101 case EOB_ACT_END_OF_FILE:
1102 {
1103 (yy_did_buffer_switch_on_eof) = 0;
1104
1105 if ( yywrap( ) )
1106 {
1107 /* Note: because we've taken care in
1108 * yy_get_next_buffer() to have set up
1109 * yytext, we can now set up
1110 * yy_c_buf_p so that if some total
1111 * hoser (like flex itself) wants to
1112 * call the scanner after we return the
1113 * YY_NULL, it'll still work - another
1114 * YY_NULL will get returned.
1115 */
1116 (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
1117
1118 yy_act = YY_STATE_EOF(YY_START);
1119 goto do_action;
1120 }
1121
1122 else
1123 {
1124 if ( ! (yy_did_buffer_switch_on_eof) )
1125 YY_NEW_FILE;
1126 }
1127 break;
1128 }
1129
1130 case EOB_ACT_CONTINUE_SCAN:
1131 (yy_c_buf_p) =
1132 (yytext_ptr) + yy_amount_of_matched_text;
1133
1134 yy_current_state = yy_get_previous_state( );
1135
1136 yy_cp = (yy_c_buf_p);
1137 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
1138 goto yy_match;
1139
1140 case EOB_ACT_LAST_MATCH:
1141 (yy_c_buf_p) =
1142 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
1143
1144 yy_current_state = yy_get_previous_state( );
1145
1146 yy_cp = (yy_c_buf_p);
1147 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
1148 goto yy_find_action;
1149 }
1150 break;
1151 }
1152
1153 default:
1154 YY_FATAL_ERROR(
1155 "fatal flex scanner internal error--no action found" );
1156 } /* end of action switch */
1157 } /* end of scanning one token */
1158 } /* end of user's declarations */
1159 } /* end of yylex */
1160
1161 /* yy_get_next_buffer - try to read in a new buffer
1162 *
1163 * Returns a code representing an action:
1164 * EOB_ACT_LAST_MATCH -
1165 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
1166 * EOB_ACT_END_OF_FILE - end of file
1167 */
1168 static int yy_get_next_buffer (void)
1169 {
1170 register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
1171 register char *source = (yytext_ptr);
1172 register int number_to_move, i;
1173 int ret_val;
1174
1175 if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
1176 YY_FATAL_ERROR(
1177 "fatal flex scanner internal error--end of buffer missed" );
1178
1179 if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
1180 { /* Don't try to fill the buffer, so this is an EOF. */
1181 if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
1182 {
1183 /* We matched a single character, the EOB, so
1184 * treat this as a final EOF.
1185 */
1186 return EOB_ACT_END_OF_FILE;
1187 }
1188
1189 else
1190 {
1191 /* We matched some text prior to the EOB, first
1192 * process it.
1193 */
1194 return EOB_ACT_LAST_MATCH;
1195 }
1196 }
1197
1198 /* Try to read more data. */
1199
1200 /* First move last chars to start of buffer. */
1201 number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
1202
1203 for ( i = 0; i < number_to_move; ++i )
1204 *(dest++) = *(source++);
1205
1206 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1207 /* don't do the read, it's not guaranteed to return an EOF,
1208 * just force an EOF
1209 */
1210 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
1211
1212 else
1213 {
1214 yy_size_t num_to_read =
1215 YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
1216
1217 while ( num_to_read <= 0 )
1218 { /* Not enough room in the buffer - grow it. */
1219
1220 /* just a shorter name for the current buffer */
1221 YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
1222
1223 int yy_c_buf_p_offset =
1224 (int) ((yy_c_buf_p) - b->yy_ch_buf);
1225
1226 if ( b->yy_is_our_buffer )
1227 {
1228 yy_size_t new_size = b->yy_buf_size * 2;
1229
1230 if ( new_size <= 0 )
1231 b->yy_buf_size += b->yy_buf_size / 8;
1232 else
1233 b->yy_buf_size *= 2;
1234
1235 b->yy_ch_buf = (char *)
1236 /* Include room in for 2 EOB chars. */
1237 yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 );
1238 }
1239 else
1240 /* Can't grow it, we don't own it. */
1241 b->yy_ch_buf = 0;
1242
1243 if ( ! b->yy_ch_buf )
1244 YY_FATAL_ERROR(
1245 "fatal error - scanner input buffer overflow" );
1246
1247 (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
1248
1249 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
1250 number_to_move - 1;
1251
1252 }
1253
1254 if ( num_to_read > YY_READ_BUF_SIZE )
1255 num_to_read = YY_READ_BUF_SIZE;
1256
1257 /* Read in more data. */
1258 YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
1259 (yy_n_chars), num_to_read );
1260
1261 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1262 }
1263
1264 if ( (yy_n_chars) == 0 )
1265 {
1266 if ( number_to_move == YY_MORE_ADJ )
1267 {
1268 ret_val = EOB_ACT_END_OF_FILE;
1269 yyrestart(yyin );
1270 }
1271
1272 else
1273 {
1274 ret_val = EOB_ACT_LAST_MATCH;
1275 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
1276 YY_BUFFER_EOF_PENDING;
1277 }
1278 }
1279
1280 else
1281 ret_val = EOB_ACT_CONTINUE_SCAN;
1282
1283 if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
1284 /* Extend the array by 50%, plus the number we really need. */
1285 yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
1286 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
1287 if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1288 YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
1289 }
1290
1291 (yy_n_chars) += number_to_move;
1292 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
1293 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
1294
1295 (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
1296
1297 return ret_val;
1298 }
1299
1300 /* yy_get_previous_state - get the state just before the EOB char was reached */
1301
1302 static yy_state_type yy_get_previous_state (void)
1303 {
1304 register yy_state_type yy_current_state;
1305 register char *yy_cp;
1306
1307 yy_current_state = (yy_start);
1308
1309 for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
1310 {
1311 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 23);
1312 if ( yy_accept[yy_current_state] )
1313 {
1314 (yy_last_accepting_state) = yy_current_state;
1315 (yy_last_accepting_cpos) = yy_cp;
1316 }
1317 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1318 {
1319 yy_current_state = (int) yy_def[yy_current_state];
1320 if ( yy_current_state >= 72 )
1321 yy_c = yy_meta[(unsigned int) yy_c];
1322 }
1323 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1324 }
1325
1326 return yy_current_state;
1327 }
1328
1329 /* yy_try_NUL_trans - try to make a transition on the NUL character
1330 *
1331 * synopsis
1332 * next_state = yy_try_NUL_trans( current_state );
1333 */
1334 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
1335 {
1336 register int yy_is_jam;
1337 register char *yy_cp = (yy_c_buf_p);
1338
1339 register YY_CHAR yy_c = 23;
1340 if ( yy_accept[yy_current_state] )
1341 {
1342 (yy_last_accepting_state) = yy_current_state;
1343 (yy_last_accepting_cpos) = yy_cp;
1344 }
1345 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1346 {
1347 yy_current_state = (int) yy_def[yy_current_state];
1348 if ( yy_current_state >= 72 )
1349 yy_c = yy_meta[(unsigned int) yy_c];
1350 }
1351 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1352 yy_is_jam = (yy_current_state == 71);
1353
1354 return yy_is_jam ? 0 : yy_current_state;
1355 }
1356
1357 static void yyunput (int c, register char * yy_bp )
1358 {
1359 register char *yy_cp;
1360
1361 yy_cp = (yy_c_buf_p);
1362
1363 /* undo effects of setting up yytext */
1364 *yy_cp = (yy_hold_char);
1365
1366 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
1367 { /* need to shift things up to make room */
1368 /* +2 for EOB chars. */
1369 register yy_size_t number_to_move = (yy_n_chars) + 2;
1370 register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
1371 YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
1372 register char *source =
1373 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
1374
1375 while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1376 *--dest = *--source;
1377
1378 yy_cp += (int) (dest - source);
1379 yy_bp += (int) (dest - source);
1380 YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
1381 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
1382
1383 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
1384 YY_FATAL_ERROR( "flex scanner push-back overflow" );
1385 }
1386
1387 *--yy_cp = (char) c;
1388
1389 if ( c == '\n' ){
1390 --yylineno;
1391 }
1392
1393 (yytext_ptr) = yy_bp;
1394 (yy_hold_char) = *yy_cp;
1395 (yy_c_buf_p) = yy_cp;
1396 }
1397
1398 #ifndef YY_NO_INPUT
1399 #ifdef __cplusplus
1400 static int yyinput (void)
1401 #else
1402 static int input (void)
1403 #endif
1404
1405 {
1406 int c;
1407
1408 *(yy_c_buf_p) = (yy_hold_char);
1409
1410 if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
1411 {
1412 /* yy_c_buf_p now points to the character we want to return.
1413 * If this occurs *before* the EOB characters, then it's a
1414 * valid NUL; if not, then we've hit the end of the buffer.
1415 */
1416 if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
1417 /* This was really a NUL. */
1418 *(yy_c_buf_p) = '\0';
1419
1420 else
1421 { /* need more input */
1422 yy_size_t offset = (yy_c_buf_p) - (yytext_ptr);
1423 ++(yy_c_buf_p);
1424
1425 switch ( yy_get_next_buffer( ) )
1426 {
1427 case EOB_ACT_LAST_MATCH:
1428 /* This happens because yy_g_n_b()
1429 * sees that we've accumulated a
1430 * token and flags that we need to
1431 * try matching the token before
1432 * proceeding. But for input(),
1433 * there's no matching to consider.
1434 * So convert the EOB_ACT_LAST_MATCH
1435 * to EOB_ACT_END_OF_FILE.
1436 */
1437
1438 /* Reset buffer status. */
1439 yyrestart(yyin );
1440
1441 /*FALLTHROUGH*/
1442
1443 case EOB_ACT_END_OF_FILE:
1444 {
1445 if ( yywrap( ) )
1446 return EOF;
1447
1448 if ( ! (yy_did_buffer_switch_on_eof) )
1449 YY_NEW_FILE;
1450 #ifdef __cplusplus
1451 return yyinput();
1452 #else
1453 return input();
1454 #endif
1455 }
1456
1457 case EOB_ACT_CONTINUE_SCAN:
1458 (yy_c_buf_p) = (yytext_ptr) + offset;
1459 break;
1460 }
1461 }
1462 }
1463
1464 c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
1465 *(yy_c_buf_p) = '\0'; /* preserve yytext */
1466 (yy_hold_char) = *++(yy_c_buf_p);
1467
1468 if ( c == '\n' )
1469
1470 yylineno++;
1471 ;
1472
1473 return c;
1474 }
1475 #endif /* ifndef YY_NO_INPUT */
1476
1477 /** Immediately switch to a different input stream.
1478 * @param input_file A readable stream.
1479 *
1480 * @note This function does not reset the start condition to @c INITIAL .
1481 */
1482 void yyrestart (FILE * input_file )
1483 {
1484
1485 if ( ! YY_CURRENT_BUFFER ){
1486 yyensure_buffer_stack ();
1487 YY_CURRENT_BUFFER_LVALUE =
1488 yy_create_buffer(yyin,YY_BUF_SIZE );
1489 }
1490
1491 yy_init_buffer(YY_CURRENT_BUFFER,input_file );
1492 yy_load_buffer_state( );
1493 }
1494
1495 /** Switch to a different input buffer.
1496 * @param new_buffer The new input buffer.
1497 *
1498 */
1499 void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
1500 {
1501
1502 /* TODO. We should be able to replace this entire function body
1503 * with
1504 * yypop_buffer_state();
1505 * yypush_buffer_state(new_buffer);
1506 */
1507 yyensure_buffer_stack ();
1508 if ( YY_CURRENT_BUFFER == new_buffer )
1509 return;
1510
1511 if ( YY_CURRENT_BUFFER )
1512 {
1513 /* Flush out information for old buffer. */
1514 *(yy_c_buf_p) = (yy_hold_char);
1515 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1516 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1517 }
1518
1519 YY_CURRENT_BUFFER_LVALUE = new_buffer;
1520 yy_load_buffer_state( );
1521
1522 /* We don't actually know whether we did this switch during
1523 * EOF (yywrap()) processing, but the only time this flag
1524 * is looked at is after yywrap() is called, so it's safe
1525 * to go ahead and always set it.
1526 */
1527 (yy_did_buffer_switch_on_eof) = 1;
1528 }
1529
1530 static void yy_load_buffer_state (void)
1531 {
1532 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1533 (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
1534 yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
1535 (yy_hold_char) = *(yy_c_buf_p);
1536 }
1537
1538 /** Allocate and initialize an input buffer state.
1539 * @param file A readable stream.
1540 * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
1541 *
1542 * @return the allocated buffer state.
1543 */
1544 YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
1545 {
1546 YY_BUFFER_STATE b;
1547
1548 b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
1549 if ( ! b )
1550 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1551
1552 b->yy_buf_size = size;
1553
1554 /* yy_ch_buf has to be 2 characters longer than the size given because
1555 * we need to put in 2 end-of-buffer characters.
1556 */
1557 b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 );
1558 if ( ! b->yy_ch_buf )
1559 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1560
1561 b->yy_is_our_buffer = 1;
1562
1563 yy_init_buffer(b,file );
1564
1565 return b;
1566 }
1567
1568 /** Destroy the buffer.
1569 * @param b a buffer created with yy_create_buffer()
1570 *
1571 */
1572 void yy_delete_buffer (YY_BUFFER_STATE b )
1573 {
1574
1575 if ( ! b )
1576 return;
1577
1578 if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
1579 YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
1580
1581 if ( b->yy_is_our_buffer )
1582 yyfree((void *) b->yy_ch_buf );
1583
1584 yyfree((void *) b );
1585 }
1586
1587 /* Initializes or reinitializes a buffer.
1588 * This function is sometimes called more than once on the same buffer,
1589 * such as during a yyrestart() or at EOF.
1590 */
1591 static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
1592
1593 {
1594 int oerrno = errno;
1595
1596 yy_flush_buffer(b );
1597
1598 b->yy_input_file = file;
1599 b->yy_fill_buffer = 1;
1600
1601 /* If b is the current buffer, then yy_init_buffer was _probably_
1602 * called from yyrestart() or through yy_get_next_buffer.
1603 * In that case, we don't want to reset the lineno or column.
1604 */
1605 if (b != YY_CURRENT_BUFFER){
1606 b->yy_bs_lineno = 1;
1607 b->yy_bs_column = 0;
1608 }
1609
1610 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
1611
1612 errno = oerrno;
1613 }
1614
1615 /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
1616 * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
1617 *
1618 */
1619 void yy_flush_buffer (YY_BUFFER_STATE b )
1620 {
1621 if ( ! b )
1622 return;
1623
1624 b->yy_n_chars = 0;
1625
1626 /* We always need two end-of-buffer characters. The first causes
1627 * a transition to the end-of-buffer state. The second causes
1628 * a jam in that state.
1629 */
1630 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
1631 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
1632
1633 b->yy_buf_pos = &b->yy_ch_buf[0];
1634
1635 b->yy_at_bol = 1;
1636 b->yy_buffer_status = YY_BUFFER_NEW;
1637
1638 if ( b == YY_CURRENT_BUFFER )
1639 yy_load_buffer_state( );
1640 }
1641
1642 /** Pushes the new state onto the stack. The new state becomes
1643 * the current state. This function will allocate the stack
1644 * if necessary.
1645 * @param new_buffer The new state.
1646 *
1647 */
1648 void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
1649 {
1650 if (new_buffer == NULL)
1651 return;
1652
1653 yyensure_buffer_stack();
1654
1655 /* This block is copied from yy_switch_to_buffer. */
1656 if ( YY_CURRENT_BUFFER )
1657 {
1658 /* Flush out information for old buffer. */
1659 *(yy_c_buf_p) = (yy_hold_char);
1660 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1661 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1662 }
1663
1664 /* Only push if top exists. Otherwise, replace top. */
1665 if (YY_CURRENT_BUFFER)
1666 (yy_buffer_stack_top)++;
1667 YY_CURRENT_BUFFER_LVALUE = new_buffer;
1668
1669 /* copied from yy_switch_to_buffer. */
1670 yy_load_buffer_state( );
1671 (yy_did_buffer_switch_on_eof) = 1;
1672 }
1673
1674 /** Removes and deletes the top of the stack, if present.
1675 * The next element becomes the new top.
1676 *
1677 */
1678 void yypop_buffer_state (void)
1679 {
1680 if (!YY_CURRENT_BUFFER)
1681 return;
1682
1683 yy_delete_buffer(YY_CURRENT_BUFFER );
1684 YY_CURRENT_BUFFER_LVALUE = NULL;
1685 if ((yy_buffer_stack_top) > 0)
1686 --(yy_buffer_stack_top);
1687
1688 if (YY_CURRENT_BUFFER) {
1689 yy_load_buffer_state( );
1690 (yy_did_buffer_switch_on_eof) = 1;
1691 }
1692 }
1693
1694 /* Allocates the stack if it does not exist.
1695 * Guarantees space for at least one push.
1696 */
1697 static void yyensure_buffer_stack (void)
1698 {
1699 yy_size_t num_to_alloc;
1700
1701 if (!(yy_buffer_stack)) {
1702
1703 /* First allocation is just for 2 elements, since we don't know if this
1704 * scanner will even need a stack. We use 2 instead of 1 to avoid an
1705 * immediate realloc on the next call.
1706 */
1707 num_to_alloc = 1;
1708 (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
1709 (num_to_alloc * sizeof(struct yy_buffer_state*)
1710 );
1711 if ( ! (yy_buffer_stack) )
1712 YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
1713
1714 memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
1715
1716 (yy_buffer_stack_max) = num_to_alloc;
1717 (yy_buffer_stack_top) = 0;
1718 return;
1719 }
1720
1721 if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
1722
1723 /* Increase the buffer to prepare for a possible push. */
1724 int grow_size = 8 /* arbitrary grow size */;
1725
1726 num_to_alloc = (yy_buffer_stack_max) + grow_size;
1727 (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
1728 ((yy_buffer_stack),
1729 num_to_alloc * sizeof(struct yy_buffer_state*)
1730 );
1731 if ( ! (yy_buffer_stack) )
1732 YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
1733
1734 /* zero only the new slots.*/
1735 memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
1736 (yy_buffer_stack_max) = num_to_alloc;
1737 }
1738 }
1739
1740 /** Setup the input buffer state to scan directly from a user-specified character buffer.
1741 * @param base the character buffer
1742 * @param size the size in bytes of the character buffer
1743 *
1744 * @return the newly allocated buffer state object.
1745 */
1746 YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
1747 {
1748 YY_BUFFER_STATE b;
1749
1750 if ( size < 2 ||
1751 base[size-2] != YY_END_OF_BUFFER_CHAR ||
1752 base[size-1] != YY_END_OF_BUFFER_CHAR )
1753 /* They forgot to leave room for the EOB's. */
1754 return 0;
1755
1756 b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
1757 if ( ! b )
1758 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
1759
1760 b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
1761 b->yy_buf_pos = b->yy_ch_buf = base;
1762 b->yy_is_our_buffer = 0;
1763 b->yy_input_file = 0;
1764 b->yy_n_chars = b->yy_buf_size;
1765 b->yy_is_interactive = 0;
1766 b->yy_at_bol = 1;
1767 b->yy_fill_buffer = 0;
1768 b->yy_buffer_status = YY_BUFFER_NEW;
1769
1770 yy_switch_to_buffer(b );
1771
1772 return b;
1773 }
1774
1775 /** Setup the input buffer state to scan a string. The next call to yylex() will
1776 * scan from a @e copy of @a str.
1777 * @param yystr a NUL-terminated string to scan
1778 *
1779 * @return the newly allocated buffer state object.
1780 * @note If you want to scan bytes that may contain NUL values, then use
1781 * yy_scan_bytes() instead.
1782 */
1783 YY_BUFFER_STATE yy_scan_string (yyconst char * yystr )
1784 {
1785
1786 return yy_scan_bytes(yystr,strlen(yystr) );
1787 }
1788
1789 /** Setup the input buffer state to scan the given bytes. The next call to yylex() will
1790 * scan from a @e copy of @a bytes.
1791 * @param yybytes the byte buffer to scan
1792 * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
1793 *
1794 * @return the newly allocated buffer state object.
1795 */
1796 YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len )
1797 {
1798 YY_BUFFER_STATE b;
1799 char *buf;
1800 yy_size_t n;
1801 yy_size_t i;
1802
1803 /* Get memory for full buffer, including space for trailing EOB's. */
1804 n = _yybytes_len + 2;
1805 buf = (char *) yyalloc(n );
1806 if ( ! buf )
1807 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
1808
1809 for ( i = 0; i < _yybytes_len; ++i )
1810 buf[i] = yybytes[i];
1811
1812 buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
1813
1814 b = yy_scan_buffer(buf,n );
1815 if ( ! b )
1816 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
1817
1818 /* It's okay to grow etc. this buffer, and we should throw it
1819 * away when we're done.
1820 */
1821 b->yy_is_our_buffer = 1;
1822
1823 return b;
1824 }
1825
1826 #ifndef YY_EXIT_FAILURE
1827 #define YY_EXIT_FAILURE 2
1828 #endif
1829
1830 static void yy_fatal_error (yyconst char* msg )
1831 {
1832 (void) fprintf( stderr, "%s\n", msg );
1833 exit( YY_EXIT_FAILURE );
1834 }
1835
1836 /* Redefine yyless() so it works in section 3 code. */
1837
1838 #undef yyless
1839 #define yyless(n) \
1840 do \
1841 { \
1842 /* Undo effects of setting up yytext. */ \
1843 int yyless_macro_arg = (n); \
1844 YY_LESS_LINENO(yyless_macro_arg);\
1845 yytext[yyleng] = (yy_hold_char); \
1846 (yy_c_buf_p) = yytext + yyless_macro_arg; \
1847 (yy_hold_char) = *(yy_c_buf_p); \
1848 *(yy_c_buf_p) = '\0'; \
1849 yyleng = yyless_macro_arg; \
1850 } \
1851 while ( 0 )
1852
1853 /* Accessor methods (get/set functions) to struct members. */
1854
1855 /** Get the current line number.
1856 *
1857 */
1858 int yyget_lineno (void)
1859 {
1860
1861 return yylineno;
1862 }
1863
1864 /** Get the input stream.
1865 *
1866 */
1867 FILE *yyget_in (void)
1868 {
1869 return yyin;
1870 }
1871
1872 /** Get the output stream.
1873 *
1874 */
1875 FILE *yyget_out (void)
1876 {
1877 return yyout;
1878 }
1879
1880 /** Get the length of the current token.
1881 *
1882 */
1883 yy_size_t yyget_leng (void)
1884 {
1885 return yyleng;
1886 }
1887
1888 /** Get the current token.
1889 *
1890 */
1891
1892 char *yyget_text (void)
1893 {
1894 return yytext;
1895 }
1896
1897 /** Set the current line number.
1898 * @param line_number
1899 *
1900 */
1901 void yyset_lineno (int line_number )
1902 {
1903
1904 yylineno = line_number;
1905 }
1906
1907 /** Set the input stream. This does not discard the current
1908 * input buffer.
1909 * @param in_str A readable stream.
1910 *
1911 * @see yy_switch_to_buffer
1912 */
1913 void yyset_in (FILE * in_str )
1914 {
1915 yyin = in_str ;
1916 }
1917
1918 void yyset_out (FILE * out_str )
1919 {
1920 yyout = out_str ;
1921 }
1922
1923 int yyget_debug (void)
1924 {
1925 return yy_flex_debug;
1926 }
1927
1928 void yyset_debug (int bdebug )
1929 {
1930 yy_flex_debug = bdebug ;
1931 }
1932
1933 static int yy_init_globals (void)
1934 {
1935 /* Initialization is the same as for the non-reentrant scanner.
1936 * This function is called from yylex_destroy(), so don't allocate here.
1937 */
1938
1939 /* We do not touch yylineno unless the option is enabled. */
1940 yylineno = 1;
1941
1942 (yy_buffer_stack) = 0;
1943 (yy_buffer_stack_top) = 0;
1944 (yy_buffer_stack_max) = 0;
1945 (yy_c_buf_p) = (char *) 0;
1946 (yy_init) = 0;
1947 (yy_start) = 0;
1948
1949 /* Defined in main.c */
1950 #ifdef YY_STDINIT
1951 yyin = stdin;
1952 yyout = stdout;
1953 #else
1954 yyin = (FILE *) 0;
1955 yyout = (FILE *) 0;
1956 #endif
1957
1958 /* For future reference: Set errno on error, since we are called by
1959 * yylex_init()
1960 */
1961 return 0;
1962 }
1963
1964 /* yylex_destroy is for both reentrant and non-reentrant scanners. */
1965 int yylex_destroy (void)
1966 {
1967
1968 /* Pop the buffer stack, destroying each element. */
1969 while(YY_CURRENT_BUFFER){
1970 yy_delete_buffer(YY_CURRENT_BUFFER );
1971 YY_CURRENT_BUFFER_LVALUE = NULL;
1972 yypop_buffer_state();
1973 }
1974
1975 /* Destroy the stack itself. */
1976 yyfree((yy_buffer_stack) );
1977 (yy_buffer_stack) = NULL;
1978
1979 /* Reset the globals. This is important in a non-reentrant scanner so the next time
1980 * yylex() is called, initialization will occur. */
1981 yy_init_globals( );
1982
1983 return 0;
1984 }
1985
1986 /*
1987 * Internal utility routines.
1988 */
1989
1990 #ifndef yytext_ptr
1991 static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
1992 {
1993 register int i;
1994 for ( i = 0; i < n; ++i )
1995 s1[i] = s2[i];
1996 }
1997 #endif
1998
1999 #ifdef YY_NEED_STRLEN
2000 static int yy_flex_strlen (yyconst char * s )
2001 {
2002 register int n;
2003 for ( n = 0; s[n]; ++n )
2004 ;
2005
2006 return n;
2007 }
2008 #endif
2009
2010 void *yyalloc (yy_size_t size )
2011 {
2012 return (void *) malloc( size );
2013 }
2014
2015 void *yyrealloc (void * ptr, yy_size_t size )
2016 {
2017 /* The cast to (char *) in the following accommodates both
2018 * implementations that use char* generic pointers, and those
2019 * that use void* generic pointers. It works with the latter
2020 * because both ANSI C and C++ allow castless assignment from
2021 * any pointer type to void*, and deal with argument conversions
2022 * as though doing an assignment.
2023 */
2024 return (void *) realloc( (char *) ptr, size );
2025 }
2026
2027 void yyfree (void * ptr )
2028 {
2029 free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
2030 }
2031
2032 #define YYTABLES_NAME "yytables"
2033
2034 #line 154 "star.l"
2035
2036
2037 /* This routine is called during initialisation to avoid any problems
2038 which might arise due to a syntax error not re-initialising the
2039 scanner. Each time the scanner is initialised, the buffer is
2040 flushed */
2041 void star_clear(void) {
2042 yy_flush_buffer(YY_CURRENT_BUFFER);
2043 yylineno = 0;
2044 BEGIN(INITIAL);
2045 }
2046