1 /* A lexical scanner generated by flex */
3 /* Scanner skeleton version:
4 * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $
8 #define YY_FLEX_MAJOR_VERSION 2
9 #define YY_FLEX_MINOR_VERSION 5
14 /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
27 /* Use prototypes in function declarations. */
30 /* The "const" storage-class-modifier is valid. */
33 #else /* ! __cplusplus */
41 #endif /* ! __cplusplus */
60 #define YY_PROTO(proto) proto
62 #define YY_PROTO(proto) ()
65 /* Returned upon end-of-file. */
68 /* Promotes a possibly negative, possibly signed char to an unsigned
69 * integer for use as an array index. If the signed char is negative,
70 * we want to instead treat it as an 8-bit unsigned char, hence the
73 #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
75 /* Enter a start condition. This macro really ought to take a parameter,
76 * but we do it the disgusting crufty way forced on us by the ()-less
77 * definition of BEGIN.
79 #define BEGIN yy_start = 1 + 2 *
81 /* Translate the current start state into a value that can be later handed
82 * to BEGIN to return to the state. The YYSTATE alias is for lex
85 #define YY_START ((yy_start - 1) / 2)
86 #define YYSTATE YY_START
88 /* Action number for EOF rule of a given start state. */
89 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
91 /* Special action meaning "start processing a new file". */
92 #define YY_NEW_FILE yyrestart( yyin )
94 #define YY_END_OF_BUFFER_CHAR 0
96 /* Size of default input buffer. */
97 #define YY_BUF_SIZE 16384
99 typedef struct yy_buffer_state *YY_BUFFER_STATE;
102 extern FILE *yyin, *yyout;
104 #define EOB_ACT_CONTINUE_SCAN 0
105 #define EOB_ACT_END_OF_FILE 1
106 #define EOB_ACT_LAST_MATCH 2
108 /* The funky do-while in the following #define is used to turn the definition
109 * int a single C statement (which needs a semi-colon terminator). This
110 * avoids problems with code like:
112 * if ( condition_holds )
115 * do_something_else();
117 * Prior to using the do-while the compiler would get upset at the
118 * "else" because it interpreted the "if" statement as being all
119 * done when it reached the ';' after the yyless() call.
122 /* Return all but the first 'n' matched characters back to the input stream. */
127 /* Undo effects of setting up yytext. */ \
128 *yy_cp = yy_hold_char; \
129 YY_RESTORE_YY_MORE_OFFSET \
130 yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
131 YY_DO_BEFORE_ACTION; /* set up yytext again */ \
135 #define unput(c) yyunput( c, yytext_ptr )
137 /* The following is because we cannot portably get our hands on size_t
138 * (without autoconf's help, which isn't available because we want
139 * flex-generated scanners to compile on their own).
141 typedef unsigned int yy_size_t;
144 struct yy_buffer_state
148 char *yy_ch_buf; /* input buffer */
149 char *yy_buf_pos; /* current position in input buffer */
151 /* Size of input buffer in bytes, not including room for EOB
154 yy_size_t yy_buf_size;
156 /* Number of characters read into yy_ch_buf, not including EOB
161 /* Whether we "own" the buffer - i.e., we know we created it,
162 * and can realloc() it to grow it, and should free() it to
165 int yy_is_our_buffer;
167 /* Whether this is an "interactive" input source; if so, and
168 * if we're using stdio for input, then we want to use getc()
169 * instead of fread(), to make sure we stop fetching input after
172 int yy_is_interactive;
174 /* Whether we're considered to be at the beginning of a line.
175 * If so, '^' rules will be active on the next match, otherwise
180 /* Whether to try to fill the input buffer when we reach the
185 int yy_buffer_status;
186 #define YY_BUFFER_NEW 0
187 #define YY_BUFFER_NORMAL 1
188 /* When an EOF's been seen but there's still some text to process
189 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
190 * shouldn't try reading from the input source any more. We might
191 * still have a bunch of tokens to match, though, because of
192 * possible backing-up.
194 * When we actually see the EOF, we change the status to "new"
195 * (via yyrestart()), so that the user can continue scanning by
196 * just pointing yyin at a new input file.
198 #define YY_BUFFER_EOF_PENDING 2
201 static YY_BUFFER_STATE yy_current_buffer = 0;
203 /* We provide macros for accessing buffer states in case in the
204 * future we want to put the buffer states in a more general
207 #define YY_CURRENT_BUFFER yy_current_buffer
210 /* yy_hold_char holds the character lost when yytext is formed. */
211 static char yy_hold_char;
213 static int yy_n_chars; /* number of characters read into yy_ch_buf */
218 /* Points to current character in buffer. */
219 static char *yy_c_buf_p = (char *) 0;
220 static int yy_init = 1; /* whether we need to initialize */
221 static int yy_start = 0; /* start state number */
223 /* Flag which is used to allow yywrap()'s to do buffer switches
224 * instead of setting up a fresh yyin. A bit of a hack ...
226 static int yy_did_buffer_switch_on_eof;
228 void yyrestart YY_PROTO(( FILE *input_file ));
230 void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
231 void yy_load_buffer_state YY_PROTO(( void ));
232 YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
233 void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
234 void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
235 void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
236 #define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
238 YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
239 YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
240 YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
242 static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
243 static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
244 static void yy_flex_free YY_PROTO(( void * ));
246 #define yy_new_buffer yy_create_buffer
248 #define yy_set_interactive(is_interactive) \
250 if ( ! yy_current_buffer ) \
251 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
252 yy_current_buffer->yy_is_interactive = is_interactive; \
255 #define yy_set_bol(at_bol) \
257 if ( ! yy_current_buffer ) \
258 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
259 yy_current_buffer->yy_at_bol = at_bol; \
262 #define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
265 #define YY_USES_REJECT
266 typedef unsigned char YY_CHAR;
267 FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
268 typedef int yy_state_type;
270 #define yytext_ptr yytext
272 static yy_state_type yy_get_previous_state YY_PROTO(( void ));
273 static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
274 static int yy_get_next_buffer YY_PROTO(( void ));
275 static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
277 /* Done after the current pattern has been matched and before the
278 * corresponding action - sets up yytext.
280 #define YY_DO_BEFORE_ACTION \
281 yytext_ptr = yy_bp; \
282 yyleng = (int) (yy_cp - yy_bp); \
283 yy_hold_char = *yy_cp; \
287 #define YY_NUM_RULES 87
288 #define YY_END_OF_BUFFER 88
289 static yyconst short int yy_acclist[424] =
291 88, 85, 87, 84, 85, 87, 1, 86, 87, 85,
292 86, 87, 85, 87, 85, 87, 85, 87, 84, 85,
293 87, 85, 87, 85, 87, 26, 85, 87, 1, 27,
294 86, 87, 26, 85, 86, 87, 26, 85, 87, 26,
295 85, 87, 49, 85, 87, 1, 50, 86, 87, 49,
296 85, 86, 87, 42, 49, 85, 87, 49, 85, 87,
297 49, 85, 87, 49, 85, 87, 49, 85, 87, 47,
298 49, 85, 87, 48, 49, 85, 87, 49, 85, 87,
299 49, 85, 87, 45, 85, 87, 1, 46, 86, 87,
300 45, 85, 86, 87, 44, 45, 85, 87, 45, 85,
302 87, 45, 85, 87, 85, 87, 85, 87, 79, 85,
303 87, 79, 85, 87, 79, 85, 87, 79, 85, 87,
304 79, 85, 87, 81, 85, 87, 85, 87, 85, 87,
305 77, 85, 87, 77, 85, 87, 85, 87, 79, 85,
306 87, 79, 85, 87, 79, 85, 87, 79, 85, 87,
307 79, 85, 87, 79, 85, 87, 79, 85, 87, 79,
308 85, 87, 79, 85, 87, 79, 85, 87, 79, 85,
309 87, 79, 85, 87, 82, 85, 87, 83, 85, 87,
310 9, 85, 87, 9, 85, 86, 87, 9, 85, 87,
311 9, 85, 87, 9, 85, 87, 9, 85, 87, 14,
313 85, 87, 14, 85, 86, 87, 14, 85, 87, 14,
314 85, 87, 14, 85, 87, 14, 85, 87, 17, 85,
315 87, 17, 85, 86, 87, 17, 85, 87, 17, 85,
316 87, 21, 33, 25, 22, 41, 34, 43, 23, 79,
317 78, 79, 79, 79, 79, 77, 24, 77, 77, 80,
318 79, 79, 79, 79, 79, 79, 79, 79, 79, 79,
319 79, 79, 79, 79, 79, 79, 79, 79, 8, 6,
320 13, 10, 12, 11, 13, 16, 15, 3, 28, 32,
321 39, 35, 37, 18, 19, 78, 79, 79, 79, 79,
322 68, 77, 20, 77, 77, 79, 79, 79, 79, 79,
324 79, 63, 79, 79, 79, 79, 79, 79, 79, 79,
325 79, 79, 79, 79, 79, 79, 11, 29, 30, 31,
326 40, 36, 38, 79, 79, 54, 79, 53, 79, 5,
327 79, 66, 79, 79, 79, 58, 79, 79, 61, 79,
328 79, 79, 79, 79, 79, 79, 79, 79, 79, 79,
329 79, 55, 79, 7, 51, 79, 79, 67, 79, 79,
330 64, 79, 79, 79, 79, 79, 79, 62, 79, 79,
331 79, 79, 57, 79, 79, 79, 79, 79, 65, 79,
332 79, 79, 79, 79, 69, 79, 74, 79, 59, 79,
333 56, 79, 79, 79, 79, 79, 76, 79, 79, 70,
335 79, 79, 79, 73, 79, 79, 72, 79, 75, 79,
336 79, 60, 79, 79, 71, 79, 79, 4, 79, 2,
340 static yyconst short int yy_accept[370] =
342 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
343 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
344 4, 7, 10, 13, 15, 17, 19, 22, 24, 26,
345 29, 33, 37, 40, 43, 46, 50, 54, 58, 61,
346 64, 67, 70, 74, 78, 81, 84, 87, 91, 95,
347 99, 102, 105, 107, 109, 112, 115, 118, 121, 124,
348 127, 129, 131, 134, 137, 139, 142, 145, 148, 151,
349 154, 157, 160, 163, 166, 169, 172, 175, 178, 181,
350 184, 188, 191, 194, 197, 200, 203, 207, 210, 213,
351 216, 219, 222, 226, 229, 232, 233, 233, 233, 233,
353 233, 233, 233, 233, 233, 234, 234, 235, 235, 235,
354 235, 235, 236, 236, 237, 237, 237, 238, 239, 240,
355 240, 240, 241, 242, 243, 244, 245, 246, 246, 247,
356 248, 248, 248, 249, 249, 249, 250, 250, 251, 252,
357 253, 254, 255, 256, 257, 258, 259, 260, 261, 262,
358 263, 264, 265, 266, 267, 268, 269, 270, 270, 270,
359 270, 271, 271, 272, 272, 272, 272, 273, 274, 274,
360 276, 277, 278, 278, 279, 279, 279, 279, 279, 280,
361 280, 280, 281, 281, 281, 281, 282, 282, 282, 282,
362 283, 284, 284, 285, 285, 285, 286, 286, 287, 288,
364 289, 290, 291, 292, 293, 293, 293, 294, 295, 296,
365 296, 297, 298, 299, 300, 301, 302, 304, 305, 306,
366 307, 308, 309, 310, 311, 312, 313, 314, 315, 316,
367 317, 317, 318, 318, 318, 318, 319, 319, 320, 321,
368 321, 321, 322, 323, 324, 324, 325, 326, 328, 330,
369 330, 331, 332, 334, 335, 336, 338, 339, 341, 342,
370 343, 344, 345, 346, 347, 348, 349, 350, 351, 352,
371 354, 354, 355, 355, 355, 355, 356, 356, 356, 356,
372 356, 356, 357, 358, 360, 361, 363, 364, 365, 366,
373 367, 368, 370, 371, 372, 373, 375, 376, 377, 377,
375 377, 377, 377, 377, 377, 378, 379, 381, 382, 383,
376 384, 385, 387, 389, 391, 393, 394, 395, 395, 395,
377 395, 395, 395, 396, 397, 399, 400, 402, 403, 404,
378 406, 406, 406, 406, 406, 406, 407, 409, 411, 412,
379 414, 414, 414, 414, 414, 414, 415, 417, 417, 417,
380 417, 417, 418, 418, 418, 418, 418, 419, 420, 421,
381 421, 421, 423, 423, 423, 423, 423, 424, 424
384 static yyconst int yy_ec[256] =
386 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
387 1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
388 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
389 1, 5, 1, 6, 7, 1, 8, 1, 9, 1,
390 1, 10, 1, 1, 1, 11, 12, 13, 14, 14,
391 14, 14, 14, 14, 14, 15, 15, 16, 1, 17,
392 1, 18, 1, 1, 19, 19, 20, 19, 21, 22,
393 23, 24, 23, 23, 25, 23, 26, 23, 27, 23,
394 23, 28, 23, 29, 30, 23, 23, 23, 23, 23,
395 31, 32, 33, 1, 23, 1, 34, 35, 36, 37,
397 38, 39, 40, 41, 42, 23, 23, 43, 44, 45,
398 46, 47, 48, 49, 50, 51, 52, 53, 23, 54,
399 23, 23, 55, 1, 56, 1, 1, 1, 1, 1,
400 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
401 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
402 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
403 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
404 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
405 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
406 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
408 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
409 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
410 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
411 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
412 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
416 static yyconst int yy_meta[57] =
418 1, 2, 3, 1, 2, 1, 1, 1, 1, 1,
419 1, 1, 4, 4, 4, 5, 1, 1, 6, 6,
420 6, 6, 7, 7, 7, 7, 7, 7, 7, 7,
421 1, 1, 1, 6, 6, 6, 6, 6, 6, 7,
422 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
426 static yyconst short int yy_base[390] =
428 0, 35, 3, 5, 82, 136, 16, 24, 192, 0,
429 238, 0, 7, 49, 31, 63, 66, 77, 816, 817,
430 817, 817, 817, 4, 788, 771, 44, 49, 775, 817,
431 817, 817, 800, 784, 817, 817, 817, 817, 66, 11,
432 783, 0, 817, 817, 53, 753, 817, 817, 817, 817,
433 781, 0, 50, 0, 791, 47, 2, 28, 66, 817,
434 86, 99, 102, 112, 116, 63, 112, 86, 89, 90,
435 102, 104, 119, 108, 125, 120, 135, 817, 817, 817,
436 817, 794, 778, 168, 177, 817, 817, 792, 776, 252,
437 253, 799, 798, 107, 156, 817, 797, 770, 764, 259,
439 759, 120, 228, 105, 817, 748, 817, 786, 254, 785,
440 784, 817, 789, 817, 265, 746, 817, 817, 817, 787,
441 773, 772, 771, 145, 153, 243, 255, 775, 171, 775,
442 781, 285, 290, 300, 0, 305, 308, 752, 252, 262,
443 257, 136, 279, 266, 301, 290, 308, 309, 311, 310,
444 312, 314, 313, 317, 316, 318, 817, 334, 335, 346,
445 817, 361, 817, 366, 367, 378, 817, 382, 770, 817,
446 817, 817, 778, 817, 756, 729, 735, 722, 817, 742,
447 720, 817, 719, 731, 720, 817, 762, 761, 760, 817,
448 817, 765, 817, 731, 763, 817, 749, 748, 8, 339,
450 334, 340, 817, 360, 389, 760, 817, 382, 0, 385,
451 370, 366, 377, 326, 372, 385, 746, 386, 387, 388,
452 389, 390, 391, 394, 393, 392, 401, 397, 395, 396,
453 446, 817, 740, 710, 369, 817, 722, 817, 817, 705,
454 715, 817, 817, 817, 713, 407, 405, 739, 738, 427,
455 817, 409, 737, 415, 424, 736, 419, 735, 429, 434,
456 438, 436, 440, 441, 442, 443, 444, 445, 447, 734,
457 466, 817, 485, 491, 721, 817, 702, 709, 712, 696,
458 692, 449, 448, 727, 457, 726, 459, 465, 468, 475,
459 481, 725, 482, 484, 486, 724, 487, 488, 717, 691,
461 688, 685, 697, 697, 490, 493, 717, 492, 494, 497,
462 498, 716, 715, 714, 713, 502, 499, 698, 465, 689,
463 676, 687, 48, 507, 708, 508, 703, 510, 513, 692,
464 687, 657, 614, 525, 531, 523, 632, 577, 518, 576,
465 566, 542, 547, 549, 539, 528, 560, 551, 494, 546,
466 559, 531, 386, 306, 553, 563, 817, 554, 817, 249,
467 560, 270, 141, 565, 581, 585, 817, 817, 596, 603,
468 610, 617, 624, 631, 638, 645, 652, 654, 658, 665,
469 672, 679, 683, 687, 694, 698, 703, 709, 716
472 static yyconst short int yy_def[390] =
474 369, 369, 370, 370, 371, 371, 372, 372, 368, 9,
475 9, 11, 373, 373, 374, 374, 375, 375, 368, 368,
476 368, 368, 368, 368, 368, 368, 368, 368, 368, 368,
477 368, 368, 368, 368, 368, 368, 368, 368, 368, 368,
478 368, 376, 368, 368, 368, 368, 368, 368, 368, 368,
479 368, 377, 368, 378, 379, 379, 379, 379, 379, 368,
480 368, 368, 368, 368, 368, 379, 379, 379, 379, 379,
481 379, 379, 379, 379, 379, 379, 379, 368, 368, 368,
482 368, 368, 368, 368, 368, 368, 368, 368, 368, 368,
483 368, 368, 368, 368, 368, 368, 380, 368, 368, 368,
485 368, 368, 368, 368, 368, 368, 368, 368, 368, 368,
486 368, 368, 381, 368, 368, 368, 368, 368, 368, 382,
487 383, 379, 384, 379, 379, 379, 379, 368, 368, 368,
488 385, 368, 368, 368, 386, 368, 368, 368, 379, 379,
489 379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
490 379, 379, 379, 379, 379, 379, 368, 368, 368, 368,
491 368, 387, 368, 368, 368, 368, 368, 368, 368, 368,
492 368, 368, 380, 368, 368, 368, 368, 368, 368, 368,
493 368, 368, 368, 368, 368, 368, 368, 368, 368, 368,
494 368, 381, 368, 368, 382, 368, 383, 384, 379, 379,
496 379, 379, 368, 368, 368, 385, 368, 368, 386, 368,
497 379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
498 379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
499 388, 368, 368, 368, 368, 368, 368, 368, 368, 368,
500 368, 368, 368, 368, 368, 379, 379, 379, 379, 368,
501 368, 379, 379, 379, 379, 379, 379, 379, 379, 379,
502 379, 379, 379, 379, 379, 379, 379, 379, 379, 379,
503 368, 368, 388, 368, 368, 368, 368, 368, 368, 368,
504 368, 379, 379, 379, 379, 379, 379, 379, 379, 379,
505 379, 379, 379, 379, 379, 379, 379, 379, 368, 368,
507 368, 368, 368, 368, 379, 379, 379, 379, 379, 379,
508 379, 379, 379, 379, 379, 379, 379, 368, 368, 368,
509 368, 368, 379, 379, 379, 379, 379, 379, 379, 379,
510 368, 368, 368, 368, 368, 379, 379, 379, 379, 379,
511 368, 368, 368, 368, 368, 379, 379, 368, 368, 368,
512 389, 379, 368, 368, 368, 389, 368, 379, 368, 368,
513 368, 379, 368, 368, 368, 368, 368, 0, 368, 368,
514 368, 368, 368, 368, 368, 368, 368, 368, 368, 368,
515 368, 368, 368, 368, 368, 368, 368, 368, 368
518 static yyconst short int yy_nxt[874] =
520 368, 21, 22, 23, 21, 31, 32, 31, 32, 22,
521 81, 24, 33, 96, 33, 97, 82, 123, 48, 49,
522 112, 50, 113, 123, 368, 25, 48, 49, 34, 50,
523 34, 246, 83, 22, 87, 26, 27, 22, 23, 27,
524 88, 51, 28, 123, 125, 100, 24, 52, 100, 51,
525 84, 22, 81, 84, 115, 52, 89, 115, 85, 119,
526 25, 120, 123, 123, 90, 22, 87, 90, 22, 93,
527 26, 108, 91, 124, 83, 94, 126, 336, 123, 22,
528 93, 123, 102, 29, 36, 37, 94, 38, 89, 103,
529 39, 95, 101, 40, 116, 104, 128, 109, 129, 129,
531 129, 123, 95, 105, 123, 123, 127, 41, 130, 171,
532 131, 139, 132, 42, 133, 133, 134, 123, 172, 123,
533 110, 111, 132, 123, 136, 136, 136, 123, 137, 137,
534 137, 142, 144, 143, 123, 123, 43, 44, 36, 37,
535 123, 38, 45, 46, 39, 183, 145, 40, 138, 146,
536 123, 123, 140, 184, 125, 135, 149, 141, 171, 150,
537 123, 41, 177, 147, 154, 151, 152, 42, 123, 158,
538 178, 148, 158, 199, 179, 153, 155, 159, 160, 161,
539 156, 162, 98, 204, 204, 204, 200, 214, 157, 183,
540 43, 44, 20, 21, 22, 23, 21, 20, 20, 20,
542 20, 20, 20, 53, 20, 20, 20, 54, 20, 20,
543 55, 55, 55, 55, 55, 55, 55, 56, 55, 55,
544 55, 55, 20, 20, 20, 55, 55, 57, 55, 55,
545 58, 55, 55, 55, 55, 55, 55, 55, 55, 55,
546 55, 55, 59, 55, 55, 55, 60, 20, 61, 62,
547 63, 64, 64, 164, 166, 167, 164, 168, 123, 187,
548 100, 165, 169, 100, 170, 180, 115, 123, 65, 115,
549 123, 66, 123, 67, 68, 69, 70, 123, 181, 71,
550 72, 123, 182, 73, 74, 123, 363, 75, 201, 76,
551 77, 211, 78, 79, 123, 212, 202, 208, 208, 208,
553 132, 213, 133, 133, 134, 123, 116, 101, 188, 189,
554 132, 216, 134, 134, 134, 132, 123, 136, 136, 136,
555 137, 137, 137, 123, 123, 123, 123, 123, 123, 123,
556 215, 123, 123, 123, 218, 158, 160, 161, 158, 162,
557 138, 123, 360, 159, 223, 219, 220, 160, 161, 123,
558 160, 217, 221, 225, 123, 123, 222, 224, 227, 230,
559 255, 226, 160, 161, 229, 160, 228, 164, 166, 167,
560 164, 168, 204, 204, 204, 165, 169, 248, 232, 166,
561 167, 123, 166, 166, 167, 123, 166, 123, 247, 249,
562 250, 251, 123, 250, 208, 208, 208, 137, 137, 137,
564 123, 123, 123, 123, 123, 123, 123, 123, 123, 123,
565 123, 123, 123, 359, 253, 256, 123, 138, 257, 277,
566 123, 252, 123, 179, 123, 258, 254, 282, 250, 251,
567 123, 250, 270, 263, 123, 259, 260, 265, 268, 123,
568 262, 261, 264, 266, 123, 269, 267, 271, 272, 123,
569 271, 123, 283, 123, 249, 123, 123, 123, 123, 123,
570 123, 274, 123, 123, 123, 284, 285, 271, 272, 286,
571 271, 289, 123, 290, 123, 293, 305, 287, 295, 294,
572 123, 291, 288, 123, 297, 306, 271, 272, 296, 271,
573 123, 292, 271, 272, 307, 271, 123, 123, 298, 123,
575 274, 123, 123, 123, 308, 123, 309, 123, 123, 123,
576 311, 323, 123, 123, 123, 332, 312, 123, 310, 182,
577 314, 317, 123, 123, 313, 123, 344, 354, 123, 344,
578 326, 316, 345, 123, 327, 345, 315, 324, 123, 329,
579 325, 330, 346, 123, 351, 338, 123, 339, 328, 340,
580 344, 358, 352, 344, 347, 351, 355, 337, 350, 350,
581 350, 350, 350, 350, 357, 361, 361, 361, 357, 123,
582 364, 353, 361, 361, 361, 123, 357, 365, 365, 365,
583 357, 362, 366, 367, 349, 366, 366, 367, 181, 366,
584 348, 123, 123, 365, 365, 365, 20, 20, 20, 20,
586 20, 20, 20, 30, 30, 30, 30, 30, 30, 30,
587 35, 35, 35, 35, 35, 35, 35, 47, 47, 47,
588 47, 47, 47, 47, 80, 80, 80, 80, 80, 80,
589 80, 86, 86, 86, 86, 86, 86, 86, 92, 92,
590 92, 92, 92, 92, 92, 114, 114, 123, 114, 114,
591 114, 114, 118, 118, 343, 118, 118, 118, 118, 121,
592 121, 122, 122, 122, 122, 173, 173, 173, 173, 173,
593 173, 173, 192, 192, 192, 192, 192, 192, 192, 195,
594 195, 195, 195, 195, 195, 195, 197, 197, 197, 197,
595 198, 198, 198, 198, 206, 206, 206, 206, 206, 206,
597 206, 209, 342, 209, 231, 231, 341, 123, 231, 231,
598 273, 273, 273, 273, 273, 273, 356, 356, 123, 356,
599 356, 356, 356, 123, 335, 334, 333, 331, 123, 123,
600 123, 123, 123, 322, 321, 320, 319, 178, 318, 123,
601 123, 123, 123, 304, 303, 302, 301, 300, 299, 123,
602 123, 123, 123, 123, 123, 281, 280, 279, 278, 276,
603 275, 123, 207, 123, 123, 196, 245, 193, 244, 243,
604 242, 241, 240, 239, 238, 237, 236, 235, 234, 233,
605 174, 232, 210, 207, 205, 203, 123, 123, 123, 196,
606 194, 193, 191, 190, 186, 185, 106, 176, 175, 174,
608 171, 171, 98, 163, 98, 157, 123, 98, 117, 98,
609 98, 107, 106, 99, 98, 368, 19, 368, 368, 368,
610 368, 368, 368, 368, 368, 368, 368, 368, 368, 368,
611 368, 368, 368, 368, 368, 368, 368, 368, 368, 368,
612 368, 368, 368, 368, 368, 368, 368, 368, 368, 368,
613 368, 368, 368, 368, 368, 368, 368, 368, 368, 368,
614 368, 368, 368, 368, 368, 368, 368, 368, 368, 368,
618 static yyconst short int yy_chk[874] =
620 0, 1, 1, 1, 1, 3, 3, 4, 4, 13,
621 13, 1, 3, 24, 4, 24, 13, 57, 7, 7,
622 40, 7, 40, 199, 0, 1, 8, 8, 3, 8,
623 4, 199, 13, 15, 15, 1, 2, 2, 2, 2,
624 15, 7, 2, 58, 57, 27, 2, 7, 27, 8,
625 14, 14, 14, 14, 45, 8, 15, 45, 14, 53,
626 2, 53, 56, 323, 16, 16, 16, 16, 17, 17,
627 2, 39, 16, 56, 14, 17, 58, 323, 66, 18,
628 18, 59, 28, 2, 5, 5, 18, 5, 16, 28,
629 5, 17, 27, 5, 45, 28, 61, 39, 61, 61,
631 61, 68, 18, 28, 69, 70, 59, 5, 62, 94,
632 62, 66, 63, 5, 63, 63, 63, 71, 94, 72,
633 39, 39, 64, 74, 64, 64, 64, 67, 65, 65,
634 65, 68, 70, 69, 73, 76, 5, 5, 6, 6,
635 75, 6, 6, 6, 6, 104, 71, 6, 65, 72,
636 77, 142, 67, 104, 67, 63, 74, 67, 95, 74,
637 124, 6, 102, 73, 76, 75, 75, 6, 125, 84,
638 102, 73, 84, 124, 102, 75, 77, 84, 85, 85,
639 77, 85, 95, 129, 129, 129, 125, 142, 85, 363,
640 6, 6, 9, 9, 9, 9, 9, 9, 9, 9,
642 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
643 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
644 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
645 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
646 9, 9, 9, 9, 9, 9, 9, 9, 11, 11,
647 11, 11, 11, 90, 91, 91, 90, 91, 126, 109,
648 100, 90, 91, 100, 91, 103, 115, 139, 11, 115,
649 127, 11, 141, 11, 11, 11, 11, 140, 103, 11,
650 11, 144, 103, 11, 11, 362, 360, 11, 126, 11,
651 11, 139, 11, 11, 143, 140, 127, 132, 132, 132,
653 133, 141, 133, 133, 133, 146, 115, 100, 109, 109,
654 134, 144, 134, 134, 134, 136, 145, 136, 136, 136,
655 137, 137, 137, 147, 148, 150, 149, 151, 153, 152,
656 143, 155, 154, 156, 146, 158, 159, 159, 158, 159,
657 137, 214, 354, 158, 150, 147, 148, 160, 160, 201,
658 160, 145, 149, 152, 200, 202, 149, 151, 154, 156,
659 214, 153, 162, 162, 155, 162, 154, 164, 165, 165,
660 164, 165, 204, 204, 204, 164, 165, 201, 165, 166,
661 166, 212, 166, 168, 168, 211, 168, 215, 200, 202,
662 205, 205, 213, 205, 208, 208, 208, 210, 210, 210,
664 216, 218, 219, 220, 221, 222, 223, 226, 225, 224,
665 229, 230, 228, 353, 212, 215, 227, 210, 216, 235,
666 247, 211, 246, 235, 252, 218, 213, 246, 250, 250,
667 254, 250, 230, 223, 257, 219, 220, 225, 228, 255,
668 222, 221, 224, 226, 259, 229, 227, 231, 231, 260,
669 231, 262, 252, 261, 247, 263, 264, 265, 266, 267,
670 268, 231, 269, 283, 282, 254, 255, 271, 271, 257,
671 271, 261, 285, 262, 287, 265, 282, 259, 266, 265,
672 288, 263, 260, 289, 268, 283, 273, 273, 267, 273,
673 290, 264, 274, 274, 285, 274, 291, 293, 269, 294,
675 273, 295, 297, 298, 287, 305, 288, 308, 306, 309,
676 290, 305, 310, 311, 317, 319, 291, 316, 289, 319,
677 294, 298, 324, 326, 293, 328, 334, 349, 329, 334,
678 309, 297, 335, 339, 310, 335, 295, 306, 336, 316,
679 308, 317, 336, 346, 345, 326, 352, 328, 311, 329,
680 344, 352, 346, 344, 339, 345, 350, 324, 350, 350,
681 350, 344, 344, 344, 351, 355, 355, 355, 356, 358,
682 361, 348, 361, 361, 361, 347, 351, 364, 364, 364,
683 356, 358, 365, 365, 343, 365, 366, 366, 342, 366,
684 341, 340, 338, 365, 365, 365, 369, 369, 369, 369,
686 369, 369, 369, 370, 370, 370, 370, 370, 370, 370,
687 371, 371, 371, 371, 371, 371, 371, 372, 372, 372,
688 372, 372, 372, 372, 373, 373, 373, 373, 373, 373,
689 373, 374, 374, 374, 374, 374, 374, 374, 375, 375,
690 375, 375, 375, 375, 375, 376, 376, 337, 376, 376,
691 376, 376, 377, 377, 333, 377, 377, 377, 377, 378,
692 378, 379, 379, 379, 379, 380, 380, 380, 380, 380,
693 380, 380, 381, 381, 381, 381, 381, 381, 381, 382,
694 382, 382, 382, 382, 382, 382, 383, 383, 383, 383,
695 384, 384, 384, 384, 385, 385, 385, 385, 385, 385,
697 385, 386, 332, 386, 387, 387, 331, 330, 387, 387,
698 388, 388, 388, 388, 388, 388, 389, 389, 327, 389,
699 389, 389, 389, 325, 322, 321, 320, 318, 315, 314,
700 313, 312, 307, 304, 303, 302, 301, 300, 299, 296,
701 292, 286, 284, 281, 280, 279, 278, 277, 275, 270,
702 258, 256, 253, 249, 248, 245, 241, 240, 237, 234,
703 233, 217, 206, 198, 197, 195, 194, 192, 189, 188,
704 187, 185, 184, 183, 181, 180, 178, 177, 176, 175,
705 173, 169, 138, 131, 130, 128, 123, 122, 121, 120,
706 116, 113, 111, 110, 108, 106, 101, 99, 98, 97,
708 93, 92, 89, 88, 83, 82, 55, 51, 46, 41,
709 34, 33, 29, 26, 25, 19, 368, 368, 368, 368,
710 368, 368, 368, 368, 368, 368, 368, 368, 368, 368,
711 368, 368, 368, 368, 368, 368, 368, 368, 368, 368,
712 368, 368, 368, 368, 368, 368, 368, 368, 368, 368,
713 368, 368, 368, 368, 368, 368, 368, 368, 368, 368,
714 368, 368, 368, 368, 368, 368, 368, 368, 368, 368,
718 static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr;
719 static char *yy_full_match;
723 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \
724 yy_cp = yy_full_match; /* restore poss. backed-over text */ \
728 #define yymore() yymore_used_but_not_detected
729 #define YY_MORE_ADJ 0
730 #define YY_RESTORE_YY_MORE_OFFSET
734 /* GOB C Preprocessor
735 * Copyright (C) 1999 the Free Software Foundation.
737 * Author: George Lebl
739 * This program is free software; you can redistribute it and/or modify
740 * it under the terms of the GNU General Public License as published by
741 * the Free Software Foundation; either version 2 of the License, or
742 * (at your option) any later version.
744 * This program is distributed in the hope that it will be useful,
745 * but WITHOUT ANY WARRANTY; without even the implied warranty of
746 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
747 * GNU General Public License for more details.
749 * You should have received a copy of the GNU General Public License
750 * along with this program; if not, write to the Free Software
751 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
764 static int parenth_depth = 0;
765 static int before_comment = INITIAL;
766 static gboolean class_after_c = FALSE;
767 static int code_type = CCODE;
770 static char *gtk_doc_func = NULL; /* current gtk-doc func */
771 GHashTable *gtk_doc_hash = NULL;
773 static GString *cbuf = NULL;
776 GList *include_files = NULL;
777 /* 0 no, 1 means yes, 2+ means don't even start looking anymore */
778 static int look_for_includes = 0;
786 cbuf = g_string_new("");
788 cbuf = g_string_assign(cbuf,"");
796 cbuf = g_string_new(s);
798 cbuf = g_string_append(cbuf,s);
803 add_gtk_doc_func(void)
809 gtk_doc_hash = g_hash_table_new(g_str_hash, g_str_equal);
810 g_hash_table_insert(gtk_doc_hash, gtk_doc_func, g_strdup(cbuf->str));
821 #define C_CODE_STRING 3
825 #define CLASS_CODE_I 5
827 #define GTK_DOC_BEFORE_NAME 6
831 #define GTK_DOC_LINE 8
835 /* Macros after this point can all be overridden by user definitions in
839 #ifndef YY_SKIP_YYWRAP
841 extern "C" int yywrap YY_PROTO(( void ));
843 extern int yywrap YY_PROTO(( void ));
848 static void yyunput YY_PROTO(( int c, char *buf_ptr ));
852 static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
855 #ifdef YY_NEED_STRLEN
856 static int yy_flex_strlen YY_PROTO(( yyconst char * ));
861 static int yyinput YY_PROTO(( void ));
863 static int input YY_PROTO(( void ));
868 static int yy_start_stack_ptr = 0;
869 static int yy_start_stack_depth = 0;
870 static int *yy_start_stack = 0;
871 #ifndef YY_NO_PUSH_STATE
872 static void yy_push_state YY_PROTO(( int new_state ));
874 #ifndef YY_NO_POP_STATE
875 static void yy_pop_state YY_PROTO(( void ));
877 #ifndef YY_NO_TOP_STATE
878 static int yy_top_state YY_PROTO(( void ));
882 #define YY_NO_PUSH_STATE 1
883 #define YY_NO_POP_STATE 1
884 #define YY_NO_TOP_STATE 1
887 #ifdef YY_MALLOC_DECL
895 /* Just try to get by without declaring the routines. This will fail
896 * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
897 * or sizeof(void*) != sizeof(int).
902 /* Amount of stuff to slurp up with each read. */
903 #ifndef YY_READ_BUF_SIZE
904 #define YY_READ_BUF_SIZE 8192
907 /* Copy whatever the last rule matched to the standard output. */
910 /* This used to be an fputs(), but since the string might contain NUL's,
911 * we now use fwrite().
913 #define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
916 /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
917 * is returned in "result".
920 #define YY_INPUT(buf,result,max_size) \
921 if ( yy_current_buffer->yy_is_interactive ) \
924 for ( n = 0; n < max_size && \
925 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
928 buf[n++] = (char) c; \
929 if ( c == EOF && ferror( yyin ) ) \
930 YY_FATAL_ERROR( "input in flex scanner failed" ); \
933 else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
934 && ferror( yyin ) ) \
935 YY_FATAL_ERROR( "input in flex scanner failed" );
938 /* No semi-colon after return; correct usage is to write "yyterminate();" -
939 * we don't want an extra ';' after the "return" because that will cause
940 * some compilers to complain about unreachable statements.
943 #define yyterminate() return YY_NULL
946 /* Number of entries by which start-condition stack grows. */
947 #ifndef YY_START_STACK_INCR
948 #define YY_START_STACK_INCR 25
951 /* Report a fatal error. */
952 #ifndef YY_FATAL_ERROR
953 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
956 /* Default declaration of generated scanner - a define so the user can
957 * easily add parameters.
960 #define YY_DECL int yylex YY_PROTO(( void ))
963 /* Code executed at the beginning of each rule, after yytext and yyleng
966 #ifndef YY_USER_ACTION
967 #define YY_USER_ACTION
970 /* Code executed at the end of each rule. */
972 #define YY_BREAK break;
975 #define YY_RULE_SETUP \
977 yy_current_buffer->yy_at_bol = \
978 (yytext[yyleng - 1] == '\n'); \
983 register yy_state_type yy_current_state;
984 register char *yy_cp = NULL, *yy_bp = NULL;
1001 yy_start = 1; /* first start state */
1009 if ( ! yy_current_buffer )
1011 yy_create_buffer( yyin, YY_BUF_SIZE );
1013 yy_load_buffer_state();
1016 while ( 1 ) /* loops until end-of-file is reached */
1020 /* Support of yytext. */
1021 *yy_cp = yy_hold_char;
1023 /* yy_bp points to the position in yy_ch_buf of the start of
1028 yy_current_state = yy_start;
1029 yy_current_state += YY_AT_BOL();
1030 yy_state_ptr = yy_state_buf;
1031 *yy_state_ptr++ = yy_current_state;
1035 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
1036 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1038 yy_current_state = (int) yy_def[yy_current_state];
1039 if ( yy_current_state >= 369 )
1040 yy_c = yy_meta[(unsigned int) yy_c];
1042 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1043 *yy_state_ptr++ = yy_current_state;
1046 while ( yy_base[yy_current_state] != 817 );
1049 yy_current_state = *--yy_state_ptr;
1050 yy_lp = yy_accept[yy_current_state];
1051 find_rule: /* we branch to this label when backing up */
1052 for ( ; ; ) /* until we find what rule we matched */
1054 if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )
1056 yy_act = yy_acclist[yy_lp];
1058 yy_full_match = yy_cp;
1063 yy_current_state = *--yy_state_ptr;
1064 yy_lp = yy_accept[yy_current_state];
1067 YY_DO_BEFORE_ACTION;
1070 do_action: /* This label is used only to access EOF actions. */
1074 { /* beginning of action switch */
1078 { line_no++; REJECT; }
1083 { fprintf(stderr,"You are a bad bad person!\n"); REJECT; }
1086 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
1087 yy_c_buf_p = yy_cp -= 1;
1088 YY_DO_BEFORE_ACTION; /* set up yytext again */
1091 { ; /*comment, ignore*/ }
1097 if(look_for_includes==1) {
1100 char *str = g_strdup(yytext);
1101 file = strchr(str,'"');
1102 if(!file) file = strchr(str,'<');
1104 p = strchr(file,'"');
1105 if(!p) p = strchr(file,'>');
1107 include_files = g_list_prepend(include_files,g_strdup(file));
1114 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
1115 yy_c_buf_p = yy_cp -= 1;
1116 YY_DO_BEFORE_ACTION; /* set up yytext again */
1120 /* eat out gtk doc stuff */
1121 BEGIN(GTK_DOC_BEFORE_NAME);
1126 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
1127 yy_c_buf_p = yy_cp -= 1;
1128 YY_DO_BEFORE_ACTION; /* set up yytext again */
1132 /* empty doc lines */
1137 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
1138 yy_c_buf_p = yy_cp -= 1;
1139 YY_DO_BEFORE_ACTION; /* set up yytext again */
1145 p = strchr(yytext, '*');
1146 g_free(gtk_doc_func);
1147 gtk_doc_func = g_strdup(p+2);
1148 p = strchr(gtk_doc_func, ':');
1150 g_strstrip(gtk_doc_func);
1157 BEGIN(CLASS_CODE_I);
1165 before_comment = CLASS_CODE_I;
1169 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
1170 yy_c_buf_p = yy_cp -= 1;
1171 YY_DO_BEFORE_ACTION; /* set up yytext again */
1175 /* empty doc lines */
1176 add_to_cbuf(" *\n");
1183 BEGIN(CLASS_CODE_I);
1193 BEGIN(GTK_DOC_LINE);
1200 BEGIN(CLASS_CODE_I);
1208 before_comment = CLASS_CODE_I;
1215 BEGIN(CLASS_CODE_I);
1221 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
1222 yy_c_buf_p = yy_cp -= 1;
1223 YY_DO_BEFORE_ACTION; /* set up yytext again */
1228 add_to_cbuf(yytext);
1237 add_to_cbuf(yytext);
1241 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
1242 yy_c_buf_p = yy_cp -= 1;
1243 YY_DO_BEFORE_ACTION; /* set up yytext again */
1246 { add_to_cbuf(yytext); /*comment, ignore*/ }
1249 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
1250 yy_c_buf_p = yy_cp -= 1;
1251 YY_DO_BEFORE_ACTION; /* set up yytext again */
1254 { ; /*comment, ignore*/ }
1257 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
1258 yy_c_buf_p = yy_cp -= 1;
1259 YY_DO_BEFORE_ACTION; /* set up yytext again */
1262 { ; /*comment, ignore*/ }
1267 {BEGIN(COMMENT); before_comment = INITIAL; }
1273 add_to_cbuf(yytext);
1275 before_comment = C_CODE;
1281 {BEGIN(COMMENT); before_comment = CLASS_CODE; }
1286 {BEGIN(COMMENT); before_comment = CLASS_CODE_I; }
1292 if(before_comment == C_CODE) add_to_cbuf(yytext);
1293 BEGIN(before_comment);
1300 /* comment, ignore */
1301 if(before_comment == C_CODE) add_to_cbuf(yytext);
1308 /* comment, ignore */
1309 if(before_comment == C_CODE) add_to_cbuf(yytext);
1318 class_after_c = FALSE;
1321 ccode_line = line_no;
1330 class_after_c = FALSE;
1333 ccode_line = line_no;
1342 class_after_c = FALSE;
1345 ccode_line = line_no;
1354 class_after_c = FALSE;
1357 ccode_line = line_no;
1366 class_after_c = FALSE;
1369 ccode_line = line_no;
1378 class_after_c = FALSE;
1381 ccode_line = line_no;
1382 if(look_for_includes==0)
1383 look_for_includes=1;
1393 if(look_for_includes==1)
1394 look_for_includes=0;
1401 { add_to_cbuf(yytext); }
1406 { add_to_cbuf(yytext); }
1411 { add_to_cbuf(yytext); }
1416 { add_to_cbuf(yytext); }
1421 { add_to_cbuf(yytext); }
1426 { add_to_cbuf(yytext); }
1431 { add_to_cbuf(yytext); }
1437 BEGIN(C_CODE_STRING);
1438 add_to_cbuf(yytext);
1444 { add_to_cbuf(yytext); }
1451 add_to_cbuf(yytext);
1457 { add_to_cbuf(yytext); }
1462 { add_to_cbuf(yytext); }
1469 add_to_cbuf(yytext);
1477 if(parenth_depth<0) {
1479 } else if(parenth_depth==0 && class_after_c) {
1480 BEGIN(CLASS_CODE_I);
1485 add_to_cbuf(yytext);
1491 { add_to_cbuf(yytext); }
1496 { add_to_cbuf(yytext); }
1502 static int found_classes = 0;
1503 look_for_includes = 2;
1506 if(++found_classes > 1) {
1508 "Only one class per file allowed",
1516 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
1517 yy_c_buf_p = yy_cp -= 1;
1518 YY_DO_BEFORE_ACTION; /* set up yytext again */
1522 int maj = 0,min = 0,pl = 0;
1523 int rmaj = 0,rmin = 0,rpl = 0;
1526 sscanf(VERSION,"%d.%d.%d",&rmaj,&rmin,&rpl);
1527 p = strchr(yytext,'r');
1528 g_assert(p); /* we MUST have found it */
1529 sscanf(p,"requires %d.%d.%d",&maj,&min,&pl);
1531 (rmaj == maj && rmin < min) ||
1532 (rmaj == maj && rmin == min && rpl < pl)) {
1534 s = g_strdup_printf(
1535 "GOB version %d.%d.%d required "
1537 "To upgrade your gob, see: "
1538 "http://www.5z.com/jirka/gob.html",
1539 maj,min,pl,VERSION);
1540 print_error(FALSE, s, line_no);
1551 s = g_strdup_printf("'%s' keyword should not "
1552 "be used when generating "
1554 print_error(TRUE, s, line_no);
1638 {yylval.line = line_no; return PUBLIC;}
1643 {yylval.line = line_no; return PRIVATE;}
1648 {yylval.line = line_no; return PROTECTED;}
1653 {yylval.line = line_no; return ARGUMENT;}
1658 {yylval.line = line_no; return VIRTUAL;}
1663 {yylval.line = line_no; return SIGNAL;}
1668 {yylval.line = line_no; return OVERRIDE;}
1679 yylval.id = g_strdup(yytext);
1687 yylval.id = g_strdup(yytext);
1695 yylval.id = g_strdup(yytext);
1703 yylval.id = g_strdup(yytext);
1711 BEGIN(CLASS_CODE_I);
1721 class_after_c = TRUE;
1722 yylval.line = line_no;
1724 ccode_line = line_no;
1745 yylval.line = line_no;
1759 #line 1760 "lex.yy.c"
1760 case YY_STATE_EOF(INITIAL):
1761 case YY_STATE_EOF(COMMENT):
1762 case YY_STATE_EOF(C_CODE):
1763 case YY_STATE_EOF(C_CODE_STRING):
1764 case YY_STATE_EOF(CLASS_CODE):
1765 case YY_STATE_EOF(CLASS_CODE_I):
1766 case YY_STATE_EOF(GTK_DOC_BEFORE_NAME):
1767 case YY_STATE_EOF(GTK_DOC):
1768 case YY_STATE_EOF(GTK_DOC_LINE):
1771 case YY_END_OF_BUFFER:
1773 /* Amount of text matched not including the EOB char. */
1774 int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
1776 /* Undo the effects of YY_DO_BEFORE_ACTION. */
1777 *yy_cp = yy_hold_char;
1778 YY_RESTORE_YY_MORE_OFFSET
1780 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
1782 /* We're scanning a new file or input source. It's
1783 * possible that this happened because the user
1784 * just pointed yyin at a new source and called
1785 * yylex(). If so, then we have to assure
1786 * consistency between yy_current_buffer and our
1787 * globals. Here is the right place to do so, because
1788 * this is the first action (other than possibly a
1789 * back-up) that will match for the new input source.
1791 yy_n_chars = yy_current_buffer->yy_n_chars;
1792 yy_current_buffer->yy_input_file = yyin;
1793 yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
1796 /* Note that here we test for yy_c_buf_p "<=" to the position
1797 * of the first EOB in the buffer, since yy_c_buf_p will
1798 * already have been incremented past the NUL character
1799 * (since all states make transitions on EOB to the
1800 * end-of-buffer state). Contrast this with the test
1803 if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
1804 { /* This was really a NUL. */
1805 yy_state_type yy_next_state;
1807 yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
1809 yy_current_state = yy_get_previous_state();
1811 /* Okay, we're now positioned to make the NUL
1812 * transition. We couldn't have
1813 * yy_get_previous_state() go ahead and do it
1814 * for us because it doesn't know how to deal
1815 * with the possibility of jamming (and we don't
1816 * want to build jamming into it because then it
1817 * will run more slowly).
1820 yy_next_state = yy_try_NUL_trans( yy_current_state );
1822 yy_bp = yytext_ptr + YY_MORE_ADJ;
1824 if ( yy_next_state )
1826 /* Consume the NUL. */
1827 yy_cp = ++yy_c_buf_p;
1828 yy_current_state = yy_next_state;
1835 goto yy_find_action;
1839 else switch ( yy_get_next_buffer() )
1841 case EOB_ACT_END_OF_FILE:
1843 yy_did_buffer_switch_on_eof = 0;
1847 /* Note: because we've taken care in
1848 * yy_get_next_buffer() to have set up
1849 * yytext, we can now set up
1850 * yy_c_buf_p so that if some total
1851 * hoser (like flex itself) wants to
1852 * call the scanner after we return the
1853 * YY_NULL, it'll still work - another
1854 * YY_NULL will get returned.
1856 yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
1858 yy_act = YY_STATE_EOF(YY_START);
1864 if ( ! yy_did_buffer_switch_on_eof )
1870 case EOB_ACT_CONTINUE_SCAN:
1872 yytext_ptr + yy_amount_of_matched_text;
1874 yy_current_state = yy_get_previous_state();
1877 yy_bp = yytext_ptr + YY_MORE_ADJ;
1880 case EOB_ACT_LAST_MATCH:
1882 &yy_current_buffer->yy_ch_buf[yy_n_chars];
1884 yy_current_state = yy_get_previous_state();
1887 yy_bp = yytext_ptr + YY_MORE_ADJ;
1888 goto yy_find_action;
1895 "fatal flex scanner internal error--no action found" );
1896 } /* end of action switch */
1897 } /* end of scanning one token */
1898 } /* end of yylex */
1901 /* yy_get_next_buffer - try to read in a new buffer
1903 * Returns a code representing an action:
1904 * EOB_ACT_LAST_MATCH -
1905 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
1906 * EOB_ACT_END_OF_FILE - end of file
1909 static int yy_get_next_buffer()
1911 register char *dest = yy_current_buffer->yy_ch_buf;
1912 register char *source = yytext_ptr;
1913 register int number_to_move, i;
1916 if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
1918 "fatal flex scanner internal error--end of buffer missed" );
1920 if ( yy_current_buffer->yy_fill_buffer == 0 )
1921 { /* Don't try to fill the buffer, so this is an EOF. */
1922 if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
1924 /* We matched a single character, the EOB, so
1925 * treat this as a final EOF.
1927 return EOB_ACT_END_OF_FILE;
1932 /* We matched some text prior to the EOB, first
1935 return EOB_ACT_LAST_MATCH;
1939 /* Try to read more data. */
1941 /* First move last chars to start of buffer. */
1942 number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
1944 for ( i = 0; i < number_to_move; ++i )
1945 *(dest++) = *(source++);
1947 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1948 /* don't do the read, it's not guaranteed to return an EOF,
1951 yy_current_buffer->yy_n_chars = yy_n_chars = 0;
1956 yy_current_buffer->yy_buf_size - number_to_move - 1;
1958 while ( num_to_read <= 0 )
1959 { /* Not enough room in the buffer - grow it. */
1960 #ifdef YY_USES_REJECT
1962 "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
1965 /* just a shorter name for the current buffer */
1966 YY_BUFFER_STATE b = yy_current_buffer;
1968 int yy_c_buf_p_offset =
1969 (int) (yy_c_buf_p - b->yy_ch_buf);
1971 if ( b->yy_is_our_buffer )
1973 int new_size = b->yy_buf_size * 2;
1975 if ( new_size <= 0 )
1976 b->yy_buf_size += b->yy_buf_size / 8;
1978 b->yy_buf_size *= 2;
1980 b->yy_ch_buf = (char *)
1981 /* Include room in for 2 EOB chars. */
1982 yy_flex_realloc( (void *) b->yy_ch_buf,
1983 b->yy_buf_size + 2 );
1986 /* Can't grow it, we don't own it. */
1989 if ( ! b->yy_ch_buf )
1991 "fatal error - scanner input buffer overflow" );
1993 yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
1995 num_to_read = yy_current_buffer->yy_buf_size -
2000 if ( num_to_read > YY_READ_BUF_SIZE )
2001 num_to_read = YY_READ_BUF_SIZE;
2003 /* Read in more data. */
2004 YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
2005 yy_n_chars, num_to_read );
2007 yy_current_buffer->yy_n_chars = yy_n_chars;
2010 if ( yy_n_chars == 0 )
2012 if ( number_to_move == YY_MORE_ADJ )
2014 ret_val = EOB_ACT_END_OF_FILE;
2020 ret_val = EOB_ACT_LAST_MATCH;
2021 yy_current_buffer->yy_buffer_status =
2022 YY_BUFFER_EOF_PENDING;
2027 ret_val = EOB_ACT_CONTINUE_SCAN;
2029 yy_n_chars += number_to_move;
2030 yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
2031 yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
2033 yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
2039 /* yy_get_previous_state - get the state just before the EOB char was reached */
2041 static yy_state_type yy_get_previous_state()
2043 register yy_state_type yy_current_state;
2044 register char *yy_cp;
2046 yy_current_state = yy_start;
2047 yy_current_state += YY_AT_BOL();
2048 yy_state_ptr = yy_state_buf;
2049 *yy_state_ptr++ = yy_current_state;
2051 for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
2053 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
2054 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2056 yy_current_state = (int) yy_def[yy_current_state];
2057 if ( yy_current_state >= 369 )
2058 yy_c = yy_meta[(unsigned int) yy_c];
2060 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2061 *yy_state_ptr++ = yy_current_state;
2064 return yy_current_state;
2068 /* yy_try_NUL_trans - try to make a transition on the NUL character
2071 * next_state = yy_try_NUL_trans( current_state );
2074 #ifdef YY_USE_PROTOS
2075 static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
2077 static yy_state_type yy_try_NUL_trans( yy_current_state )
2078 yy_state_type yy_current_state;
2081 register int yy_is_jam;
2083 register YY_CHAR yy_c = 1;
2084 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2086 yy_current_state = (int) yy_def[yy_current_state];
2087 if ( yy_current_state >= 369 )
2088 yy_c = yy_meta[(unsigned int) yy_c];
2090 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2091 yy_is_jam = (yy_current_state == 368);
2093 *yy_state_ptr++ = yy_current_state;
2095 return yy_is_jam ? 0 : yy_current_state;
2100 #ifdef YY_USE_PROTOS
2101 static void yyunput( int c, register char *yy_bp )
2103 static void yyunput( c, yy_bp )
2105 register char *yy_bp;
2108 register char *yy_cp = yy_c_buf_p;
2110 /* undo effects of setting up yytext */
2111 *yy_cp = yy_hold_char;
2113 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
2114 { /* need to shift things up to make room */
2115 /* +2 for EOB chars. */
2116 register int number_to_move = yy_n_chars + 2;
2117 register char *dest = &yy_current_buffer->yy_ch_buf[
2118 yy_current_buffer->yy_buf_size + 2];
2119 register char *source =
2120 &yy_current_buffer->yy_ch_buf[number_to_move];
2122 while ( source > yy_current_buffer->yy_ch_buf )
2123 *--dest = *--source;
2125 yy_cp += (int) (dest - source);
2126 yy_bp += (int) (dest - source);
2127 yy_current_buffer->yy_n_chars =
2128 yy_n_chars = yy_current_buffer->yy_buf_size;
2130 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
2131 YY_FATAL_ERROR( "flex scanner push-back overflow" );
2134 *--yy_cp = (char) c;
2138 yy_hold_char = *yy_cp;
2141 #endif /* ifndef YY_NO_UNPUT */
2145 static int yyinput()
2152 *yy_c_buf_p = yy_hold_char;
2154 if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
2156 /* yy_c_buf_p now points to the character we want to return.
2157 * If this occurs *before* the EOB characters, then it's a
2158 * valid NUL; if not, then we've hit the end of the buffer.
2160 if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
2161 /* This was really a NUL. */
2165 { /* need more input */
2166 int offset = yy_c_buf_p - yytext_ptr;
2169 switch ( yy_get_next_buffer() )
2171 case EOB_ACT_LAST_MATCH:
2172 /* This happens because yy_g_n_b()
2173 * sees that we've accumulated a
2174 * token and flags that we need to
2175 * try matching the token before
2176 * proceeding. But for input(),
2177 * there's no matching to consider.
2178 * So convert the EOB_ACT_LAST_MATCH
2179 * to EOB_ACT_END_OF_FILE.
2182 /* Reset buffer status. */
2187 case EOB_ACT_END_OF_FILE:
2192 if ( ! yy_did_buffer_switch_on_eof )
2201 case EOB_ACT_CONTINUE_SCAN:
2202 yy_c_buf_p = yytext_ptr + offset;
2208 c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
2209 *yy_c_buf_p = '\0'; /* preserve yytext */
2210 yy_hold_char = *++yy_c_buf_p;
2212 yy_current_buffer->yy_at_bol = (c == '\n');
2218 #ifdef YY_USE_PROTOS
2219 void yyrestart( FILE *input_file )
2221 void yyrestart( input_file )
2225 if ( ! yy_current_buffer )
2226 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
2228 yy_init_buffer( yy_current_buffer, input_file );
2229 yy_load_buffer_state();
2233 #ifdef YY_USE_PROTOS
2234 void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
2236 void yy_switch_to_buffer( new_buffer )
2237 YY_BUFFER_STATE new_buffer;
2240 if ( yy_current_buffer == new_buffer )
2243 if ( yy_current_buffer )
2245 /* Flush out information for old buffer. */
2246 *yy_c_buf_p = yy_hold_char;
2247 yy_current_buffer->yy_buf_pos = yy_c_buf_p;
2248 yy_current_buffer->yy_n_chars = yy_n_chars;
2251 yy_current_buffer = new_buffer;
2252 yy_load_buffer_state();
2254 /* We don't actually know whether we did this switch during
2255 * EOF (yywrap()) processing, but the only time this flag
2256 * is looked at is after yywrap() is called, so it's safe
2257 * to go ahead and always set it.
2259 yy_did_buffer_switch_on_eof = 1;
2263 #ifdef YY_USE_PROTOS
2264 void yy_load_buffer_state( void )
2266 void yy_load_buffer_state()
2269 yy_n_chars = yy_current_buffer->yy_n_chars;
2270 yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
2271 yyin = yy_current_buffer->yy_input_file;
2272 yy_hold_char = *yy_c_buf_p;
2276 #ifdef YY_USE_PROTOS
2277 YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
2279 YY_BUFFER_STATE yy_create_buffer( file, size )
2286 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
2288 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2290 b->yy_buf_size = size;
2292 /* yy_ch_buf has to be 2 characters longer than the size given because
2293 * we need to put in 2 end-of-buffer characters.
2295 b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
2296 if ( ! b->yy_ch_buf )
2297 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2299 b->yy_is_our_buffer = 1;
2301 yy_init_buffer( b, file );
2307 #ifdef YY_USE_PROTOS
2308 void yy_delete_buffer( YY_BUFFER_STATE b )
2310 void yy_delete_buffer( b )
2317 if ( b == yy_current_buffer )
2318 yy_current_buffer = (YY_BUFFER_STATE) 0;
2320 if ( b->yy_is_our_buffer )
2321 yy_flex_free( (void *) b->yy_ch_buf );
2323 yy_flex_free( (void *) b );
2327 #ifndef YY_ALWAYS_INTERACTIVE
2328 #ifndef YY_NEVER_INTERACTIVE
2329 extern int isatty YY_PROTO(( int ));
2333 #ifdef YY_USE_PROTOS
2334 void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
2336 void yy_init_buffer( b, file )
2343 yy_flush_buffer( b );
2345 b->yy_input_file = file;
2346 b->yy_fill_buffer = 1;
2348 #if YY_ALWAYS_INTERACTIVE
2349 b->yy_is_interactive = 1;
2351 #if YY_NEVER_INTERACTIVE
2352 b->yy_is_interactive = 0;
2354 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
2360 #ifdef YY_USE_PROTOS
2361 void yy_flush_buffer( YY_BUFFER_STATE b )
2363 void yy_flush_buffer( b )
2373 /* We always need two end-of-buffer characters. The first causes
2374 * a transition to the end-of-buffer state. The second causes
2375 * a jam in that state.
2377 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
2378 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
2380 b->yy_buf_pos = &b->yy_ch_buf[0];
2383 b->yy_buffer_status = YY_BUFFER_NEW;
2385 if ( b == yy_current_buffer )
2386 yy_load_buffer_state();
2390 #ifndef YY_NO_SCAN_BUFFER
2391 #ifdef YY_USE_PROTOS
2392 YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
2394 YY_BUFFER_STATE yy_scan_buffer( base, size )
2402 base[size-2] != YY_END_OF_BUFFER_CHAR ||
2403 base[size-1] != YY_END_OF_BUFFER_CHAR )
2404 /* They forgot to leave room for the EOB's. */
2407 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
2409 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
2411 b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
2412 b->yy_buf_pos = b->yy_ch_buf = base;
2413 b->yy_is_our_buffer = 0;
2414 b->yy_input_file = 0;
2415 b->yy_n_chars = b->yy_buf_size;
2416 b->yy_is_interactive = 0;
2418 b->yy_fill_buffer = 0;
2419 b->yy_buffer_status = YY_BUFFER_NEW;
2421 yy_switch_to_buffer( b );
2428 #ifndef YY_NO_SCAN_STRING
2429 #ifdef YY_USE_PROTOS
2430 YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
2432 YY_BUFFER_STATE yy_scan_string( yy_str )
2433 yyconst char *yy_str;
2437 for ( len = 0; yy_str[len]; ++len )
2440 return yy_scan_bytes( yy_str, len );
2445 #ifndef YY_NO_SCAN_BYTES
2446 #ifdef YY_USE_PROTOS
2447 YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
2449 YY_BUFFER_STATE yy_scan_bytes( bytes, len )
2450 yyconst char *bytes;
2459 /* Get memory for full buffer, including space for trailing EOB's. */
2461 buf = (char *) yy_flex_alloc( n );
2463 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
2465 for ( i = 0; i < len; ++i )
2468 buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
2470 b = yy_scan_buffer( buf, n );
2472 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
2474 /* It's okay to grow etc. this buffer, and we should throw it
2475 * away when we're done.
2477 b->yy_is_our_buffer = 1;
2484 #ifndef YY_NO_PUSH_STATE
2485 #ifdef YY_USE_PROTOS
2486 static void yy_push_state( int new_state )
2488 static void yy_push_state( new_state )
2492 if ( yy_start_stack_ptr >= yy_start_stack_depth )
2496 yy_start_stack_depth += YY_START_STACK_INCR;
2497 new_size = yy_start_stack_depth * sizeof( int );
2499 if ( ! yy_start_stack )
2500 yy_start_stack = (int *) yy_flex_alloc( new_size );
2503 yy_start_stack = (int *) yy_flex_realloc(
2504 (void *) yy_start_stack, new_size );
2506 if ( ! yy_start_stack )
2508 "out of memory expanding start-condition stack" );
2511 yy_start_stack[yy_start_stack_ptr++] = YY_START;
2518 #ifndef YY_NO_POP_STATE
2519 static void yy_pop_state()
2521 if ( --yy_start_stack_ptr < 0 )
2522 YY_FATAL_ERROR( "start-condition stack underflow" );
2524 BEGIN(yy_start_stack[yy_start_stack_ptr]);
2529 #ifndef YY_NO_TOP_STATE
2530 static int yy_top_state()
2532 return yy_start_stack[yy_start_stack_ptr - 1];
2536 #ifndef YY_EXIT_FAILURE
2537 #define YY_EXIT_FAILURE 2
2540 #ifdef YY_USE_PROTOS
2541 static void yy_fatal_error( yyconst char msg[] )
2543 static void yy_fatal_error( msg )
2547 (void) fprintf( stderr, "%s\n", msg );
2548 exit( YY_EXIT_FAILURE );
2553 /* Redefine yyless() so it works in section 3 code. */
2559 /* Undo effects of setting up yytext. */ \
2560 yytext[yyleng] = yy_hold_char; \
2561 yy_c_buf_p = yytext + n; \
2562 yy_hold_char = *yy_c_buf_p; \
2563 *yy_c_buf_p = '\0'; \
2569 /* Internal utility routines. */
2572 #ifdef YY_USE_PROTOS
2573 static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
2575 static void yy_flex_strncpy( s1, s2, n )
2582 for ( i = 0; i < n; ++i )
2587 #ifdef YY_NEED_STRLEN
2588 #ifdef YY_USE_PROTOS
2589 static int yy_flex_strlen( yyconst char *s )
2591 static int yy_flex_strlen( s )
2596 for ( n = 0; s[n]; ++n )
2604 #ifdef YY_USE_PROTOS
2605 static void *yy_flex_alloc( yy_size_t size )
2607 static void *yy_flex_alloc( size )
2611 return (void *) malloc( size );
2614 #ifdef YY_USE_PROTOS
2615 static void *yy_flex_realloc( void *ptr, yy_size_t size )
2617 static void *yy_flex_realloc( ptr, size )
2622 /* The cast to (char *) in the following accommodates both
2623 * implementations that use char* generic pointers, and those
2624 * that use void* generic pointers. It works with the latter
2625 * because both ANSI C and C++ allow castless assignment from
2626 * any pointer type to void*, and deal with argument conversions
2627 * as though doing an assignment.
2629 return (void *) realloc( (char *) ptr, size );
2632 #ifdef YY_USE_PROTOS
2633 static void yy_flex_free( void *ptr )
2635 static void yy_flex_free( ptr )