2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-30 22:05:46 +00:00
Files
sudo/lex.yy.c

3021 lines
96 KiB
C
Raw Normal View History

2004-02-13 21:37:02 +00:00
/* $OpenBSD: flex.skl,v 1.8 2004/02/09 11:38:31 espie Exp $ */
1999-01-17 21:42:12 +00:00
/* A lexical scanner generated by flex */
/* Scanner skeleton version:
* $Header$
*/
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5
#include <stdio.h>
#include <errno.h>
1999-01-17 21:42:12 +00:00
/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
#ifdef c_plusplus
#ifndef __cplusplus
#define __cplusplus
#endif
#endif
#ifdef __cplusplus
#include <stdlib.h>
#include <unistd.h>
/* Use prototypes in function declarations. */
#define YY_USE_PROTOS
/* The "const" storage-class-modifier is valid. */
#define YY_USE_CONST
#else /* ! __cplusplus */
#ifdef __STDC__
#define YY_USE_PROTOS
#define YY_USE_CONST
#endif /* __STDC__ */
#endif /* ! __cplusplus */
#ifdef __TURBOC__
#pragma warn -rch
#pragma warn -use
#include <io.h>
#include <stdlib.h>
#define YY_USE_CONST
#define YY_USE_PROTOS
#endif
#ifdef YY_USE_CONST
#define yyconst const
#else
#define yyconst
#endif
#ifdef YY_USE_PROTOS
#define YY_PROTO(proto) proto
#else
#define YY_PROTO(proto) ()
#endif
/* Returned upon end-of-file. */
#define YY_NULL 0
/* Promotes a possibly negative, possibly signed char to an unsigned
* integer for use as an array index. If the signed char is negative,
* we want to instead treat it as an 8-bit unsigned char, hence the
* double cast.
*/
#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
/* Enter a start condition. This macro really ought to take a parameter,
* but we do it the disgusting crufty way forced on us by the ()-less
* definition of BEGIN.
*/
#define BEGIN yy_start = 1 + 2 *
/* Translate the current start state into a value that can be later handed
* to BEGIN to return to the state. The YYSTATE alias is for lex
* compatibility.
*/
#define YY_START ((yy_start - 1) / 2)
#define YYSTATE YY_START
/* Action number for EOF rule of a given start state. */
#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
/* Special action meaning "start processing a new file". */
#define YY_NEW_FILE yyrestart( yyin )
#define YY_END_OF_BUFFER_CHAR 0
/* Size of default input buffer. */
#define YY_BUF_SIZE 16384
typedef struct yy_buffer_state *YY_BUFFER_STATE;
extern int yyleng;
extern FILE *yyin, *yyout;
#define EOB_ACT_CONTINUE_SCAN 0
#define EOB_ACT_END_OF_FILE 1
#define EOB_ACT_LAST_MATCH 2
/* The funky do-while in the following #define is used to turn the definition
* int a single C statement (which needs a semi-colon terminator). This
* avoids problems with code like:
*
* if ( condition_holds )
* yyless( 5 );
* else
* do_something_else();
*
* Prior to using the do-while the compiler would get upset at the
* "else" because it interpreted the "if" statement as being all
* done when it reached the ';' after the yyless() call.
*/
/* Return all but the first 'n' matched characters back to the input stream. */
#define yyless(n) \
do \
{ \
/* Undo effects of setting up yytext. */ \
*yy_cp = yy_hold_char; \
YY_RESTORE_YY_MORE_OFFSET \
yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
YY_DO_BEFORE_ACTION; /* set up yytext again */ \
} \
while ( 0 )
#define unput(c) yyunput( c, yytext_ptr )
/* The following is because we cannot portably get our hands on size_t
* (without autoconf's help, which isn't available because we want
* flex-generated scanners to compile on their own).
*/
typedef unsigned int yy_size_t;
struct yy_buffer_state
{
FILE *yy_input_file;
char *yy_ch_buf; /* input buffer */
char *yy_buf_pos; /* current position in input buffer */
/* Size of input buffer in bytes, not including room for EOB
* characters.
*/
yy_size_t yy_buf_size;
/* Number of characters read into yy_ch_buf, not including EOB
* characters.
*/
int yy_n_chars;
/* Whether we "own" the buffer - i.e., we know we created it,
* and can realloc() it to grow it, and should free() it to
* delete it.
*/
int yy_is_our_buffer;
/* Whether this is an "interactive" input source; if so, and
* if we're using stdio for input, then we want to use getc()
* instead of fread(), to make sure we stop fetching input after
* each newline.
*/
int yy_is_interactive;
/* Whether we're considered to be at the beginning of a line.
* If so, '^' rules will be active on the next match, otherwise
* not.
*/
int yy_at_bol;
/* Whether to try to fill the input buffer when we reach the
* end of it.
*/
int yy_fill_buffer;
int yy_buffer_status;
#define YY_BUFFER_NEW 0
#define YY_BUFFER_NORMAL 1
/* When an EOF's been seen but there's still some text to process
* then we mark the buffer as YY_EOF_PENDING, to indicate that we
* shouldn't try reading from the input source any more. We might
* still have a bunch of tokens to match, though, because of
* possible backing-up.
*
* When we actually see the EOF, we change the status to "new"
* (via yyrestart()), so that the user can continue scanning by
* just pointing yyin at a new input file.
*/
#define YY_BUFFER_EOF_PENDING 2
};
static YY_BUFFER_STATE yy_current_buffer = 0;
/* We provide macros for accessing buffer states in case in the
* future we want to put the buffer states in a more general
* "scanner state".
*/
#define YY_CURRENT_BUFFER yy_current_buffer
/* yy_hold_char holds the character lost when yytext is formed. */
static char yy_hold_char;
static int yy_n_chars; /* number of characters read into yy_ch_buf */
int yyleng;
/* Points to current character in buffer. */
static char *yy_c_buf_p = (char *) 0;
static int yy_init = 1; /* whether we need to initialize */
static int yy_start = 0; /* start state number */
/* Flag which is used to allow yywrap()'s to do buffer switches
* instead of setting up a fresh yyin. A bit of a hack ...
*/
static int yy_did_buffer_switch_on_eof;
void yyrestart YY_PROTO(( FILE *input_file ));
void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
void yy_load_buffer_state YY_PROTO(( void ));
YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
static void yy_flex_free YY_PROTO(( void * ));
#define yy_new_buffer yy_create_buffer
#define yy_set_interactive(is_interactive) \
{ \
if ( ! yy_current_buffer ) \
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
yy_current_buffer->yy_is_interactive = is_interactive; \
}
#define yy_set_bol(at_bol) \
{ \
if ( ! yy_current_buffer ) \
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
yy_current_buffer->yy_at_bol = at_bol; \
}
#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
typedef unsigned char YY_CHAR;
FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
typedef int yy_state_type;
extern char *yytext;
#define yytext_ptr yytext
static yy_state_type yy_get_previous_state YY_PROTO(( void ));
static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
static int yy_get_next_buffer YY_PROTO(( void ));
static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
/* Done after the current pattern has been matched and before the
* corresponding action - sets up yytext.
*/
#define YY_DO_BEFORE_ACTION \
yytext_ptr = yy_bp; \
yyleng = (int) (yy_cp - yy_bp); \
yy_hold_char = *yy_cp; \
*yy_cp = '\0'; \
yy_c_buf_p = yy_cp;
2004-09-27 16:08:18 +00:00
#define YY_NUM_RULES 42
#define YY_END_OF_BUFFER 43
static yyconst short int yy_accept[374] =
1999-01-17 21:42:12 +00:00
{ 0,
2001-12-12 20:11:47 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 0, 43, 32, 38, 37, 36, 41, 32, 26,
41, 32, 33, 32, 32, 32, 32, 35, 34, 27,
27, 27, 27, 27, 41, 32, 41, 27, 27, 27,
27, 27, 28, 41, 28, 29, 28, 28, 28, 28,
28, 27, 27, 27, 27, 27, 41, 28, 1, 12,
11, 12, 11, 11, 41, 41, 2, 8, 8, 8,
3, 8, 4, 41, 32, 0, 38, 36, 0, 40,
23, 0, 22, 0, 31, 31, 0, 32, 32, 32,
32, 32, 27, 27, 27, 27, 27, 32, 39, 32,
0, 32, 32, 32, 32, 32, 28, 0, 28, 23,
0, 22, 0, 28, 0, 28, 28, 28, 28, 28,
27, 27, 27, 27, 27, 28, 28, 1, 12, 12,
10, 9, 10, 0, 2, 8, 0, 8, 0, 0,
5, 6, 8, 8, 0, 32, 32, 32, 27, 27,
27, 27, 27, 27, 32, 0, 32, 32, 32, 32,
32, 28, 28, 28, 27, 27, 27, 27, 27, 27,
28, 7, 7, 0, 7, 8, 32, 32, 32, 32,
32, 27, 27, 27, 27, 27, 27, 32, 0, 32,
32, 32, 28, 28, 28, 28, 28, 27, 27, 27,
27, 27, 27, 28, 7, 32, 32, 32, 0, 19,
27, 27, 27, 27, 27, 32, 0, 32, 32, 28,
28, 28, 27, 27, 27, 27, 27, 28, 32, 32,
32, 32, 32, 27, 27, 27, 27, 0, 21, 32,
0, 32, 32, 28, 28, 28, 28, 28, 27, 27,
27, 27, 28, 24, 24, 24, 0, 18, 27, 27,
0, 17, 32, 0, 32, 32, 24, 24, 24, 27,
27, 28, 32, 24, 24, 24, 24, 27, 0, 20,
30, 0, 32, 14, 28, 24, 24, 24, 24, 27,
28, 32, 25, 25, 25, 0, 16, 0, 32, 0,
28, 25, 25, 25, 32, 32, 25, 25, 25, 25,
25, 0, 0, 13, 15, 14, 0, 28, 28, 25,
25, 25, 25, 25, 32, 32, 32, 25, 25, 28,
28, 28, 25, 25, 32, 32, 32, 32, 32, 28,
28, 28, 28, 28, 32, 32, 32, 28, 28, 28,
32, 32, 32, 32, 32, 28, 28, 28, 28, 28,
24, 24, 24, 24, 24, 24, 24, 24, 24, 24,
24, 24, 0
1999-01-17 21:42:12 +00:00
} ;
static yyconst int yy_ec[256] =
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 2, 4, 5, 6, 1, 7, 1, 1, 8,
2004-05-17 22:10:20 +00:00
9, 10, 11, 12, 13, 14, 15, 16, 17, 18,
19, 20, 21, 22, 22, 22, 22, 23, 1, 1,
24, 25, 10, 25, 26, 27, 28, 29, 30, 27,
27, 31, 27, 27, 27, 27, 27, 32, 33, 34,
2004-09-24 18:11:19 +00:00
27, 35, 36, 37, 38, 27, 39, 40, 27, 27,
2004-09-27 16:08:18 +00:00
10, 41, 10, 1, 42, 1, 43, 44, 45, 46,
2004-05-17 22:10:20 +00:00
2004-09-27 16:08:18 +00:00
47, 48, 44, 44, 49, 44, 44, 50, 51, 52,
53, 44, 44, 54, 55, 56, 57, 44, 44, 44,
2004-09-24 18:11:19 +00:00
44, 44, 1, 1, 1, 1, 1, 1, 1, 1,
1999-01-17 21:42:12 +00:00
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1
} ;
2004-09-27 16:08:18 +00:00
static yyconst int yy_meta[58] =
1999-01-17 21:42:12 +00:00
{ 0,
2001-12-12 20:11:47 +00:00
1, 2, 2, 3, 1, 4, 1, 3, 3, 1,
2004-05-17 22:10:20 +00:00
1, 2, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 5, 4, 3, 1, 1, 1, 1, 1,
2004-09-24 18:11:19 +00:00
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
6, 7, 7, 7, 7, 7, 7, 7, 7, 7,
2004-09-27 16:08:18 +00:00
7, 7, 7, 7, 7, 7, 7
1999-01-17 21:42:12 +00:00
} ;
2004-09-27 16:08:18 +00:00
static yyconst short int yy_base[395] =
1999-01-17 21:42:12 +00:00
{ 0,
2004-09-27 16:08:18 +00:00
0, 52, 90, 0, 57, 58, 146, 151, 191, 247,
303, 343, 991, 949, 986, 3061, 983, 981, 941, 3061,
3061, 939, 3061, 157, 371, 399, 427, 3061, 3061, 468,
935, 933, 938, 928, 524, 20, 153, 909, 911, 903,
894, 895, 899, 54, 898, 3061, 895, 163, 536, 564,
592, 633, 894, 899, 901, 888, 689, 21, 919, 0,
3061, 916, 0, 3061, 713, 66, 0, 878, 316, 127,
3061, 135, 3061, 82, 877, 753, 913, 908, 907, 3061,
867, 777, 864, 801, 175, 863, 825, 189, 148, 837,
865, 238, 0, 865, 52, 858, 864, 178, 3061, 132,
161, 144, 173, 136, 149, 171, 839, 905, 207, 836,
929, 821, 953, 325, 977, 244, 269, 989, 1017, 354,
0, 831, 237, 824, 826, 270, 176, 845, 0, 842,
266, 3061, 3061, 273, 0, 804, 311, 357, 279, 336,
3061, 3061, 803, 284, 399, 1045, 1073, 1101, 815, 801,
814, 803, 800, 804, 162, 267, 236, 237, 295, 283,
145, 1129, 1157, 1185, 802, 788, 797, 779, 770, 776,
289, 758, 3061, 338, 426, 450, 521, 317, 1213, 1241,
547, 330, 758, 746, 754, 730, 738, 335, 349, 296,
323, 342, 553, 386, 1269, 1297, 579, 363, 737, 730,
738, 719, 726, 355, 373, 1325, 1353, 1381, 401, 3061,
718, 699, 706, 695, 402, 389, 403, 368, 38, 1409,
1437, 1465, 690, 675, 681, 671, 431, 393, 686, 396,
1493, 1521, 712, 434, 655, 602, 440, 449, 3061, 417,
489, 420, 424, 722, 546, 1549, 1577, 731, 599, 591,
562, 600, 510, 1604, 1631, 1658, 601, 3061, 550, 602,
605, 3061, 488, 542, 577, 535, 1685, 1712, 1739, 505,
613, 490, 774, 576, 1766, 1793, 801, 614, 619, 3061,
452, 405, 586, 616, 847, 604, 1820, 1847, 855, 633,
430, 1875, 1903, 1931, 1959, 697, 3061, 474, 655, 423,
1987, 2015, 2043, 2071, 881, 617, 2099, 2127, 2155, 2183,
757, 456, 719, 3061, 385, 320, 2223, 926, 746, 2235,
2263, 2291, 2319, 875, 2347, 2375, 2403, 952, 908, 2431,
2459, 2487, 999, 981, 1007, 756, 2515, 2543, 1033, 1059,
770, 2571, 2599, 1085, 2627, 2655, 2683, 2711, 2739, 2767,
1091, 794, 2795, 2823, 1117, 1143, 798, 2851, 2879, 1169,
1175, 1201, 1227, 1253, 1279, 1286, 240, 1312, 1338, 190,
1364, 1371, 3061, 2920, 2927, 2934, 2941, 2948, 2955, 2962,
2969, 2976, 2983, 2990, 2997, 3004, 153, 3011, 3018, 3025,
3032, 3039, 3046, 3053
1999-01-17 21:42:12 +00:00
} ;
2004-09-27 16:08:18 +00:00
static yyconst short int yy_def[395] =
1999-01-17 21:42:12 +00:00
{ 0,
2004-09-27 16:08:18 +00:00
373, 1, 373, 3, 1, 1, 374, 374, 375, 375,
376, 376, 373, 377, 373, 373, 373, 378, 379, 373,
373, 380, 373, 381, 377, 377, 377, 373, 373, 373,
30, 30, 30, 30, 377, 377, 378, 30, 30, 30,
30, 30, 382, 373, 383, 373, 384, 385, 382, 382,
382, 373, 52, 52, 52, 52, 382, 382, 373, 386,
373, 386, 386, 373, 373, 373, 387, 388, 389, 388,
373, 388, 373, 390, 377, 377, 373, 373, 378, 373,
379, 379, 380, 380, 381, 391, 377, 377, 377, 377,
377, 377, 30, 30, 30, 30, 30, 377, 373, 377,
378, 377, 377, 377, 377, 377, 382, 382, 373, 383,
383, 384, 384, 385, 382, 382, 382, 382, 382, 382,
52, 52, 52, 52, 52, 382, 382, 373, 386, 386,
373, 373, 373, 373, 387, 388, 388, 389, 392, 389,
373, 373, 388, 388, 373, 377, 377, 377, 30, 30,
30, 30, 30, 30, 377, 378, 377, 377, 377, 377,
377, 382, 382, 382, 52, 52, 52, 52, 52, 52,
382, 388, 373, 392, 389, 389, 377, 377, 377, 377,
377, 30, 30, 30, 30, 30, 30, 377, 378, 377,
377, 377, 382, 382, 382, 382, 382, 52, 52, 52,
52, 52, 52, 382, 392, 377, 377, 377, 373, 373,
30, 30, 30, 30, 30, 377, 378, 377, 377, 382,
382, 382, 52, 52, 52, 52, 52, 382, 377, 377,
377, 377, 377, 30, 30, 30, 30, 373, 373, 377,
378, 377, 377, 382, 382, 382, 382, 382, 52, 52,
52, 52, 382, 377, 377, 377, 373, 373, 30, 30,
373, 373, 377, 378, 377, 377, 382, 382, 382, 52,
52, 382, 377, 377, 377, 377, 377, 30, 373, 373,
377, 378, 377, 377, 382, 382, 382, 382, 382, 52,
382, 377, 377, 377, 377, 373, 373, 393, 377, 394,
382, 382, 382, 382, 377, 377, 377, 377, 377, 377,
377, 393, 393, 373, 377, 394, 394, 382, 382, 382,
382, 382, 382, 382, 377, 377, 377, 377, 377, 382,
382, 382, 382, 382, 377, 377, 377, 377, 377, 382,
382, 382, 382, 382, 377, 377, 377, 382, 382, 382,
377, 377, 377, 377, 377, 382, 382, 382, 382, 382,
377, 377, 377, 382, 382, 382, 377, 377, 377, 382,
382, 382, 0, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373
1999-01-17 21:42:12 +00:00
} ;
2004-09-27 16:08:18 +00:00
static yyconst short int yy_nxt[3119] =
1999-01-17 21:42:12 +00:00
{ 0,
2004-05-17 22:10:20 +00:00
14, 15, 16, 17, 14, 18, 19, 20, 21, 14,
22, 23, 14, 14, 24, 25, 26, 27, 25, 25,
25, 25, 28, 29, 21, 30, 30, 30, 30, 31,
2004-09-24 18:11:19 +00:00
30, 32, 30, 33, 30, 30, 34, 30, 30, 30,
35, 14, 14, 14, 14, 14, 14, 14, 14, 14,
2004-09-27 16:08:18 +00:00
14, 14, 14, 14, 36, 14, 14, 37, 59, 59,
76, 108, 21, 21, 21, 21, 109, 134, 99, 109,
109, 109, 109, 109, 109, 109, 100, 127, 76, 38,
39, 150, 40, 144, 99, 151, 41, 243, 152, 42,
43, 15, 16, 17, 43, 44, 45, 21, 46, 43,
47, 23, 43, 43, 48, 49, 50, 51, 49, 49,
49, 49, 28, 29, 21, 52, 52, 52, 52, 53,
52, 54, 52, 55, 52, 52, 56, 52, 52, 52,
57, 43, 43, 43, 43, 43, 43, 43, 43, 43,
43, 43, 43, 43, 58, 43, 43, 15, 61, 62,
141, 63, 15, 61, 62, 80, 63, 64, 142, 135,
86, 88, 64, 80, 86, 86, 86, 137, 64, 63,
86, 86, 76, 64, 63, 137, 76, 155, 86, 134,
99, 86, 86, 86, 76, 76, 65, 86, 76, 76,
159, 65, 15, 16, 17, 157, 18, 87, 190, 86,
160, 101, 76, 115, 146, 147, 148, 146, 146, 146,
146, 76, 156, 76, 188, 87, 108, 161, 76, 109,
158, 171, 109, 109, 109, 109, 109, 109, 109, 76,
108, 66, 67, 67, 67, 67, 67, 67, 67, 67,
67, 67, 67, 67, 67, 67, 67, 67, 15, 16,
17, 88, 18, 89, 89, 89, 89, 89, 89, 162,
163, 164, 162, 162, 162, 162, 166, 134, 99, 80,
167, 134, 99, 168, 134, 99, 76, 76, 76, 191,
76, 190, 116, 173, 108, 134, 99, 66, 67, 67,
67, 67, 67, 67, 67, 67, 67, 67, 67, 67,
67, 67, 67, 67, 15, 16, 17, 69, 18, 108,
108, 189, 136, 70, 71, 72, 136, 139, 139, 174,
136, 139, 136, 76, 137, 192, 73, 139, 86, 108,
177, 209, 86, 86, 136, 76, 76, 218, 139, 139,
175, 204, 205, 74, 15, 16, 17, 69, 18, 86,
190, 80, 210, 70, 71, 72, 140, 76, 139, 139,
317, 172, 139, 76, 209, 115, 73, 116, 139, 117,
117, 117, 117, 117, 117, 76, 176, 173, 174, 219,
139, 216, 76, 74, 88, 210, 89, 89, 89, 89,
89, 89, 89, 242, 108, 108, 190, 140, 217, 193,
86, 228, 209, 238, 86, 80, 298, 80, 76, 229,
86, 76, 88, 174, 90, 90, 90, 90, 90, 90,
90, 86, 86, 210, 239, 76, 108, 139, 139, 76,
172, 139, 238, 108, 240, 257, 76, 139, 253, 76,
88, 261, 91, 91, 91, 91, 91, 92, 89, 139,
238, 139, 139, 239, 175, 139, 258, 76, 314, 241,
76, 139, 262, 317, 76, 263, 140, 76, 75, 265,
108, 239, 75, 139, 75, 313, 314, 75, 75, 266,
75, 75, 75, 93, 93, 93, 93, 93, 93, 93,
140, 80, 76, 93, 93, 93, 93, 93, 93, 93,
93, 93, 93, 93, 93, 93, 93, 93, 76, 93,
75, 75, 75, 75, 75, 75, 75, 75, 75, 75,
75, 75, 75, 75, 75, 98, 99, 75, 76, 75,
108, 75, 75, 290, 264, 75, 206, 207, 208, 206,
206, 206, 206, 281, 80, 291, 75, 75, 75, 116,
108, 117, 117, 117, 117, 117, 117, 117, 272, 244,
177, 76, 178, 178, 178, 178, 178, 178, 220, 221,
222, 220, 220, 220, 220, 76, 108, 116, 278, 118,
118, 118, 118, 118, 118, 118, 108, 76, 282, 284,
273, 271, 193, 108, 194, 194, 194, 194, 194, 194,
257, 261, 257, 279, 108, 116, 261, 119, 119, 119,
119, 119, 120, 117, 279, 296, 76, 76, 285, 108,
279, 258, 262, 258, 280, 283, 76, 262, 299, 270,
305, 260, 108, 107, 296, 280, 297, 107, 300, 107,
300, 280, 107, 107, 108, 107, 107, 107, 121, 121,
121, 121, 121, 121, 121, 297, 76, 76, 121, 121,
121, 121, 121, 121, 121, 121, 121, 121, 121, 121,
121, 121, 121, 108, 121, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
126, 99, 107, 259, 107, 76, 107, 107, 296, 252,
107, 254, 255, 256, 254, 254, 254, 254, 251, 315,
250, 107, 107, 107, 131, 99, 132, 249, 133, 297,
313, 314, 132, 237, 133, 229, 76, 230, 230, 230,
230, 230, 230, 236, 235, 133, 133, 267, 268, 269,
267, 267, 267, 267, 244, 234, 245, 245, 245, 245,
245, 245, 76, 133, 75, 227, 75, 226, 75, 318,
75, 75, 108, 225, 75, 224, 223, 215, 214, 335,
305, 108, 329, 329, 329, 75, 75, 75, 81, 213,
81, 212, 81, 340, 81, 81, 108, 211, 81, 292,
293, 294, 295, 292, 292, 292, 76, 76, 137, 81,
81, 81, 83, 203, 83, 202, 83, 351, 83, 83,
108, 356, 83, 201, 76, 273, 274, 274, 274, 274,
274, 274, 200, 83, 83, 83, 85, 199, 75, 198,
85, 187, 75, 75, 76, 186, 85, 185, 108, 184,
183, 76, 182, 137, 137, 130, 128, 85, 85, 75,
88, 170, 89, 89, 89, 89, 89, 89, 89, 169,
165, 113, 301, 302, 303, 304, 301, 301, 301, 285,
286, 286, 286, 286, 286, 286, 111, 76, 88, 108,
89, 89, 89, 89, 89, 89, 89, 108, 318, 154,
334, 334, 334, 153, 149, 108, 325, 326, 327, 325,
325, 325, 325, 145, 84, 76, 107, 82, 107, 80,
107, 78, 107, 107, 77, 108, 107, 76, 137, 130,
128, 76, 125, 329, 329, 329, 124, 107, 107, 107,
110, 123, 110, 122, 110, 113, 110, 110, 111, 108,
110, 330, 331, 332, 330, 330, 330, 330, 76, 106,
105, 110, 110, 110, 112, 104, 112, 103, 112, 102,
112, 112, 97, 96, 112, 95, 108, 328, 328, 328,
328, 328, 328, 328, 94, 112, 112, 112, 114, 84,
107, 82, 114, 80, 107, 107, 78, 77, 114, 76,
373, 373, 76, 373, 373, 373, 334, 334, 334, 114,
114, 107, 116, 373, 117, 117, 117, 117, 117, 117,
117, 373, 373, 373, 333, 333, 333, 333, 333, 333,
333, 108, 345, 346, 347, 345, 345, 345, 345, 108,
116, 373, 117, 117, 117, 117, 117, 117, 117, 108,
373, 373, 373, 373, 373, 373, 335, 76, 336, 336,
336, 336, 336, 336, 373, 373, 373, 108, 177, 373,
178, 178, 178, 178, 178, 178, 178, 373, 373, 373,
373, 373, 373, 76, 348, 349, 350, 348, 348, 348,
348, 373, 373, 373, 373, 76, 177, 373, 179, 179,
179, 179, 179, 179, 179, 373, 373, 373, 340, 108,
341, 341, 341, 341, 341, 341, 361, 362, 363, 361,
361, 361, 361, 76, 177, 373, 180, 180, 180, 180,
180, 181, 178, 373, 373, 108, 373, 373, 373, 373,
351, 76, 352, 352, 352, 352, 352, 352, 373, 373,
373, 76, 193, 373, 194, 194, 194, 194, 194, 194,
194, 373, 373, 373, 373, 373, 373, 76, 364, 365,
366, 364, 364, 364, 364, 373, 373, 373, 373, 108,
193, 373, 195, 195, 195, 195, 195, 195, 195, 373,
373, 373, 356, 108, 357, 357, 357, 357, 357, 357,
367, 367, 367, 367, 367, 367, 367, 108, 193, 373,
196, 196, 196, 196, 196, 197, 194, 373, 373, 108,
373, 373, 373, 373, 373, 76, 361, 361, 361, 361,
361, 361, 361, 373, 373, 108, 177, 373, 178, 178,
178, 178, 178, 178, 178, 373, 373, 373, 373, 373,
373, 76, 368, 368, 368, 368, 368, 369, 367, 373,
373, 373, 373, 76, 177, 373, 178, 178, 178, 178,
178, 178, 178, 373, 373, 373, 373, 76, 370, 370,
370, 370, 370, 370, 370, 373, 373, 373, 373, 373,
373, 76, 193, 373, 194, 194, 194, 194, 194, 194,
194, 373, 373, 108, 364, 364, 364, 364, 364, 364,
364, 371, 371, 371, 371, 371, 372, 370, 373, 108,
193, 373, 194, 194, 194, 194, 194, 194, 194, 108,
373, 373, 373, 373, 373, 373, 108, 367, 367, 367,
367, 367, 367, 367, 373, 373, 373, 108, 229, 373,
230, 230, 230, 230, 230, 230, 230, 373, 373, 373,
373, 373, 76, 367, 367, 367, 367, 367, 367, 373,
373, 373, 373, 373, 373, 76, 229, 373, 231, 231,
231, 231, 231, 231, 231, 373, 373, 373, 76, 370,
370, 370, 370, 370, 370, 370, 370, 370, 370, 370,
370, 370, 373, 76, 229, 373, 232, 232, 232, 232,
232, 233, 230, 373, 108, 373, 373, 373, 373, 373,
373, 108, 373, 373, 373, 373, 373, 373, 373, 373,
373, 76, 244, 373, 245, 245, 245, 245, 245, 245,
245, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 108,
244, 373, 246, 246, 246, 246, 246, 246, 246, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 108, 244, 373,
247, 247, 247, 247, 247, 248, 245, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 108, 229, 373, 230, 230,
230, 230, 230, 230, 230, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 76, 229, 373, 230, 230, 230, 230,
230, 230, 230, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 76, 244, 373, 245, 245, 245, 245, 245, 245,
245, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 108,
244, 373, 245, 245, 245, 245, 245, 245, 245, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 108, 273, 274,
274, 274, 274, 274, 274, 274, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 76, 273, 275, 275, 275, 275,
275, 275, 275, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 76, 273, 276, 276, 276, 276, 276, 277, 274,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 76, 285,
286, 286, 286, 286, 286, 286, 286, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 108, 285, 287, 287, 287,
287, 287, 287, 287, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 108, 285, 288, 288, 288, 288, 288, 289,
286, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 108,
273, 274, 274, 274, 274, 274, 274, 274, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 76, 273, 274, 274,
274, 274, 274, 274, 274, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 76, 285, 286, 286, 286, 286, 286,
286, 286, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
108, 285, 286, 286, 286, 286, 286, 286, 286, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 108, 305, 373,
306, 306, 306, 306, 306, 306, 306, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 76, 305, 373, 307, 307,
307, 307, 307, 307, 307, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 76, 305, 373, 308, 308, 308, 308,
308, 309, 310, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 76, 305, 373, 311, 311, 311, 306, 306, 306,
306, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 76,
318, 373, 319, 319, 319, 319, 319, 319, 319, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 108, 318, 373,
320, 320, 320, 320, 320, 320, 320, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 108, 318, 373, 321, 321,
321, 321, 321, 322, 323, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 108, 318, 373, 324, 324, 324, 319,
319, 319, 319, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 108, 305, 373, 310, 310, 310, 310, 310, 310,
310, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 76,
305, 373, 310, 310, 310, 310, 310, 310, 310, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 76, 305, 373,
310, 310, 310, 310, 310, 310, 328, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 76, 305, 373, 328, 328,
328, 328, 328, 328, 328, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 76, 316, 373, 316, 373, 316, 373,
316, 316, 373, 373, 316, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 316, 316, 316, 318, 373,
323, 323, 323, 323, 323, 323, 323, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 108, 318, 373, 323, 323,
323, 323, 323, 323, 323, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 108, 318, 373, 323, 323, 323, 323,
323, 323, 333, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 108, 318, 373, 333, 333, 333, 333, 333, 333,
333, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 108,
335, 373, 336, 336, 336, 336, 336, 336, 336, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 76, 335, 373,
337, 337, 337, 337, 337, 337, 337, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 76, 335, 373, 338, 338,
338, 338, 338, 339, 336, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 76, 340, 373, 341, 341, 341, 341,
341, 341, 341, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 108, 340, 373, 342, 342, 342, 342, 342, 342,
342, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 108,
340, 373, 343, 343, 343, 343, 343, 344, 341, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 108, 335, 373,
336, 336, 336, 336, 336, 336, 336, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 76, 335, 373, 336, 336,
336, 336, 336, 336, 336, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 76, 340, 373, 341, 341, 341, 341,
341, 341, 341, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 108, 340, 373, 341, 341, 341, 341, 341, 341,
341, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 108,
351, 373, 352, 352, 352, 352, 352, 352, 352, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 76, 351, 373,
353, 353, 353, 353, 353, 353, 353, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 76, 351, 373, 354, 354,
354, 354, 354, 355, 352, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 76, 356, 373, 357, 357, 357, 357,
357, 357, 357, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 108, 356, 373, 358, 358, 358, 358, 358, 358,
358, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 108,
356, 373, 359, 359, 359, 359, 359, 360, 357, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 108, 351, 373,
352, 352, 352, 352, 352, 352, 352, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 76, 351, 373, 352, 352,
352, 352, 352, 352, 352, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 76, 356, 373, 357, 357, 357, 357,
357, 357, 357, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 108, 356, 373, 357, 357, 357, 357, 357, 357,
357, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 108,
60, 60, 60, 60, 60, 60, 60, 21, 21, 21,
21, 21, 21, 21, 68, 68, 68, 68, 68, 68,
68, 75, 373, 373, 373, 373, 75, 75, 79, 79,
79, 79, 79, 79, 79, 81, 373, 373, 373, 373,
81, 81, 83, 373, 373, 373, 373, 83, 83, 85,
373, 85, 373, 373, 85, 85, 107, 373, 373, 373,
373, 107, 107, 110, 373, 373, 373, 373, 110, 110,
112, 373, 373, 373, 373, 112, 112, 114, 373, 114,
373, 373, 114, 114, 129, 373, 129, 129, 373, 373,
129, 136, 373, 136, 373, 136, 136, 136, 138, 138,
138, 138, 138, 138, 138, 143, 143, 143, 143, 143,
143, 143, 86, 373, 86, 373, 373, 86, 86, 139,
139, 139, 139, 139, 139, 139, 312, 312, 312, 312,
312, 312, 312, 316, 373, 373, 373, 373, 316, 316,
13, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373
1999-01-17 21:42:12 +00:00
} ;
2004-09-27 16:08:18 +00:00
static yyconst short int yy_chk[3119] =
1999-01-17 21:42:12 +00:00
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1999-08-24 16:40:23 +00:00
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
2004-09-27 16:08:18 +00:00
1, 1, 1, 1, 1, 1, 1, 2, 5, 6,
36, 58, 5, 6, 5, 6, 44, 66, 66, 44,
44, 44, 44, 44, 44, 44, 36, 58, 219, 2,
2, 95, 2, 74, 74, 95, 2, 219, 95, 2,
1999-01-17 21:42:12 +00:00
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
2004-09-27 16:08:18 +00:00
1999-01-17 21:42:12 +00:00
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
2001-12-12 20:11:47 +00:00
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
2004-05-17 22:10:20 +00:00
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
2004-09-27 16:08:18 +00:00
3, 3, 3, 3, 3, 3, 3, 7, 7, 7,
70, 7, 8, 8, 8, 37, 8, 7, 72, 387,
24, 89, 8, 101, 24, 24, 48, 70, 7, 7,
48, 48, 100, 8, 8, 72, 104, 100, 85, 98,
98, 24, 85, 85, 102, 161, 7, 48, 89, 105,
104, 8, 9, 9, 9, 102, 9, 24, 161, 85,
105, 37, 155, 48, 88, 88, 88, 88, 88, 88,
88, 106, 101, 103, 155, 85, 127, 106, 98, 109,
103, 127, 109, 109, 109, 109, 109, 109, 109, 88,
370, 9, 9, 9, 9, 9, 9, 9, 9, 9,
9, 9, 9, 9, 9, 9, 9, 9, 10, 10,
10, 92, 10, 92, 92, 92, 92, 92, 92, 116,
116, 116, 116, 116, 116, 116, 123, 131, 131, 156,
123, 126, 126, 123, 134, 134, 157, 158, 92, 158,
367, 157, 117, 139, 116, 144, 144, 10, 10, 10,
2004-05-17 22:10:20 +00:00
10, 10, 10, 10, 10, 10, 10, 10, 10, 10,
2004-09-27 16:08:18 +00:00
10, 10, 10, 10, 11, 11, 11, 11, 11, 117,
126, 156, 137, 11, 11, 11, 137, 69, 69, 139,
69, 69, 137, 160, 144, 160, 11, 69, 114, 171,
178, 182, 114, 114, 137, 159, 190, 190, 140, 69,
140, 171, 174, 11, 12, 12, 12, 12, 12, 114,
159, 189, 182, 12, 12, 12, 69, 178, 138, 138,
316, 138, 138, 191, 198, 114, 12, 120, 138, 120,
120, 120, 120, 120, 120, 188, 140, 205, 174, 191,
138, 188, 192, 12, 25, 198, 25, 25, 25, 25,
25, 25, 25, 218, 120, 204, 192, 138, 189, 194,
145, 204, 209, 215, 145, 217, 282, 282, 218, 230,
145, 25, 26, 205, 26, 26, 26, 26, 26, 26,
26, 145, 145, 209, 215, 315, 194, 175, 175, 216,
175, 175, 227, 228, 216, 234, 230, 175, 228, 26,
27, 237, 27, 27, 27, 27, 27, 27, 27, 175,
238, 176, 176, 227, 176, 176, 234, 240, 312, 217,
242, 176, 237, 300, 243, 240, 175, 27, 30, 242,
291, 238, 30, 176, 30, 298, 298, 30, 30, 243,
2004-09-24 18:11:19 +00:00
30, 30, 30, 30, 30, 30, 30, 30, 30, 30,
2004-09-27 16:08:18 +00:00
176, 241, 281, 30, 30, 30, 30, 30, 30, 30,
30, 30, 30, 30, 30, 30, 30, 30, 30, 30,
30, 30, 30, 30, 30, 30, 30, 30, 30, 30,
2004-09-27 16:08:18 +00:00
30, 30, 30, 30, 30, 35, 35, 35, 263, 35,
272, 35, 35, 270, 241, 35, 177, 177, 177, 177,
177, 177, 177, 263, 264, 272, 35, 35, 35, 49,
253, 49, 49, 49, 49, 49, 49, 49, 253, 245,
181, 177, 181, 181, 181, 181, 181, 181, 193, 193,
193, 193, 193, 193, 193, 266, 49, 50, 259, 50,
50, 50, 50, 50, 50, 50, 245, 181, 264, 266,
274, 251, 197, 193, 197, 197, 197, 197, 197, 197,
249, 252, 257, 260, 50, 51, 261, 51, 51, 51,
51, 51, 51, 51, 271, 278, 274, 265, 286, 197,
279, 249, 252, 257, 260, 265, 283, 261, 283, 250,
306, 236, 51, 52, 290, 271, 278, 52, 284, 52,
284, 279, 52, 52, 286, 52, 52, 52, 52, 52,
52, 52, 52, 52, 52, 290, 284, 306, 52, 52,
52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
57, 57, 57, 235, 57, 299, 57, 57, 296, 226,
57, 229, 229, 229, 229, 229, 229, 229, 225, 299,
224, 57, 57, 57, 65, 65, 65, 223, 65, 296,
313, 313, 65, 214, 65, 233, 229, 233, 233, 233,
233, 233, 233, 213, 212, 65, 65, 244, 244, 244,
244, 244, 244, 244, 248, 211, 248, 248, 248, 248,
248, 248, 233, 65, 76, 203, 76, 202, 76, 319,
76, 76, 244, 201, 76, 200, 199, 187, 186, 336,
311, 248, 311, 311, 311, 76, 76, 76, 82, 185,
82, 184, 82, 341, 82, 82, 319, 183, 82, 273,
273, 273, 273, 273, 273, 273, 336, 311, 172, 82,
82, 82, 84, 170, 84, 169, 84, 352, 84, 84,
341, 357, 84, 168, 273, 277, 277, 277, 277, 277,
277, 277, 167, 84, 84, 84, 87, 166, 87, 165,
87, 154, 87, 87, 352, 153, 87, 152, 357, 151,
150, 277, 149, 143, 136, 130, 128, 87, 87, 87,
90, 125, 90, 90, 90, 90, 90, 90, 90, 124,
122, 112, 285, 285, 285, 285, 285, 285, 285, 289,
289, 289, 289, 289, 289, 289, 110, 90, 91, 107,
91, 91, 91, 91, 91, 91, 91, 285, 324, 97,
324, 324, 324, 96, 94, 289, 305, 305, 305, 305,
305, 305, 305, 86, 83, 91, 108, 81, 108, 79,
108, 78, 108, 108, 77, 324, 108, 75, 68, 62,
59, 305, 56, 329, 329, 329, 55, 108, 108, 108,
111, 54, 111, 53, 111, 47, 111, 111, 45, 43,
111, 318, 318, 318, 318, 318, 318, 318, 329, 42,
41, 111, 111, 111, 113, 40, 113, 39, 113, 38,
113, 113, 34, 33, 113, 32, 318, 328, 328, 328,
328, 328, 328, 328, 31, 113, 113, 113, 115, 22,
115, 19, 115, 18, 115, 115, 17, 15, 115, 14,
13, 0, 328, 0, 0, 0, 334, 334, 334, 115,
115, 115, 118, 0, 118, 118, 118, 118, 118, 118,
118, 0, 0, 0, 333, 333, 333, 333, 333, 333,
333, 334, 335, 335, 335, 335, 335, 335, 335, 118,
119, 0, 119, 119, 119, 119, 119, 119, 119, 333,
0, 0, 0, 0, 0, 0, 339, 335, 339, 339,
339, 339, 339, 339, 0, 0, 0, 119, 146, 0,
146, 146, 146, 146, 146, 146, 146, 0, 0, 0,
0, 0, 0, 339, 340, 340, 340, 340, 340, 340,
340, 0, 0, 0, 0, 146, 147, 0, 147, 147,
147, 147, 147, 147, 147, 0, 0, 0, 344, 340,
344, 344, 344, 344, 344, 344, 351, 351, 351, 351,
351, 351, 351, 147, 148, 0, 148, 148, 148, 148,
148, 148, 148, 0, 0, 344, 0, 0, 0, 0,
355, 351, 355, 355, 355, 355, 355, 355, 0, 0,
0, 148, 162, 0, 162, 162, 162, 162, 162, 162,
162, 0, 0, 0, 0, 0, 0, 355, 356, 356,
356, 356, 356, 356, 356, 0, 0, 0, 0, 162,
163, 0, 163, 163, 163, 163, 163, 163, 163, 0,
0, 0, 360, 356, 360, 360, 360, 360, 360, 360,
361, 361, 361, 361, 361, 361, 361, 163, 164, 0,
164, 164, 164, 164, 164, 164, 164, 0, 0, 360,
0, 0, 0, 0, 0, 361, 362, 362, 362, 362,
362, 362, 362, 0, 0, 164, 179, 0, 179, 179,
179, 179, 179, 179, 179, 0, 0, 0, 0, 0,
0, 362, 363, 363, 363, 363, 363, 363, 363, 0,
0, 0, 0, 179, 180, 0, 180, 180, 180, 180,
180, 180, 180, 0, 0, 0, 0, 363, 364, 364,
364, 364, 364, 364, 364, 0, 0, 0, 0, 0,
0, 180, 195, 0, 195, 195, 195, 195, 195, 195,
195, 0, 0, 364, 365, 365, 365, 365, 365, 365,
365, 366, 366, 366, 366, 366, 366, 366, 0, 195,
196, 0, 196, 196, 196, 196, 196, 196, 196, 365,
0, 0, 0, 0, 0, 0, 366, 368, 368, 368,
368, 368, 368, 368, 0, 0, 0, 196, 206, 0,
206, 206, 206, 206, 206, 206, 206, 0, 0, 0,
0, 0, 368, 369, 369, 369, 369, 369, 369, 0,
0, 0, 0, 0, 0, 206, 207, 0, 207, 207,
207, 207, 207, 207, 207, 0, 0, 0, 369, 371,
371, 371, 371, 371, 371, 371, 372, 372, 372, 372,
372, 372, 0, 207, 208, 0, 208, 208, 208, 208,
208, 208, 208, 0, 371, 0, 0, 0, 0, 0,
0, 372, 0, 0, 0, 0, 0, 0, 0, 0,
0, 208, 220, 0, 220, 220, 220, 220, 220, 220,
220, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 220,
221, 0, 221, 221, 221, 221, 221, 221, 221, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 0, 0, 0, 0, 0, 0, 221, 222, 0,
222, 222, 222, 222, 222, 222, 222, 0, 0, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 0, 0, 0, 0, 222, 231, 0, 231, 231,
231, 231, 231, 231, 231, 0, 0, 0, 0, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 0, 0, 231, 232, 0, 232, 232, 232, 232,
232, 232, 232, 0, 0, 0, 0, 0, 0, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 232, 246, 0, 246, 246, 246, 246, 246, 246,
246, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 246,
247, 0, 247, 247, 247, 247, 247, 247, 247, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 0, 0, 0, 0, 0, 0, 247, 254, 254,
254, 254, 254, 254, 254, 254, 0, 0, 0, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 0, 0, 0, 254, 255, 255, 255, 255, 255,
255, 255, 255, 0, 0, 0, 0, 0, 0, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 255, 256, 256, 256, 256, 256, 256, 256, 256,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 256, 267,
267, 267, 267, 267, 267, 267, 267, 0, 0, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 0, 0, 0, 0, 267, 268, 268, 268, 268,
268, 268, 268, 268, 0, 0, 0, 0, 0, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 0, 268, 269, 269, 269, 269, 269, 269, 269,
269, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 269,
275, 275, 275, 275, 275, 275, 275, 275, 0, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 0, 0, 0, 0, 0, 275, 276, 276, 276,
276, 276, 276, 276, 276, 0, 0, 0, 0, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 0, 0, 276, 287, 287, 287, 287, 287, 287,
287, 287, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
287, 288, 288, 288, 288, 288, 288, 288, 288, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 0, 0, 0, 0, 0, 0, 288, 292, 0,
292, 292, 292, 292, 292, 292, 292, 0, 0, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 0, 0, 0, 0, 292, 293, 0, 293, 293,
293, 293, 293, 293, 293, 0, 0, 0, 0, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 0, 0, 293, 294, 0, 294, 294, 294, 294,
294, 294, 294, 0, 0, 0, 0, 0, 0, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 294, 295, 0, 295, 295, 295, 295, 295, 295,
295, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 295,
2004-09-24 18:11:19 +00:00
2004-09-27 16:08:18 +00:00
301, 0, 301, 301, 301, 301, 301, 301, 301, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 0, 0, 0, 0, 0, 0, 301, 302, 0,
302, 302, 302, 302, 302, 302, 302, 0, 0, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 0, 0, 0, 0, 302, 303, 0, 303, 303,
303, 303, 303, 303, 303, 0, 0, 0, 0, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 0, 0, 303, 304, 0, 304, 304, 304, 304,
304, 304, 304, 0, 0, 0, 0, 0, 0, 0,
2004-05-17 22:10:20 +00:00
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 304, 307, 0, 307, 307, 307, 307, 307, 307,
307, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 307,
308, 0, 308, 308, 308, 308, 308, 308, 308, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 0, 0, 0, 0, 0, 0, 308, 309, 0,
309, 309, 309, 309, 309, 309, 309, 0, 0, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 0, 0, 0, 0, 309, 310, 0, 310, 310,
2004-09-24 18:11:19 +00:00
2004-09-27 16:08:18 +00:00
310, 310, 310, 310, 310, 0, 0, 0, 0, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 0, 0, 310, 317, 0, 317, 0, 317, 0,
317, 317, 0, 0, 317, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 317, 317, 317, 320, 0,
320, 320, 320, 320, 320, 320, 320, 0, 0, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 0, 0, 0, 0, 320, 321, 0, 321, 321,
321, 321, 321, 321, 321, 0, 0, 0, 0, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 0, 0, 321, 322, 0, 322, 322, 322, 322,
322, 322, 322, 0, 0, 0, 0, 0, 0, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 322, 323, 0, 323, 323, 323, 323, 323, 323,
323, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 323,
325, 0, 325, 325, 325, 325, 325, 325, 325, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 0, 0, 0, 0, 0, 0, 325, 326, 0,
326, 326, 326, 326, 326, 326, 326, 0, 0, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 0, 0, 0, 0, 326, 327, 0, 327, 327,
327, 327, 327, 327, 327, 0, 0, 0, 0, 0,
2004-05-17 22:10:20 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 0, 0, 327, 330, 0, 330, 330, 330, 330,
330, 330, 330, 0, 0, 0, 0, 0, 0, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 330, 331, 0, 331, 331, 331, 331, 331, 331,
331, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 331,
2004-09-24 18:11:19 +00:00
2004-09-27 16:08:18 +00:00
332, 0, 332, 332, 332, 332, 332, 332, 332, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 0, 0, 0, 0, 0, 0, 332, 337, 0,
337, 337, 337, 337, 337, 337, 337, 0, 0, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 0, 0, 0, 0, 337, 338, 0, 338, 338,
338, 338, 338, 338, 338, 0, 0, 0, 0, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 0, 0, 338, 342, 0, 342, 342, 342, 342,
342, 342, 342, 0, 0, 0, 0, 0, 0, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 342, 343, 0, 343, 343, 343, 343, 343, 343,
343, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 343,
345, 0, 345, 345, 345, 345, 345, 345, 345, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 0, 0, 0, 0, 0, 0, 345, 346, 0,
346, 346, 346, 346, 346, 346, 346, 0, 0, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 0, 0, 0, 0, 346, 347, 0, 347, 347,
2004-09-24 18:11:19 +00:00
2004-09-27 16:08:18 +00:00
347, 347, 347, 347, 347, 0, 0, 0, 0, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 0, 0, 347, 348, 0, 348, 348, 348, 348,
348, 348, 348, 0, 0, 0, 0, 0, 0, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 348, 349, 0, 349, 349, 349, 349, 349, 349,
349, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 349,
350, 0, 350, 350, 350, 350, 350, 350, 350, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 0, 0, 0, 0, 0, 0, 350, 353, 0,
353, 353, 353, 353, 353, 353, 353, 0, 0, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 0, 0, 0, 0, 353, 354, 0, 354, 354,
354, 354, 354, 354, 354, 0, 0, 0, 0, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 0, 0, 354, 358, 0, 358, 358, 358, 358,
358, 358, 358, 0, 0, 0, 0, 0, 0, 0,
2004-09-24 18:11:19 +00:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2004-09-27 16:08:18 +00:00
0, 358, 359, 0, 359, 359, 359, 359, 359, 359,
359, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 359,
374, 374, 374, 374, 374, 374, 374, 375, 375, 375,
375, 375, 375, 375, 376, 376, 376, 376, 376, 376,
376, 377, 0, 0, 0, 0, 377, 377, 378, 378,
378, 378, 378, 378, 378, 379, 0, 0, 0, 0,
379, 379, 380, 0, 0, 0, 0, 380, 380, 381,
0, 381, 0, 0, 381, 381, 382, 0, 0, 0,
0, 382, 382, 383, 0, 0, 0, 0, 383, 383,
384, 0, 0, 0, 0, 384, 384, 385, 0, 385,
0, 0, 385, 385, 386, 0, 386, 386, 0, 0,
386, 388, 0, 388, 0, 388, 388, 388, 389, 389,
389, 389, 389, 389, 389, 390, 390, 390, 390, 390,
390, 390, 391, 0, 391, 0, 0, 391, 391, 392,
392, 392, 392, 392, 392, 392, 393, 393, 393, 393,
393, 393, 393, 394, 0, 0, 0, 0, 394, 394,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
373, 373, 373, 373, 373, 373, 373, 373
1999-01-17 21:42:12 +00:00
} ;
static yy_state_type yy_last_accepting_state;
static char *yy_last_accepting_cpos;
/* The intent behind this definition is that it'll catch
* any uses of REJECT which flex missed.
*/
#define REJECT reject_used_but_not_detected
#define yymore() yymore_used_but_not_detected
#define YY_MORE_ADJ 0
#define YY_RESTORE_YY_MORE_OFFSET
char *yytext;
#line 1 "parse.lex"
1999-01-17 21:42:12 +00:00
#define INITIAL 0
#line 2 "parse.lex"
1999-01-17 21:42:12 +00:00
/*
2004-01-05 17:15:32 +00:00
* Copyright (c) 1996, 1998-2004 Todd C. Miller <Todd.Miller@courtesan.com>
1999-01-17 21:42:12 +00:00
*
2004-02-13 21:37:02 +00:00
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
1999-01-17 21:42:12 +00:00
*
2004-02-13 21:37:02 +00:00
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1999-07-22 13:12:27 +00:00
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Sponsored in part by the Defense Advanced Research Projects
* Agency (DARPA) and Air Force Research Laboratory, Air Force
* Materiel Command, USAF, under agreement number F39502-99-1-0512.
1999-01-17 21:42:12 +00:00
*/
#include "config.h"
2001-12-14 19:59:57 +00:00
#include <sys/types.h>
#include <sys/param.h>
#include <stdio.h>
1999-01-17 21:42:12 +00:00
#ifdef STDC_HEADERS
2001-12-14 19:59:57 +00:00
# include <stdlib.h>
# include <stddef.h>
#else
# ifdef HAVE_STDLIB_H
# include <stdlib.h>
# endif
1999-01-17 21:42:12 +00:00
#endif /* STDC_HEADERS */
#ifdef HAVE_STRING_H
2001-12-14 19:59:57 +00:00
# include <string.h>
#else
# ifdef HAVE_STRINGS_H
# include <strings.h>
# endif
1999-01-17 21:42:12 +00:00
#endif /* HAVE_STRING_H */
2001-12-14 19:59:57 +00:00
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif /* HAVE_UNISTD_H */
1999-01-17 21:42:12 +00:00
#if defined(HAVE_MALLOC_H) && !defined(STDC_HEADERS)
2001-12-14 19:59:57 +00:00
# include <malloc.h>
1999-01-17 21:42:12 +00:00
#endif /* HAVE_MALLOC_H && !STDC_HEADERS */
#include <ctype.h>
#include "sudo.h"
1999-07-22 13:12:27 +00:00
#include "parse.h"
2001-12-12 20:11:47 +00:00
#include <sudo.tab.h>
1999-01-17 21:42:12 +00:00
#ifndef lint
1999-01-17 23:16:20 +00:00
static const char rcsid[] = "$Sudo$";
1999-01-17 21:42:12 +00:00
#endif /* lint */
#undef yywrap /* guard against a yywrap macro */
extern YYSTYPE yylval;
extern int clearaliases;
int sudolineno = 1;
2004-09-28 18:37:08 +00:00
char *sudoers;
1999-01-17 21:42:12 +00:00
static int sawspace = 0;
static int arg_len = 0;
static int arg_size = 0;
2004-09-28 00:47:47 +00:00
static int fill __P((char *, int));
static int fill_cmnd __P((char *, int));
static int fill_args __P((char *, int, int));
2004-09-28 18:37:08 +00:00
static int buffer_frob __P((char *));
1999-01-17 21:42:12 +00:00
extern void reset_aliases __P((void));
2004-09-27 16:08:18 +00:00
extern void yyerror __P((const char *));
#define push_include(_p) (buffer_frob((_p)))
#define pop_include() (buffer_frob(NULL))
1999-01-17 21:42:12 +00:00
/* realloc() to size + COMMANDARGINC to make room for command args */
#define COMMANDARGINC 64
#ifdef TRACELEXER
#define LEXTRACE(msg) fputs(msg, stderr)
#else
#define LEXTRACE(msg)
#endif
2004-09-29 19:22:38 +00:00
#define YY_NO_UNPUT 1
2001-12-12 20:11:47 +00:00
/* XXX - convert GOTRUNAS to exclusive state (GOTDEFS cannot be) */
#define GOTRUNAS 1
#define GOTDEFS 2
1999-01-17 21:42:12 +00:00
2001-12-12 20:11:47 +00:00
#define GOTCMND 3
1999-01-17 21:42:12 +00:00
2001-12-12 20:11:47 +00:00
#define STARTDEFS 4
2001-12-12 20:11:47 +00:00
#define INDEFS 5
2004-09-29 19:22:38 +00:00
#line 1280 "lex.yy.c"
1999-01-17 21:42:12 +00:00
/* Macros after this point can all be overridden by user definitions in
* section 1.
*/
#ifndef YY_SKIP_YYWRAP
#ifdef __cplusplus
extern "C" int yywrap YY_PROTO(( void ));
#else
extern int yywrap YY_PROTO(( void ));
#endif
#endif
#ifndef YY_NO_UNPUT
static void yyunput YY_PROTO(( int c, char *buf_ptr ));
#endif
#ifndef yytext_ptr
static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
#endif
#ifdef YY_NEED_STRLEN
static int yy_flex_strlen YY_PROTO(( yyconst char * ));
#endif
#ifndef YY_NO_INPUT
#ifdef __cplusplus
static int yyinput YY_PROTO(( void ));
#else
static int input YY_PROTO(( void ));
#endif
#endif
#if YY_STACK_USED
static int yy_start_stack_ptr = 0;
static int yy_start_stack_depth = 0;
static int *yy_start_stack = 0;
#ifndef YY_NO_PUSH_STATE
static void yy_push_state YY_PROTO(( int new_state ));
#endif
#ifndef YY_NO_POP_STATE
static void yy_pop_state YY_PROTO(( void ));
#endif
#ifndef YY_NO_TOP_STATE
static int yy_top_state YY_PROTO(( void ));
#endif
#else
#define YY_NO_PUSH_STATE 1
#define YY_NO_POP_STATE 1
#define YY_NO_TOP_STATE 1
#endif
#ifdef YY_MALLOC_DECL
YY_MALLOC_DECL
#else
#ifdef __STDC__
#ifndef __cplusplus
#include <stdlib.h>
#endif
#else
/* Just try to get by without declaring the routines. This will fail
* miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
* or sizeof(void*) != sizeof(int).
*/
#endif
#endif
/* Amount of stuff to slurp up with each read. */
#ifndef YY_READ_BUF_SIZE
#define YY_READ_BUF_SIZE 8192
#endif
/* Copy whatever the last rule matched to the standard output. */
#ifndef ECHO
/* This used to be an fputs(), but since the string might contain NUL's,
* we now use fwrite().
*/
#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
#endif
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
* is returned in "result".
*/
#ifndef YY_INPUT
#define YY_INPUT(buf,result,max_size) \
if ( yy_current_buffer->yy_is_interactive ) \
{ \
int c = '*', n; \
for ( n = 0; n < max_size && \
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \
if ( c == '\n' ) \
buf[n++] = (char) c; \
if ( c == EOF && ferror( yyin ) ) \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
result = n; \
} \
else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
&& ferror( yyin ) ) \
YY_FATAL_ERROR( "input in flex scanner failed" );
#endif
/* No semi-colon after return; correct usage is to write "yyterminate();" -
* we don't want an extra ';' after the "return" because that will cause
* some compilers to complain about unreachable statements.
*/
#ifndef yyterminate
#define yyterminate() return YY_NULL
#endif
/* Number of entries by which start-condition stack grows. */
#ifndef YY_START_STACK_INCR
#define YY_START_STACK_INCR 25
#endif
/* Report a fatal error. */
#ifndef YY_FATAL_ERROR
#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
#endif
/* Default declaration of generated scanner - a define so the user can
* easily add parameters.
*/
#ifndef YY_DECL
#define YY_DECL int yylex YY_PROTO(( void ))
#endif
/* Code executed at the beginning of each rule, after yytext and yyleng
* have been set up.
*/
#ifndef YY_USER_ACTION
#define YY_USER_ACTION
#endif
/* Code executed at the end of each rule. */
#ifndef YY_BREAK
#define YY_BREAK break;
#endif
#define YY_RULE_SETUP \
if ( yyleng > 0 ) \
yy_current_buffer->yy_at_bol = \
(yytext[yyleng - 1] == '\n'); \
1999-01-17 21:42:12 +00:00
YY_USER_ACTION
YY_DECL
{
register yy_state_type yy_current_state;
register char *yy_cp, *yy_bp;
register int yy_act;
2004-09-29 19:22:38 +00:00
#line 106 "parse.lex"
1999-01-17 21:42:12 +00:00
2004-09-29 19:22:38 +00:00
#line 1436 "lex.yy.c"
1999-01-17 21:42:12 +00:00
if ( yy_init )
{
yy_init = 0;
#ifdef YY_USER_INIT
YY_USER_INIT;
#endif
if ( ! yy_start )
yy_start = 1; /* first start state */
if ( ! yyin )
yyin = stdin;
if ( ! yyout )
yyout = stdout;
if ( ! yy_current_buffer )
yy_current_buffer =
yy_create_buffer( yyin, YY_BUF_SIZE );
yy_load_buffer_state();
}
while ( 1 ) /* loops until end-of-file is reached */
{
yy_cp = yy_c_buf_p;
/* Support of yytext. */
*yy_cp = yy_hold_char;
/* yy_bp points to the position in yy_ch_buf of the start of
* the current run.
*/
yy_bp = yy_cp;
yy_current_state = yy_start;
yy_current_state += YY_AT_BOL();
1999-01-17 21:42:12 +00:00
yy_match:
do
{
register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
if ( yy_accept[yy_current_state] )
{
yy_last_accepting_state = yy_current_state;
yy_last_accepting_cpos = yy_cp;
}
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
2004-09-27 16:08:18 +00:00
if ( yy_current_state >= 374 )
1999-01-17 21:42:12 +00:00
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
++yy_cp;
}
2004-09-27 16:08:18 +00:00
while ( yy_base[yy_current_state] != 3061 );
1999-01-17 21:42:12 +00:00
yy_find_action:
yy_act = yy_accept[yy_current_state];
if ( yy_act == 0 )
{ /* have to back up */
yy_cp = yy_last_accepting_cpos;
yy_current_state = yy_last_accepting_state;
yy_act = yy_accept[yy_current_state];
}
YY_DO_BEFORE_ACTION;
do_action: /* This label is used only to access EOF actions. */
switch ( yy_act )
{ /* beginning of action switch */
case 0: /* must back up */
/* undo the effects of YY_DO_BEFORE_ACTION */
*yy_cp = yy_hold_char;
yy_cp = yy_last_accepting_cpos;
yy_current_state = yy_last_accepting_state;
goto yy_find_action;
case 1:
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 107 "parse.lex"
2001-12-12 20:11:47 +00:00
BEGIN STARTDEFS;
1999-01-17 21:42:12 +00:00
YY_BREAK
case 2:
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 109 "parse.lex"
{
2001-12-12 20:11:47 +00:00
BEGIN INDEFS;
LEXTRACE("DEFVAR ");
2004-09-28 00:47:47 +00:00
if (!fill(yytext, yyleng))
yyterminate();
2001-12-12 20:11:47 +00:00
return(DEFVAR);
}
1999-01-17 21:42:12 +00:00
YY_BREAK
2001-12-12 20:11:47 +00:00
1999-01-17 21:42:12 +00:00
case 3:
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 118 "parse.lex"
1999-01-17 21:42:12 +00:00
{
2001-12-12 20:11:47 +00:00
BEGIN STARTDEFS;
LEXTRACE(", ");
return(',');
} /* return ',' */
1999-01-17 21:42:12 +00:00
YY_BREAK
case 4:
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 124 "parse.lex"
{
2001-12-12 20:11:47 +00:00
LEXTRACE("= ");
return('=');
} /* return '=' */
YY_BREAK
case 5:
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 129 "parse.lex"
{
2001-12-12 20:11:47 +00:00
LEXTRACE("+= ");
return('+');
} /* return '+' */
YY_BREAK
case 6:
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 134 "parse.lex"
1999-01-17 21:42:12 +00:00
{
2001-12-12 20:11:47 +00:00
LEXTRACE("-= ");
return('-');
} /* return '-' */
1999-01-17 21:42:12 +00:00
YY_BREAK
case 7:
1999-01-17 21:42:12 +00:00
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 139 "parse.lex"
{
2001-12-12 20:11:47 +00:00
LEXTRACE("WORD(1) ");
2004-09-28 00:47:47 +00:00
if (!fill(yytext + 1, yyleng - 2))
yyterminate();
2001-12-12 20:11:47 +00:00
return(WORD);
}
1999-01-17 21:42:12 +00:00
YY_BREAK
2001-12-30 22:12:17 +00:00
case 8:
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 146 "parse.lex"
2001-12-30 22:12:17 +00:00
{
LEXTRACE("WORD(2) ");
2004-09-28 00:47:47 +00:00
if (!fill(yytext, yyleng))
yyterminate();
2001-12-30 22:12:17 +00:00
return(WORD);
}
YY_BREAK
2001-12-12 20:11:47 +00:00
2001-12-30 22:12:17 +00:00
case 9:
1999-01-17 21:42:12 +00:00
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 155 "parse.lex"
1999-01-17 21:42:12 +00:00
{
2004-05-17 22:10:20 +00:00
/* quoted fnmatch glob char, pass verbatim */
2001-12-12 20:11:47 +00:00
LEXTRACE("QUOTEDCHAR ");
2004-09-28 00:47:47 +00:00
if (!fill_args(yytext, 2, sawspace))
yyterminate();
2001-12-12 20:11:47 +00:00
sawspace = FALSE;
}
1999-01-17 21:42:12 +00:00
YY_BREAK
2001-12-30 22:12:17 +00:00
case 10:
1999-01-17 21:42:12 +00:00
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 163 "parse.lex"
2004-05-17 22:10:20 +00:00
{
/* quoted sudoers special char, strip backslash */
LEXTRACE("QUOTEDCHAR ");
2004-09-28 00:47:47 +00:00
if (!fill_args(yytext + 1, 1, sawspace))
yyterminate();
2004-05-17 22:10:20 +00:00
sawspace = FALSE;
}
YY_BREAK
case 11:
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 171 "parse.lex"
1999-01-17 21:42:12 +00:00
{
2001-12-12 20:11:47 +00:00
BEGIN INITIAL;
2004-09-29 19:22:38 +00:00
yyless(1);
2001-12-12 20:11:47 +00:00
return(COMMAND);
} /* end of command line args */
1999-01-17 21:42:12 +00:00
YY_BREAK
2004-05-17 22:10:20 +00:00
case 12:
1999-01-17 21:42:12 +00:00
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 177 "parse.lex"
1999-01-17 21:42:12 +00:00
{
2001-12-12 20:11:47 +00:00
LEXTRACE("ARG ");
2004-09-28 00:47:47 +00:00
if (!fill_args(yytext, yyleng, sawspace))
yyterminate();
2001-12-12 20:11:47 +00:00
sawspace = FALSE;
} /* a command line arg */
1999-01-17 21:42:12 +00:00
YY_BREAK
2001-12-12 20:11:47 +00:00
2004-05-17 22:10:20 +00:00
case 13:
1999-01-17 21:42:12 +00:00
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 185 "parse.lex"
2004-09-27 16:08:18 +00:00
{
char *cp, *ep;
2004-09-28 18:37:08 +00:00
++sudolineno;
2004-09-27 16:08:18 +00:00
/* pull out path from #include line */
for (cp = yytext + 9; isspace(*cp); cp++)
continue;
for (ep = cp; *ep != '\0' && !isspace(*ep); ep++)
continue;
*ep = '\0';
/* push current buffer and switch to include file */
2004-09-28 00:47:47 +00:00
if (!push_include(cp))
yyterminate();
2004-09-27 16:08:18 +00:00
LEXTRACE("INCLUDE\n");
2004-09-29 19:22:38 +00:00
return(COMMENT);
2004-09-27 16:08:18 +00:00
}
YY_BREAK
case 14:
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 201 "parse.lex"
1999-01-17 21:42:12 +00:00
{
2001-12-12 20:11:47 +00:00
BEGIN GOTDEFS;
switch (yytext[8]) {
case ':':
2004-09-27 16:08:18 +00:00
yyless(9);
2001-12-12 20:11:47 +00:00
LEXTRACE("DEFAULTS_USER ");
return(DEFAULTS_USER);
2003-01-17 23:10:05 +00:00
case '>':
2004-09-27 16:08:18 +00:00
yyless(9);
2003-01-17 23:10:05 +00:00
LEXTRACE("DEFAULTS_RUNAS ");
return(DEFAULTS_RUNAS);
2001-12-12 20:11:47 +00:00
case '@':
2004-09-27 16:08:18 +00:00
yyless(9);
2001-12-12 20:11:47 +00:00
LEXTRACE("DEFAULTS_HOST ");
return(DEFAULTS_HOST);
default:
LEXTRACE("DEFAULTS ");
return(DEFAULTS);
}
1999-01-17 21:42:12 +00:00
}
YY_BREAK
2004-09-27 16:08:18 +00:00
case 15:
1999-01-17 21:42:12 +00:00
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 222 "parse.lex"
1999-01-17 21:42:12 +00:00
{
2004-09-28 00:47:47 +00:00
if (!fill(yytext, yyleng))
yyterminate();
2001-12-12 20:11:47 +00:00
switch (*yytext) {
case 'H':
LEXTRACE("HOSTALIAS ");
return(HOSTALIAS);
case 'C':
LEXTRACE("CMNDALIAS ");
return(CMNDALIAS);
case 'U':
LEXTRACE("USERALIAS ");
return(USERALIAS);
case 'R':
LEXTRACE("RUNASALIAS ");
BEGIN GOTRUNAS;
return(RUNASALIAS);
}
}
1999-01-17 21:42:12 +00:00
YY_BREAK
2004-09-27 16:08:18 +00:00
case 16:
1999-01-17 21:42:12 +00:00
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 242 "parse.lex"
{
1999-01-17 21:42:12 +00:00
/* cmnd does not require passwd for this user */
LEXTRACE("NOPASSWD ");
return(NOPASSWD);
}
YY_BREAK
2004-09-27 16:08:18 +00:00
case 17:
1999-01-17 21:42:12 +00:00
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 248 "parse.lex"
{
1999-04-05 20:29:54 +00:00
/* cmnd requires passwd for this user */
LEXTRACE("PASSWD ");
return(PASSWD);
}
YY_BREAK
2004-09-27 16:08:18 +00:00
case 18:
1999-04-05 20:29:54 +00:00
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 254 "parse.lex"
{
LEXTRACE("NOEXEC ");
return(NOEXEC);
}
YY_BREAK
2004-09-27 16:08:18 +00:00
case 19:
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 259 "parse.lex"
{
LEXTRACE("EXEC ");
return(EXEC);
}
YY_BREAK
2004-09-27 16:08:18 +00:00
case 20:
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 264 "parse.lex"
2004-09-24 18:11:19 +00:00
{
LEXTRACE("NOTRACE ");
return(NOTRACE);
}
YY_BREAK
2004-09-27 16:08:18 +00:00
case 21:
2004-09-24 18:11:19 +00:00
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 269 "parse.lex"
2004-09-24 18:11:19 +00:00
{
LEXTRACE("TRACE ");
return(TRACE);
}
YY_BREAK
2004-09-27 16:08:18 +00:00
case 22:
2004-09-24 18:11:19 +00:00
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 274 "parse.lex"
1999-01-17 21:42:12 +00:00
{
/* netgroup */
2004-09-28 00:47:47 +00:00
if (!fill(yytext, yyleng))
yyterminate();
LEXTRACE("NETGROUP ");
1999-01-17 21:42:12 +00:00
return(NETGROUP);
}
YY_BREAK
2004-09-27 16:08:18 +00:00
case 23:
1999-01-17 21:42:12 +00:00
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 282 "parse.lex"
1999-01-17 21:42:12 +00:00
{
/* UN*X group */
2004-09-28 00:47:47 +00:00
if (!fill(yytext, yyleng))
yyterminate();
LEXTRACE("GROUP ");
1999-01-17 21:42:12 +00:00
return(USERGROUP);
}
YY_BREAK
2004-09-27 16:08:18 +00:00
case 24:
1999-01-17 21:42:12 +00:00
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 290 "parse.lex"
1999-01-17 21:42:12 +00:00
{
2004-09-28 00:47:47 +00:00
if (!fill(yytext, yyleng))
yyterminate();
1999-01-17 21:42:12 +00:00
LEXTRACE("NTWKADDR ");
return(NTWKADDR);
}
YY_BREAK
2004-09-27 16:08:18 +00:00
case 25:
1999-01-17 21:42:12 +00:00
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 297 "parse.lex"
1999-08-24 16:40:23 +00:00
{
2004-09-28 00:47:47 +00:00
if (!fill(yytext, yyleng))
yyterminate();
1999-08-24 16:40:23 +00:00
LEXTRACE("NTWKADDR ");
return(NTWKADDR);
}
YY_BREAK
2004-09-27 16:08:18 +00:00
case 26:
1999-08-24 16:40:23 +00:00
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 304 "parse.lex"
1999-01-17 21:42:12 +00:00
{
BEGIN GOTRUNAS;
LEXTRACE("RUNAS ");
return (RUNAS);
}
YY_BREAK
2004-09-27 16:08:18 +00:00
case 27:
1999-01-17 21:42:12 +00:00
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 310 "parse.lex"
1999-01-17 21:42:12 +00:00
{
if (strcmp(yytext, "ALL") == 0) {
LEXTRACE("ALL ");
return(ALL);
} else {
2004-09-28 00:47:47 +00:00
if (!fill(yytext, yyleng))
yyterminate();
1999-01-17 21:42:12 +00:00
LEXTRACE("ALIAS ");
return(ALIAS);
}
}
YY_BREAK
2004-09-27 16:08:18 +00:00
case 28:
1999-01-17 21:42:12 +00:00
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 322 "parse.lex"
1999-01-17 21:42:12 +00:00
{
/* username/uid that user can run command as */
2004-09-28 00:47:47 +00:00
if (!fill(yytext, yyleng))
yyterminate();
2001-12-30 22:12:17 +00:00
LEXTRACE("WORD(3) ");
return(WORD);
1999-01-17 21:42:12 +00:00
}
YY_BREAK
2004-09-27 16:08:18 +00:00
case 29:
1999-01-17 21:42:12 +00:00
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 330 "parse.lex"
1999-01-17 21:42:12 +00:00
{
BEGIN INITIAL;
}
1999-01-17 21:42:12 +00:00
YY_BREAK
2004-09-27 16:08:18 +00:00
case 30:
1999-01-17 21:42:12 +00:00
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 334 "parse.lex"
2004-01-22 01:03:16 +00:00
{
BEGIN GOTCMND;
LEXTRACE("COMMAND ");
2004-09-28 00:47:47 +00:00
if (!fill_cmnd(yytext, yyleng))
yyterminate();
2004-01-22 01:03:16 +00:00
} /* sudo -e */
YY_BREAK
2004-09-27 16:08:18 +00:00
case 31:
2004-01-22 01:03:16 +00:00
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 341 "parse.lex"
1999-01-17 21:42:12 +00:00
{
2001-12-12 20:11:47 +00:00
/* directories can't have args... */
if (yytext[yyleng - 1] == '/') {
LEXTRACE("COMMAND ");
2004-09-28 00:47:47 +00:00
if (!fill_cmnd(yytext, yyleng))
yyterminate();
2001-12-12 20:11:47 +00:00
return(COMMAND);
1999-08-04 15:31:47 +00:00
} else {
2001-12-12 20:11:47 +00:00
BEGIN GOTCMND;
LEXTRACE("COMMAND ");
2004-09-28 00:47:47 +00:00
if (!fill_cmnd(yytext, yyleng))
yyterminate();
1999-01-17 21:42:12 +00:00
}
2001-12-12 20:11:47 +00:00
} /* a pathname */
1999-01-17 21:42:12 +00:00
YY_BREAK
2004-09-27 16:08:18 +00:00
case 32:
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 356 "parse.lex"
{
2001-12-12 20:11:47 +00:00
/* a word */
2004-09-28 00:47:47 +00:00
if (!fill(yytext, yyleng))
yyterminate();
2001-12-30 22:12:17 +00:00
LEXTRACE("WORD(4) ");
return(WORD);
}
YY_BREAK
2004-09-27 16:08:18 +00:00
case 33:
2001-12-12 20:11:47 +00:00
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 364 "parse.lex"
2001-12-12 20:11:47 +00:00
{
LEXTRACE(", ");
return(',');
} /* return ',' */
YY_BREAK
2004-09-27 16:08:18 +00:00
case 34:
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 369 "parse.lex"
{
2001-12-12 20:11:47 +00:00
LEXTRACE("= ");
return('=');
} /* return '=' */
YY_BREAK
2004-09-27 16:08:18 +00:00
case 35:
1999-01-17 21:42:12 +00:00
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 374 "parse.lex"
1999-01-17 21:42:12 +00:00
{
2001-12-12 20:11:47 +00:00
LEXTRACE(": ");
return(':');
} /* return ':' */
1999-01-17 21:42:12 +00:00
YY_BREAK
2004-09-27 16:08:18 +00:00
case 36:
1999-01-17 21:42:12 +00:00
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 379 "parse.lex"
1999-01-17 21:42:12 +00:00
{
2001-12-12 20:11:47 +00:00
if (yyleng % 2 == 1)
return('!'); /* return '!' */
}
YY_BREAK
2004-09-27 16:08:18 +00:00
case 37:
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 384 "parse.lex"
{
2001-12-12 20:11:47 +00:00
BEGIN INITIAL;
++sudolineno;
LEXTRACE("\n");
return(COMMENT);
} /* return newline */
YY_BREAK
2004-09-27 16:08:18 +00:00
case 38:
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 391 "parse.lex"
2001-12-12 20:11:47 +00:00
{ /* throw away space/tabs */
sawspace = TRUE; /* but remember for fill_args */
}
YY_BREAK
2004-09-27 16:08:18 +00:00
case 39:
2001-12-12 20:11:47 +00:00
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 395 "parse.lex"
2001-12-12 20:11:47 +00:00
{
sawspace = TRUE; /* remember for fill_args */
++sudolineno;
LEXTRACE("\n\t");
} /* throw away EOL after \ */
YY_BREAK
2004-09-27 16:08:18 +00:00
case 40:
2001-12-12 20:11:47 +00:00
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 401 "parse.lex"
2001-12-12 20:11:47 +00:00
{
BEGIN INITIAL;
++sudolineno;
LEXTRACE("\n");
return(COMMENT);
} /* return comments */
YY_BREAK
2004-09-27 16:08:18 +00:00
case 41:
2001-12-12 20:11:47 +00:00
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 408 "parse.lex"
{
LEXTRACE("ERROR ");
1999-01-17 21:42:12 +00:00
return(ERROR);
} /* parse error */
YY_BREAK
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(GOTRUNAS):
case YY_STATE_EOF(GOTDEFS):
2001-12-12 20:11:47 +00:00
case YY_STATE_EOF(GOTCMND):
case YY_STATE_EOF(STARTDEFS):
case YY_STATE_EOF(INDEFS):
2004-09-29 19:22:38 +00:00
#line 413 "parse.lex"
2003-01-17 23:10:05 +00:00
{
if (YY_START != INITIAL) {
BEGIN INITIAL;
LEXTRACE("ERROR ");
return(ERROR);
}
2004-09-27 16:08:18 +00:00
if (!pop_include())
yyterminate();
2003-01-17 23:10:05 +00:00
}
YY_BREAK
2004-09-27 16:08:18 +00:00
case 42:
2003-01-17 23:10:05 +00:00
YY_RULE_SETUP
2004-09-29 19:22:38 +00:00
#line 423 "parse.lex"
2003-01-17 23:10:05 +00:00
ECHO;
YY_BREAK
2004-09-29 19:22:38 +00:00
#line 1971 "lex.yy.c"
1999-01-17 21:42:12 +00:00
case YY_END_OF_BUFFER:
{
/* Amount of text matched not including the EOB char. */
int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
/* Undo the effects of YY_DO_BEFORE_ACTION. */
*yy_cp = yy_hold_char;
YY_RESTORE_YY_MORE_OFFSET
if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
{
/* We're scanning a new file or input source. It's
* possible that this happened because the user
* just pointed yyin at a new source and called
* yylex(). If so, then we have to assure
* consistency between yy_current_buffer and our
* globals. Here is the right place to do so, because
* this is the first action (other than possibly a
* back-up) that will match for the new input source.
*/
yy_n_chars = yy_current_buffer->yy_n_chars;
yy_current_buffer->yy_input_file = yyin;
yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
}
/* Note that here we test for yy_c_buf_p "<=" to the position
* of the first EOB in the buffer, since yy_c_buf_p will
* already have been incremented past the NUL character
* (since all states make transitions on EOB to the
* end-of-buffer state). Contrast this with the test
* in input().
*/
if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
{ /* This was really a NUL. */
yy_state_type yy_next_state;
yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
yy_current_state = yy_get_previous_state();
/* Okay, we're now positioned to make the NUL
* transition. We couldn't have
* yy_get_previous_state() go ahead and do it
* for us because it doesn't know how to deal
* with the possibility of jamming (and we don't
* want to build jamming into it because then it
* will run more slowly).
*/
yy_next_state = yy_try_NUL_trans( yy_current_state );
yy_bp = yytext_ptr + YY_MORE_ADJ;
if ( yy_next_state )
{
/* Consume the NUL. */
yy_cp = ++yy_c_buf_p;
yy_current_state = yy_next_state;
goto yy_match;
}
else
{
yy_cp = yy_c_buf_p;
goto yy_find_action;
}
}
else switch ( yy_get_next_buffer() )
{
case EOB_ACT_END_OF_FILE:
{
yy_did_buffer_switch_on_eof = 0;
if ( yywrap() )
{
/* Note: because we've taken care in
* yy_get_next_buffer() to have set up
* yytext, we can now set up
* yy_c_buf_p so that if some total
* hoser (like flex itself) wants to
* call the scanner after we return the
* YY_NULL, it'll still work - another
* YY_NULL will get returned.
*/
yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
yy_act = YY_STATE_EOF(YY_START);
goto do_action;
}
else
{
if ( ! yy_did_buffer_switch_on_eof )
YY_NEW_FILE;
}
break;
}
case EOB_ACT_CONTINUE_SCAN:
yy_c_buf_p =
yytext_ptr + yy_amount_of_matched_text;
yy_current_state = yy_get_previous_state();
yy_cp = yy_c_buf_p;
yy_bp = yytext_ptr + YY_MORE_ADJ;
goto yy_match;
case EOB_ACT_LAST_MATCH:
yy_c_buf_p =
&yy_current_buffer->yy_ch_buf[yy_n_chars];
yy_current_state = yy_get_previous_state();
yy_cp = yy_c_buf_p;
yy_bp = yytext_ptr + YY_MORE_ADJ;
goto yy_find_action;
}
break;
}
default:
YY_FATAL_ERROR(
"fatal flex scanner internal error--no action found" );
} /* end of action switch */
} /* end of scanning one token */
} /* end of yylex */
/* yy_get_next_buffer - try to read in a new buffer
*
* Returns a code representing an action:
* EOB_ACT_LAST_MATCH -
* EOB_ACT_CONTINUE_SCAN - continue scanning from current position
* EOB_ACT_END_OF_FILE - end of file
*/
static int yy_get_next_buffer()
{
register char *dest = yy_current_buffer->yy_ch_buf;
register char *source = yytext_ptr;
register int number_to_move, i;
int ret_val;
if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
YY_FATAL_ERROR(
"fatal flex scanner internal error--end of buffer missed" );
if ( yy_current_buffer->yy_fill_buffer == 0 )
{ /* Don't try to fill the buffer, so this is an EOF. */
if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
{
/* We matched a single character, the EOB, so
* treat this as a final EOF.
*/
return EOB_ACT_END_OF_FILE;
}
else
{
/* We matched some text prior to the EOB, first
* process it.
*/
return EOB_ACT_LAST_MATCH;
}
}
/* Try to read more data. */
/* First move last chars to start of buffer. */
number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
for ( i = 0; i < number_to_move; ++i )
*(dest++) = *(source++);
if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
/* don't do the read, it's not guaranteed to return an EOF,
* just force an EOF
*/
yy_current_buffer->yy_n_chars = yy_n_chars = 0;
else
{
int num_to_read =
yy_current_buffer->yy_buf_size - number_to_move - 1;
while ( num_to_read <= 0 )
{ /* Not enough room in the buffer - grow it. */
#ifdef YY_USES_REJECT
YY_FATAL_ERROR(
"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
#else
/* just a shorter name for the current buffer */
YY_BUFFER_STATE b = yy_current_buffer;
int yy_c_buf_p_offset =
(int) (yy_c_buf_p - b->yy_ch_buf);
if ( b->yy_is_our_buffer )
{
int new_size = b->yy_buf_size * 2;
if ( new_size <= 0 )
b->yy_buf_size += b->yy_buf_size / 8;
else
b->yy_buf_size *= 2;
b->yy_ch_buf = (char *)
/* Include room in for 2 EOB chars. */
yy_flex_realloc( (void *) b->yy_ch_buf,
b->yy_buf_size + 2 );
}
else
/* Can't grow it, we don't own it. */
b->yy_ch_buf = 0;
if ( ! b->yy_ch_buf )
YY_FATAL_ERROR(
"fatal error - scanner input buffer overflow" );
yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
num_to_read = yy_current_buffer->yy_buf_size -
number_to_move - 1;
#endif
}
if ( num_to_read > YY_READ_BUF_SIZE )
num_to_read = YY_READ_BUF_SIZE;
/* Read in more data. */
YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
yy_n_chars, num_to_read );
yy_current_buffer->yy_n_chars = yy_n_chars;
}
if ( yy_n_chars == 0 )
{
if ( number_to_move == YY_MORE_ADJ )
{
ret_val = EOB_ACT_END_OF_FILE;
yyrestart( yyin );
}
else
{
ret_val = EOB_ACT_LAST_MATCH;
yy_current_buffer->yy_buffer_status =
YY_BUFFER_EOF_PENDING;
}
}
else
ret_val = EOB_ACT_CONTINUE_SCAN;
yy_n_chars += number_to_move;
yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
return ret_val;
}
/* yy_get_previous_state - get the state just before the EOB char was reached */
static yy_state_type yy_get_previous_state()
{
register yy_state_type yy_current_state;
register char *yy_cp;
yy_current_state = yy_start;
yy_current_state += YY_AT_BOL();
1999-01-17 21:42:12 +00:00
for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
{
register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
if ( yy_accept[yy_current_state] )
{
yy_last_accepting_state = yy_current_state;
yy_last_accepting_cpos = yy_cp;
}
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
2004-09-27 16:08:18 +00:00
if ( yy_current_state >= 374 )
1999-01-17 21:42:12 +00:00
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
}
return yy_current_state;
}
/* yy_try_NUL_trans - try to make a transition on the NUL character
*
* synopsis
* next_state = yy_try_NUL_trans( current_state );
*/
#ifdef YY_USE_PROTOS
static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
#else
static yy_state_type yy_try_NUL_trans( yy_current_state )
yy_state_type yy_current_state;
#endif
{
register int yy_is_jam;
register char *yy_cp = yy_c_buf_p;
register YY_CHAR yy_c = 1;
if ( yy_accept[yy_current_state] )
{
yy_last_accepting_state = yy_current_state;
yy_last_accepting_cpos = yy_cp;
}
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
2004-09-27 16:08:18 +00:00
if ( yy_current_state >= 374 )
1999-01-17 21:42:12 +00:00
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2004-09-27 16:08:18 +00:00
yy_is_jam = (yy_current_state == 373);
1999-01-17 21:42:12 +00:00
return yy_is_jam ? 0 : yy_current_state;
}
#ifndef YY_NO_UNPUT
#ifdef YY_USE_PROTOS
static void yyunput( int c, register char *yy_bp )
#else
static void yyunput( c, yy_bp )
int c;
register char *yy_bp;
#endif
{
register char *yy_cp = yy_c_buf_p;
/* undo effects of setting up yytext */
*yy_cp = yy_hold_char;
if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
{ /* need to shift things up to make room */
/* +2 for EOB chars. */
register int number_to_move = yy_n_chars + 2;
register char *dest = &yy_current_buffer->yy_ch_buf[
yy_current_buffer->yy_buf_size + 2];
register char *source =
&yy_current_buffer->yy_ch_buf[number_to_move];
while ( source > yy_current_buffer->yy_ch_buf )
*--dest = *--source;
yy_cp += (int) (dest - source);
yy_bp += (int) (dest - source);
yy_current_buffer->yy_n_chars =
yy_n_chars = yy_current_buffer->yy_buf_size;
if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
YY_FATAL_ERROR( "flex scanner push-back overflow" );
}
*--yy_cp = (char) c;
yytext_ptr = yy_bp;
yy_hold_char = *yy_cp;
yy_c_buf_p = yy_cp;
}
#endif /* ifndef YY_NO_UNPUT */
#ifdef __cplusplus
static int yyinput()
#else
static int input()
#endif
{
int c;
*yy_c_buf_p = yy_hold_char;
if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
{
/* yy_c_buf_p now points to the character we want to return.
* If this occurs *before* the EOB characters, then it's a
* valid NUL; if not, then we've hit the end of the buffer.
*/
if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
/* This was really a NUL. */
*yy_c_buf_p = '\0';
else
{ /* need more input */
int offset = yy_c_buf_p - yytext_ptr;
++yy_c_buf_p;
switch ( yy_get_next_buffer() )
{
case EOB_ACT_LAST_MATCH:
/* This happens because yy_g_n_b()
* sees that we've accumulated a
* token and flags that we need to
* try matching the token before
* proceeding. But for input(),
* there's no matching to consider.
* So convert the EOB_ACT_LAST_MATCH
* to EOB_ACT_END_OF_FILE.
*/
/* Reset buffer status. */
yyrestart( yyin );
/* fall through */
case EOB_ACT_END_OF_FILE:
{
if ( yywrap() )
return EOF;
if ( ! yy_did_buffer_switch_on_eof )
YY_NEW_FILE;
#ifdef __cplusplus
return yyinput();
#else
return input();
#endif
}
case EOB_ACT_CONTINUE_SCAN:
yy_c_buf_p = yytext_ptr + offset;
break;
}
}
}
c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
*yy_c_buf_p = '\0'; /* preserve yytext */
yy_hold_char = *++yy_c_buf_p;
yy_current_buffer->yy_at_bol = (c == '\n');
1999-01-17 21:42:12 +00:00
return c;
}
#ifdef YY_USE_PROTOS
void yyrestart( FILE *input_file )
#else
void yyrestart( input_file )
FILE *input_file;
#endif
{
if ( ! yy_current_buffer )
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
yy_init_buffer( yy_current_buffer, input_file );
yy_load_buffer_state();
}
#ifdef YY_USE_PROTOS
void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
#else
void yy_switch_to_buffer( new_buffer )
YY_BUFFER_STATE new_buffer;
#endif
{
if ( yy_current_buffer == new_buffer )
return;
if ( yy_current_buffer )
{
/* Flush out information for old buffer. */
*yy_c_buf_p = yy_hold_char;
yy_current_buffer->yy_buf_pos = yy_c_buf_p;
yy_current_buffer->yy_n_chars = yy_n_chars;
}
yy_current_buffer = new_buffer;
yy_load_buffer_state();
/* We don't actually know whether we did this switch during
* EOF (yywrap()) processing, but the only time this flag
* is looked at is after yywrap() is called, so it's safe
* to go ahead and always set it.
*/
yy_did_buffer_switch_on_eof = 1;
}
#ifdef YY_USE_PROTOS
void yy_load_buffer_state( void )
#else
void yy_load_buffer_state()
#endif
{
yy_n_chars = yy_current_buffer->yy_n_chars;
yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
yyin = yy_current_buffer->yy_input_file;
yy_hold_char = *yy_c_buf_p;
}
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
#else
YY_BUFFER_STATE yy_create_buffer( file, size )
FILE *file;
int size;
#endif
{
YY_BUFFER_STATE b;
b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
if ( ! b )
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
b->yy_buf_size = size;
/* yy_ch_buf has to be 2 characters longer than the size given because
* we need to put in 2 end-of-buffer characters.
*/
b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
if ( ! b->yy_ch_buf )
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
b->yy_is_our_buffer = 1;
yy_init_buffer( b, file );
return b;
}
#ifdef YY_USE_PROTOS
void yy_delete_buffer( YY_BUFFER_STATE b )
#else
void yy_delete_buffer( b )
YY_BUFFER_STATE b;
#endif
{
if ( ! b )
return;
if ( b == yy_current_buffer )
yy_current_buffer = (YY_BUFFER_STATE) 0;
if ( b->yy_is_our_buffer )
yy_flex_free( (void *) b->yy_ch_buf );
yy_flex_free( (void *) b );
}
#ifndef YY_ALWAYS_INTERACTIVE
#ifndef YY_NEVER_INTERACTIVE
2004-02-13 21:37:02 +00:00
#include <unistd.h>
1999-01-17 21:42:12 +00:00
#endif
#endif
#ifdef YY_USE_PROTOS
void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
#else
void yy_init_buffer( b, file )
YY_BUFFER_STATE b;
FILE *file;
#endif
{
int oerrno = errno;
1999-01-17 21:42:12 +00:00
yy_flush_buffer( b );
b->yy_input_file = file;
b->yy_fill_buffer = 1;
#if YY_ALWAYS_INTERACTIVE
b->yy_is_interactive = 1;
#else
#if YY_NEVER_INTERACTIVE
b->yy_is_interactive = 0;
#else
b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
#endif
#endif
errno = oerrno;
1999-01-17 21:42:12 +00:00
}
#ifdef YY_USE_PROTOS
void yy_flush_buffer( YY_BUFFER_STATE b )
#else
void yy_flush_buffer( b )
YY_BUFFER_STATE b;
#endif
{
if ( ! b )
return;
b->yy_n_chars = 0;
/* We always need two end-of-buffer characters. The first causes
* a transition to the end-of-buffer state. The second causes
* a jam in that state.
*/
b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
b->yy_buf_pos = &b->yy_ch_buf[0];
b->yy_at_bol = 1;
b->yy_buffer_status = YY_BUFFER_NEW;
if ( b == yy_current_buffer )
yy_load_buffer_state();
}
#ifndef YY_NO_SCAN_BUFFER
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
#else
YY_BUFFER_STATE yy_scan_buffer( base, size )
char *base;
yy_size_t size;
#endif
{
YY_BUFFER_STATE b;
if ( size < 2 ||
base[size-2] != YY_END_OF_BUFFER_CHAR ||
base[size-1] != YY_END_OF_BUFFER_CHAR )
/* They forgot to leave room for the EOB's. */
return 0;
b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
if ( ! b )
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
b->yy_buf_pos = b->yy_ch_buf = base;
b->yy_is_our_buffer = 0;
b->yy_input_file = 0;
b->yy_n_chars = b->yy_buf_size;
b->yy_is_interactive = 0;
b->yy_at_bol = 1;
b->yy_fill_buffer = 0;
b->yy_buffer_status = YY_BUFFER_NEW;
yy_switch_to_buffer( b );
return b;
}
#endif
#ifndef YY_NO_SCAN_STRING
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
#else
YY_BUFFER_STATE yy_scan_string( yy_str )
yyconst char *yy_str;
#endif
{
int len;
for ( len = 0; yy_str[len]; ++len )
;
return yy_scan_bytes( yy_str, len );
}
#endif
#ifndef YY_NO_SCAN_BYTES
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
#else
YY_BUFFER_STATE yy_scan_bytes( bytes, len )
yyconst char *bytes;
int len;
#endif
{
YY_BUFFER_STATE b;
char *buf;
yy_size_t n;
int i;
/* Get memory for full buffer, including space for trailing EOB's. */
n = len + 2;
buf = (char *) yy_flex_alloc( n );
if ( ! buf )
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
for ( i = 0; i < len; ++i )
buf[i] = bytes[i];
buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
b = yy_scan_buffer( buf, n );
if ( ! b )
YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
/* It's okay to grow etc. this buffer, and we should throw it
* away when we're done.
*/
b->yy_is_our_buffer = 1;
return b;
}
#endif
#ifndef YY_NO_PUSH_STATE
#ifdef YY_USE_PROTOS
static void yy_push_state( int new_state )
#else
static void yy_push_state( new_state )
int new_state;
#endif
{
if ( yy_start_stack_ptr >= yy_start_stack_depth )
{
yy_size_t new_size;
yy_start_stack_depth += YY_START_STACK_INCR;
new_size = yy_start_stack_depth * sizeof( int );
if ( ! yy_start_stack )
yy_start_stack = (int *) yy_flex_alloc( new_size );
else
yy_start_stack = (int *) yy_flex_realloc(
(void *) yy_start_stack, new_size );
if ( ! yy_start_stack )
YY_FATAL_ERROR(
"out of memory expanding start-condition stack" );
}
yy_start_stack[yy_start_stack_ptr++] = YY_START;
BEGIN(new_state);
}
#endif
#ifndef YY_NO_POP_STATE
static void yy_pop_state()
{
if ( --yy_start_stack_ptr < 0 )
YY_FATAL_ERROR( "start-condition stack underflow" );
BEGIN(yy_start_stack[yy_start_stack_ptr]);
}
#endif
#ifndef YY_NO_TOP_STATE
static int yy_top_state()
{
return yy_start_stack[yy_start_stack_ptr - 1];
}
#endif
#ifndef YY_EXIT_FAILURE
#define YY_EXIT_FAILURE 2
#endif
#ifdef YY_USE_PROTOS
static void yy_fatal_error( yyconst char msg[] )
#else
static void yy_fatal_error( msg )
char msg[];
#endif
{
(void) fprintf( stderr, "%s\n", msg );
exit( YY_EXIT_FAILURE );
}
/* Redefine yyless() so it works in section 3 code. */
#undef yyless
#define yyless(n) \
do \
{ \
/* Undo effects of setting up yytext. */ \
yytext[yyleng] = yy_hold_char; \
yy_c_buf_p = yytext + n; \
yy_hold_char = *yy_c_buf_p; \
*yy_c_buf_p = '\0'; \
yyleng = n; \
} \
while ( 0 )
/* Internal utility routines. */
#ifndef yytext_ptr
#ifdef YY_USE_PROTOS
static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
#else
static void yy_flex_strncpy( s1, s2, n )
char *s1;
yyconst char *s2;
int n;
#endif
{
register int i;
for ( i = 0; i < n; ++i )
s1[i] = s2[i];
}
#endif
#ifdef YY_NEED_STRLEN
#ifdef YY_USE_PROTOS
static int yy_flex_strlen( yyconst char *s )
#else
static int yy_flex_strlen( s )
yyconst char *s;
#endif
{
register int n;
for ( n = 0; s[n]; ++n )
;
return n;
}
#endif
#ifdef YY_USE_PROTOS
static void *yy_flex_alloc( yy_size_t size )
#else
static void *yy_flex_alloc( size )
yy_size_t size;
#endif
{
return (void *) malloc( size );
}
#ifdef YY_USE_PROTOS
static void *yy_flex_realloc( void *ptr, yy_size_t size )
#else
static void *yy_flex_realloc( ptr, size )
void *ptr;
yy_size_t size;
#endif
{
/* The cast to (char *) in the following accommodates both
* implementations that use char* generic pointers, and those
* that use void* generic pointers. It works with the latter
* because both ANSI C and C++ allow castless assignment from
* any pointer type to void*, and deal with argument conversions
* as though doing an assignment.
*/
return (void *) realloc( (char *) ptr, size );
}
#ifdef YY_USE_PROTOS
static void yy_flex_free( void *ptr )
#else
static void yy_flex_free( ptr )
void *ptr;
#endif
{
free( ptr );
}
#if YY_MAIN
int main()
{
yylex();
return 0;
}
#endif
2004-09-29 19:22:38 +00:00
#line 423 "parse.lex"
1999-01-17 21:42:12 +00:00
2004-09-28 00:47:47 +00:00
static int
fill(s, len)
1999-01-17 21:42:12 +00:00
char *s;
int len;
{
int i, j;
1999-01-17 21:42:12 +00:00
yylval.string = (char *) malloc(len + 1);
2003-03-13 20:27:38 +00:00
if (yylval.string == NULL) {
1999-01-17 21:42:12 +00:00
yyerror("unable to allocate memory");
2004-09-28 00:47:47 +00:00
return(FALSE);
2003-03-13 20:27:38 +00:00
}
1999-01-17 21:42:12 +00:00
/* Copy the string and collapse any escaped characters. */
for (i = 0, j = 0; i < len; i++, j++) {
if (s[i] == '\\' && i != len - 1)
yylval.string[j] = s[++i];
else
yylval.string[j] = s[i];
}
yylval.string[j] = '\0';
2004-09-28 00:47:47 +00:00
return(TRUE);
1999-01-17 21:42:12 +00:00
}
2004-09-28 00:47:47 +00:00
static int
fill_cmnd(s, len)
1999-01-17 21:42:12 +00:00
char *s;
int len;
{
arg_len = arg_size = 0;
2003-03-15 01:11:51 +00:00
yylval.command.cmnd = (char *) malloc(++len);
2003-03-13 20:27:38 +00:00
if (yylval.command.cmnd == NULL) {
1999-01-17 21:42:12 +00:00
yyerror("unable to allocate memory");
2004-09-28 00:47:47 +00:00
return(FALSE);
2003-03-13 20:27:38 +00:00
}
1999-01-17 21:42:12 +00:00
/* copy the string and NULL-terminate it (escapes handled by fnmatch) */
2003-03-15 01:11:51 +00:00
(void) strlcpy(yylval.command.cmnd, s, len);
1999-01-17 21:42:12 +00:00
yylval.command.args = NULL;
2004-09-28 00:47:47 +00:00
return(TRUE);
1999-01-17 21:42:12 +00:00
}
2004-09-28 00:47:47 +00:00
static int
fill_args(s, len, addspace)
1999-01-17 21:42:12 +00:00
char *s;
int len;
int addspace;
{
int new_len;
char *p;
if (yylval.command.args == NULL) {
addspace = 0;
new_len = len;
2003-03-13 20:17:41 +00:00
} else
new_len = arg_len + len + addspace;
1999-01-17 21:42:12 +00:00
2003-03-13 20:17:41 +00:00
if (new_len >= arg_size) {
/* Allocate more space than we need for subsequent args */
1999-01-17 21:42:12 +00:00
while (new_len >= (arg_size += COMMANDARGINC))
;
2003-03-13 20:27:38 +00:00
p = yylval.command.args ?
(char *) realloc(yylval.command.args, arg_size) :
(char *) malloc(arg_size);
if (p == NULL) {
2003-03-13 20:17:41 +00:00
if (yylval.command.args != NULL)
free(yylval.command.args);
2003-03-13 20:17:41 +00:00
yyerror("unable to allocate memory");
2004-09-28 00:47:47 +00:00
return(FALSE);
2003-03-13 20:17:41 +00:00
} else
yylval.command.args = p;
1999-01-17 21:42:12 +00:00
}
/* Efficiently append the arg (with a leading space if needed). */
p = yylval.command.args + arg_len;
if (addspace)
*p++ = ' ';
2004-09-28 00:47:47 +00:00
if (strlcpy(p, s, arg_size - (p - yylval.command.args)) != len) {
2003-03-13 20:17:41 +00:00
yyerror("fill_args: buffer overflow"); /* paranoia */
2004-09-28 00:47:47 +00:00
return(FALSE);
}
1999-01-17 21:42:12 +00:00
arg_len = new_len;
2004-09-28 00:47:47 +00:00
return(TRUE);
1999-01-17 21:42:12 +00:00
}
2004-09-28 18:37:08 +00:00
struct sudoers_state {
YY_BUFFER_STATE bs;
char *path;
int lineno;
};
#define MAX_SUDOERS_DEPTH 128
static int
2004-09-27 16:08:18 +00:00
buffer_frob(path)
2004-09-28 18:37:08 +00:00
char *path;
2004-09-27 16:08:18 +00:00
{
2004-09-28 00:47:47 +00:00
static size_t stacksize, depth;
2004-09-28 18:37:08 +00:00
static struct sudoers_state *state;
2004-09-29 19:22:38 +00:00
static int keepopen;
2004-09-27 16:08:18 +00:00
FILE *fp;
if (path != NULL) {
2004-09-28 18:37:08 +00:00
/* push current state */
if ((path = strdup(path)) == NULL) {
yyerror("unable to allocate memory");
return(FALSE);
}
2004-09-28 00:47:47 +00:00
if (depth >= stacksize) {
2004-09-28 18:37:08 +00:00
if (depth > MAX_SUDOERS_DEPTH) {
2004-09-28 00:47:47 +00:00
yyerror("too many levels of includes");
return(FALSE);
}
stacksize += 16;
2004-09-28 18:37:08 +00:00
if ((state = realloc(state, sizeof(state) * stacksize)) == NULL) {
2004-09-27 16:08:18 +00:00
yyerror("unable to allocate memory");
2004-09-28 00:47:47 +00:00
return(FALSE);
}
2004-09-27 16:08:18 +00:00
}
2004-09-29 19:22:38 +00:00
if ((fp = open_sudoers(path, &keepopen)) == NULL) {
2004-09-27 16:08:18 +00:00
yyerror(path);
2004-09-28 00:47:47 +00:00
return(FALSE);
}
2004-09-28 18:37:08 +00:00
state[depth].bs = YY_CURRENT_BUFFER;
state[depth].path = sudoers;
state[depth].lineno = sudolineno;
depth++;
sudolineno = 1;
sudoers = path;
2004-09-27 16:08:18 +00:00
yy_switch_to_buffer(yy_create_buffer(fp, YY_BUF_SIZE));
} else {
/* pop */
2004-09-28 00:47:47 +00:00
if (depth == 0)
2004-09-27 16:08:18 +00:00
return(FALSE);
2004-09-28 18:37:08 +00:00
depth--;
2004-09-29 19:22:38 +00:00
if (!keepopen)
fclose(YY_CURRENT_BUFFER->yy_input_file);
2004-09-27 16:08:18 +00:00
yy_delete_buffer(YY_CURRENT_BUFFER);
2004-09-28 18:37:08 +00:00
yy_switch_to_buffer(state[depth].bs);
free(sudoers);
sudoers = state[depth].path;
sudolineno = state[depth].lineno;
2004-09-29 19:22:38 +00:00
keepopen = FALSE;
2004-09-27 16:08:18 +00:00
}
return(TRUE);
}
int
yywrap()
1999-01-17 21:42:12 +00:00
{
/* Free space used by the aliases unless called by testsudoers. */
1999-01-17 21:42:12 +00:00
if (clearaliases)
reset_aliases();
return(TRUE);
}