1 /* A lexical scanner generated by flex */
3 /* Scanner skeleton version:
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)
266 #define YY_SKIP_YYWRAP
267 typedef unsigned char YY_CHAR;
268 FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
269 typedef int yy_state_type;
271 #define yytext_ptr yytext
273 static yy_state_type yy_get_previous_state YY_PROTO(( void ));
274 static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
275 static int yy_get_next_buffer YY_PROTO(( void ));
276 static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
278 /* Done after the current pattern has been matched and before the
279 * corresponding action - sets up yytext.
281 #define YY_DO_BEFORE_ACTION \
282 yytext_ptr = yy_bp; \
283 yyleng = (int) (yy_cp - yy_bp); \
284 yy_hold_char = *yy_cp; \
288 #define YY_NUM_RULES 107
289 #define YY_END_OF_BUFFER 108
290 static yyconst short int yy_accept[565] =
292 0, 0, 108, 103, 98, 99, 90, 104, 101, 87,
293 91, 88, 89, 94, 105, 103, 103, 103, 103, 103,
294 103, 103, 103, 103, 103, 103, 103, 103, 103, 103,
295 103, 103, 103, 103, 103, 103, 103, 92, 103, 98,
296 99, 101, 0, 0, 102, 0, 101, 101, 100, 96,
297 94, 0, 97, 103, 103, 103, 103, 19, 103, 103,
298 103, 103, 103, 103, 103, 103, 103, 103, 37, 103,
299 103, 103, 103, 32, 103, 103, 103, 103, 103, 103,
300 103, 103, 103, 103, 103, 103, 103, 103, 103, 103,
301 103, 103, 103, 103, 103, 103, 103, 103, 103, 103,
303 0, 0, 0, 95, 94, 97, 103, 103, 103, 103,
304 103, 103, 103, 103, 103, 103, 103, 103, 103, 103,
305 103, 31, 63, 103, 103, 103, 103, 103, 103, 103,
306 103, 103, 103, 71, 103, 103, 103, 103, 103, 103,
307 103, 103, 103, 103, 103, 103, 103, 103, 103, 103,
308 103, 103, 103, 103, 103, 103, 103, 103, 103, 103,
309 103, 103, 0, 0, 95, 94, 103, 103, 103, 67,
310 103, 103, 64, 68, 103, 103, 103, 35, 36, 103,
311 103, 103, 103, 40, 42, 103, 51, 103, 103, 60,
312 70, 103, 72, 103, 73, 103, 103, 103, 103, 103,
314 103, 103, 30, 103, 85, 103, 103, 103, 103, 103,
315 103, 103, 103, 103, 103, 103, 75, 76, 103, 62,
316 103, 0, 95, 94, 103, 65, 103, 103, 103, 103,
317 103, 59, 103, 66, 103, 93, 103, 38, 103, 103,
318 103, 103, 103, 103, 103, 103, 103, 103, 103, 103,
319 41, 103, 103, 49, 103, 103, 103, 103, 103, 103,
320 103, 103, 103, 103, 103, 86, 95, 94, 103, 103,
321 103, 103, 103, 69, 103, 103, 103, 103, 103, 103,
322 70, 77, 78, 79, 80, 81, 82, 83, 84, 103,
323 103, 103, 103, 61, 103, 103, 103, 1, 103, 103,
325 103, 103, 103, 39, 103, 74, 103, 103, 103, 103,
326 95, 94, 103, 103, 103, 103, 103, 103, 103, 103,
327 50, 103, 21, 26, 103, 103, 103, 10, 103, 103,
328 103, 103, 103, 52, 103, 103, 103, 103, 103, 45,
329 62, 95, 94, 103, 9, 67, 103, 103, 103, 103,
330 103, 103, 103, 103, 103, 103, 103, 103, 47, 103,
331 103, 103, 103, 103, 48, 103, 46, 103, 95, 103,
332 103, 103, 103, 103, 103, 103, 103, 103, 103, 12,
333 103, 103, 103, 103, 103, 103, 44, 11, 103, 103,
334 103, 103, 103, 103, 95, 103, 103, 103, 103, 103,
336 33, 103, 103, 103, 103, 103, 103, 103, 103, 103,
337 103, 103, 103, 8, 103, 103, 103, 103, 103, 103,
338 103, 103, 103, 103, 103, 43, 34, 103, 103, 103,
339 103, 103, 103, 103, 103, 103, 103, 103, 103, 103,
340 103, 20, 103, 103, 103, 103, 53, 103, 103, 103,
341 103, 103, 103, 103, 103, 103, 103, 103, 103, 103,
342 56, 103, 103, 103, 103, 103, 54, 103, 103, 103,
343 103, 103, 103, 103, 103, 103, 103, 103, 103, 103,
344 57, 103, 103, 15, 103, 103, 103, 103, 17, 7,
345 103, 103, 103, 103, 103, 103, 103, 23, 103, 103,
347 103, 103, 103, 103, 103, 103, 103, 103, 103, 4,
348 103, 103, 103, 22, 103, 103, 103, 103, 103, 13,
349 103, 103, 103, 103, 5, 6, 103, 103, 103, 103,
350 103, 103, 16, 103, 103, 103, 103, 103, 103, 3,
351 25, 103, 18, 103, 103, 103, 27, 103, 55, 103,
352 24, 14, 58, 103, 103, 103, 103, 28, 103, 103,
356 static yyconst int yy_ec[256] =
358 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
359 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
360 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
361 1, 2, 4, 5, 6, 7, 8, 9, 8, 10,
362 11, 8, 8, 8, 12, 8, 8, 13, 14, 15,
363 16, 17, 18, 19, 20, 21, 21, 8, 8, 8,
364 8, 8, 8, 8, 22, 22, 22, 22, 22, 22,
365 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
366 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
367 8, 23, 8, 8, 24, 8, 25, 26, 27, 28,
369 29, 30, 31, 32, 33, 34, 35, 36, 37, 38,
370 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,
371 49, 50, 8, 51, 8, 8, 1, 1, 1, 1,
372 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
373 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
374 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
375 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
376 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
377 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
378 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
380 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
381 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
382 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
383 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
384 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
388 static yyconst int yy_meta[52] =
390 1, 2, 3, 1, 2, 1, 1, 1, 1, 1,
391 1, 1, 4, 4, 4, 4, 4, 4, 4, 4,
392 4, 1, 2, 1, 1, 1, 1, 1, 1, 1,
393 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
394 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
398 static yyconst short int yy_base[571] =
400 0, 0, 779, 0, 50, 780, 0, 49, 55, 0,
401 0, 0, 0, 67, 59, 745, 19, 49, 34, 56,
402 744, 29, 39, 59, 747, 30, 71, 70, 729, 749,
403 728, 76, 74, 733, 65, 742, 82, 0, 0, 111,
404 780, 767, 73, 97, 780, 134, 123, 766, 780, 170,
405 179, 109, 116, 730, 93, 723, 94, 0, 88, 737,
406 739, 721, 98, 734, 716, 731, 718, 730, 0, 719,
407 728, 712, 719, 0, 716, 113, 711, 725, 709, 717,
408 706, 701, 120, 711, 717, 119, 712, 706, 133, 118,
409 698, 703, 701, 697, 699, 709, 710, 694, 693, 701,
411 163, 0, 196, 214, 223, 140, 706, 690, 692, 698,
412 693, 701, 683, 688, 688, 679, 696, 692, 692, 678,
413 686, 0, 679, 690, 690, 675, 689, 673, 673, 675,
414 671, 671, 683, 0, 671, 663, 662, 116, 671, 667,
415 660, 668, 675, 655, 667, 669, 667, 650, 665, 648,
416 646, 679, 646, 647, 648, 651, 650, 643, 644, 640,
417 644, 637, 0, 232, 250, 259, 644, 635, 631, 637,
418 643, 643, 0, 0, 635, 642, 633, 0, 0, 640,
419 628, 627, 623, 0, 0, 640, 0, 624, 620, 0,
420 635, 627, 0, 637, 0, 628, 175, 633, 647, 616,
422 630, 619, 0, 626, 0, 627, 620, 608, 609, 617,
423 620, 620, 605, 604, 606, 615, 631, 0, 609, 608,
424 611, 276, 287, 296, 594, 0, 626, 595, 598, 623,
425 596, 0, 595, 0, 593, 588, 586, 0, 600, 600,
426 591, 305, 595, 582, 580, 583, 593, 591, 587, 590,
427 0, 574, 575, 0, 583, 588, 576, 574, 583, 582,
428 579, 563, 566, 568, 568, 0, 313, 322, 577, 574,
429 570, 571, 560, 0, 562, 561, 586, 568, 584, 566,
430 0, 0, 0, 0, 0, 0, 0, 0, 0, 565,
431 566, 580, 551, 0, 562, 561, 544, 575, 557, 541,
433 555, 537, 535, 0, 538, 0, 551, 552, 540, 546,
434 331, 340, 547, 547, 528, 561, 527, 542, 533, 128,
435 557, 538, 555, 0, 527, 536, 522, 0, 534, 533,
436 531, 548, 510, 546, 524, 518, 512, 518, 523, 0,
437 0, 349, 540, 539, 0, 0, 251, 517, 522, 519,
438 502, 507, 143, 517, 142, 506, 505, 513, 0, 499,
439 512, 509, 252, 496, 0, 525, 0, 503, 358, 353,
440 493, 491, 489, 488, 493, 487, 517, 483, 485, 0,
441 493, 495, 485, 485, 476, 478, 0, 0, 492, 477,
442 475, 478, 491, 479, 0, 478, 464, 469, 472, 481,
444 0, 497, 464, 475, 255, 473, 466, 462, 474, 463,
445 472, 467, 456, 0, 459, 468, 458, 453, 465, 460,
446 449, 462, 445, 447, 456, 0, 0, 454, 158, 450,
447 448, 455, 435, 447, 454, 438, 467, 433, 435, 439,
448 444, 0, 445, 446, 430, 431, 458, 424, 432, 439,
449 423, 421, 452, 436, 429, 416, 416, 420, 433, 417,
450 444, 426, 411, 415, 413, 439, 0, 407, 409, 419,
451 418, 410, 412, 353, 400, 400, 402, 429, 402, 397,
452 0, 395, 399, 0, 392, 397, 392, 401, 0, 0,
453 390, 392, 392, 396, 403, 388, 382, 413, 392, 386,
455 391, 389, 376, 407, 388, 390, 387, 373, 374, 0,
456 359, 356, 355, 0, 370, 349, 363, 348, 361, 0,
457 362, 355, 357, 350, 0, 0, 356, 352, 334, 346,
458 255, 256, 0, 257, 253, 260, 257, 253, 261, 0,
459 0, 251, 0, 242, 248, 218, 0, 219, 0, 164,
460 0, 0, 0, 176, 176, 164, 148, 0, 138, 148,
461 128, 0, 0, 780, 398, 402, 406, 410, 167, 129
464 static yyconst short int yy_def[571] =
466 564, 1, 564, 565, 564, 564, 565, 566, 567, 565,
467 565, 565, 565, 565, 564, 565, 565, 565, 565, 565,
468 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
469 565, 565, 565, 565, 565, 565, 565, 565, 565, 564,
470 564, 568, 564, 566, 564, 566, 567, 568, 564, 565,
471 14, 564, 564, 565, 565, 565, 565, 565, 565, 565,
472 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
473 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
474 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
475 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
477 564, 569, 566, 565, 14, 564, 565, 565, 565, 565,
478 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
479 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
480 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
481 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
482 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
483 565, 565, 570, 103, 565, 14, 565, 565, 565, 565,
484 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
485 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
486 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
488 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
489 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
490 565, 566, 565, 14, 565, 565, 565, 565, 565, 565,
491 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
492 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
493 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
494 565, 565, 565, 565, 565, 565, 565, 14, 565, 565,
495 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
496 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
497 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
499 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
500 565, 14, 565, 565, 565, 565, 565, 565, 565, 565,
501 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
502 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
503 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
504 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
505 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
506 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
507 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
508 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
510 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
511 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
512 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
513 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
514 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
515 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
516 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
517 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
518 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
519 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
521 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
522 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
523 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
524 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
525 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
526 565, 565, 565, 565, 565, 565, 565, 565, 565, 565,
527 565, 565, 565, 0, 564, 564, 564, 564, 564, 564
530 static yyconst short int yy_nxt[832] =
532 4, 5, 6, 7, 8, 9, 10, 4, 11, 12,
533 13, 4, 14, 14, 14, 14, 14, 14, 14, 14,
534 14, 4, 15, 16, 17, 4, 18, 19, 20, 21,
535 22, 23, 24, 4, 25, 26, 27, 28, 29, 30,
536 31, 32, 33, 34, 35, 36, 37, 4, 4, 4,
537 38, 40, 41, 45, 55, 42, 48, 49, 60, 48,
538 52, 53, 61, 56, 70, 72, 62, 73, 78, 79,
539 71, 46, 43, 57, 52, 53, 58, 48, 50, 51,
540 51, 51, 51, 51, 51, 51, 51, 51, 74, 75,
541 59, 63, 64, 65, 66, 80, 76, 67, 82, 81,
543 88, 45, 90, 68, 89, 91, 99, 96, 83, 97,
544 52, 53, 40, 41, 84, 92, 42, 106, 93, 46,
545 113, 108, 94, 100, 48, 49, 114, 48, 109, 111,
546 118, 138, 44, 43, 564, 101, 44, 112, 43, 130,
547 119, 106, 131, 196, 150, 48, 102, 102, 102, 102,
548 102, 102, 102, 102, 102, 564, 142, 146, 197, 151,
549 143, 152, 43, 139, 101, 44, 147, 351, 378, 381,
550 163, 352, 379, 148, 382, 149, 563, 383, 562, 561,
551 560, 103, 104, 104, 104, 104, 104, 104, 104, 104,
552 104, 105, 105, 105, 105, 105, 105, 105, 105, 105,
554 45, 450, 559, 245, 558, 557, 451, 556, 164, 164,
555 164, 164, 164, 164, 164, 164, 164, 164, 46, 246,
556 164, 164, 164, 164, 164, 164, 165, 165, 165, 165,
557 165, 165, 165, 165, 165, 166, 166, 166, 166, 166,
558 166, 166, 166, 166, 222, 222, 222, 222, 222, 222,
559 222, 222, 222, 222, 555, 554, 222, 222, 222, 222,
560 222, 222, 223, 223, 223, 223, 223, 223, 223, 223,
561 223, 224, 224, 224, 224, 224, 224, 224, 224, 224,
562 45, 371, 390, 553, 428, 552, 551, 550, 549, 548,
563 547, 546, 545, 544, 543, 372, 391, 429, 46, 267,
565 267, 267, 267, 267, 267, 267, 267, 267, 268, 268,
566 268, 268, 268, 268, 268, 268, 268, 282, 283, 284,
567 285, 286, 287, 288, 289, 311, 311, 311, 311, 311,
568 311, 311, 311, 311, 312, 312, 312, 312, 312, 312,
569 312, 312, 312, 342, 342, 342, 342, 342, 342, 342,
570 342, 342, 343, 343, 343, 343, 343, 343, 343, 343,
571 343, 369, 369, 369, 369, 369, 369, 369, 369, 369,
572 395, 395, 395, 395, 395, 395, 395, 395, 395, 396,
573 494, 542, 541, 540, 539, 538, 537, 536, 535, 534,
574 533, 532, 495, 531, 530, 397, 529, 398, 39, 528,
576 527, 39, 44, 44, 526, 44, 47, 47, 47, 47,
577 48, 48, 48, 48, 525, 524, 523, 522, 521, 520,
578 519, 518, 517, 516, 515, 514, 513, 512, 511, 510,
579 509, 508, 507, 506, 505, 504, 503, 502, 501, 500,
580 499, 498, 497, 496, 493, 492, 491, 490, 489, 488,
581 487, 486, 485, 484, 483, 482, 481, 480, 479, 478,
582 477, 476, 475, 474, 473, 472, 471, 470, 469, 468,
583 467, 466, 465, 464, 463, 462, 461, 460, 459, 458,
584 457, 456, 455, 454, 453, 452, 449, 448, 447, 446,
585 445, 444, 443, 442, 441, 440, 439, 438, 437, 436,
587 435, 434, 433, 432, 431, 430, 427, 426, 425, 424,
588 423, 422, 421, 420, 419, 418, 417, 416, 415, 414,
589 413, 412, 411, 410, 409, 408, 407, 406, 405, 404,
590 403, 402, 401, 400, 399, 394, 393, 392, 389, 388,
591 387, 386, 385, 384, 380, 377, 376, 375, 374, 373,
592 370, 50, 368, 367, 366, 365, 364, 363, 346, 362,
593 361, 360, 359, 358, 357, 356, 355, 354, 353, 350,
594 349, 348, 347, 346, 345, 344, 341, 340, 339, 338,
595 337, 336, 335, 334, 333, 332, 331, 330, 329, 328,
596 327, 326, 325, 324, 323, 322, 321, 320, 319, 318,
598 317, 316, 315, 314, 313, 310, 309, 308, 307, 306,
599 305, 304, 303, 302, 301, 300, 299, 298, 297, 296,
600 295, 294, 293, 292, 291, 290, 281, 280, 279, 278,
601 277, 276, 275, 274, 273, 272, 271, 270, 269, 266,
602 265, 264, 263, 262, 261, 260, 259, 258, 257, 256,
603 255, 254, 253, 252, 251, 250, 234, 249, 248, 247,
604 244, 243, 242, 241, 240, 239, 238, 237, 236, 235,
605 234, 233, 232, 231, 230, 229, 228, 227, 226, 225,
606 221, 220, 219, 218, 217, 216, 215, 214, 213, 212,
607 211, 210, 209, 208, 207, 206, 205, 204, 203, 202,
609 201, 200, 199, 198, 195, 194, 193, 192, 191, 190,
610 189, 188, 187, 186, 185, 184, 183, 182, 181, 180,
611 179, 178, 177, 176, 175, 174, 173, 172, 171, 170,
612 169, 168, 167, 162, 161, 160, 159, 158, 157, 156,
613 155, 154, 153, 145, 144, 141, 140, 137, 136, 135,
614 134, 133, 132, 129, 128, 127, 126, 125, 124, 123,
615 122, 121, 120, 117, 116, 115, 110, 107, 49, 49,
616 98, 95, 87, 86, 85, 77, 69, 54, 564, 3,
617 564, 564, 564, 564, 564, 564, 564, 564, 564, 564,
618 564, 564, 564, 564, 564, 564, 564, 564, 564, 564,
620 564, 564, 564, 564, 564, 564, 564, 564, 564, 564,
621 564, 564, 564, 564, 564, 564, 564, 564, 564, 564,
622 564, 564, 564, 564, 564, 564, 564, 564, 564, 564,
626 static yyconst short int yy_chk[832] =
628 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
629 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
630 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
631 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
632 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
633 1, 5, 5, 8, 17, 5, 9, 9, 19, 9,
634 15, 15, 19, 17, 22, 23, 19, 23, 26, 26,
635 22, 8, 5, 18, 43, 43, 18, 9, 14, 14,
636 14, 14, 14, 14, 14, 14, 14, 14, 24, 24,
637 18, 20, 20, 20, 20, 27, 24, 20, 28, 27,
639 32, 44, 33, 20, 32, 33, 37, 35, 28, 35,
640 52, 52, 40, 40, 28, 33, 40, 53, 33, 44,
641 59, 55, 33, 37, 47, 47, 59, 47, 55, 57,
642 63, 83, 570, 40, 46, 46, 46, 57, 53, 76,
643 63, 106, 76, 138, 90, 47, 46, 46, 46, 46,
644 46, 46, 46, 46, 46, 46, 86, 89, 138, 90,
645 86, 90, 106, 83, 101, 101, 89, 320, 353, 355,
646 569, 320, 353, 89, 355, 89, 561, 355, 560, 559,
647 557, 46, 50, 50, 50, 50, 50, 50, 50, 50,
648 50, 51, 51, 51, 51, 51, 51, 51, 51, 51,
650 103, 429, 556, 197, 555, 554, 429, 550, 103, 103,
651 103, 103, 103, 103, 103, 103, 103, 103, 103, 197,
652 103, 103, 103, 103, 103, 103, 104, 104, 104, 104,
653 104, 104, 104, 104, 104, 105, 105, 105, 105, 105,
654 105, 105, 105, 105, 164, 164, 164, 164, 164, 164,
655 164, 164, 164, 164, 548, 546, 164, 164, 164, 164,
656 164, 164, 165, 165, 165, 165, 165, 165, 165, 165,
657 165, 166, 166, 166, 166, 166, 166, 166, 166, 166,
658 222, 347, 363, 545, 405, 544, 542, 539, 538, 537,
659 536, 535, 534, 532, 531, 347, 363, 405, 222, 223,
661 223, 223, 223, 223, 223, 223, 223, 223, 224, 224,
662 224, 224, 224, 224, 224, 224, 224, 242, 242, 242,
663 242, 242, 242, 242, 242, 267, 267, 267, 267, 267,
664 267, 267, 267, 267, 268, 268, 268, 268, 268, 268,
665 268, 268, 268, 311, 311, 311, 311, 311, 311, 311,
666 311, 311, 312, 312, 312, 312, 312, 312, 312, 312,
667 312, 342, 342, 342, 342, 342, 342, 342, 342, 342,
668 369, 369, 369, 369, 369, 369, 369, 369, 369, 370,
669 474, 530, 529, 528, 527, 524, 523, 522, 521, 519,
670 518, 517, 474, 516, 515, 370, 513, 370, 565, 512,
672 511, 565, 566, 566, 509, 566, 567, 567, 567, 567,
673 568, 568, 568, 568, 508, 507, 506, 505, 504, 503,
674 502, 501, 500, 499, 498, 497, 496, 495, 494, 493,
675 492, 491, 488, 487, 486, 485, 483, 482, 480, 479,
676 478, 477, 476, 475, 473, 472, 471, 470, 469, 468,
677 466, 465, 464, 463, 462, 461, 460, 459, 458, 457,
678 456, 455, 454, 453, 452, 451, 450, 449, 448, 447,
679 446, 445, 444, 443, 441, 440, 439, 438, 437, 436,
680 435, 434, 433, 432, 431, 430, 428, 425, 424, 423,
681 422, 421, 420, 419, 418, 417, 416, 415, 413, 412,
683 411, 410, 409, 408, 407, 406, 404, 403, 402, 400,
684 399, 398, 397, 396, 394, 393, 392, 391, 390, 389,
685 386, 385, 384, 383, 382, 381, 379, 378, 377, 376,
686 375, 374, 373, 372, 371, 368, 366, 364, 362, 361,
687 360, 358, 357, 356, 354, 352, 351, 350, 349, 348,
688 344, 343, 339, 338, 337, 336, 335, 334, 333, 332,
689 331, 330, 329, 327, 326, 325, 323, 322, 321, 319,
690 318, 317, 316, 315, 314, 313, 310, 309, 308, 307,
691 305, 303, 302, 301, 300, 299, 298, 297, 296, 295,
692 293, 292, 291, 290, 280, 279, 278, 277, 276, 275,
694 273, 272, 271, 270, 269, 265, 264, 263, 262, 261,
695 260, 259, 258, 257, 256, 255, 253, 252, 250, 249,
696 248, 247, 246, 245, 244, 243, 241, 240, 239, 237,
697 236, 235, 233, 231, 230, 229, 228, 227, 225, 221,
698 220, 219, 217, 216, 215, 214, 213, 212, 211, 210,
699 209, 208, 207, 206, 204, 202, 201, 200, 199, 198,
700 196, 194, 192, 191, 189, 188, 186, 183, 182, 181,
701 180, 177, 176, 175, 172, 171, 170, 169, 168, 167,
702 162, 161, 160, 159, 158, 157, 156, 155, 154, 153,
703 152, 151, 150, 149, 148, 147, 146, 145, 144, 143,
705 142, 141, 140, 139, 137, 136, 135, 133, 132, 131,
706 130, 129, 128, 127, 126, 125, 124, 123, 121, 120,
707 119, 118, 117, 116, 115, 114, 113, 112, 111, 110,
708 109, 108, 107, 100, 99, 98, 97, 96, 95, 94,
709 93, 92, 91, 88, 87, 85, 84, 82, 81, 80,
710 79, 78, 77, 75, 73, 72, 71, 70, 68, 67,
711 66, 65, 64, 62, 61, 60, 56, 54, 48, 42,
712 36, 34, 31, 30, 29, 25, 21, 16, 3, 564,
713 564, 564, 564, 564, 564, 564, 564, 564, 564, 564,
714 564, 564, 564, 564, 564, 564, 564, 564, 564, 564,
716 564, 564, 564, 564, 564, 564, 564, 564, 564, 564,
717 564, 564, 564, 564, 564, 564, 564, 564, 564, 564,
718 564, 564, 564, 564, 564, 564, 564, 564, 564, 564,
722 static yy_state_type yy_last_accepting_state;
723 static char *yy_last_accepting_cpos;
725 /* The intent behind this definition is that it'll catch
726 * any uses of REJECT which flex missed.
728 #define REJECT reject_used_but_not_detected
729 #define yymore() yymore_used_but_not_detected
730 #define YY_MORE_ADJ 0
731 #define YY_RESTORE_YY_MORE_OFFSET
736 * Copyright (C)1996-1997,1999 Ian Jackson
738 * This is free software; you can redistribute it and/or modify it
739 * under the terms of the GNU General Public License as published by
740 * the Free Software Foundation; either version 2 of the License, or
741 * (at your option) any later version.
743 * This program is distributed in the hope that it will be useful, but
744 * WITHOUT ANY WARRANTY; without even the implied warranty of
745 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
746 * General Public License for more details.
748 * You should have received a copy of the GNU General Public License
749 * along with userv; if not, write to the Free Software
750 * Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
770 #include <sys/types.h>
771 #include <sys/stat.h>
784 typedef int directive_fnt(int dtoken);
785 static directive_fnt df_reject, df_execute, df_executefrompath;
786 static directive_fnt df_executefromdirectory, df_executebuiltin;
787 static directive_fnt df_errorstostderr, df_errorstosyslog, df_errorstofile;
788 static directive_fnt dfg_fdwant, dfg_setflag;
789 static directive_fnt df_reset, df_cd, df_userrcfile, df_include;
790 static directive_fnt df_includelookup, df_includedirectory;
791 static directive_fnt df_message, df_error, df_quit, df_eof;
792 static directive_fnt df_if, df_catchquit, df_errorspush;
793 static directive_fnt dfi_includeuserrcfile, dfi_includeclientconfig;
794 /* directive functions return:
795 * 0 for success having scanned up to and including end of line but not beyond,
796 * or tokv_error or tokv_quit.
797 * They expect to parse the whitespace before their parameters (if any).
800 typedef int parmcondition_fnt(int ctoken, char *const *parmvalues, int *rtrue);
801 static parmcondition_fnt pcf_glob, pcf_range, pcf_grep;
802 /* all conditional functions return tokv_error for failure or 0 for success
803 * at parsing and testing, in which case *rtrue is set to 0 or 1.
804 * On success they have scanned up to and including the condition's
805 * terminating newline; the pcf_... functions expect to parse the whitespace
806 * between the parameter name and the condition's arguments.
807 * Otherwise they return tokv_error.
808 * The parameter-based conditionals take a list of parameter values
809 * as obtained from the parameter functions and pa_parameter,
810 * and do _not_ free it.
813 typedef int parameter_fnt(int ptoken, char ***rvalues);
814 static parameter_fnt pf_service;
815 static parameter_fnt pf_callinguser, pf_serviceuser;
816 static parameter_fnt pf_callinggroup, pf_servicegroup;
817 static parameter_fnt pf_callingusershell, pf_serviceusershell;
818 /* Parameter functions return tokv_error or 0 for success at parsing
819 * and determining the value, in which case *rvalues is made to be
820 * a mallocd null-terminated array of pointers to mallocd strings.
821 * freeparm can be used to free such an array.
824 typedef int builtinserviceparse_fnt(char ***rnewargs);
825 static builtinserviceparse_fnt bispa_none, bispa_parameter;
826 /* These parse the arguments to a builtin service, including the
827 * newline at the end of the line. *rnewargs will initially be
828 * null, indicating that no arguments are to be set; the function
829 * may store a mallocd array of mallocd strings in it,
830 * containing the arguments it wishes to have set (null-pointer
834 static int yylex(void);
835 /* Returns a token (which may be an eof or error exception) */
837 static directive_fnt *lr_dir;
838 static parmcondition_fnt *lr_parmcond;
839 static builtinserviceparse_fnt *lr_bispa;
840 static builtinserviceexec_fnt *lr_bisexec;
841 static parameter_fnt *lr_parameter;
842 static int lr_loglevel, lr_logfacility, lr_min, lr_max, *lr_flag;
843 static int lr_flagval, lr_controlend;
844 static int lr_fdwant_readwrite; /* -1=never, 0=opt, 1=always */
846 /* Forward declarations of things used in lexer and parser */
848 struct parser_state {
849 int lineno, reportlineno, notedreferer, isinternal;
850 const char *filename;
851 struct stat filestab;
852 YY_BUFFER_STATE ybuf;
853 struct parser_state *upstate;
856 static struct parser_state *cstate;
858 struct error_handling {
859 int handling; /* One of the error handling modes tokt_ehandlemode */
860 int logfacility, loglevel;
861 int filekeep; /* File is in use by higher-level errors-push, leave it open */
866 static struct error_handling eh = { tokv_word_errorstostderr, 0,0,0,0,0 };
868 static int dequote(char *inplace);
869 static void countnewlines(void);
874 /* Macros after this point can all be overridden by user definitions in
878 #ifndef YY_SKIP_YYWRAP
880 extern "C" int yywrap YY_PROTO(( void ));
882 extern int yywrap YY_PROTO(( void ));
887 static void yyunput YY_PROTO(( int c, char *buf_ptr ));
891 static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
894 #ifdef YY_NEED_STRLEN
895 static int yy_flex_strlen YY_PROTO(( yyconst char * ));
900 static int yyinput YY_PROTO(( void ));
902 static int input YY_PROTO(( void ));
907 static int yy_start_stack_ptr = 0;
908 static int yy_start_stack_depth = 0;
909 static int *yy_start_stack = 0;
910 #ifndef YY_NO_PUSH_STATE
911 static void yy_push_state YY_PROTO(( int new_state ));
913 #ifndef YY_NO_POP_STATE
914 static void yy_pop_state YY_PROTO(( void ));
916 #ifndef YY_NO_TOP_STATE
917 static int yy_top_state YY_PROTO(( void ));
921 #define YY_NO_PUSH_STATE 1
922 #define YY_NO_POP_STATE 1
923 #define YY_NO_TOP_STATE 1
926 #ifdef YY_MALLOC_DECL
934 /* Just try to get by without declaring the routines. This will fail
935 * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
936 * or sizeof(void*) != sizeof(int).
941 /* Amount of stuff to slurp up with each read. */
942 #ifndef YY_READ_BUF_SIZE
943 #define YY_READ_BUF_SIZE 8192
946 /* Copy whatever the last rule matched to the standard output. */
949 /* This used to be an fputs(), but since the string might contain NUL's,
950 * we now use fwrite().
952 #define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
955 /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
956 * is returned in "result".
959 #define YY_INPUT(buf,result,max_size) \
960 if ( yy_current_buffer->yy_is_interactive ) \
963 for ( n = 0; n < max_size && \
964 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
967 buf[n++] = (char) c; \
968 if ( c == EOF && ferror( yyin ) ) \
969 YY_FATAL_ERROR( "input in flex scanner failed" ); \
972 else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
973 && ferror( yyin ) ) \
974 YY_FATAL_ERROR( "input in flex scanner failed" );
977 /* No semi-colon after return; correct usage is to write "yyterminate();" -
978 * we don't want an extra ';' after the "return" because that will cause
979 * some compilers to complain about unreachable statements.
982 #define yyterminate() return YY_NULL
985 /* Number of entries by which start-condition stack grows. */
986 #ifndef YY_START_STACK_INCR
987 #define YY_START_STACK_INCR 25
990 /* Report a fatal error. */
991 #ifndef YY_FATAL_ERROR
992 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
995 /* Default declaration of generated scanner - a define so the user can
996 * easily add parameters.
999 #define YY_DECL int yylex YY_PROTO(( void ))
1002 /* Code executed at the beginning of each rule, after yytext and yyleng
1005 #ifndef YY_USER_ACTION
1006 #define YY_USER_ACTION
1009 /* Code executed at the end of each rule. */
1011 #define YY_BREAK break;
1014 #define YY_RULE_SETUP \
1019 register yy_state_type yy_current_state;
1020 register char *yy_cp, *yy_bp;
1021 register int yy_act;
1036 yy_start = 1; /* first start state */
1044 if ( ! yy_current_buffer )
1046 yy_create_buffer( yyin, YY_BUF_SIZE );
1048 yy_load_buffer_state();
1051 while ( 1 ) /* loops until end-of-file is reached */
1055 /* Support of yytext. */
1056 *yy_cp = yy_hold_char;
1058 /* yy_bp points to the position in yy_ch_buf of the start of
1063 yy_current_state = yy_start;
1067 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
1068 if ( yy_accept[yy_current_state] )
1070 yy_last_accepting_state = yy_current_state;
1071 yy_last_accepting_cpos = yy_cp;
1073 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1075 yy_current_state = (int) yy_def[yy_current_state];
1076 if ( yy_current_state >= 565 )
1077 yy_c = yy_meta[(unsigned int) yy_c];
1079 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1082 while ( yy_base[yy_current_state] != 780 );
1085 yy_act = yy_accept[yy_current_state];
1087 { /* have to back up */
1088 yy_cp = yy_last_accepting_cpos;
1089 yy_current_state = yy_last_accepting_state;
1090 yy_act = yy_accept[yy_current_state];
1093 YY_DO_BEFORE_ACTION;
1096 do_action: /* This label is used only to access EOF actions. */
1100 { /* beginning of action switch */
1101 case 0: /* must back up */
1102 /* undo the effects of YY_DO_BEFORE_ACTION */
1103 *yy_cp = yy_hold_char;
1104 yy_cp = yy_last_accepting_cpos;
1105 yy_current_state = yy_last_accepting_state;
1106 goto yy_find_action;
1111 { lr_dir= df_reject; return tokv_word_reject; }
1116 { lr_dir= df_executefromdirectory; return tokv_word_executefromdirectory; }
1121 { lr_dir= df_executefrompath; return tokv_word_executefrompath; }
1126 { lr_dir= df_executebuiltin; return tokv_word_executebuiltin; }
1131 { lr_dir= df_errorstostderr; return tokv_word_errorstostderr; }
1136 { lr_dir= df_errorstosyslog; return tokv_word_errorstosyslog; }
1141 { lr_dir= df_errorstofile; return tokv_word_errorstofile; }
1146 { lr_dir= dfg_fdwant; lr_fdwant_readwrite=1; return tokv_word_requirefd; }
1151 { lr_dir= dfg_fdwant; lr_fdwant_readwrite=0; return tokv_word_allowfd; }
1156 { lr_dir= dfg_fdwant; lr_fdwant_readwrite=0; return tokv_word_nullfd; }
1161 { lr_dir= dfg_fdwant; lr_fdwant_readwrite=-1; return tokv_word_rejectfd; }
1166 { lr_dir= dfg_fdwant; lr_fdwant_readwrite=-1; return tokv_word_ignorefd; }
1171 { lr_dir= dfg_setflag; lr_flag= &setenvironment; lr_flagval= 1; return tokv_word_setenvironment; }
1176 { lr_dir= dfg_setflag; lr_flag= &setenvironment; lr_flagval= 0; return tokv_word_nosetenvironment; }
1181 { lr_dir= dfg_setflag; lr_flag= &suppressargs; lr_flagval= 1; return tokv_word_suppressargs; }
1186 { lr_dir= dfg_setflag; lr_flag= &suppressargs; lr_flagval= 0; return tokv_word_nosuppressargs; }
1191 { lr_dir= dfg_setflag; lr_flag= &disconnecthup; lr_flagval= 1; return tokv_word_disconnecthup; }
1196 { lr_dir= dfg_setflag; lr_flag= &disconnecthup; lr_flagval= 0; return tokv_word_nodisconnecthup; }
1201 { lr_dir= df_cd; return tokv_word_cd; }
1206 { lr_dir= df_userrcfile; return tokv_word_userrcfile; }
1211 { lr_dir= df_include; return tokv_word_include; }
1216 { lr_dir= df_include; return tokv_word_includeifexist; }
1221 { lr_dir= df_includelookup; return tokv_word_includelookup; }
1226 { lr_dir= df_includelookup; return tokv_word_includelookupall; }
1231 { lr_dir= df_includedirectory; return tokv_word_includedirectory; }
1236 { lr_dir= df_message; return tokv_word_message; }
1241 { lr_dir= df_include; return tokv_word_includesysconfig; }
1246 { lr_dir= dfi_includeuserrcfile; return tokv_word_includeuserrcfile; }
1251 { lr_dir= dfi_includeclientconfig; return tokv_word_includeclientconfig; }
1256 { lr_dir= df_quit; return tokv_word_quit; }
1261 { lr_dir= df_eof; return tokv_word_eof; }
1266 { lr_dir= df_if; return tokv_word_if; }
1271 { lr_dir= df_catchquit; return tokv_word_catchquit; }
1276 { lr_dir= df_errorspush; return tokv_word_errorspush; }
1281 { lr_controlend= tokv_word_if; return tokv_word_elif; }
1286 { lr_controlend= tokv_word_if; return tokv_word_else; }
1291 { lr_controlend= tokv_word_if; return tokv_word_fi; }
1296 { lr_controlend= tokv_word_catchquit; return tokv_word_hctac; }
1301 { lr_controlend= tokv_word_errorspush; return tokv_word_srorre; }
1306 { lr_parmcond= pcf_glob; return tokv_word_glob; }
1311 { lr_parmcond= pcf_range; return tokv_word_range; }
1316 { lr_parmcond= pcf_grep; return tokv_word_grep; }
1321 { lr_bispa= bispa_none; lr_bisexec= bisexec_environment; return tokv_word_environment; }
1326 { lr_bispa= bispa_parameter; lr_bisexec= bisexec_parameter; return tokv_word_parameter; }
1331 { lr_bispa= bispa_none; lr_bisexec= bisexec_version; return tokv_word_version; }
1336 { lr_bispa= bispa_none; lr_bisexec= bisexec_toplevel; return tokv_word_toplevel; }
1341 { lr_bispa= bispa_none; lr_bisexec= bisexec_override; return tokv_word_override; }
1346 { lr_bispa= bispa_none; lr_bisexec= bisexec_shutdown; return tokv_word_shutdown; }
1351 { lr_bispa= bispa_none; lr_bisexec= bisexec_reset; lr_dir= df_reset; return tokv_word_reset; }
1356 { lr_bispa= bispa_none; lr_bisexec= bisexec_execute; lr_dir= df_execute; return tokv_word_execute; }
1361 { lr_bispa= bispa_none; lr_bisexec= bisexec_help; return tokv_word_help; }
1366 { lr_parameter= pf_service; return tokv_word_service; }
1371 { lr_parameter= pf_callinguser; return tokv_word_callinguser; }
1376 { lr_parameter= pf_callinggroup; return tokv_word_callinggroup; }
1381 { lr_parameter= pf_callingusershell; return tokv_word_callingusershell; }
1386 { lr_parameter= pf_serviceuser; return tokv_word_serviceuser; }
1391 { lr_parameter= pf_servicegroup; return tokv_word_servicegroup; }
1396 { lr_parameter= pf_serviceusershell; return tokv_word_serviceusershell; }
1401 { lr_loglevel= LOG_DEBUG; return tokv_syslog_debug; }
1406 { lr_loglevel= LOG_INFO; return tokv_syslog_info; }
1411 { lr_loglevel= LOG_NOTICE; return tokv_syslog_notice; }
1416 { lr_loglevel= LOG_WARNING; return tokv_syslog_warning; }
1421 { lr_loglevel= LOG_ERR; return tokv_syslog_err; }
1426 { lr_loglevel= LOG_CRIT; return tokv_syslog_crit; }
1431 { lr_loglevel= LOG_ALERT; return tokv_syslog_alert; }
1436 { lr_loglevel= LOG_EMERG; return tokv_syslog_emerg; }
1441 { lr_logfacility= LOG_AUTHPRIV; return tokv_syslog_authpriv; }
1446 { lr_logfacility= LOG_CRON; return tokv_syslog_cron; }
1451 { lr_logfacility= LOG_DAEMON; return tokv_syslog_daemon; }
1456 { lr_logfacility= LOG_KERN; return tokv_syslog_kern; }
1461 { lr_logfacility= LOG_LPR; return tokv_syslog_lpr; }
1466 { lr_logfacility= LOG_MAIL; return tokv_syslog_mail; }
1471 { lr_logfacility= LOG_NEWS; return tokv_syslog_news; }
1476 { lr_logfacility= LOG_SYSLOG; return tokv_syslog_syslog; }
1481 { lr_logfacility= LOG_USER; return tokv_syslog_user; }
1486 { lr_logfacility= LOG_UUCP; return tokv_syslog_uucp; }
1491 { lr_logfacility= LOG_LOCAL0; return tokv_syslog_local0; }
1496 { lr_logfacility= LOG_LOCAL1; return tokv_syslog_local1; }
1501 { lr_logfacility= LOG_LOCAL2; return tokv_syslog_local2; }
1506 { lr_logfacility= LOG_LOCAL3; return tokv_syslog_local3; }
1511 { lr_logfacility= LOG_LOCAL4; return tokv_syslog_local4; }
1516 { lr_logfacility= LOG_LOCAL5; return tokv_syslog_local5; }
1521 { lr_logfacility= LOG_LOCAL6; return tokv_syslog_local6; }
1526 { lr_logfacility= LOG_LOCAL7; return tokv_syslog_local7; }
1531 { return tokv_word_read; }
1536 { return tokv_word_write; }
1541 { return tokv_dollar; }
1546 { return tokv_openparen; }
1551 { return tokv_closeparen; }
1556 { return tokv_not; }
1561 { return tokv_and; }
1571 { lr_dir= df_error; lr_loglevel= LOG_ERR; return tokv_word_error; }
1578 lr_min=lr_max= (int)strtoul(yytext,&ep,10);
1580 return tokv_ordinal;
1588 lr_min= (int)strtoul(yytext,&ep,10);
1589 assert(*ep == HYPHEN);
1591 lr_max= (int)strtoul(ep,&ep,10);
1593 if (lr_max < lr_min)
1594 return parseerrprint("fd range has min > max");
1595 return tokv_fdrange;
1603 lr_min= (int)strtoul(yytext,&ep,10);
1604 assert(*ep == HYPHEN);
1607 return tokv_fdstoend;
1613 countnewlines(); return tokv_lwsp;
1623 cstate->lineno++; return tokv_newline;
1628 cstate->lineno++; return tokv_newline;
1633 return parseerrprint("missing newline at eof after comment");
1640 return dequote(yytext);
1646 return tokv_barestring;
1648 case YY_STATE_EOF(INITIAL):
1655 return parseerrprint("misquoted or unterminated string");
1660 return parseerrprint("unexpected backslash");
1665 abort(); /* expect lex warning "rule cannot be matched" */
1673 case YY_END_OF_BUFFER:
1675 /* Amount of text matched not including the EOB char. */
1676 int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
1678 /* Undo the effects of YY_DO_BEFORE_ACTION. */
1679 *yy_cp = yy_hold_char;
1680 YY_RESTORE_YY_MORE_OFFSET
1682 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
1684 /* We're scanning a new file or input source. It's
1685 * possible that this happened because the user
1686 * just pointed yyin at a new source and called
1687 * yylex(). If so, then we have to assure
1688 * consistency between yy_current_buffer and our
1689 * globals. Here is the right place to do so, because
1690 * this is the first action (other than possibly a
1691 * back-up) that will match for the new input source.
1693 yy_n_chars = yy_current_buffer->yy_n_chars;
1694 yy_current_buffer->yy_input_file = yyin;
1695 yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
1698 /* Note that here we test for yy_c_buf_p "<=" to the position
1699 * of the first EOB in the buffer, since yy_c_buf_p will
1700 * already have been incremented past the NUL character
1701 * (since all states make transitions on EOB to the
1702 * end-of-buffer state). Contrast this with the test
1705 if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
1706 { /* This was really a NUL. */
1707 yy_state_type yy_next_state;
1709 yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
1711 yy_current_state = yy_get_previous_state();
1713 /* Okay, we're now positioned to make the NUL
1714 * transition. We couldn't have
1715 * yy_get_previous_state() go ahead and do it
1716 * for us because it doesn't know how to deal
1717 * with the possibility of jamming (and we don't
1718 * want to build jamming into it because then it
1719 * will run more slowly).
1722 yy_next_state = yy_try_NUL_trans( yy_current_state );
1724 yy_bp = yytext_ptr + YY_MORE_ADJ;
1726 if ( yy_next_state )
1728 /* Consume the NUL. */
1729 yy_cp = ++yy_c_buf_p;
1730 yy_current_state = yy_next_state;
1737 goto yy_find_action;
1741 else switch ( yy_get_next_buffer() )
1743 case EOB_ACT_END_OF_FILE:
1745 yy_did_buffer_switch_on_eof = 0;
1749 /* Note: because we've taken care in
1750 * yy_get_next_buffer() to have set up
1751 * yytext, we can now set up
1752 * yy_c_buf_p so that if some total
1753 * hoser (like flex itself) wants to
1754 * call the scanner after we return the
1755 * YY_NULL, it'll still work - another
1756 * YY_NULL will get returned.
1758 yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
1760 yy_act = YY_STATE_EOF(YY_START);
1766 if ( ! yy_did_buffer_switch_on_eof )
1772 case EOB_ACT_CONTINUE_SCAN:
1774 yytext_ptr + yy_amount_of_matched_text;
1776 yy_current_state = yy_get_previous_state();
1779 yy_bp = yytext_ptr + YY_MORE_ADJ;
1782 case EOB_ACT_LAST_MATCH:
1784 &yy_current_buffer->yy_ch_buf[yy_n_chars];
1786 yy_current_state = yy_get_previous_state();
1789 yy_bp = yytext_ptr + YY_MORE_ADJ;
1790 goto yy_find_action;
1797 "fatal flex scanner internal error--no action found" );
1798 } /* end of action switch */
1799 } /* end of scanning one token */
1800 } /* end of yylex */
1803 /* yy_get_next_buffer - try to read in a new buffer
1805 * Returns a code representing an action:
1806 * EOB_ACT_LAST_MATCH -
1807 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
1808 * EOB_ACT_END_OF_FILE - end of file
1811 static int yy_get_next_buffer()
1813 register char *dest = yy_current_buffer->yy_ch_buf;
1814 register char *source = yytext_ptr;
1815 register int number_to_move, i;
1818 if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
1820 "fatal flex scanner internal error--end of buffer missed" );
1822 if ( yy_current_buffer->yy_fill_buffer == 0 )
1823 { /* Don't try to fill the buffer, so this is an EOF. */
1824 if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
1826 /* We matched a single character, the EOB, so
1827 * treat this as a final EOF.
1829 return EOB_ACT_END_OF_FILE;
1834 /* We matched some text prior to the EOB, first
1837 return EOB_ACT_LAST_MATCH;
1841 /* Try to read more data. */
1843 /* First move last chars to start of buffer. */
1844 number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
1846 for ( i = 0; i < number_to_move; ++i )
1847 *(dest++) = *(source++);
1849 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1850 /* don't do the read, it's not guaranteed to return an EOF,
1853 yy_current_buffer->yy_n_chars = yy_n_chars = 0;
1858 yy_current_buffer->yy_buf_size - number_to_move - 1;
1860 while ( num_to_read <= 0 )
1861 { /* Not enough room in the buffer - grow it. */
1862 #ifdef YY_USES_REJECT
1864 "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
1867 /* just a shorter name for the current buffer */
1868 YY_BUFFER_STATE b = yy_current_buffer;
1870 int yy_c_buf_p_offset =
1871 (int) (yy_c_buf_p - b->yy_ch_buf);
1873 if ( b->yy_is_our_buffer )
1875 int new_size = b->yy_buf_size * 2;
1877 if ( new_size <= 0 )
1878 b->yy_buf_size += b->yy_buf_size / 8;
1880 b->yy_buf_size *= 2;
1882 b->yy_ch_buf = (char *)
1883 /* Include room in for 2 EOB chars. */
1884 yy_flex_realloc( (void *) b->yy_ch_buf,
1885 b->yy_buf_size + 2 );
1888 /* Can't grow it, we don't own it. */
1891 if ( ! b->yy_ch_buf )
1893 "fatal error - scanner input buffer overflow" );
1895 yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
1897 num_to_read = yy_current_buffer->yy_buf_size -
1902 if ( num_to_read > YY_READ_BUF_SIZE )
1903 num_to_read = YY_READ_BUF_SIZE;
1905 /* Read in more data. */
1906 YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
1907 yy_n_chars, num_to_read );
1909 yy_current_buffer->yy_n_chars = yy_n_chars;
1912 if ( yy_n_chars == 0 )
1914 if ( number_to_move == YY_MORE_ADJ )
1916 ret_val = EOB_ACT_END_OF_FILE;
1922 ret_val = EOB_ACT_LAST_MATCH;
1923 yy_current_buffer->yy_buffer_status =
1924 YY_BUFFER_EOF_PENDING;
1929 ret_val = EOB_ACT_CONTINUE_SCAN;
1931 yy_n_chars += number_to_move;
1932 yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
1933 yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
1935 yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
1941 /* yy_get_previous_state - get the state just before the EOB char was reached */
1943 static yy_state_type yy_get_previous_state()
1945 register yy_state_type yy_current_state;
1946 register char *yy_cp;
1948 yy_current_state = yy_start;
1950 for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
1952 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1953 if ( yy_accept[yy_current_state] )
1955 yy_last_accepting_state = yy_current_state;
1956 yy_last_accepting_cpos = yy_cp;
1958 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1960 yy_current_state = (int) yy_def[yy_current_state];
1961 if ( yy_current_state >= 565 )
1962 yy_c = yy_meta[(unsigned int) yy_c];
1964 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1967 return yy_current_state;
1971 /* yy_try_NUL_trans - try to make a transition on the NUL character
1974 * next_state = yy_try_NUL_trans( current_state );
1977 #ifdef YY_USE_PROTOS
1978 static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
1980 static yy_state_type yy_try_NUL_trans( yy_current_state )
1981 yy_state_type yy_current_state;
1984 register int yy_is_jam;
1985 register char *yy_cp = yy_c_buf_p;
1987 register YY_CHAR yy_c = 1;
1988 if ( yy_accept[yy_current_state] )
1990 yy_last_accepting_state = yy_current_state;
1991 yy_last_accepting_cpos = yy_cp;
1993 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1995 yy_current_state = (int) yy_def[yy_current_state];
1996 if ( yy_current_state >= 565 )
1997 yy_c = yy_meta[(unsigned int) yy_c];
1999 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2000 yy_is_jam = (yy_current_state == 564);
2002 return yy_is_jam ? 0 : yy_current_state;
2007 #ifdef YY_USE_PROTOS
2008 static void yyunput( int c, register char *yy_bp )
2010 static void yyunput( c, yy_bp )
2012 register char *yy_bp;
2015 register char *yy_cp = yy_c_buf_p;
2017 /* undo effects of setting up yytext */
2018 *yy_cp = yy_hold_char;
2020 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
2021 { /* need to shift things up to make room */
2022 /* +2 for EOB chars. */
2023 register int number_to_move = yy_n_chars + 2;
2024 register char *dest = &yy_current_buffer->yy_ch_buf[
2025 yy_current_buffer->yy_buf_size + 2];
2026 register char *source =
2027 &yy_current_buffer->yy_ch_buf[number_to_move];
2029 while ( source > yy_current_buffer->yy_ch_buf )
2030 *--dest = *--source;
2032 yy_cp += (int) (dest - source);
2033 yy_bp += (int) (dest - source);
2034 yy_current_buffer->yy_n_chars =
2035 yy_n_chars = yy_current_buffer->yy_buf_size;
2037 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
2038 YY_FATAL_ERROR( "flex scanner push-back overflow" );
2041 *--yy_cp = (char) c;
2045 yy_hold_char = *yy_cp;
2048 #endif /* ifndef YY_NO_UNPUT */
2052 static int yyinput()
2059 *yy_c_buf_p = yy_hold_char;
2061 if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
2063 /* yy_c_buf_p now points to the character we want to return.
2064 * If this occurs *before* the EOB characters, then it's a
2065 * valid NUL; if not, then we've hit the end of the buffer.
2067 if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
2068 /* This was really a NUL. */
2072 { /* need more input */
2073 int offset = yy_c_buf_p - yytext_ptr;
2076 switch ( yy_get_next_buffer() )
2078 case EOB_ACT_LAST_MATCH:
2079 /* This happens because yy_g_n_b()
2080 * sees that we've accumulated a
2081 * token and flags that we need to
2082 * try matching the token before
2083 * proceeding. But for input(),
2084 * there's no matching to consider.
2085 * So convert the EOB_ACT_LAST_MATCH
2086 * to EOB_ACT_END_OF_FILE.
2089 /* Reset buffer status. */
2094 case EOB_ACT_END_OF_FILE:
2099 if ( ! yy_did_buffer_switch_on_eof )
2108 case EOB_ACT_CONTINUE_SCAN:
2109 yy_c_buf_p = yytext_ptr + offset;
2115 c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
2116 *yy_c_buf_p = '\0'; /* preserve yytext */
2117 yy_hold_char = *++yy_c_buf_p;
2124 #ifdef YY_USE_PROTOS
2125 void yyrestart( FILE *input_file )
2127 void yyrestart( input_file )
2131 if ( ! yy_current_buffer )
2132 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
2134 yy_init_buffer( yy_current_buffer, input_file );
2135 yy_load_buffer_state();
2139 #ifdef YY_USE_PROTOS
2140 void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
2142 void yy_switch_to_buffer( new_buffer )
2143 YY_BUFFER_STATE new_buffer;
2146 if ( yy_current_buffer == new_buffer )
2149 if ( yy_current_buffer )
2151 /* Flush out information for old buffer. */
2152 *yy_c_buf_p = yy_hold_char;
2153 yy_current_buffer->yy_buf_pos = yy_c_buf_p;
2154 yy_current_buffer->yy_n_chars = yy_n_chars;
2157 yy_current_buffer = new_buffer;
2158 yy_load_buffer_state();
2160 /* We don't actually know whether we did this switch during
2161 * EOF (yywrap()) processing, but the only time this flag
2162 * is looked at is after yywrap() is called, so it's safe
2163 * to go ahead and always set it.
2165 yy_did_buffer_switch_on_eof = 1;
2169 #ifdef YY_USE_PROTOS
2170 void yy_load_buffer_state( void )
2172 void yy_load_buffer_state()
2175 yy_n_chars = yy_current_buffer->yy_n_chars;
2176 yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
2177 yyin = yy_current_buffer->yy_input_file;
2178 yy_hold_char = *yy_c_buf_p;
2182 #ifdef YY_USE_PROTOS
2183 YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
2185 YY_BUFFER_STATE yy_create_buffer( file, size )
2192 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
2194 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2196 b->yy_buf_size = size;
2198 /* yy_ch_buf has to be 2 characters longer than the size given because
2199 * we need to put in 2 end-of-buffer characters.
2201 b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
2202 if ( ! b->yy_ch_buf )
2203 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2205 b->yy_is_our_buffer = 1;
2207 yy_init_buffer( b, file );
2213 #ifdef YY_USE_PROTOS
2214 void yy_delete_buffer( YY_BUFFER_STATE b )
2216 void yy_delete_buffer( b )
2223 if ( b == yy_current_buffer )
2224 yy_current_buffer = (YY_BUFFER_STATE) 0;
2226 if ( b->yy_is_our_buffer )
2227 yy_flex_free( (void *) b->yy_ch_buf );
2229 yy_flex_free( (void *) b );
2233 #ifndef YY_ALWAYS_INTERACTIVE
2234 #ifndef YY_NEVER_INTERACTIVE
2235 extern int isatty YY_PROTO(( int ));
2239 #ifdef YY_USE_PROTOS
2240 void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
2242 void yy_init_buffer( b, file )
2249 yy_flush_buffer( b );
2251 b->yy_input_file = file;
2252 b->yy_fill_buffer = 1;
2254 #if YY_ALWAYS_INTERACTIVE
2255 b->yy_is_interactive = 1;
2257 #if YY_NEVER_INTERACTIVE
2258 b->yy_is_interactive = 0;
2260 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
2266 #ifdef YY_USE_PROTOS
2267 void yy_flush_buffer( YY_BUFFER_STATE b )
2269 void yy_flush_buffer( b )
2279 /* We always need two end-of-buffer characters. The first causes
2280 * a transition to the end-of-buffer state. The second causes
2281 * a jam in that state.
2283 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
2284 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
2286 b->yy_buf_pos = &b->yy_ch_buf[0];
2289 b->yy_buffer_status = YY_BUFFER_NEW;
2291 if ( b == yy_current_buffer )
2292 yy_load_buffer_state();
2296 #ifndef YY_NO_SCAN_BUFFER
2297 #ifdef YY_USE_PROTOS
2298 YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
2300 YY_BUFFER_STATE yy_scan_buffer( base, size )
2308 base[size-2] != YY_END_OF_BUFFER_CHAR ||
2309 base[size-1] != YY_END_OF_BUFFER_CHAR )
2310 /* They forgot to leave room for the EOB's. */
2313 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
2315 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
2317 b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
2318 b->yy_buf_pos = b->yy_ch_buf = base;
2319 b->yy_is_our_buffer = 0;
2320 b->yy_input_file = 0;
2321 b->yy_n_chars = b->yy_buf_size;
2322 b->yy_is_interactive = 0;
2324 b->yy_fill_buffer = 0;
2325 b->yy_buffer_status = YY_BUFFER_NEW;
2327 yy_switch_to_buffer( b );
2334 #ifndef YY_NO_SCAN_STRING
2335 #ifdef YY_USE_PROTOS
2336 YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
2338 YY_BUFFER_STATE yy_scan_string( yy_str )
2339 yyconst char *yy_str;
2343 for ( len = 0; yy_str[len]; ++len )
2346 return yy_scan_bytes( yy_str, len );
2351 #ifndef YY_NO_SCAN_BYTES
2352 #ifdef YY_USE_PROTOS
2353 YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
2355 YY_BUFFER_STATE yy_scan_bytes( bytes, len )
2356 yyconst char *bytes;
2365 /* Get memory for full buffer, including space for trailing EOB's. */
2367 buf = (char *) yy_flex_alloc( n );
2369 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
2371 for ( i = 0; i < len; ++i )
2374 buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
2376 b = yy_scan_buffer( buf, n );
2378 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
2380 /* It's okay to grow etc. this buffer, and we should throw it
2381 * away when we're done.
2383 b->yy_is_our_buffer = 1;
2390 #ifndef YY_NO_PUSH_STATE
2391 #ifdef YY_USE_PROTOS
2392 static void yy_push_state( int new_state )
2394 static void yy_push_state( new_state )
2398 if ( yy_start_stack_ptr >= yy_start_stack_depth )
2402 yy_start_stack_depth += YY_START_STACK_INCR;
2403 new_size = yy_start_stack_depth * sizeof( int );
2405 if ( ! yy_start_stack )
2406 yy_start_stack = (int *) yy_flex_alloc( new_size );
2409 yy_start_stack = (int *) yy_flex_realloc(
2410 (void *) yy_start_stack, new_size );
2412 if ( ! yy_start_stack )
2414 "out of memory expanding start-condition stack" );
2417 yy_start_stack[yy_start_stack_ptr++] = YY_START;
2424 #ifndef YY_NO_POP_STATE
2425 static void yy_pop_state()
2427 if ( --yy_start_stack_ptr < 0 )
2428 YY_FATAL_ERROR( "start-condition stack underflow" );
2430 BEGIN(yy_start_stack[yy_start_stack_ptr]);
2435 #ifndef YY_NO_TOP_STATE
2436 static int yy_top_state()
2438 return yy_start_stack[yy_start_stack_ptr - 1];
2442 #ifndef YY_EXIT_FAILURE
2443 #define YY_EXIT_FAILURE 2
2446 #ifdef YY_USE_PROTOS
2447 static void yy_fatal_error( yyconst char msg[] )
2449 static void yy_fatal_error( msg )
2453 (void) fprintf( stderr, "%s\n", msg );
2454 exit( YY_EXIT_FAILURE );
2459 /* Redefine yyless() so it works in section 3 code. */
2465 /* Undo effects of setting up yytext. */ \
2466 yytext[yyleng] = yy_hold_char; \
2467 yy_c_buf_p = yytext + n; \
2468 yy_hold_char = *yy_c_buf_p; \
2469 *yy_c_buf_p = '\0'; \
2475 /* Internal utility routines. */
2478 #ifdef YY_USE_PROTOS
2479 static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
2481 static void yy_flex_strncpy( s1, s2, n )
2488 for ( i = 0; i < n; ++i )
2493 #ifdef YY_NEED_STRLEN
2494 #ifdef YY_USE_PROTOS
2495 static int yy_flex_strlen( yyconst char *s )
2497 static int yy_flex_strlen( s )
2502 for ( n = 0; s[n]; ++n )
2510 #ifdef YY_USE_PROTOS
2511 static void *yy_flex_alloc( yy_size_t size )
2513 static void *yy_flex_alloc( size )
2517 return (void *) malloc( size );
2520 #ifdef YY_USE_PROTOS
2521 static void *yy_flex_realloc( void *ptr, yy_size_t size )
2523 static void *yy_flex_realloc( ptr, size )
2528 /* The cast to (char *) in the following accommodates both
2529 * implementations that use char* generic pointers, and those
2530 * that use void* generic pointers. It works with the latter
2531 * because both ANSI C and C++ allow castless assignment from
2532 * any pointer type to void*, and deal with argument conversions
2533 * as though doing an assignment.
2535 return (void *) realloc( (char *) ptr, size );
2538 #ifdef YY_USE_PROTOS
2539 static void yy_flex_free( void *ptr )
2541 static void yy_flex_free( ptr )
2558 const char *const builtinservicehelpstrings[]= {
2560 "parameter <parameter>",