3609 lines
116 KiB
C
3609 lines
116 KiB
C
#include <config.h>
|
|
/* $OpenBSD: flex.skl,v 1.11 2010/08/04 18:24:50 millert Exp $ */
|
|
|
|
/* A lexical scanner generated by flex */
|
|
|
|
/* Scanner skeleton version:
|
|
* $Header: /home/cvs/openbsd/src/usr.bin/lex/flex.skl,v 1.11 2010/08/04 18:24:50 millert Exp $
|
|
*/
|
|
|
|
#define FLEX_SCANNER
|
|
#define YY_FLEX_MAJOR_VERSION 2
|
|
#define YY_FLEX_MINOR_VERSION 5
|
|
|
|
#include <stdio.h>
|
|
#include <errno.h>
|
|
|
|
|
|
/* 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)
|
|
|
|
|
|
#define yywrap() 1
|
|
#define YY_SKIP_YYWRAP
|
|
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;
|
|
|
|
#define YY_NUM_RULES 56
|
|
#define YY_END_OF_BUFFER 57
|
|
static yyconst short int yy_accept[599] =
|
|
{ 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 57, 44, 52, 51, 50, 43, 55, 32,
|
|
45, 46, 32, 47, 44, 44, 44, 44, 49, 48,
|
|
55, 39, 39, 39, 39, 39, 39, 39, 55, 44,
|
|
44, 52, 55, 39, 39, 39, 39, 39, 2, 55,
|
|
1, 44, 44, 17, 16, 17, 16, 16, 55, 55,
|
|
55, 3, 9, 8, 9, 4, 9, 5, 55, 13,
|
|
13, 13, 11, 12, 44, 0, 52, 50, 0, 54,
|
|
0, 44, 34, 0, 32, 0, 33, 0, 42, 42,
|
|
0, 44, 44, 0, 44, 44, 44, 44, 0, 37,
|
|
|
|
39, 39, 39, 39, 39, 39, 39, 44, 53, 44,
|
|
52, 0, 0, 0, 0, 0, 0, 44, 44, 44,
|
|
44, 44, 2, 1, 0, 1, 40, 40, 0, 44,
|
|
17, 17, 15, 14, 15, 0, 0, 3, 9, 0,
|
|
6, 7, 9, 9, 13, 0, 13, 13, 0, 10,
|
|
0, 0, 0, 34, 34, 0, 0, 44, 44, 44,
|
|
44, 44, 0, 0, 37, 37, 39, 39, 39, 39,
|
|
39, 39, 39, 39, 39, 44, 0, 0, 0, 0,
|
|
0, 0, 44, 44, 44, 44, 44, 0, 44, 10,
|
|
0, 44, 44, 44, 44, 44, 44, 0, 38, 38,
|
|
|
|
38, 0, 0, 37, 37, 37, 37, 37, 37, 37,
|
|
39, 39, 39, 39, 39, 39, 39, 39, 39, 44,
|
|
0, 0, 0, 0, 0, 0, 44, 44, 44, 44,
|
|
44, 44, 44, 0, 0, 38, 38, 38, 0, 37,
|
|
37, 0, 37, 37, 37, 37, 37, 37, 37, 37,
|
|
37, 37, 37, 0, 25, 39, 39, 39, 39, 39,
|
|
39, 39, 39, 44, 0, 0, 0, 0, 44, 44,
|
|
44, 44, 44, 44, 44, 44, 0, 38, 0, 37,
|
|
37, 37, 0, 0, 0, 37, 37, 37, 37, 37,
|
|
37, 37, 37, 37, 37, 37, 37, 37, 39, 39,
|
|
|
|
39, 39, 39, 39, 39, 39, 44, 0, 0, 0,
|
|
44, 44, 44, 35, 35, 35, 0, 0, 37, 37,
|
|
37, 37, 37, 37, 37, 0, 0, 0, 0, 0,
|
|
37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
|
|
37, 37, 37, 37, 39, 39, 0, 24, 39, 39,
|
|
39, 39, 0, 23, 0, 26, 44, 0, 0, 0,
|
|
44, 44, 44, 44, 35, 35, 35, 35, 0, 37,
|
|
0, 37, 37, 37, 37, 37, 37, 37, 37, 37,
|
|
37, 37, 0, 0, 0, 37, 37, 37, 37, 37,
|
|
37, 37, 37, 37, 37, 37, 37, 37, 39, 39,
|
|
|
|
39, 39, 39, 39, 41, 0, 0, 0, 44, 20,
|
|
40, 44, 36, 36, 36, 37, 0, 0, 0, 37,
|
|
37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
|
|
37, 37, 0, 0, 0, 0, 0, 37, 37, 37,
|
|
37, 37, 37, 37, 37, 39, 39, 39, 39, 0,
|
|
22, 0, 27, 0, 20, 0, 0, 44, 0, 44,
|
|
44, 44, 36, 36, 36, 36, 36, 0, 0, 0,
|
|
0, 0, 37, 37, 37, 37, 37, 37, 37, 37,
|
|
37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
|
|
37, 37, 0, 30, 39, 39, 39, 0, 0, 0,
|
|
|
|
21, 20, 0, 0, 0, 0, 0, 20, 0, 44,
|
|
44, 44, 36, 36, 0, 0, 0, 37, 37, 37,
|
|
37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
|
|
37, 37, 37, 37, 37, 0, 28, 39, 39, 21,
|
|
0, 18, 0, 0, 20, 44, 44, 44, 44, 44,
|
|
0, 0, 0, 0, 0, 37, 37, 37, 37, 37,
|
|
37, 37, 37, 0, 31, 39, 0, 44, 44, 44,
|
|
37, 37, 37, 37, 37, 37, 0, 29, 0, 44,
|
|
44, 44, 44, 44, 37, 37, 37, 37, 37, 0,
|
|
19, 35, 35, 35, 35, 35, 35, 0
|
|
|
|
} ;
|
|
|
|
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,
|
|
9, 10, 11, 12, 13, 14, 15, 16, 17, 18,
|
|
19, 20, 21, 22, 22, 22, 23, 24, 1, 1,
|
|
25, 26, 10, 27, 28, 29, 30, 31, 32, 29,
|
|
33, 34, 35, 36, 36, 37, 36, 38, 39, 40,
|
|
36, 41, 42, 43, 44, 45, 46, 47, 36, 36,
|
|
10, 48, 10, 1, 49, 1, 50, 51, 52, 53,
|
|
|
|
54, 55, 56, 56, 57, 56, 56, 58, 59, 60,
|
|
61, 56, 56, 62, 63, 64, 65, 56, 56, 56,
|
|
56, 56, 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, 1, 1, 1,
|
|
1, 1, 1, 1, 1
|
|
} ;
|
|
|
|
static yyconst int yy_meta[66] =
|
|
{ 0,
|
|
1, 2, 3, 4, 5, 6, 1, 7, 7, 1,
|
|
1, 8, 1, 9, 10, 11, 11, 11, 11, 11,
|
|
11, 11, 11, 12, 13, 7, 1, 11, 11, 11,
|
|
11, 11, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 14, 15, 16,
|
|
16, 16, 16, 16, 16, 15, 15, 15, 15, 15,
|
|
15, 15, 15, 15, 15
|
|
} ;
|
|
|
|
static yyconst short int yy_base[663] =
|
|
{ 0,
|
|
0, 64, 65, 66, 85, 100, 147, 211, 275, 322,
|
|
71, 111, 2613, 2557, 2602, 3671, 2599, 3671, 368, 87,
|
|
3671, 3671, 2554, 3671, 113, 378, 124, 146, 2577, 3671,
|
|
3671, 433, 2553, 483, 2560, 2551, 2555, 2550, 537, 154,
|
|
21, 150, 561, 2522, 2526, 2482, 2477, 2478, 80, 203,
|
|
2529, 288, 31, 0, 3671, 2516, 3671, 0, 305, 616,
|
|
81, 0, 2469, 3671, 75, 3671, 82, 3671, 124, 2468,
|
|
83, 86, 3671, 152, 2467, 638, 2512, 2509, 2509, 3671,
|
|
211, 219, 289, 230, 130, 336, 2447, 663, 294, 2437,
|
|
688, 356, 699, 2458, 2467, 395, 500, 169, 2456, 145,
|
|
|
|
739, 0, 2439, 2428, 314, 2408, 2396, 135, 3671, 236,
|
|
524, 2379, 2383, 2375, 2370, 2352, 96, 72, 230, 242,
|
|
197, 256, 180, 2409, 569, 2408, 567, 2356, 793, 253,
|
|
0, 2399, 252, 3671, 3671, 578, 280, 0, 2354, 433,
|
|
3671, 3671, 2353, 316, 2352, 2394, 310, 312, 319, 2393,
|
|
2388, 2377, 586, 604, 357, 699, 545, 806, 841, 876,
|
|
911, 2339, 2328, 951, 328, 992, 1032, 2317, 2291, 2292,
|
|
2299, 2294, 2289, 2275, 2268, 307, 2239, 2243, 2225, 2217,
|
|
2220, 328, 371, 2220, 301, 208, 131, 649, 321, 2240,
|
|
2222, 661, 318, 1074, 1109, 511, 335, 2183, 2158, 716,
|
|
|
|
404, 2148, 2145, 412, 725, 1144, 756, 764, 1185, 790,
|
|
2138, 401, 402, 2118, 2116, 2106, 2103, 2069, 2075, 496,
|
|
2008, 2004, 1989, 2002, 1974, 553, 460, 593, 504, 512,
|
|
1227, 1262, 1297, 2011, 1990, 814, 1990, 1967, 1964, 1963,
|
|
630, 823, 642, 849, 671, 1332, 0, 859, 1343, 884,
|
|
831, 1384, 894, 628, 3671, 1948, 1941, 1924, 1900, 1871,
|
|
1859, 1843, 1823, 500, 1803, 1786, 1757, 611, 600, 309,
|
|
657, 928, 752, 1426, 1461, 938, 1795, 1794, 1793, 1791,
|
|
1494, 772, 971, 1011, 1051, 867, 1042, 1065, 1082, 1092,
|
|
1536, 0, 1094, 1547, 1117, 902, 1588, 1127, 1759, 1755,
|
|
|
|
629, 577, 1751, 1738, 762, 885, 878, 1719, 1686, 607,
|
|
601, 889, 969, 1629, 1663, 1697, 1719, 1718, 1717, 1161,
|
|
1732, 1169, 979, 1772, 1204, 1235, 1725, 1245, 1272, 1282,
|
|
1127, 1195, 1218, 1307, 1307, 1318, 1814, 0, 1320, 1825,
|
|
1360, 1019, 1866, 1403, 1666, 1669, 936, 3671, 1670, 1662,
|
|
1643, 1627, 1017, 3671, 1057, 3671, 1105, 1613, 1606, 456,
|
|
1212, 643, 1106, 1437, 773, 1907, 1941, 1370, 1645, 1630,
|
|
1445, 1263, 1470, 1283, 1976, 0, 676, 1987, 1478, 1411,
|
|
2027, 1513, 1566, 1607, 1639, 1426, 1504, 1649, 1651, 1671,
|
|
1681, 2069, 0, 1683, 2080, 1705, 1486, 1715, 1594, 1589,
|
|
|
|
1591, 1547, 1169, 1210, 1525, 1463, 1445, 883, 715, 1866,
|
|
1424, 2122, 2157, 2192, 2227, 1446, 1751, 1791, 1844, 1445,
|
|
1567, 1608, 1883, 1716, 2262, 0, 792, 2273, 1915, 1521,
|
|
2313, 1925, 1949, 1438, 1959, 2006, 2046, 1652, 1742, 2090,
|
|
963, 1061, 2355, 0, 1055, 1368, 1325, 1299, 1272, 1409,
|
|
3671, 1449, 3671, 1256, 1568, 2104, 336, 1321, 1773, 1867,
|
|
2104, 970, 2365, 2400, 2435, 2470, 1256, 2052, 1197, 2137,
|
|
2167, 2147, 1128, 1100, 1792, 1926, 2175, 1960, 2505, 0,
|
|
1097, 2516, 2200, 1891, 2556, 2210, 2236, 2245, 2291, 1835,
|
|
1106, 1141, 1519, 3671, 1572, 1074, 1014, 825, 881, 288,
|
|
|
|
833, 2028, 2267, 2314, 2344, 2338, 2381, 2392, 2400, 2598,
|
|
2633, 2668, 2411, 1935, 2446, 2456, 2480, 832, 829, 1988,
|
|
2007, 2488, 2104, 2703, 0, 1206, 2714, 2533, 2183, 2575,
|
|
801, 2542, 2607, 2426, 788, 1591, 3671, 1611, 683, 3671,
|
|
699, 3671, 1228, 2615, 2641, 2649, 1257, 2756, 2791, 2659,
|
|
2682, 656, 2692, 2733, 2766, 589, 549, 2123, 510, 428,
|
|
2774, 0, 1286, 1612, 3671, 1756, 2114, 2826, 2861, 2896,
|
|
2799, 2807, 2815, 399, 0, 280, 1757, 3671, 215, 2837,
|
|
1620, 2931, 2966, 2847, 3671, 2870, 2880, 2218, 3671, 155,
|
|
3671, 2907, 2915, 2948, 53, 2981, 2741, 3671, 3029, 3045,
|
|
|
|
3061, 3077, 3093, 3109, 3125, 3141, 3157, 3163, 3179, 3195,
|
|
1394, 3211, 3227, 3243, 3259, 3275, 3291, 3307, 3313, 3320,
|
|
3336, 3352, 3358, 3365, 3371, 3377, 3383, 3390, 3396, 3402,
|
|
3408, 3415, 3423, 3429, 3435, 3441, 3448, 3456, 3462, 3468,
|
|
3475, 3483, 3489, 3497, 3504, 3512, 3518, 3526, 3533, 3541,
|
|
3557, 3573, 3579, 3587, 3594, 3610, 3616, 3624, 3630, 3638,
|
|
1460, 3654
|
|
} ;
|
|
|
|
static yyconst short int yy_def[663] =
|
|
{ 0,
|
|
598, 1, 1, 1, 599, 599, 600, 600, 601, 601,
|
|
602, 602, 598, 603, 598, 598, 598, 598, 604, 605,
|
|
598, 598, 606, 598, 607, 603, 26, 26, 608, 598,
|
|
598, 598, 32, 32, 34, 34, 34, 34, 603, 26,
|
|
603, 598, 604, 32, 32, 34, 34, 34, 598, 598,
|
|
598, 609, 603, 610, 598, 610, 598, 610, 598, 604,
|
|
598, 611, 612, 598, 612, 598, 612, 598, 613, 614,
|
|
614, 614, 598, 598, 603, 603, 598, 598, 615, 598,
|
|
616, 598, 605, 598, 617, 605, 606, 606, 607, 618,
|
|
603, 603, 26, 608, 93, 93, 93, 93, 619, 620,
|
|
|
|
32, 34, 34, 34, 34, 34, 34, 603, 598, 603,
|
|
598, 598, 598, 598, 598, 598, 615, 603, 93, 603,
|
|
603, 603, 598, 598, 598, 598, 609, 621, 603, 603,
|
|
610, 610, 598, 598, 598, 616, 598, 611, 612, 612,
|
|
598, 598, 612, 612, 614, 598, 614, 614, 598, 598,
|
|
615, 622, 598, 598, 617, 617, 598, 603, 603, 603,
|
|
93, 161, 623, 598, 624, 598, 32, 34, 34, 34,
|
|
34, 34, 34, 34, 34, 603, 598, 598, 598, 598,
|
|
598, 615, 603, 161, 603, 603, 603, 598, 603, 598,
|
|
622, 603, 603, 603, 603, 603, 603, 625, 626, 626,
|
|
|
|
200, 627, 626, 628, 166, 598, 206, 206, 598, 206,
|
|
34, 34, 34, 34, 34, 34, 34, 34, 34, 603,
|
|
598, 598, 598, 598, 598, 615, 603, 603, 603, 603,
|
|
603, 603, 603, 598, 629, 629, 236, 629, 630, 631,
|
|
632, 598, 633, 209, 633, 633, 246, 633, 598, 249,
|
|
249, 598, 249, 598, 598, 34, 34, 34, 34, 34,
|
|
34, 34, 34, 603, 598, 598, 598, 615, 603, 603,
|
|
603, 603, 603, 603, 603, 603, 634, 634, 635, 636,
|
|
598, 598, 598, 598, 598, 637, 637, 638, 252, 638,
|
|
638, 291, 638, 598, 294, 294, 598, 294, 34, 34,
|
|
|
|
34, 34, 34, 34, 34, 34, 603, 598, 598, 615,
|
|
603, 603, 603, 603, 603, 603, 598, 639, 640, 281,
|
|
598, 321, 321, 598, 321, 598, 598, 598, 598, 598,
|
|
598, 641, 641, 642, 297, 642, 642, 337, 642, 598,
|
|
340, 340, 598, 340, 34, 34, 598, 598, 34, 34,
|
|
34, 34, 598, 598, 598, 598, 603, 598, 598, 615,
|
|
603, 603, 603, 603, 603, 603, 603, 603, 598, 643,
|
|
598, 644, 324, 644, 644, 375, 375, 598, 378, 378,
|
|
598, 378, 598, 598, 598, 598, 645, 645, 646, 343,
|
|
646, 646, 392, 646, 598, 395, 395, 395, 34, 34,
|
|
|
|
34, 34, 34, 34, 603, 598, 598, 615, 603, 603,
|
|
603, 603, 603, 603, 603, 598, 598, 598, 598, 647,
|
|
647, 648, 381, 648, 648, 425, 425, 598, 428, 428,
|
|
598, 428, 598, 598, 598, 598, 598, 598, 649, 649,
|
|
650, 650, 650, 443, 443, 34, 34, 34, 34, 598,
|
|
598, 598, 598, 598, 598, 615, 615, 603, 651, 652,
|
|
603, 603, 603, 603, 603, 603, 603, 598, 598, 598,
|
|
598, 598, 598, 653, 653, 654, 431, 654, 654, 479,
|
|
479, 598, 482, 482, 598, 482, 598, 598, 598, 598,
|
|
655, 655, 598, 598, 34, 34, 34, 598, 656, 615,
|
|
|
|
603, 651, 651, 651, 651, 598, 651, 652, 652, 603,
|
|
603, 603, 603, 603, 598, 598, 598, 598, 657, 657,
|
|
658, 485, 658, 658, 524, 524, 598, 527, 527, 527,
|
|
598, 598, 598, 598, 598, 598, 598, 34, 34, 598,
|
|
656, 598, 615, 598, 598, 603, 603, 603, 603, 603,
|
|
598, 598, 598, 598, 598, 598, 659, 659, 660, 660,
|
|
660, 561, 561, 598, 598, 34, 615, 603, 603, 603,
|
|
598, 598, 598, 598, 661, 661, 598, 598, 662, 603,
|
|
603, 603, 603, 603, 598, 598, 598, 598, 598, 662,
|
|
598, 603, 603, 603, 603, 603, 603, 0, 598, 598,
|
|
|
|
598, 598, 598, 598, 598, 598, 598, 598, 598, 598,
|
|
598, 598, 598, 598, 598, 598, 598, 598, 598, 598,
|
|
598, 598, 598, 598, 598, 598, 598, 598, 598, 598,
|
|
598, 598, 598, 598, 598, 598, 598, 598, 598, 598,
|
|
598, 598, 598, 598, 598, 598, 598, 598, 598, 598,
|
|
598, 598, 598, 598, 598, 598, 598, 598, 598, 598,
|
|
598, 598
|
|
} ;
|
|
|
|
static yyconst short int yy_nxt[3737] =
|
|
{ 0,
|
|
14, 15, 16, 17, 18, 19, 20, 21, 22, 14,
|
|
23, 24, 14, 14, 25, 26, 27, 28, 26, 26,
|
|
26, 26, 26, 29, 30, 31, 14, 32, 32, 32,
|
|
32, 33, 34, 34, 34, 34, 35, 36, 34, 37,
|
|
34, 38, 34, 34, 34, 34, 34, 39, 14, 40,
|
|
40, 40, 40, 40, 40, 14, 14, 14, 14, 14,
|
|
14, 14, 41, 14, 14, 42, 49, 49, 76, 43,
|
|
50, 50, 71, 16, 72, 73, 51, 51, 76, 52,
|
|
52, 123, 137, 109, 147, 110, 15, 55, 56, 148,
|
|
57, 124, 84, 44, 45, 130, 57, 46, 80, 141,
|
|
|
|
76, 15, 55, 56, 47, 57, 142, 48, 57, 58,
|
|
85, 57, 71, 16, 72, 73, 90, 90, 74, 76,
|
|
90, 90, 140, 57, 58, 144, 109, 53, 53, 140,
|
|
146, 183, 59, 146, 86, 84, 137, 109, 90, 96,
|
|
96, 96, 96, 96, 96, 96, 96, 59, 15, 16,
|
|
17, 111, 60, 149, 150, 182, 145, 591, 74, 164,
|
|
91, 97, 97, 97, 97, 97, 98, 75, 166, 95,
|
|
95, 95, 95, 95, 95, 95, 95, 156, 76, 112,
|
|
113, 123, 76, 114, 162, 162, 162, 162, 162, 162,
|
|
115, 124, 227, 116, 61, 62, 62, 62, 62, 62,
|
|
|
|
62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
|
|
62, 62, 15, 16, 17, 125, 60, 591, 82, 82,
|
|
82, 82, 82, 82, 82, 82, 82, 82, 82, 82,
|
|
82, 82, 82, 82, 82, 82, 82, 82, 82, 82,
|
|
82, 82, 153, 75, 76, 154, 154, 154, 154, 154,
|
|
154, 154, 154, 137, 109, 76, 186, 229, 61, 62,
|
|
62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
|
|
62, 62, 62, 62, 62, 62, 15, 16, 17, 64,
|
|
60, 137, 109, 76, 184, 65, 66, 67, 176, 76,
|
|
80, 128, 128, 371, 598, 128, 128, 90, 90, 68,
|
|
|
|
76, 90, 90, 76, 185, 189, 133, 109, 134, 187,
|
|
135, 147, 598, 128, 134, 148, 135, 137, 109, 90,
|
|
149, 150, 69, 15, 16, 17, 64, 60, 135, 135,
|
|
80, 192, 65, 66, 67, 129, 86, 83, 80, 83,
|
|
83, 91, 164, 83, 83, 170, 68, 83, 76, 543,
|
|
171, 205, 135, 172, 76, 173, 76, 146, 94, 146,
|
|
83, 83, 598, 140, 227, 76, 312, 220, 76, 69,
|
|
80, 158, 159, 160, 158, 158, 158, 158, 158, 226,
|
|
81, 230, 76, 82, 82, 82, 82, 82, 82, 82,
|
|
82, 92, 500, 93, 93, 93, 93, 93, 93, 93,
|
|
|
|
93, 94, 254, 76, 156, 95, 95, 95, 95, 95,
|
|
162, 162, 162, 162, 162, 162, 162, 162, 76, 238,
|
|
238, 238, 522, 227, 255, 76, 164, 95, 95, 95,
|
|
95, 95, 95, 75, 139, 205, 256, 139, 139, 75,
|
|
257, 598, 75, 75, 139, 75, 75, 75, 101, 101,
|
|
101, 101, 101, 101, 101, 101, 94, 139, 80, 75,
|
|
101, 101, 101, 101, 101, 102, 102, 102, 102, 102,
|
|
102, 102, 102, 102, 102, 102, 102, 102, 102, 102,
|
|
76, 102, 95, 95, 95, 95, 95, 95, 75, 75,
|
|
75, 75, 75, 75, 75, 75, 75, 75, 102, 102,
|
|
|
|
102, 102, 102, 102, 102, 102, 598, 76, 269, 408,
|
|
102, 102, 102, 102, 102, 162, 162, 162, 162, 162,
|
|
162, 162, 162, 371, 192, 111, 193, 193, 193, 193,
|
|
193, 193, 75, 75, 75, 75, 75, 75, 108, 109,
|
|
75, 75, 75, 76, 75, 75, 90, 76, 75, 264,
|
|
90, 76, 307, 112, 113, 80, 90, 114, 76, 76,
|
|
75, 75, 75, 80, 115, 271, 227, 116, 90, 90,
|
|
128, 128, 522, 81, 128, 128, 82, 82, 82, 82,
|
|
82, 82, 82, 82, 82, 82, 82, 82, 82, 82,
|
|
82, 82, 128, 598, 598, 598, 598, 598, 598, 598,
|
|
|
|
598, 154, 154, 154, 154, 154, 154, 154, 154, 80,
|
|
268, 349, 477, 80, 129, 350, 94, 117, 80, 154,
|
|
154, 154, 154, 154, 154, 154, 154, 311, 136, 254,
|
|
347, 598, 598, 598, 598, 598, 598, 598, 598, 75,
|
|
76, 75, 75, 75, 164, 75, 75, 76, 76, 75,
|
|
128, 255, 348, 205, 128, 242, 164, 270, 361, 360,
|
|
128, 75, 75, 75, 87, 244, 87, 87, 87, 551,
|
|
87, 87, 128, 128, 87, 310, 231, 232, 233, 231,
|
|
231, 231, 231, 231, 598, 164, 87, 87, 87, 89,
|
|
76, 75, 75, 89, 244, 75, 75, 420, 420, 89,
|
|
|
|
155, 542, 155, 155, 76, 410, 155, 155, 76, 313,
|
|
155, 89, 89, 75, 161, 161, 161, 161, 161, 161,
|
|
161, 161, 155, 155, 155, 566, 161, 161, 161, 161,
|
|
161, 236, 236, 237, 238, 238, 238, 238, 238, 202,
|
|
210, 210, 210, 210, 210, 210, 210, 210, 161, 161,
|
|
161, 161, 161, 161, 167, 167, 167, 167, 167, 167,
|
|
167, 167, 76, 353, 458, 272, 167, 167, 167, 167,
|
|
167, 246, 246, 246, 246, 246, 246, 246, 246, 247,
|
|
247, 247, 247, 247, 248, 354, 164, 364, 161, 161,
|
|
161, 161, 161, 161, 127, 205, 75, 75, 127, 76,
|
|
|
|
75, 75, 164, 598, 127, 245, 245, 245, 245, 245,
|
|
245, 245, 245, 474, 474, 164, 127, 127, 75, 192,
|
|
76, 193, 193, 193, 193, 193, 193, 193, 193, 278,
|
|
278, 278, 278, 278, 278, 278, 278, 202, 283, 284,
|
|
285, 283, 283, 283, 283, 283, 292, 292, 292, 292,
|
|
292, 293, 477, 76, 192, 423, 194, 194, 194, 194,
|
|
194, 194, 194, 194, 253, 253, 253, 253, 253, 253,
|
|
253, 253, 242, 164, 287, 287, 287, 287, 287, 287,
|
|
76, 164, 244, 542, 456, 80, 355, 540, 76, 192,
|
|
244, 195, 195, 195, 195, 195, 196, 193, 193, 291,
|
|
|
|
291, 291, 291, 291, 291, 291, 291, 598, 356, 290,
|
|
290, 290, 290, 290, 290, 290, 290, 338, 338, 338,
|
|
338, 338, 339, 76, 75, 76, 197, 197, 197, 197,
|
|
197, 197, 197, 197, 357, 457, 76, 347, 197, 197,
|
|
197, 197, 197, 314, 315, 316, 314, 314, 314, 314,
|
|
314, 272, 362, 273, 273, 273, 273, 273, 273, 348,
|
|
197, 197, 197, 197, 197, 197, 199, 200, 201, 201,
|
|
201, 201, 201, 201, 202, 76, 242, 164, 203, 203,
|
|
203, 203, 203, 461, 326, 76, 327, 327, 327, 327,
|
|
327, 327, 327, 327, 376, 376, 376, 376, 376, 377,
|
|
|
|
203, 203, 203, 203, 203, 203, 164, 206, 207, 208,
|
|
206, 206, 206, 206, 206, 209, 76, 76, 353, 210,
|
|
210, 210, 210, 210, 326, 363, 328, 328, 328, 328,
|
|
328, 328, 328, 328, 393, 393, 393, 393, 393, 394,
|
|
354, 210, 210, 210, 210, 210, 210, 211, 211, 211,
|
|
211, 211, 211, 211, 211, 242, 164, 539, 355, 211,
|
|
211, 211, 211, 211, 326, 244, 329, 329, 329, 329,
|
|
329, 330, 327, 327, 598, 164, 491, 491, 242, 164,
|
|
356, 197, 197, 197, 197, 197, 197, 192, 289, 193,
|
|
193, 193, 193, 193, 193, 193, 193, 298, 298, 298,
|
|
|
|
298, 298, 298, 298, 298, 598, 164, 242, 164, 333,
|
|
333, 333, 333, 333, 333, 289, 538, 289, 519, 519,
|
|
164, 76, 192, 423, 193, 193, 193, 193, 193, 193,
|
|
193, 193, 337, 337, 337, 337, 337, 337, 337, 337,
|
|
598, 164, 336, 336, 336, 336, 336, 336, 336, 336,
|
|
244, 373, 76, 76, 242, 164, 76, 242, 164, 243,
|
|
243, 243, 243, 243, 243, 243, 243, 244, 405, 411,
|
|
450, 245, 245, 245, 245, 245, 325, 325, 325, 325,
|
|
325, 325, 325, 325, 375, 375, 375, 375, 375, 375,
|
|
375, 375, 451, 245, 245, 245, 245, 245, 245, 164,
|
|
|
|
249, 250, 251, 249, 249, 249, 249, 249, 252, 164,
|
|
468, 452, 253, 253, 253, 253, 253, 598, 289, 374,
|
|
374, 374, 374, 374, 374, 374, 374, 557, 557, 567,
|
|
80, 242, 164, 453, 253, 253, 253, 253, 253, 253,
|
|
272, 289, 273, 273, 273, 273, 273, 273, 273, 273,
|
|
383, 384, 385, 383, 383, 383, 383, 383, 326, 76,
|
|
327, 327, 327, 327, 327, 327, 327, 327, 409, 461,
|
|
546, 514, 514, 514, 76, 272, 371, 274, 274, 274,
|
|
274, 274, 274, 274, 274, 326, 373, 327, 327, 327,
|
|
327, 327, 327, 327, 327, 326, 598, 327, 327, 327,
|
|
|
|
327, 327, 327, 76, 76, 498, 373, 575, 575, 76,
|
|
272, 497, 275, 275, 275, 275, 275, 276, 273, 273,
|
|
242, 164, 344, 344, 344, 344, 344, 344, 344, 344,
|
|
335, 598, 164, 242, 164, 388, 388, 388, 388, 388,
|
|
388, 335, 496, 335, 76, 242, 164, 287, 287, 287,
|
|
287, 287, 287, 287, 287, 244, 242, 164, 288, 288,
|
|
288, 288, 288, 288, 288, 288, 289, 495, 76, 493,
|
|
290, 290, 290, 290, 290, 392, 392, 392, 392, 392,
|
|
392, 392, 392, 501, 364, 365, 365, 365, 365, 365,
|
|
365, 494, 290, 290, 290, 290, 290, 290, 164, 294,
|
|
|
|
295, 296, 294, 294, 294, 294, 294, 297, 138, 138,
|
|
450, 298, 298, 298, 298, 298, 598, 76, 391, 391,
|
|
391, 391, 391, 391, 391, 391, 426, 426, 426, 426,
|
|
426, 427, 451, 298, 298, 298, 298, 298, 298, 272,
|
|
164, 273, 273, 273, 273, 273, 273, 273, 273, 289,
|
|
452, 433, 412, 413, 414, 415, 412, 412, 412, 412,
|
|
417, 418, 419, 417, 417, 417, 417, 417, 373, 320,
|
|
589, 76, 453, 76, 272, 589, 273, 273, 273, 273,
|
|
273, 273, 273, 273, 76, 382, 382, 382, 382, 382,
|
|
382, 382, 382, 425, 425, 425, 425, 425, 425, 425,
|
|
|
|
425, 444, 444, 444, 444, 444, 445, 455, 76, 321,
|
|
322, 323, 321, 321, 321, 321, 321, 324, 164, 454,
|
|
493, 325, 325, 325, 325, 325, 598, 335, 424, 424,
|
|
424, 424, 424, 424, 424, 424, 480, 480, 480, 480,
|
|
480, 481, 494, 325, 325, 325, 325, 325, 325, 242,
|
|
164, 333, 333, 333, 333, 333, 333, 333, 333, 289,
|
|
242, 164, 334, 334, 334, 334, 334, 334, 334, 334,
|
|
335, 459, 76, 536, 336, 336, 336, 336, 336, 433,
|
|
371, 434, 434, 434, 434, 434, 434, 434, 434, 449,
|
|
373, 459, 536, 459, 459, 537, 336, 336, 336, 336,
|
|
|
|
336, 336, 164, 340, 341, 342, 340, 340, 340, 340,
|
|
340, 343, 564, 564, 537, 344, 344, 344, 344, 344,
|
|
433, 371, 435, 435, 435, 435, 435, 435, 435, 435,
|
|
448, 423, 447, 580, 565, 565, 446, 344, 344, 344,
|
|
344, 344, 344, 364, 365, 365, 365, 365, 365, 365,
|
|
365, 365, 433, 320, 436, 436, 436, 436, 436, 437,
|
|
434, 434, 242, 164, 242, 164, 164, 76, 240, 407,
|
|
406, 404, 335, 403, 390, 335, 76, 364, 366, 366,
|
|
366, 366, 366, 366, 366, 366, 398, 398, 398, 398,
|
|
398, 398, 398, 398, 598, 164, 242, 164, 440, 440,
|
|
|
|
440, 440, 440, 440, 390, 402, 390, 401, 400, 399,
|
|
76, 364, 367, 367, 367, 367, 367, 368, 365, 365,
|
|
443, 443, 443, 443, 443, 443, 443, 443, 598, 598,
|
|
442, 442, 442, 442, 442, 442, 442, 442, 326, 423,
|
|
320, 240, 202, 359, 76, 371, 358, 372, 372, 372,
|
|
372, 372, 372, 372, 372, 373, 164, 577, 577, 374,
|
|
374, 374, 374, 374, 468, 390, 469, 469, 469, 469,
|
|
469, 469, 469, 469, 503, 352, 504, 505, 506, 578,
|
|
578, 374, 374, 374, 374, 374, 374, 378, 379, 380,
|
|
378, 378, 378, 378, 378, 381, 351, 346, 345, 382,
|
|
|
|
382, 382, 382, 382, 468, 371, 470, 470, 470, 470,
|
|
470, 470, 470, 470, 320, 423, 240, 202, 202, 265,
|
|
507, 382, 382, 382, 382, 382, 382, 242, 164, 388,
|
|
388, 388, 388, 388, 388, 388, 388, 335, 242, 164,
|
|
389, 389, 389, 389, 389, 389, 389, 389, 390, 164,
|
|
309, 308, 391, 391, 391, 391, 391, 468, 390, 471,
|
|
471, 471, 471, 471, 472, 469, 469, 306, 503, 459,
|
|
504, 505, 506, 305, 391, 391, 391, 391, 391, 391,
|
|
164, 395, 396, 397, 395, 395, 395, 395, 395, 459,
|
|
304, 459, 460, 398, 398, 398, 398, 398, 432, 432,
|
|
|
|
432, 432, 432, 432, 432, 432, 525, 525, 525, 525,
|
|
525, 526, 303, 76, 509, 398, 398, 398, 398, 398,
|
|
398, 364, 365, 365, 365, 365, 365, 365, 365, 365,
|
|
479, 479, 479, 479, 479, 479, 479, 479, 598, 371,
|
|
478, 478, 478, 478, 478, 478, 478, 478, 302, 477,
|
|
514, 514, 514, 301, 76, 364, 365, 365, 365, 365,
|
|
365, 365, 365, 365, 487, 488, 489, 487, 487, 487,
|
|
487, 487, 433, 598, 434, 434, 434, 434, 434, 434,
|
|
434, 434, 76, 477, 300, 299, 281, 240, 76, 371,
|
|
202, 421, 421, 421, 421, 421, 421, 421, 421, 373,
|
|
|
|
371, 371, 422, 422, 422, 422, 422, 422, 422, 422,
|
|
423, 477, 277, 202, 424, 424, 424, 424, 424, 433,
|
|
371, 434, 434, 434, 434, 434, 434, 434, 434, 598,
|
|
522, 598, 598, 598, 100, 265, 424, 424, 424, 424,
|
|
424, 424, 428, 429, 430, 428, 428, 428, 428, 428,
|
|
431, 267, 265, 266, 432, 432, 432, 432, 432, 433,
|
|
265, 434, 434, 434, 434, 434, 434, 515, 516, 517,
|
|
515, 515, 515, 515, 515, 507, 432, 432, 432, 432,
|
|
432, 432, 242, 164, 440, 440, 440, 440, 440, 440,
|
|
440, 440, 390, 242, 164, 441, 441, 441, 441, 441,
|
|
|
|
441, 441, 441, 242, 164, 456, 80, 442, 442, 442,
|
|
442, 442, 263, 390, 262, 567, 80, 598, 499, 510,
|
|
511, 512, 510, 510, 510, 510, 510, 522, 579, 442,
|
|
442, 442, 442, 442, 442, 461, 371, 462, 462, 462,
|
|
462, 462, 462, 462, 462, 261, 522, 260, 259, 258,
|
|
468, 76, 469, 469, 469, 469, 469, 469, 469, 469,
|
|
468, 94, 469, 469, 469, 469, 469, 469, 202, 76,
|
|
461, 240, 463, 463, 463, 463, 463, 463, 463, 463,
|
|
468, 202, 469, 469, 469, 469, 469, 469, 469, 469,
|
|
486, 486, 486, 486, 486, 486, 486, 486, 562, 562,
|
|
|
|
562, 562, 562, 563, 76, 461, 100, 464, 464, 464,
|
|
464, 464, 465, 466, 466, 524, 524, 524, 524, 524,
|
|
524, 524, 524, 598, 80, 523, 523, 523, 523, 523,
|
|
523, 523, 523, 585, 585, 585, 585, 585, 585, 76,
|
|
461, 190, 467, 467, 467, 462, 462, 462, 462, 462,
|
|
164, 531, 531, 531, 531, 531, 531, 531, 531, 164,
|
|
532, 532, 532, 532, 532, 532, 532, 532, 503, 228,
|
|
504, 505, 506, 225, 76, 371, 224, 475, 475, 475,
|
|
475, 475, 475, 475, 475, 423, 371, 223, 476, 476,
|
|
476, 476, 476, 476, 476, 476, 477, 222, 221, 219,
|
|
|
|
478, 478, 478, 478, 478, 164, 533, 533, 533, 533,
|
|
533, 534, 531, 531, 507, 598, 218, 504, 505, 506,
|
|
217, 216, 478, 478, 478, 478, 478, 478, 482, 483,
|
|
484, 482, 482, 482, 482, 482, 485, 215, 214, 213,
|
|
486, 486, 486, 486, 486, 598, 212, 598, 598, 506,
|
|
544, 100, 92, 545, 545, 545, 545, 545, 545, 545,
|
|
545, 507, 486, 486, 486, 486, 486, 486, 242, 164,
|
|
492, 492, 492, 492, 492, 492, 492, 492, 461, 80,
|
|
466, 466, 466, 466, 466, 466, 466, 466, 502, 502,
|
|
80, 507, 502, 598, 190, 598, 598, 598, 145, 146,
|
|
|
|
140, 140, 132, 188, 502, 502, 502, 508, 508, 126,
|
|
126, 508, 76, 461, 181, 466, 466, 466, 466, 466,
|
|
466, 466, 466, 508, 508, 508, 513, 513, 513, 513,
|
|
513, 513, 513, 513, 180, 179, 178, 177, 175, 509,
|
|
164, 531, 531, 531, 531, 531, 531, 76, 461, 174,
|
|
466, 466, 466, 466, 466, 466, 513, 513, 76, 551,
|
|
169, 552, 552, 552, 552, 552, 552, 552, 552, 551,
|
|
168, 553, 553, 553, 553, 553, 553, 553, 553, 100,
|
|
75, 100, 76, 461, 157, 513, 513, 513, 513, 513,
|
|
513, 513, 513, 551, 88, 554, 554, 554, 554, 554,
|
|
|
|
555, 552, 552, 530, 530, 530, 530, 530, 530, 530,
|
|
530, 80, 78, 77, 76, 146, 140, 76, 371, 132,
|
|
520, 520, 520, 520, 520, 520, 520, 520, 477, 371,
|
|
126, 521, 521, 521, 521, 521, 521, 521, 521, 522,
|
|
122, 121, 120, 523, 523, 523, 523, 523, 561, 561,
|
|
561, 561, 561, 561, 561, 561, 164, 531, 531, 531,
|
|
531, 531, 531, 531, 531, 523, 523, 523, 523, 523,
|
|
523, 527, 528, 529, 527, 527, 527, 527, 527, 119,
|
|
118, 107, 106, 530, 530, 530, 530, 530, 598, 105,
|
|
560, 560, 560, 560, 560, 560, 560, 560, 104, 103,
|
|
|
|
100, 88, 78, 77, 76, 530, 530, 530, 530, 530,
|
|
530, 546, 598, 547, 547, 547, 547, 547, 547, 547,
|
|
547, 164, 531, 531, 531, 531, 531, 531, 531, 531,
|
|
545, 545, 545, 545, 545, 545, 545, 545, 598, 598,
|
|
598, 598, 598, 598, 598, 76, 546, 598, 548, 548,
|
|
548, 548, 548, 548, 548, 548, 545, 545, 545, 545,
|
|
545, 545, 545, 545, 568, 569, 570, 568, 568, 568,
|
|
568, 568, 546, 598, 547, 547, 547, 547, 547, 547,
|
|
76, 546, 598, 549, 549, 549, 549, 549, 550, 547,
|
|
547, 598, 598, 598, 598, 598, 76, 571, 572, 573,
|
|
|
|
571, 571, 571, 571, 571, 551, 76, 552, 552, 552,
|
|
552, 552, 552, 552, 552, 76, 371, 598, 558, 558,
|
|
558, 558, 558, 558, 558, 558, 522, 371, 598, 559,
|
|
559, 559, 559, 559, 559, 559, 559, 598, 598, 598,
|
|
598, 560, 560, 560, 560, 560, 551, 598, 552, 552,
|
|
552, 552, 552, 552, 552, 552, 595, 595, 595, 595,
|
|
595, 595, 598, 560, 560, 560, 560, 560, 560, 546,
|
|
598, 547, 547, 547, 547, 547, 547, 547, 547, 551,
|
|
598, 552, 552, 552, 552, 552, 552, 371, 76, 576,
|
|
576, 576, 576, 576, 576, 576, 576, 598, 598, 598,
|
|
|
|
598, 598, 598, 76, 546, 598, 547, 547, 547, 547,
|
|
547, 547, 547, 547, 585, 585, 585, 585, 585, 585,
|
|
585, 585, 586, 586, 586, 586, 586, 586, 586, 586,
|
|
587, 587, 587, 587, 587, 588, 585, 585, 76, 580,
|
|
598, 581, 581, 581, 581, 581, 581, 581, 581, 598,
|
|
598, 598, 592, 593, 594, 592, 592, 592, 592, 592,
|
|
580, 598, 581, 581, 581, 581, 581, 581, 598, 598,
|
|
598, 598, 598, 76, 580, 598, 582, 582, 582, 582,
|
|
582, 582, 582, 582, 76, 585, 585, 585, 585, 585,
|
|
585, 585, 585, 598, 76, 585, 585, 585, 585, 585,
|
|
|
|
585, 585, 585, 598, 598, 598, 598, 598, 76, 580,
|
|
598, 583, 583, 583, 583, 583, 584, 581, 581, 598,
|
|
598, 598, 595, 595, 595, 595, 595, 595, 595, 595,
|
|
592, 592, 592, 592, 592, 592, 592, 592, 598, 598,
|
|
598, 598, 598, 76, 580, 598, 581, 581, 581, 581,
|
|
581, 581, 581, 581, 76, 598, 598, 598, 598, 598,
|
|
598, 598, 76, 596, 596, 596, 596, 596, 597, 595,
|
|
595, 598, 598, 598, 598, 598, 598, 598, 76, 580,
|
|
598, 581, 581, 581, 581, 581, 581, 581, 581, 598,
|
|
598, 598, 598, 598, 598, 76, 595, 595, 595, 595,
|
|
|
|
595, 595, 595, 595, 598, 598, 598, 598, 598, 598,
|
|
598, 598, 598, 76, 598, 598, 598, 598, 598, 598,
|
|
598, 598, 598, 598, 598, 598, 598, 598, 76, 54,
|
|
54, 54, 54, 54, 54, 54, 54, 54, 54, 54,
|
|
54, 54, 54, 54, 54, 31, 31, 31, 31, 31,
|
|
31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
|
|
31, 63, 63, 63, 63, 63, 63, 63, 63, 63,
|
|
63, 63, 63, 63, 63, 63, 63, 70, 70, 70,
|
|
70, 70, 70, 70, 70, 70, 70, 70, 70, 70,
|
|
70, 70, 70, 75, 598, 598, 598, 598, 598, 598,
|
|
|
|
598, 75, 75, 75, 598, 598, 75, 75, 75, 79,
|
|
79, 79, 79, 79, 79, 79, 79, 79, 79, 79,
|
|
79, 79, 79, 79, 79, 83, 598, 598, 598, 598,
|
|
83, 598, 598, 83, 83, 83, 83, 598, 83, 83,
|
|
83, 87, 598, 598, 598, 598, 598, 598, 598, 87,
|
|
87, 87, 598, 598, 87, 87, 87, 89, 598, 598,
|
|
89, 89, 598, 89, 598, 89, 89, 89, 598, 598,
|
|
89, 89, 89, 99, 99, 598, 598, 598, 99, 127,
|
|
598, 598, 127, 127, 598, 127, 598, 127, 127, 127,
|
|
598, 598, 127, 127, 127, 131, 598, 598, 131, 131,
|
|
|
|
598, 131, 598, 131, 131, 131, 598, 131, 598, 131,
|
|
131, 139, 598, 598, 139, 598, 598, 139, 598, 139,
|
|
139, 139, 139, 598, 139, 139, 139, 143, 143, 143,
|
|
143, 143, 143, 143, 143, 143, 143, 143, 143, 143,
|
|
143, 143, 143, 145, 145, 598, 145, 598, 145, 145,
|
|
145, 145, 145, 145, 145, 145, 145, 145, 145, 151,
|
|
151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
|
|
151, 151, 151, 151, 151, 152, 152, 598, 152, 152,
|
|
152, 152, 152, 152, 152, 152, 152, 152, 152, 152,
|
|
152, 155, 598, 598, 598, 598, 155, 598, 598, 155,
|
|
|
|
155, 155, 598, 598, 155, 155, 155, 90, 598, 598,
|
|
90, 90, 598, 90, 598, 90, 90, 90, 598, 598,
|
|
90, 90, 90, 163, 163, 598, 598, 598, 163, 165,
|
|
165, 165, 598, 598, 598, 165, 128, 598, 598, 128,
|
|
128, 598, 128, 598, 128, 128, 128, 598, 598, 128,
|
|
128, 128, 191, 191, 191, 191, 191, 191, 191, 191,
|
|
191, 191, 191, 191, 191, 191, 191, 191, 198, 198,
|
|
598, 598, 598, 198, 204, 204, 204, 598, 598, 598,
|
|
204, 234, 234, 598, 598, 598, 234, 235, 235, 598,
|
|
598, 598, 235, 239, 239, 598, 598, 598, 239, 241,
|
|
|
|
241, 241, 598, 598, 598, 241, 277, 277, 598, 598,
|
|
598, 277, 279, 279, 598, 598, 598, 279, 280, 280,
|
|
598, 598, 598, 280, 282, 282, 282, 598, 598, 598,
|
|
282, 286, 286, 286, 286, 598, 598, 598, 286, 317,
|
|
317, 598, 598, 598, 317, 318, 318, 598, 598, 598,
|
|
318, 319, 319, 598, 598, 598, 319, 331, 331, 331,
|
|
598, 598, 598, 331, 332, 332, 332, 332, 598, 598,
|
|
598, 332, 369, 369, 598, 598, 598, 369, 370, 370,
|
|
598, 598, 598, 370, 386, 386, 386, 598, 598, 598,
|
|
386, 387, 387, 387, 387, 598, 598, 598, 387, 416,
|
|
|
|
416, 598, 598, 598, 416, 420, 598, 420, 420, 598,
|
|
598, 598, 420, 438, 438, 438, 598, 598, 598, 438,
|
|
439, 439, 439, 439, 598, 598, 598, 439, 473, 473,
|
|
598, 598, 598, 473, 474, 598, 474, 474, 598, 598,
|
|
598, 474, 490, 490, 490, 598, 598, 598, 490, 491,
|
|
491, 491, 598, 598, 598, 598, 491, 502, 502, 598,
|
|
502, 502, 502, 598, 598, 502, 502, 502, 598, 598,
|
|
502, 502, 502, 508, 508, 598, 508, 508, 508, 598,
|
|
598, 508, 508, 508, 598, 598, 508, 508, 508, 518,
|
|
518, 598, 598, 598, 518, 519, 598, 519, 519, 598,
|
|
|
|
598, 598, 519, 535, 535, 598, 598, 598, 598, 535,
|
|
541, 541, 541, 541, 541, 541, 541, 541, 541, 541,
|
|
541, 541, 541, 541, 541, 541, 556, 556, 598, 598,
|
|
598, 556, 557, 598, 557, 557, 598, 598, 598, 557,
|
|
574, 574, 598, 598, 598, 574, 575, 598, 575, 598,
|
|
598, 598, 598, 575, 590, 590, 590, 590, 590, 590,
|
|
590, 590, 590, 590, 590, 590, 590, 590, 590, 590,
|
|
13, 598, 598, 598, 598, 598, 598, 598, 598, 598,
|
|
598, 598, 598, 598, 598, 598, 598, 598, 598, 598,
|
|
598, 598, 598, 598, 598, 598, 598, 598, 598, 598,
|
|
|
|
598, 598, 598, 598, 598, 598, 598, 598, 598, 598,
|
|
598, 598, 598, 598, 598, 598, 598, 598, 598, 598,
|
|
598, 598, 598, 598, 598, 598, 598, 598, 598, 598,
|
|
598, 598, 598, 598, 598, 598
|
|
} ;
|
|
|
|
static yyconst short int yy_chk[3737] =
|
|
{ 0,
|
|
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, 2, 3, 4, 41, 2,
|
|
3, 4, 11, 11, 11, 11, 3, 4, 53, 3,
|
|
4, 49, 61, 61, 71, 41, 5, 5, 5, 72,
|
|
5, 49, 20, 2, 2, 53, 5, 2, 117, 65,
|
|
|
|
595, 6, 6, 6, 2, 6, 67, 2, 5, 5,
|
|
20, 6, 12, 12, 12, 12, 25, 25, 11, 118,
|
|
25, 25, 65, 6, 6, 69, 69, 3, 4, 67,
|
|
71, 118, 5, 72, 20, 85, 108, 108, 25, 27,
|
|
27, 27, 27, 27, 27, 27, 27, 6, 7, 7,
|
|
7, 42, 7, 74, 74, 117, 74, 590, 12, 100,
|
|
25, 28, 28, 28, 28, 28, 28, 40, 100, 40,
|
|
40, 40, 40, 40, 40, 40, 40, 85, 187, 42,
|
|
42, 123, 108, 42, 98, 98, 98, 98, 98, 98,
|
|
42, 123, 187, 42, 7, 7, 7, 7, 7, 7,
|
|
|
|
7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
|
|
7, 7, 8, 8, 8, 50, 8, 579, 50, 50,
|
|
50, 50, 50, 50, 50, 50, 81, 81, 81, 81,
|
|
81, 81, 81, 81, 82, 82, 82, 82, 82, 82,
|
|
82, 82, 84, 119, 121, 84, 84, 84, 84, 84,
|
|
84, 84, 84, 133, 133, 186, 121, 186, 8, 8,
|
|
8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
|
|
8, 8, 8, 8, 8, 8, 9, 9, 9, 9,
|
|
9, 137, 137, 110, 119, 9, 9, 9, 110, 120,
|
|
500, 52, 52, 576, 83, 52, 52, 89, 89, 9,
|
|
|
|
130, 89, 89, 122, 120, 130, 59, 59, 59, 122,
|
|
59, 147, 83, 52, 59, 148, 59, 144, 144, 89,
|
|
149, 149, 9, 10, 10, 10, 10, 10, 59, 59,
|
|
182, 193, 10, 10, 10, 52, 83, 86, 457, 86,
|
|
86, 89, 165, 86, 86, 105, 10, 86, 185, 500,
|
|
105, 165, 59, 105, 176, 105, 270, 147, 197, 148,
|
|
86, 86, 155, 144, 185, 193, 270, 176, 189, 10,
|
|
19, 92, 92, 92, 92, 92, 92, 92, 92, 182,
|
|
19, 189, 197, 19, 19, 19, 19, 19, 19, 19,
|
|
19, 26, 457, 26, 26, 26, 26, 26, 26, 26,
|
|
|
|
26, 26, 212, 92, 155, 26, 26, 26, 26, 26,
|
|
96, 96, 96, 96, 96, 96, 96, 96, 183, 201,
|
|
201, 201, 574, 183, 212, 26, 204, 26, 26, 26,
|
|
26, 26, 26, 32, 140, 204, 213, 140, 140, 32,
|
|
213, 560, 32, 32, 140, 32, 32, 32, 32, 32,
|
|
32, 32, 32, 32, 32, 32, 32, 140, 360, 32,
|
|
32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
|
|
32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
|
|
32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
|
|
32, 32, 32, 32, 32, 32, 32, 32, 34, 34,
|
|
|
|
34, 34, 34, 34, 34, 34, 34, 227, 227, 360,
|
|
34, 34, 34, 34, 34, 97, 97, 97, 97, 97,
|
|
97, 97, 97, 559, 196, 111, 196, 196, 196, 196,
|
|
196, 196, 34, 34, 34, 34, 34, 34, 39, 39,
|
|
39, 39, 39, 220, 39, 39, 157, 264, 39, 220,
|
|
157, 229, 264, 111, 111, 226, 157, 111, 196, 230,
|
|
39, 39, 39, 43, 111, 230, 229, 111, 157, 157,
|
|
127, 127, 557, 43, 127, 127, 43, 43, 43, 43,
|
|
43, 43, 43, 43, 125, 125, 125, 125, 125, 125,
|
|
125, 125, 127, 136, 136, 136, 136, 136, 136, 136,
|
|
|
|
136, 153, 153, 153, 153, 153, 153, 153, 153, 310,
|
|
226, 302, 556, 268, 127, 302, 228, 43, 60, 154,
|
|
154, 154, 154, 154, 154, 154, 154, 269, 60, 254,
|
|
301, 60, 60, 60, 60, 60, 60, 60, 60, 76,
|
|
228, 76, 76, 76, 241, 76, 76, 269, 311, 76,
|
|
188, 254, 301, 241, 188, 243, 243, 228, 311, 310,
|
|
188, 76, 76, 76, 88, 243, 88, 88, 88, 552,
|
|
88, 88, 188, 188, 88, 268, 192, 192, 192, 192,
|
|
192, 192, 192, 192, 245, 245, 88, 88, 88, 91,
|
|
362, 91, 91, 91, 245, 91, 91, 377, 377, 91,
|
|
|
|
156, 541, 156, 156, 271, 362, 156, 156, 192, 271,
|
|
156, 91, 91, 91, 93, 93, 93, 93, 93, 93,
|
|
93, 93, 156, 156, 156, 539, 93, 93, 93, 93,
|
|
93, 200, 200, 200, 200, 200, 200, 200, 200, 200,
|
|
205, 205, 205, 205, 205, 205, 205, 205, 93, 93,
|
|
93, 93, 93, 93, 101, 101, 101, 101, 101, 101,
|
|
101, 101, 409, 305, 409, 273, 101, 101, 101, 101,
|
|
101, 207, 207, 207, 207, 207, 207, 207, 207, 208,
|
|
208, 208, 208, 208, 208, 305, 282, 365, 101, 101,
|
|
101, 101, 101, 101, 129, 282, 129, 129, 129, 273,
|
|
|
|
129, 129, 535, 210, 129, 210, 210, 210, 210, 210,
|
|
210, 210, 210, 427, 427, 531, 129, 129, 129, 158,
|
|
365, 158, 158, 158, 158, 158, 158, 158, 158, 236,
|
|
236, 236, 236, 236, 236, 236, 236, 236, 242, 242,
|
|
242, 242, 242, 242, 242, 242, 251, 251, 251, 251,
|
|
251, 251, 519, 158, 159, 518, 159, 159, 159, 159,
|
|
159, 159, 159, 159, 244, 244, 244, 244, 244, 244,
|
|
244, 244, 248, 248, 248, 248, 248, 248, 248, 248,
|
|
501, 286, 248, 499, 408, 408, 306, 498, 159, 160,
|
|
286, 160, 160, 160, 160, 160, 160, 160, 160, 250,
|
|
|
|
250, 250, 250, 250, 250, 250, 250, 253, 306, 253,
|
|
253, 253, 253, 253, 253, 253, 253, 296, 296, 296,
|
|
296, 296, 296, 160, 161, 307, 161, 161, 161, 161,
|
|
161, 161, 161, 161, 307, 408, 312, 347, 161, 161,
|
|
161, 161, 161, 272, 272, 272, 272, 272, 272, 272,
|
|
272, 276, 312, 276, 276, 276, 276, 276, 276, 347,
|
|
161, 161, 161, 161, 161, 161, 164, 164, 164, 164,
|
|
164, 164, 164, 164, 164, 272, 441, 441, 164, 164,
|
|
164, 164, 164, 462, 283, 276, 283, 283, 283, 283,
|
|
283, 283, 283, 283, 323, 323, 323, 323, 323, 323,
|
|
|
|
164, 164, 164, 164, 164, 164, 166, 166, 166, 166,
|
|
166, 166, 166, 166, 166, 166, 313, 462, 353, 166,
|
|
166, 166, 166, 166, 284, 313, 284, 284, 284, 284,
|
|
284, 284, 284, 284, 342, 342, 342, 342, 342, 342,
|
|
353, 166, 166, 166, 166, 166, 166, 167, 167, 167,
|
|
167, 167, 167, 167, 167, 287, 287, 497, 355, 167,
|
|
167, 167, 167, 167, 285, 287, 285, 285, 285, 285,
|
|
285, 285, 285, 285, 442, 442, 445, 445, 288, 288,
|
|
355, 167, 167, 167, 167, 167, 167, 194, 288, 194,
|
|
194, 194, 194, 194, 194, 194, 194, 289, 289, 289,
|
|
|
|
289, 289, 289, 289, 289, 290, 290, 293, 293, 293,
|
|
293, 293, 293, 293, 293, 290, 496, 293, 481, 481,
|
|
491, 194, 195, 474, 195, 195, 195, 195, 195, 195,
|
|
195, 195, 295, 295, 295, 295, 295, 295, 295, 295,
|
|
298, 331, 298, 298, 298, 298, 298, 298, 298, 298,
|
|
331, 473, 357, 363, 492, 492, 195, 206, 206, 206,
|
|
206, 206, 206, 206, 206, 206, 206, 206, 357, 363,
|
|
403, 206, 206, 206, 206, 206, 320, 320, 320, 320,
|
|
320, 320, 320, 320, 322, 322, 322, 322, 322, 322,
|
|
322, 322, 403, 206, 206, 206, 206, 206, 206, 209,
|
|
|
|
209, 209, 209, 209, 209, 209, 209, 209, 209, 332,
|
|
469, 404, 209, 209, 209, 209, 209, 325, 332, 325,
|
|
325, 325, 325, 325, 325, 325, 325, 526, 526, 543,
|
|
543, 333, 333, 404, 209, 209, 209, 209, 209, 209,
|
|
231, 333, 231, 231, 231, 231, 231, 231, 231, 231,
|
|
326, 326, 326, 326, 326, 326, 326, 326, 328, 361,
|
|
328, 328, 328, 328, 328, 328, 328, 328, 361, 467,
|
|
547, 467, 467, 467, 231, 232, 372, 232, 232, 232,
|
|
232, 232, 232, 232, 232, 329, 372, 329, 329, 329,
|
|
329, 329, 329, 329, 329, 330, 374, 330, 330, 330,
|
|
|
|
330, 330, 330, 467, 547, 454, 374, 563, 563, 232,
|
|
233, 449, 233, 233, 233, 233, 233, 233, 233, 233,
|
|
334, 334, 335, 335, 335, 335, 335, 335, 335, 335,
|
|
334, 336, 336, 339, 339, 339, 339, 339, 339, 339,
|
|
339, 336, 448, 339, 233, 246, 246, 246, 246, 246,
|
|
246, 246, 246, 246, 246, 246, 249, 249, 249, 249,
|
|
249, 249, 249, 249, 249, 249, 249, 447, 458, 446,
|
|
249, 249, 249, 249, 249, 341, 341, 341, 341, 341,
|
|
341, 341, 341, 458, 368, 368, 368, 368, 368, 368,
|
|
368, 446, 249, 249, 249, 249, 249, 249, 252, 252,
|
|
|
|
252, 252, 252, 252, 252, 252, 252, 252, 611, 611,
|
|
450, 252, 252, 252, 252, 252, 344, 368, 344, 344,
|
|
344, 344, 344, 344, 344, 344, 380, 380, 380, 380,
|
|
380, 380, 450, 252, 252, 252, 252, 252, 252, 274,
|
|
386, 274, 274, 274, 274, 274, 274, 274, 274, 386,
|
|
452, 434, 364, 364, 364, 364, 364, 364, 364, 364,
|
|
371, 371, 371, 371, 371, 371, 371, 371, 420, 416,
|
|
661, 411, 452, 274, 275, 661, 275, 275, 275, 275,
|
|
275, 275, 275, 275, 364, 373, 373, 373, 373, 373,
|
|
373, 373, 373, 379, 379, 379, 379, 379, 379, 379,
|
|
|
|
379, 397, 397, 397, 397, 397, 397, 407, 275, 281,
|
|
281, 281, 281, 281, 281, 281, 281, 281, 387, 406,
|
|
493, 281, 281, 281, 281, 281, 382, 387, 382, 382,
|
|
382, 382, 382, 382, 382, 382, 430, 430, 430, 430,
|
|
430, 430, 493, 281, 281, 281, 281, 281, 281, 291,
|
|
291, 291, 291, 291, 291, 291, 291, 291, 291, 291,
|
|
294, 294, 294, 294, 294, 294, 294, 294, 294, 294,
|
|
294, 455, 405, 495, 294, 294, 294, 294, 294, 383,
|
|
421, 383, 383, 383, 383, 383, 383, 383, 383, 402,
|
|
421, 455, 536, 455, 455, 495, 294, 294, 294, 294,
|
|
|
|
294, 294, 297, 297, 297, 297, 297, 297, 297, 297,
|
|
297, 297, 538, 564, 536, 297, 297, 297, 297, 297,
|
|
384, 422, 384, 384, 384, 384, 384, 384, 384, 384,
|
|
401, 422, 400, 581, 538, 564, 399, 297, 297, 297,
|
|
297, 297, 297, 314, 314, 314, 314, 314, 314, 314,
|
|
314, 314, 385, 370, 385, 385, 385, 385, 385, 385,
|
|
385, 385, 388, 388, 389, 389, 438, 581, 369, 359,
|
|
358, 352, 388, 351, 389, 438, 314, 315, 315, 315,
|
|
315, 315, 315, 315, 315, 315, 390, 390, 390, 390,
|
|
390, 390, 390, 390, 391, 391, 394, 394, 394, 394,
|
|
|
|
394, 394, 394, 394, 391, 350, 394, 349, 346, 345,
|
|
315, 316, 316, 316, 316, 316, 316, 316, 316, 316,
|
|
396, 396, 396, 396, 396, 396, 396, 396, 398, 424,
|
|
398, 398, 398, 398, 398, 398, 398, 398, 327, 424,
|
|
319, 318, 317, 309, 316, 321, 308, 321, 321, 321,
|
|
321, 321, 321, 321, 321, 321, 439, 566, 577, 321,
|
|
321, 321, 321, 321, 417, 439, 417, 417, 417, 417,
|
|
417, 417, 417, 417, 459, 304, 459, 459, 459, 566,
|
|
577, 321, 321, 321, 321, 321, 321, 324, 324, 324,
|
|
324, 324, 324, 324, 324, 324, 303, 300, 299, 324,
|
|
|
|
324, 324, 324, 324, 418, 475, 418, 418, 418, 418,
|
|
418, 418, 418, 418, 280, 475, 279, 278, 277, 267,
|
|
459, 324, 324, 324, 324, 324, 324, 337, 337, 337,
|
|
337, 337, 337, 337, 337, 337, 337, 337, 340, 340,
|
|
340, 340, 340, 340, 340, 340, 340, 340, 340, 490,
|
|
266, 265, 340, 340, 340, 340, 340, 419, 490, 419,
|
|
419, 419, 419, 419, 419, 419, 419, 263, 460, 410,
|
|
460, 460, 460, 262, 340, 340, 340, 340, 340, 340,
|
|
343, 343, 343, 343, 343, 343, 343, 343, 343, 410,
|
|
261, 410, 410, 343, 343, 343, 343, 343, 423, 423,
|
|
|
|
423, 423, 423, 423, 423, 423, 484, 484, 484, 484,
|
|
484, 484, 260, 410, 460, 343, 343, 343, 343, 343,
|
|
343, 366, 366, 366, 366, 366, 366, 366, 366, 366,
|
|
429, 429, 429, 429, 429, 429, 429, 429, 432, 476,
|
|
432, 432, 432, 432, 432, 432, 432, 432, 259, 476,
|
|
514, 514, 514, 258, 366, 367, 367, 367, 367, 367,
|
|
367, 367, 367, 367, 433, 433, 433, 433, 433, 433,
|
|
433, 433, 435, 478, 435, 435, 435, 435, 435, 435,
|
|
435, 435, 514, 478, 257, 256, 240, 239, 367, 375,
|
|
238, 375, 375, 375, 375, 375, 375, 375, 375, 375,
|
|
|
|
378, 520, 378, 378, 378, 378, 378, 378, 378, 378,
|
|
378, 520, 237, 235, 378, 378, 378, 378, 378, 436,
|
|
521, 436, 436, 436, 436, 436, 436, 436, 436, 502,
|
|
521, 502, 502, 502, 234, 225, 378, 378, 378, 378,
|
|
378, 378, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 224, 223, 222, 381, 381, 381, 381, 381, 437,
|
|
221, 437, 437, 437, 437, 437, 437, 468, 468, 468,
|
|
468, 468, 468, 468, 468, 502, 381, 381, 381, 381,
|
|
381, 381, 392, 392, 392, 392, 392, 392, 392, 392,
|
|
392, 392, 392, 395, 395, 395, 395, 395, 395, 395,
|
|
|
|
395, 395, 395, 440, 440, 456, 456, 395, 395, 395,
|
|
395, 395, 219, 440, 218, 567, 567, 523, 456, 461,
|
|
461, 461, 461, 461, 461, 461, 461, 523, 567, 395,
|
|
395, 395, 395, 395, 395, 412, 558, 412, 412, 412,
|
|
412, 412, 412, 412, 412, 217, 558, 216, 215, 214,
|
|
470, 461, 470, 470, 470, 470, 470, 470, 470, 470,
|
|
472, 211, 472, 472, 472, 472, 472, 472, 203, 412,
|
|
413, 202, 413, 413, 413, 413, 413, 413, 413, 413,
|
|
471, 199, 471, 471, 471, 471, 471, 471, 471, 471,
|
|
477, 477, 477, 477, 477, 477, 477, 477, 529, 529,
|
|
|
|
529, 529, 529, 529, 413, 414, 198, 414, 414, 414,
|
|
414, 414, 414, 414, 414, 483, 483, 483, 483, 483,
|
|
483, 483, 483, 486, 191, 486, 486, 486, 486, 486,
|
|
486, 486, 486, 588, 588, 588, 588, 588, 588, 414,
|
|
415, 190, 415, 415, 415, 415, 415, 415, 415, 415,
|
|
487, 487, 487, 487, 487, 487, 487, 487, 487, 488,
|
|
488, 488, 488, 488, 488, 488, 488, 488, 503, 184,
|
|
503, 503, 503, 181, 415, 425, 180, 425, 425, 425,
|
|
425, 425, 425, 425, 425, 425, 428, 179, 428, 428,
|
|
428, 428, 428, 428, 428, 428, 428, 178, 177, 175,
|
|
|
|
428, 428, 428, 428, 428, 489, 489, 489, 489, 489,
|
|
489, 489, 489, 489, 503, 504, 174, 504, 504, 504,
|
|
173, 172, 428, 428, 428, 428, 428, 428, 431, 431,
|
|
431, 431, 431, 431, 431, 431, 431, 171, 170, 169,
|
|
431, 431, 431, 431, 431, 505, 168, 505, 505, 505,
|
|
506, 163, 162, 506, 506, 506, 506, 506, 506, 506,
|
|
506, 504, 431, 431, 431, 431, 431, 431, 443, 443,
|
|
443, 443, 443, 443, 443, 443, 443, 443, 463, 152,
|
|
463, 463, 463, 463, 463, 463, 463, 463, 507, 507,
|
|
151, 505, 507, 508, 150, 508, 508, 508, 146, 145,
|
|
|
|
143, 139, 132, 128, 507, 507, 507, 509, 509, 126,
|
|
124, 509, 463, 464, 116, 464, 464, 464, 464, 464,
|
|
464, 464, 464, 509, 509, 509, 513, 513, 513, 513,
|
|
513, 513, 513, 513, 115, 114, 113, 112, 107, 508,
|
|
534, 534, 534, 534, 534, 534, 534, 464, 465, 106,
|
|
465, 465, 465, 465, 465, 465, 465, 465, 513, 515,
|
|
104, 515, 515, 515, 515, 515, 515, 515, 515, 516,
|
|
103, 516, 516, 516, 516, 516, 516, 516, 516, 99,
|
|
95, 94, 465, 466, 90, 466, 466, 466, 466, 466,
|
|
466, 466, 466, 517, 87, 517, 517, 517, 517, 517,
|
|
|
|
517, 517, 517, 522, 522, 522, 522, 522, 522, 522,
|
|
522, 79, 78, 77, 75, 70, 63, 466, 479, 56,
|
|
479, 479, 479, 479, 479, 479, 479, 479, 479, 482,
|
|
51, 482, 482, 482, 482, 482, 482, 482, 482, 482,
|
|
48, 47, 46, 482, 482, 482, 482, 482, 528, 528,
|
|
528, 528, 528, 528, 528, 528, 532, 532, 532, 532,
|
|
532, 532, 532, 532, 532, 482, 482, 482, 482, 482,
|
|
482, 485, 485, 485, 485, 485, 485, 485, 485, 45,
|
|
44, 38, 37, 485, 485, 485, 485, 485, 530, 36,
|
|
530, 530, 530, 530, 530, 530, 530, 530, 35, 33,
|
|
|
|
29, 23, 17, 15, 14, 485, 485, 485, 485, 485,
|
|
485, 510, 13, 510, 510, 510, 510, 510, 510, 510,
|
|
510, 533, 533, 533, 533, 533, 533, 533, 533, 533,
|
|
544, 544, 544, 544, 544, 544, 544, 544, 0, 0,
|
|
0, 0, 0, 0, 0, 510, 511, 0, 511, 511,
|
|
511, 511, 511, 511, 511, 511, 545, 545, 545, 545,
|
|
545, 545, 545, 545, 546, 546, 546, 546, 546, 546,
|
|
546, 546, 550, 0, 550, 550, 550, 550, 550, 550,
|
|
511, 512, 0, 512, 512, 512, 512, 512, 512, 512,
|
|
512, 0, 0, 0, 0, 0, 546, 551, 551, 551,
|
|
|
|
551, 551, 551, 551, 551, 553, 550, 553, 553, 553,
|
|
553, 553, 553, 553, 553, 512, 524, 0, 524, 524,
|
|
524, 524, 524, 524, 524, 524, 524, 527, 0, 527,
|
|
527, 527, 527, 527, 527, 527, 527, 0, 0, 0,
|
|
0, 527, 527, 527, 527, 527, 554, 0, 554, 554,
|
|
554, 554, 554, 554, 554, 554, 597, 597, 597, 597,
|
|
597, 597, 0, 527, 527, 527, 527, 527, 527, 548,
|
|
0, 548, 548, 548, 548, 548, 548, 548, 548, 555,
|
|
0, 555, 555, 555, 555, 555, 555, 561, 597, 561,
|
|
561, 561, 561, 561, 561, 561, 561, 0, 0, 0,
|
|
|
|
0, 0, 0, 548, 549, 0, 549, 549, 549, 549,
|
|
549, 549, 549, 549, 571, 571, 571, 571, 571, 571,
|
|
571, 571, 572, 572, 572, 572, 572, 572, 572, 572,
|
|
573, 573, 573, 573, 573, 573, 573, 573, 549, 568,
|
|
0, 568, 568, 568, 568, 568, 568, 568, 568, 0,
|
|
0, 0, 580, 580, 580, 580, 580, 580, 580, 580,
|
|
584, 0, 584, 584, 584, 584, 584, 584, 0, 0,
|
|
0, 0, 0, 568, 569, 0, 569, 569, 569, 569,
|
|
569, 569, 569, 569, 580, 586, 586, 586, 586, 586,
|
|
586, 586, 586, 0, 584, 587, 587, 587, 587, 587,
|
|
|
|
587, 587, 587, 0, 0, 0, 0, 0, 569, 570,
|
|
0, 570, 570, 570, 570, 570, 570, 570, 570, 0,
|
|
0, 0, 592, 592, 592, 592, 592, 592, 592, 592,
|
|
593, 593, 593, 593, 593, 593, 593, 593, 0, 0,
|
|
0, 0, 0, 570, 582, 0, 582, 582, 582, 582,
|
|
582, 582, 582, 582, 592, 0, 0, 0, 0, 0,
|
|
0, 0, 593, 594, 594, 594, 594, 594, 594, 594,
|
|
594, 0, 0, 0, 0, 0, 0, 0, 582, 583,
|
|
0, 583, 583, 583, 583, 583, 583, 583, 583, 0,
|
|
0, 0, 0, 0, 0, 594, 596, 596, 596, 596,
|
|
|
|
596, 596, 596, 596, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 583, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 596, 599,
|
|
599, 599, 599, 599, 599, 599, 599, 599, 599, 599,
|
|
599, 599, 599, 599, 599, 600, 600, 600, 600, 600,
|
|
600, 600, 600, 600, 600, 600, 600, 600, 600, 600,
|
|
600, 601, 601, 601, 601, 601, 601, 601, 601, 601,
|
|
601, 601, 601, 601, 601, 601, 601, 602, 602, 602,
|
|
602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
|
|
602, 602, 602, 603, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 603, 603, 603, 0, 0, 603, 603, 603, 604,
|
|
604, 604, 604, 604, 604, 604, 604, 604, 604, 604,
|
|
604, 604, 604, 604, 604, 605, 0, 0, 0, 0,
|
|
605, 0, 0, 605, 605, 605, 605, 0, 605, 605,
|
|
605, 606, 0, 0, 0, 0, 0, 0, 0, 606,
|
|
606, 606, 0, 0, 606, 606, 606, 607, 0, 0,
|
|
607, 607, 0, 607, 0, 607, 607, 607, 0, 0,
|
|
607, 607, 607, 608, 608, 0, 0, 0, 608, 609,
|
|
0, 0, 609, 609, 0, 609, 0, 609, 609, 609,
|
|
0, 0, 609, 609, 609, 610, 0, 0, 610, 610,
|
|
|
|
0, 610, 0, 610, 610, 610, 0, 610, 0, 610,
|
|
610, 612, 0, 0, 612, 0, 0, 612, 0, 612,
|
|
612, 612, 612, 0, 612, 612, 612, 613, 613, 613,
|
|
613, 613, 613, 613, 613, 613, 613, 613, 613, 613,
|
|
613, 613, 613, 614, 614, 0, 614, 0, 614, 614,
|
|
614, 614, 614, 614, 614, 614, 614, 614, 614, 615,
|
|
615, 615, 615, 615, 615, 615, 615, 615, 615, 615,
|
|
615, 615, 615, 615, 615, 616, 616, 0, 616, 616,
|
|
616, 616, 616, 616, 616, 616, 616, 616, 616, 616,
|
|
616, 617, 0, 0, 0, 0, 617, 0, 0, 617,
|
|
|
|
617, 617, 0, 0, 617, 617, 617, 618, 0, 0,
|
|
618, 618, 0, 618, 0, 618, 618, 618, 0, 0,
|
|
618, 618, 618, 619, 619, 0, 0, 0, 619, 620,
|
|
620, 620, 0, 0, 0, 620, 621, 0, 0, 621,
|
|
621, 0, 621, 0, 621, 621, 621, 0, 0, 621,
|
|
621, 621, 622, 622, 622, 622, 622, 622, 622, 622,
|
|
622, 622, 622, 622, 622, 622, 622, 622, 623, 623,
|
|
0, 0, 0, 623, 624, 624, 624, 0, 0, 0,
|
|
624, 625, 625, 0, 0, 0, 625, 626, 626, 0,
|
|
0, 0, 626, 627, 627, 0, 0, 0, 627, 628,
|
|
|
|
628, 628, 0, 0, 0, 628, 629, 629, 0, 0,
|
|
0, 629, 630, 630, 0, 0, 0, 630, 631, 631,
|
|
0, 0, 0, 631, 632, 632, 632, 0, 0, 0,
|
|
632, 633, 633, 633, 633, 0, 0, 0, 633, 634,
|
|
634, 0, 0, 0, 634, 635, 635, 0, 0, 0,
|
|
635, 636, 636, 0, 0, 0, 636, 637, 637, 637,
|
|
0, 0, 0, 637, 638, 638, 638, 638, 0, 0,
|
|
0, 638, 639, 639, 0, 0, 0, 639, 640, 640,
|
|
0, 0, 0, 640, 641, 641, 641, 0, 0, 0,
|
|
641, 642, 642, 642, 642, 0, 0, 0, 642, 643,
|
|
|
|
643, 0, 0, 0, 643, 644, 0, 644, 644, 0,
|
|
0, 0, 644, 645, 645, 645, 0, 0, 0, 645,
|
|
646, 646, 646, 646, 0, 0, 0, 646, 647, 647,
|
|
0, 0, 0, 647, 648, 0, 648, 648, 0, 0,
|
|
0, 648, 649, 649, 649, 0, 0, 0, 649, 650,
|
|
650, 650, 0, 0, 0, 0, 650, 651, 651, 0,
|
|
651, 651, 651, 0, 0, 651, 651, 651, 0, 0,
|
|
651, 651, 651, 652, 652, 0, 652, 652, 652, 0,
|
|
0, 652, 652, 652, 0, 0, 652, 652, 652, 653,
|
|
653, 0, 0, 0, 653, 654, 0, 654, 654, 0,
|
|
|
|
0, 0, 654, 655, 655, 0, 0, 0, 0, 655,
|
|
656, 656, 656, 656, 656, 656, 656, 656, 656, 656,
|
|
656, 656, 656, 656, 656, 656, 657, 657, 0, 0,
|
|
0, 657, 658, 0, 658, 658, 0, 0, 0, 658,
|
|
659, 659, 0, 0, 0, 659, 660, 0, 660, 0,
|
|
0, 0, 0, 660, 662, 662, 662, 662, 662, 662,
|
|
662, 662, 662, 662, 662, 662, 662, 662, 662, 662,
|
|
598, 598, 598, 598, 598, 598, 598, 598, 598, 598,
|
|
598, 598, 598, 598, 598, 598, 598, 598, 598, 598,
|
|
598, 598, 598, 598, 598, 598, 598, 598, 598, 598,
|
|
|
|
598, 598, 598, 598, 598, 598, 598, 598, 598, 598,
|
|
598, 598, 598, 598, 598, 598, 598, 598, 598, 598,
|
|
598, 598, 598, 598, 598, 598, 598, 598, 598, 598,
|
|
598, 598, 598, 598, 598, 598
|
|
} ;
|
|
|
|
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 "toke.l"
|
|
#define INITIAL 0
|
|
#line 2 "toke.l"
|
|
/*
|
|
* Copyright (c) 1996, 1998-2005, 2007-2011
|
|
* Todd C. Miller <Todd.Miller@courtesan.com>
|
|
*
|
|
* 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.
|
|
*
|
|
* 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.
|
|
* 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.
|
|
*/
|
|
|
|
#include <config.h>
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/param.h>
|
|
#include <sys/stat.h>
|
|
#include <stdio.h>
|
|
#ifdef STDC_HEADERS
|
|
# include <stdlib.h>
|
|
# include <stddef.h>
|
|
#else
|
|
# ifdef HAVE_STDLIB_H
|
|
# include <stdlib.h>
|
|
# endif
|
|
#endif /* STDC_HEADERS */
|
|
#ifdef HAVE_STRING_H
|
|
# include <string.h>
|
|
#endif /* HAVE_STRING_H */
|
|
#ifdef HAVE_STRINGS_H
|
|
# include <strings.h>
|
|
#endif /* HAVE_STRINGS_H */
|
|
#ifdef HAVE_UNISTD_H
|
|
# include <unistd.h>
|
|
#endif /* HAVE_UNISTD_H */
|
|
#if defined(HAVE_MALLOC_H) && !defined(STDC_HEADERS)
|
|
# include <malloc.h>
|
|
#endif /* HAVE_MALLOC_H && !STDC_HEADERS */
|
|
#ifdef HAVE_DIRENT_H
|
|
# include <dirent.h>
|
|
# define NAMLEN(dirent) strlen((dirent)->d_name)
|
|
#else
|
|
# define dirent direct
|
|
# define NAMLEN(dirent) (dirent)->d_namlen
|
|
# ifdef HAVE_SYS_NDIR_H
|
|
# include <sys/ndir.h>
|
|
# endif
|
|
# ifdef HAVE_SYS_DIR_H
|
|
# include <sys/dir.h>
|
|
# endif
|
|
# ifdef HAVE_NDIR_H
|
|
# include <ndir.h>
|
|
# endif
|
|
#endif
|
|
#include <ctype.h>
|
|
#include "sudoers.h"
|
|
#include "parse.h"
|
|
#include "toke.h"
|
|
#include <gram.h>
|
|
|
|
extern YYSTYPE yylval;
|
|
extern int parse_error;
|
|
int sudolineno;
|
|
char *sudoers;
|
|
|
|
static int continued, prev_state, sawspace;
|
|
|
|
static int _push_include(char *, int);
|
|
static int pop_include(void);
|
|
static char *parse_include(char *);
|
|
|
|
#ifdef TRACELEXER
|
|
static int sudoers_trace_print(const char *msg);
|
|
#else
|
|
# define sudoers_trace_print NULL
|
|
#endif
|
|
int (*trace_print)(const char *msg) = sudoers_trace_print;
|
|
|
|
#define push_include(_p) (_push_include((_p), FALSE))
|
|
#define push_includedir(_p) (_push_include((_p), TRUE))
|
|
#define YY_NO_INPUT 1
|
|
#define YY_NO_UNPUT 1
|
|
#define GOTDEFS 1
|
|
|
|
#define GOTCMND 2
|
|
|
|
#define STARTDEFS 3
|
|
|
|
#define INDEFS 4
|
|
|
|
#define INSTR 5
|
|
|
|
#line 1509 "lex.yy.c"
|
|
|
|
/* 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 defined(YY_STACK_USED) && 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'); \
|
|
YY_USER_ACTION
|
|
|
|
YY_DECL
|
|
{
|
|
register yy_state_type yy_current_state;
|
|
register char *yy_cp, *yy_bp;
|
|
register int yy_act;
|
|
|
|
#line 118 "toke.l"
|
|
|
|
#line 1665 "lex.yy.c"
|
|
|
|
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();
|
|
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];
|
|
if ( yy_current_state >= 599 )
|
|
yy_c = yy_meta[(unsigned int) yy_c];
|
|
}
|
|
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
|
|
++yy_cp;
|
|
}
|
|
while ( yy_base[yy_current_state] != 3671 );
|
|
|
|
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
|
|
#line 119 "toke.l"
|
|
{
|
|
LEXTRACE(", ");
|
|
return ',';
|
|
} /* return ',' */
|
|
YY_BREAK
|
|
case 2:
|
|
YY_RULE_SETUP
|
|
#line 124 "toke.l"
|
|
BEGIN STARTDEFS;
|
|
YY_BREAK
|
|
case 3:
|
|
YY_RULE_SETUP
|
|
#line 126 "toke.l"
|
|
{
|
|
BEGIN INDEFS;
|
|
LEXTRACE("DEFVAR ");
|
|
if (!fill(yytext, yyleng))
|
|
yyterminate();
|
|
return DEFVAR;
|
|
}
|
|
YY_BREAK
|
|
|
|
case 4:
|
|
YY_RULE_SETUP
|
|
#line 135 "toke.l"
|
|
{
|
|
BEGIN STARTDEFS;
|
|
LEXTRACE(", ");
|
|
return ',';
|
|
} /* return ',' */
|
|
YY_BREAK
|
|
case 5:
|
|
YY_RULE_SETUP
|
|
#line 141 "toke.l"
|
|
{
|
|
LEXTRACE("= ");
|
|
return '=';
|
|
} /* return '=' */
|
|
YY_BREAK
|
|
case 6:
|
|
YY_RULE_SETUP
|
|
#line 146 "toke.l"
|
|
{
|
|
LEXTRACE("+= ");
|
|
return '+';
|
|
} /* return '+' */
|
|
YY_BREAK
|
|
case 7:
|
|
YY_RULE_SETUP
|
|
#line 151 "toke.l"
|
|
{
|
|
LEXTRACE("-= ");
|
|
return '-';
|
|
} /* return '-' */
|
|
YY_BREAK
|
|
case 8:
|
|
YY_RULE_SETUP
|
|
#line 156 "toke.l"
|
|
{
|
|
LEXTRACE("BEGINSTR ");
|
|
yylval.string = NULL;
|
|
prev_state = YY_START;
|
|
BEGIN INSTR;
|
|
}
|
|
YY_BREAK
|
|
case 9:
|
|
YY_RULE_SETUP
|
|
#line 163 "toke.l"
|
|
{
|
|
LEXTRACE("WORD(2) ");
|
|
if (!fill(yytext, yyleng))
|
|
yyterminate();
|
|
return WORD;
|
|
}
|
|
YY_BREAK
|
|
|
|
|
|
case 10:
|
|
YY_RULE_SETUP
|
|
#line 172 "toke.l"
|
|
{
|
|
/* Line continuation char followed by newline. */
|
|
++sudolineno;
|
|
continued = TRUE;
|
|
}
|
|
YY_BREAK
|
|
case 11:
|
|
YY_RULE_SETUP
|
|
#line 178 "toke.l"
|
|
{
|
|
LEXTRACE("ENDSTR ");
|
|
BEGIN prev_state;
|
|
|
|
if (yylval.string == NULL) {
|
|
LEXTRACE("ERROR "); /* empty string */
|
|
return ERROR;
|
|
}
|
|
if (prev_state == INITIAL) {
|
|
switch (yylval.string[0]) {
|
|
case '%':
|
|
if (yylval.string[1] == '\0' ||
|
|
(yylval.string[1] == ':' &&
|
|
yylval.string[2] == '\0')) {
|
|
LEXTRACE("ERROR "); /* empty group */
|
|
return ERROR;
|
|
}
|
|
LEXTRACE("USERGROUP ");
|
|
return USERGROUP;
|
|
case '+':
|
|
if (yylval.string[1] == '\0') {
|
|
LEXTRACE("ERROR "); /* empty netgroup */
|
|
return ERROR;
|
|
}
|
|
LEXTRACE("NETGROUP ");
|
|
return NETGROUP;
|
|
}
|
|
}
|
|
LEXTRACE("WORD(4) ");
|
|
return WORD;
|
|
}
|
|
YY_BREAK
|
|
case 12:
|
|
YY_RULE_SETUP
|
|
#line 210 "toke.l"
|
|
{
|
|
LEXTRACE("BACKSLASH ");
|
|
if (!append(yytext, yyleng))
|
|
yyterminate();
|
|
}
|
|
YY_BREAK
|
|
case 13:
|
|
YY_RULE_SETUP
|
|
#line 216 "toke.l"
|
|
{
|
|
LEXTRACE("STRBODY ");
|
|
if (!append(yytext, yyleng))
|
|
yyterminate();
|
|
}
|
|
YY_BREAK
|
|
|
|
|
|
case 14:
|
|
YY_RULE_SETUP
|
|
#line 224 "toke.l"
|
|
{
|
|
/* quoted fnmatch glob char, pass verbatim */
|
|
LEXTRACE("QUOTEDCHAR ");
|
|
if (!fill_args(yytext, 2, sawspace))
|
|
yyterminate();
|
|
sawspace = FALSE;
|
|
}
|
|
YY_BREAK
|
|
case 15:
|
|
YY_RULE_SETUP
|
|
#line 232 "toke.l"
|
|
{
|
|
/* quoted sudoers special char, strip backslash */
|
|
LEXTRACE("QUOTEDCHAR ");
|
|
if (!fill_args(yytext + 1, 1, sawspace))
|
|
yyterminate();
|
|
sawspace = FALSE;
|
|
}
|
|
YY_BREAK
|
|
case 16:
|
|
YY_RULE_SETUP
|
|
#line 240 "toke.l"
|
|
{
|
|
BEGIN INITIAL;
|
|
yyless(0);
|
|
return COMMAND;
|
|
} /* end of command line args */
|
|
YY_BREAK
|
|
case 17:
|
|
YY_RULE_SETUP
|
|
#line 246 "toke.l"
|
|
{
|
|
LEXTRACE("ARG ");
|
|
if (!fill_args(yytext, yyleng, sawspace))
|
|
yyterminate();
|
|
sawspace = FALSE;
|
|
} /* a command line arg */
|
|
YY_BREAK
|
|
|
|
case 18:
|
|
YY_RULE_SETUP
|
|
#line 254 "toke.l"
|
|
{
|
|
char *path;
|
|
|
|
if (continued) {
|
|
LEXTRACE("ERROR ");
|
|
return ERROR;
|
|
}
|
|
|
|
if ((path = parse_include(yytext)) == NULL)
|
|
yyterminate();
|
|
|
|
LEXTRACE("INCLUDE\n");
|
|
|
|
/* Push current buffer and switch to include file */
|
|
if (!push_include(path))
|
|
yyterminate();
|
|
}
|
|
YY_BREAK
|
|
case 19:
|
|
YY_RULE_SETUP
|
|
#line 272 "toke.l"
|
|
{
|
|
char *path;
|
|
|
|
if (continued) {
|
|
LEXTRACE("ERROR ");
|
|
return ERROR;
|
|
}
|
|
|
|
if ((path = parse_include(yytext)) == NULL)
|
|
yyterminate();
|
|
|
|
LEXTRACE("INCLUDEDIR\n");
|
|
|
|
/*
|
|
* Push current buffer and switch to include file.
|
|
* We simply ignore empty directories.
|
|
*/
|
|
if (!push_includedir(path) && parse_error)
|
|
yyterminate();
|
|
}
|
|
YY_BREAK
|
|
case 20:
|
|
YY_RULE_SETUP
|
|
#line 293 "toke.l"
|
|
{
|
|
char deftype;
|
|
int n;
|
|
|
|
if (continued) {
|
|
LEXTRACE("ERROR ");
|
|
return ERROR;
|
|
}
|
|
|
|
for (n = 0; isblank((unsigned char)yytext[n]); n++)
|
|
continue;
|
|
n += sizeof("Defaults") - 1;
|
|
if ((deftype = yytext[n++]) != '\0') {
|
|
while (isblank((unsigned char)yytext[n]))
|
|
n++;
|
|
}
|
|
BEGIN GOTDEFS;
|
|
switch (deftype) {
|
|
case ':':
|
|
yyless(n);
|
|
LEXTRACE("DEFAULTS_USER ");
|
|
return DEFAULTS_USER;
|
|
case '>':
|
|
yyless(n);
|
|
LEXTRACE("DEFAULTS_RUNAS ");
|
|
return DEFAULTS_RUNAS;
|
|
case '@':
|
|
yyless(n);
|
|
LEXTRACE("DEFAULTS_HOST ");
|
|
return DEFAULTS_HOST;
|
|
case '!':
|
|
yyless(n);
|
|
LEXTRACE("DEFAULTS_CMND ");
|
|
return DEFAULTS_CMND;
|
|
default:
|
|
LEXTRACE("DEFAULTS ");
|
|
return DEFAULTS;
|
|
}
|
|
}
|
|
YY_BREAK
|
|
case 21:
|
|
YY_RULE_SETUP
|
|
#line 333 "toke.l"
|
|
{
|
|
int n;
|
|
|
|
if (continued) {
|
|
LEXTRACE("ERROR ");
|
|
return ERROR;
|
|
}
|
|
|
|
for (n = 0; isblank((unsigned char)yytext[n]); n++)
|
|
continue;
|
|
switch (yytext[n]) {
|
|
case 'H':
|
|
LEXTRACE("HOSTALIAS ");
|
|
return HOSTALIAS;
|
|
case 'C':
|
|
LEXTRACE("CMNDALIAS ");
|
|
return CMNDALIAS;
|
|
case 'U':
|
|
LEXTRACE("USERALIAS ");
|
|
return USERALIAS;
|
|
case 'R':
|
|
LEXTRACE("RUNASALIAS ");
|
|
return RUNASALIAS;
|
|
}
|
|
}
|
|
YY_BREAK
|
|
case 22:
|
|
YY_RULE_SETUP
|
|
#line 359 "toke.l"
|
|
{
|
|
/* cmnd does not require passwd for this user */
|
|
LEXTRACE("NOPASSWD ");
|
|
return NOPASSWD;
|
|
}
|
|
YY_BREAK
|
|
case 23:
|
|
YY_RULE_SETUP
|
|
#line 365 "toke.l"
|
|
{
|
|
/* cmnd requires passwd for this user */
|
|
LEXTRACE("PASSWD ");
|
|
return PASSWD;
|
|
}
|
|
YY_BREAK
|
|
case 24:
|
|
YY_RULE_SETUP
|
|
#line 371 "toke.l"
|
|
{
|
|
LEXTRACE("NOEXEC ");
|
|
return NOEXEC;
|
|
}
|
|
YY_BREAK
|
|
case 25:
|
|
YY_RULE_SETUP
|
|
#line 376 "toke.l"
|
|
{
|
|
LEXTRACE("EXEC ");
|
|
return EXEC;
|
|
}
|
|
YY_BREAK
|
|
case 26:
|
|
YY_RULE_SETUP
|
|
#line 381 "toke.l"
|
|
{
|
|
LEXTRACE("SETENV ");
|
|
return SETENV;
|
|
}
|
|
YY_BREAK
|
|
case 27:
|
|
YY_RULE_SETUP
|
|
#line 386 "toke.l"
|
|
{
|
|
LEXTRACE("NOSETENV ");
|
|
return NOSETENV;
|
|
}
|
|
YY_BREAK
|
|
case 28:
|
|
YY_RULE_SETUP
|
|
#line 391 "toke.l"
|
|
{
|
|
LEXTRACE("LOG_OUTPUT ");
|
|
return LOG_OUTPUT;
|
|
}
|
|
YY_BREAK
|
|
case 29:
|
|
YY_RULE_SETUP
|
|
#line 396 "toke.l"
|
|
{
|
|
LEXTRACE("NOLOG_OUTPUT ");
|
|
return NOLOG_OUTPUT;
|
|
}
|
|
YY_BREAK
|
|
case 30:
|
|
YY_RULE_SETUP
|
|
#line 401 "toke.l"
|
|
{
|
|
LEXTRACE("LOG_INPUT ");
|
|
return LOG_INPUT;
|
|
}
|
|
YY_BREAK
|
|
case 31:
|
|
YY_RULE_SETUP
|
|
#line 406 "toke.l"
|
|
{
|
|
LEXTRACE("NOLOG_INPUT ");
|
|
return NOLOG_INPUT;
|
|
}
|
|
YY_BREAK
|
|
case 32:
|
|
YY_RULE_SETUP
|
|
#line 411 "toke.l"
|
|
{
|
|
/* empty group or netgroup */
|
|
LEXTRACE("ERROR ");
|
|
return ERROR;
|
|
}
|
|
YY_BREAK
|
|
case 33:
|
|
YY_RULE_SETUP
|
|
#line 417 "toke.l"
|
|
{
|
|
/* netgroup */
|
|
if (!fill(yytext, yyleng))
|
|
yyterminate();
|
|
LEXTRACE("NETGROUP ");
|
|
return NETGROUP;
|
|
}
|
|
YY_BREAK
|
|
case 34:
|
|
YY_RULE_SETUP
|
|
#line 425 "toke.l"
|
|
{
|
|
/* group */
|
|
if (!fill(yytext, yyleng))
|
|
yyterminate();
|
|
LEXTRACE("USERGROUP ");
|
|
return USERGROUP;
|
|
}
|
|
YY_BREAK
|
|
case 35:
|
|
YY_RULE_SETUP
|
|
#line 433 "toke.l"
|
|
{
|
|
if (!fill(yytext, yyleng))
|
|
yyterminate();
|
|
LEXTRACE("NTWKADDR ");
|
|
return NTWKADDR;
|
|
}
|
|
YY_BREAK
|
|
case 36:
|
|
YY_RULE_SETUP
|
|
#line 440 "toke.l"
|
|
{
|
|
if (!fill(yytext, yyleng))
|
|
yyterminate();
|
|
LEXTRACE("NTWKADDR ");
|
|
return NTWKADDR;
|
|
}
|
|
YY_BREAK
|
|
case 37:
|
|
YY_RULE_SETUP
|
|
#line 447 "toke.l"
|
|
{
|
|
if (!ipv6_valid(yytext)) {
|
|
LEXTRACE("ERROR ");
|
|
return ERROR;
|
|
}
|
|
if (!fill(yytext, yyleng))
|
|
yyterminate();
|
|
LEXTRACE("NTWKADDR ");
|
|
return NTWKADDR;
|
|
}
|
|
YY_BREAK
|
|
case 38:
|
|
YY_RULE_SETUP
|
|
#line 458 "toke.l"
|
|
{
|
|
if (!ipv6_valid(yytext)) {
|
|
LEXTRACE("ERROR ");
|
|
return ERROR;
|
|
}
|
|
if (!fill(yytext, yyleng))
|
|
yyterminate();
|
|
LEXTRACE("NTWKADDR ");
|
|
return NTWKADDR;
|
|
}
|
|
YY_BREAK
|
|
case 39:
|
|
YY_RULE_SETUP
|
|
#line 469 "toke.l"
|
|
{
|
|
if (strcmp(yytext, "ALL") == 0) {
|
|
LEXTRACE("ALL ");
|
|
return ALL;
|
|
}
|
|
#ifdef HAVE_SELINUX
|
|
/* XXX - restrict type/role to initial state */
|
|
if (strcmp(yytext, "TYPE") == 0) {
|
|
LEXTRACE("TYPE ");
|
|
return TYPE;
|
|
}
|
|
if (strcmp(yytext, "ROLE") == 0) {
|
|
LEXTRACE("ROLE ");
|
|
return ROLE;
|
|
}
|
|
#endif /* HAVE_SELINUX */
|
|
if (!fill(yytext, yyleng))
|
|
yyterminate();
|
|
LEXTRACE("ALIAS ");
|
|
return ALIAS;
|
|
}
|
|
YY_BREAK
|
|
case 40:
|
|
YY_RULE_SETUP
|
|
#line 491 "toke.l"
|
|
{
|
|
/* no command args allowed for Defaults!/path */
|
|
if (!fill_cmnd(yytext, yyleng))
|
|
yyterminate();
|
|
LEXTRACE("COMMAND ");
|
|
return COMMAND;
|
|
}
|
|
YY_BREAK
|
|
case 41:
|
|
YY_RULE_SETUP
|
|
#line 499 "toke.l"
|
|
{
|
|
BEGIN GOTCMND;
|
|
LEXTRACE("COMMAND ");
|
|
if (!fill_cmnd(yytext, yyleng))
|
|
yyterminate();
|
|
} /* sudo -e */
|
|
YY_BREAK
|
|
case 42:
|
|
YY_RULE_SETUP
|
|
#line 506 "toke.l"
|
|
{
|
|
/* directories can't have args... */
|
|
if (yytext[yyleng - 1] == '/') {
|
|
LEXTRACE("COMMAND ");
|
|
if (!fill_cmnd(yytext, yyleng))
|
|
yyterminate();
|
|
return COMMAND;
|
|
} else {
|
|
BEGIN GOTCMND;
|
|
LEXTRACE("COMMAND ");
|
|
if (!fill_cmnd(yytext, yyleng))
|
|
yyterminate();
|
|
}
|
|
} /* a pathname */
|
|
YY_BREAK
|
|
case 43:
|
|
YY_RULE_SETUP
|
|
#line 521 "toke.l"
|
|
{
|
|
LEXTRACE("BEGINSTR ");
|
|
yylval.string = NULL;
|
|
prev_state = YY_START;
|
|
BEGIN INSTR;
|
|
}
|
|
YY_BREAK
|
|
case 44:
|
|
YY_RULE_SETUP
|
|
#line 528 "toke.l"
|
|
{
|
|
/* a word */
|
|
if (!fill(yytext, yyleng))
|
|
yyterminate();
|
|
LEXTRACE("WORD(5) ");
|
|
return WORD;
|
|
}
|
|
YY_BREAK
|
|
case 45:
|
|
YY_RULE_SETUP
|
|
#line 536 "toke.l"
|
|
{
|
|
LEXTRACE("( ");
|
|
return '(';
|
|
}
|
|
YY_BREAK
|
|
case 46:
|
|
YY_RULE_SETUP
|
|
#line 541 "toke.l"
|
|
{
|
|
LEXTRACE(") ");
|
|
return ')';
|
|
}
|
|
YY_BREAK
|
|
case 47:
|
|
YY_RULE_SETUP
|
|
#line 546 "toke.l"
|
|
{
|
|
LEXTRACE(", ");
|
|
return ',';
|
|
} /* return ',' */
|
|
YY_BREAK
|
|
case 48:
|
|
YY_RULE_SETUP
|
|
#line 551 "toke.l"
|
|
{
|
|
LEXTRACE("= ");
|
|
return '=';
|
|
} /* return '=' */
|
|
YY_BREAK
|
|
case 49:
|
|
YY_RULE_SETUP
|
|
#line 556 "toke.l"
|
|
{
|
|
LEXTRACE(": ");
|
|
return ':';
|
|
} /* return ':' */
|
|
YY_BREAK
|
|
case 50:
|
|
YY_RULE_SETUP
|
|
#line 561 "toke.l"
|
|
{
|
|
if (yyleng & 1) {
|
|
LEXTRACE("!");
|
|
return '!'; /* return '!' */
|
|
}
|
|
}
|
|
YY_BREAK
|
|
case 51:
|
|
YY_RULE_SETUP
|
|
#line 568 "toke.l"
|
|
{
|
|
if (YY_START == INSTR) {
|
|
LEXTRACE("ERROR ");
|
|
return ERROR; /* line break in string */
|
|
}
|
|
BEGIN INITIAL;
|
|
++sudolineno;
|
|
continued = FALSE;
|
|
LEXTRACE("\n");
|
|
return COMMENT;
|
|
} /* return newline */
|
|
YY_BREAK
|
|
case 52:
|
|
YY_RULE_SETUP
|
|
#line 580 "toke.l"
|
|
{ /* throw away space/tabs */
|
|
sawspace = TRUE; /* but remember for fill_args */
|
|
}
|
|
YY_BREAK
|
|
case 53:
|
|
YY_RULE_SETUP
|
|
#line 584 "toke.l"
|
|
{
|
|
sawspace = TRUE; /* remember for fill_args */
|
|
++sudolineno;
|
|
continued = TRUE;
|
|
} /* throw away EOL after \ */
|
|
YY_BREAK
|
|
case 54:
|
|
YY_RULE_SETUP
|
|
#line 590 "toke.l"
|
|
{
|
|
BEGIN INITIAL;
|
|
++sudolineno;
|
|
continued = FALSE;
|
|
LEXTRACE("#\n");
|
|
return COMMENT;
|
|
} /* comment, not uid/gid */
|
|
YY_BREAK
|
|
case 55:
|
|
YY_RULE_SETUP
|
|
#line 598 "toke.l"
|
|
{
|
|
LEXTRACE("ERROR ");
|
|
return ERROR;
|
|
} /* parse error */
|
|
YY_BREAK
|
|
case YY_STATE_EOF(INITIAL):
|
|
case YY_STATE_EOF(GOTDEFS):
|
|
case YY_STATE_EOF(GOTCMND):
|
|
case YY_STATE_EOF(STARTDEFS):
|
|
case YY_STATE_EOF(INDEFS):
|
|
case YY_STATE_EOF(INSTR):
|
|
#line 603 "toke.l"
|
|
{
|
|
if (YY_START != INITIAL) {
|
|
BEGIN INITIAL;
|
|
LEXTRACE("ERROR ");
|
|
return ERROR;
|
|
}
|
|
if (!pop_include())
|
|
yyterminate();
|
|
}
|
|
YY_BREAK
|
|
case 56:
|
|
YY_RULE_SETUP
|
|
#line 613 "toke.l"
|
|
ECHO;
|
|
YY_BREAK
|
|
#line 2420 "lex.yy.c"
|
|
|
|
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();
|
|
|
|
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];
|
|
if ( yy_current_state >= 599 )
|
|
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];
|
|
if ( yy_current_state >= 599 )
|
|
yy_c = yy_meta[(unsigned int) yy_c];
|
|
}
|
|
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
|
|
yy_is_jam = (yy_current_state == 598);
|
|
|
|
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 */
|
|
|
|
|
|
#ifndef YY_NO_INPUT
|
|
#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');
|
|
|
|
return c;
|
|
}
|
|
#endif /* ifndef YY_NO_INPUT */
|
|
|
|
|
|
#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
|
|
#include <unistd.h>
|
|
#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;
|
|
|
|
yy_flush_buffer( b );
|
|
|
|
b->yy_input_file = file;
|
|
b->yy_fill_buffer = 1;
|
|
|
|
#if defined(YY_ALWAYS_INTERACTIVE) && YY_ALWAYS_INTERACTIVE
|
|
b->yy_is_interactive = 1;
|
|
#else
|
|
#if defined(YY_NEVER_INTERACTIVE) && YY_NEVER_INTERACTIVE
|
|
b->yy_is_interactive = 0;
|
|
#else
|
|
b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
|
|
#endif
|
|
#endif
|
|
errno = oerrno;
|
|
}
|
|
|
|
|
|
#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 defined(YY_MAIN) && YY_MAIN
|
|
int main()
|
|
{
|
|
yylex();
|
|
return 0;
|
|
}
|
|
#endif
|
|
#line 613 "toke.l"
|
|
|
|
struct path_list {
|
|
char *path;
|
|
struct path_list *next;
|
|
};
|
|
|
|
struct include_stack {
|
|
YY_BUFFER_STATE bs;
|
|
char *path;
|
|
struct path_list *more; /* more files in case of includedir */
|
|
int lineno;
|
|
int keepopen;
|
|
};
|
|
|
|
static int
|
|
pl_compare(const void *v1, const void *v2)
|
|
{
|
|
const struct path_list * const *p1 = v1;
|
|
const struct path_list * const *p2 = v2;
|
|
|
|
return strcmp((*p1)->path, (*p2)->path);
|
|
}
|
|
|
|
static char *
|
|
switch_dir(struct include_stack *stack, char *dirpath)
|
|
{
|
|
DIR *dir;
|
|
int i, count = 0;
|
|
char *path = NULL;
|
|
struct dirent *dent;
|
|
struct stat sb;
|
|
struct path_list *pl, *first = NULL;
|
|
struct path_list **sorted = NULL;
|
|
|
|
if (!(dir = opendir(dirpath))) {
|
|
yyerror(dirpath);
|
|
return NULL;
|
|
}
|
|
while ((dent = readdir(dir))) {
|
|
/* Ignore files that end in '~' or have a '.' in them. */
|
|
if (dent->d_name[0] == '\0' || dent->d_name[NAMLEN(dent) - 1] == '~'
|
|
|| strchr(dent->d_name, '.') != NULL) {
|
|
continue;
|
|
}
|
|
if (asprintf(&path, "%s/%s", dirpath, dent->d_name) == -1) {
|
|
closedir(dir);
|
|
goto bad;
|
|
}
|
|
if (stat(path, &sb) != 0 || !S_ISREG(sb.st_mode)) {
|
|
efree(path);
|
|
path = NULL;
|
|
continue;
|
|
}
|
|
pl = malloc(sizeof(*pl));
|
|
if (pl == NULL)
|
|
goto bad;
|
|
pl->path = path;
|
|
pl->next = first;
|
|
first = pl;
|
|
count++;
|
|
}
|
|
closedir(dir);
|
|
|
|
if (count == 0)
|
|
goto done;
|
|
|
|
/* Sort the list as an array. */
|
|
sorted = malloc(sizeof(*sorted) * count);
|
|
if (sorted == NULL)
|
|
goto bad;
|
|
pl = first;
|
|
for (i = 0; i < count; i++) {
|
|
sorted[i] = pl;
|
|
pl = pl->next;
|
|
}
|
|
qsort(sorted, count, sizeof(*sorted), pl_compare);
|
|
|
|
/* Apply sorting to the list. */
|
|
first = sorted[0];
|
|
sorted[count - 1]->next = NULL;
|
|
for (i = 1; i < count; i++)
|
|
sorted[i - 1]->next = sorted[i];
|
|
efree(sorted);
|
|
|
|
/* Pull out the first element for parsing, leave the rest for later. */
|
|
if (count) {
|
|
path = first->path;
|
|
pl = first->next;
|
|
efree(first);
|
|
stack->more = pl;
|
|
} else {
|
|
path = NULL;
|
|
}
|
|
done:
|
|
efree(dirpath);
|
|
return path;
|
|
bad:
|
|
while (first != NULL) {
|
|
pl = first;
|
|
first = pl->next;
|
|
free(pl->path);
|
|
free(pl);
|
|
}
|
|
efree(sorted);
|
|
efree(dirpath);
|
|
efree(path);
|
|
return NULL;
|
|
}
|
|
|
|
#define MAX_SUDOERS_DEPTH 128
|
|
#define SUDOERS_STACK_INCREMENT 16
|
|
|
|
static size_t istacksize, idepth;
|
|
static struct include_stack *istack;
|
|
static int keepopen;
|
|
|
|
void
|
|
init_lexer(void)
|
|
{
|
|
struct path_list *pl;
|
|
|
|
while (idepth) {
|
|
idepth--;
|
|
while ((pl = istack[idepth].more) != NULL) {
|
|
istack[idepth].more = pl->next;
|
|
efree(pl->path);
|
|
efree(pl);
|
|
}
|
|
efree(istack[idepth].path);
|
|
if (idepth && !istack[idepth].keepopen)
|
|
fclose(istack[idepth].bs->yy_input_file);
|
|
yy_delete_buffer(istack[idepth].bs);
|
|
}
|
|
efree(istack);
|
|
istack = NULL;
|
|
istacksize = idepth = 0;
|
|
sudolineno = 1;
|
|
keepopen = FALSE;
|
|
sawspace = FALSE;
|
|
continued = FALSE;
|
|
prev_state = INITIAL;
|
|
}
|
|
|
|
static int
|
|
_push_include(char *path, int isdir)
|
|
{
|
|
struct path_list *pl;
|
|
FILE *fp;
|
|
|
|
/* push current state onto stack */
|
|
if (idepth >= istacksize) {
|
|
if (idepth > MAX_SUDOERS_DEPTH) {
|
|
yyerror("too many levels of includes");
|
|
return FALSE;
|
|
}
|
|
istacksize += SUDOERS_STACK_INCREMENT;
|
|
istack = (struct include_stack *) realloc(istack,
|
|
sizeof(*istack) * istacksize);
|
|
if (istack == NULL) {
|
|
yyerror("unable to allocate memory");
|
|
return FALSE;
|
|
}
|
|
}
|
|
if (isdir) {
|
|
if (!(path = switch_dir(&istack[idepth], path))) {
|
|
/* switch_dir() called yyerror() for us */
|
|
return FALSE;
|
|
}
|
|
while ((fp = open_sudoers(path, FALSE, &keepopen)) == NULL) {
|
|
/* Unable to open path in includedir, go to next one, if any. */
|
|
efree(path);
|
|
if ((pl = istack[idepth].more) == NULL)
|
|
return FALSE;
|
|
path = pl->path;
|
|
istack[idepth].more = pl->next;
|
|
efree(pl);
|
|
}
|
|
} else {
|
|
if ((fp = open_sudoers(path, TRUE, &keepopen)) == NULL) {
|
|
yyerror(path);
|
|
return FALSE;
|
|
}
|
|
istack[idepth].more = NULL;
|
|
}
|
|
/* Push the old (current) file and open the new one. */
|
|
istack[idepth].path = sudoers; /* push old path */
|
|
istack[idepth].bs = YY_CURRENT_BUFFER;
|
|
istack[idepth].lineno = sudolineno;
|
|
istack[idepth].keepopen = keepopen;
|
|
idepth++;
|
|
sudolineno = 1;
|
|
sudoers = path;
|
|
yy_switch_to_buffer(yy_create_buffer(fp, YY_BUF_SIZE));
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
static int
|
|
pop_include(void)
|
|
{
|
|
struct path_list *pl;
|
|
FILE *fp;
|
|
|
|
if (idepth == 0)
|
|
return FALSE;
|
|
|
|
if (!keepopen)
|
|
fclose(YY_CURRENT_BUFFER->yy_input_file);
|
|
yy_delete_buffer(YY_CURRENT_BUFFER);
|
|
/* If we are in an include dir, move to the next file. */
|
|
while ((pl = istack[idepth - 1].more) != NULL) {
|
|
fp = open_sudoers(pl->path, FALSE, &keepopen);
|
|
if (fp != NULL) {
|
|
istack[idepth - 1].more = pl->next;
|
|
efree(sudoers);
|
|
sudoers = pl->path;
|
|
sudolineno = 1;
|
|
yy_switch_to_buffer(yy_create_buffer(fp, YY_BUF_SIZE));
|
|
efree(pl);
|
|
break;
|
|
}
|
|
/* Unable to open path in include dir, go to next one. */
|
|
istack[idepth - 1].more = pl->next;
|
|
efree(pl->path);
|
|
efree(pl);
|
|
}
|
|
/* If no path list, just pop the last dir on the stack. */
|
|
if (pl == NULL) {
|
|
idepth--;
|
|
yy_switch_to_buffer(istack[idepth].bs);
|
|
efree(sudoers);
|
|
sudoers = istack[idepth].path;
|
|
sudolineno = istack[idepth].lineno;
|
|
keepopen = istack[idepth].keepopen;
|
|
}
|
|
return TRUE;
|
|
}
|
|
|
|
static char *
|
|
parse_include(char *base)
|
|
{
|
|
char *cp, *ep, *path;
|
|
int len = 0, subst = 0;
|
|
size_t shost_len = 0;
|
|
|
|
/* Pull out path from #include line. */
|
|
cp = base + sizeof("#include");
|
|
if (*cp == 'i')
|
|
cp += 3; /* includedir */
|
|
while (isblank((unsigned char) *cp))
|
|
cp++;
|
|
ep = cp;
|
|
while (*ep != '\0' && !isspace((unsigned char) *ep)) {
|
|
if (ep[0] == '%' && ep[1] == 'h') {
|
|
shost_len = strlen(user_shost);
|
|
len += shost_len - 2;
|
|
subst = 1;
|
|
}
|
|
ep++;
|
|
}
|
|
|
|
/* Make a copy of path and return it. */
|
|
len += (int)(ep - cp);
|
|
if ((path = malloc(len + 1)) == NULL)
|
|
yyerror("unable to allocate memory");
|
|
if (subst) {
|
|
/* substitute for %h */
|
|
char *pp = path;
|
|
while (cp < ep) {
|
|
if (cp[0] == '%' && cp[1] == 'h') {
|
|
memcpy(pp, user_shost, shost_len);
|
|
pp += shost_len;
|
|
cp += 2;
|
|
continue;
|
|
}
|
|
*pp++ = *cp++;
|
|
}
|
|
*pp = '\0';
|
|
} else {
|
|
memcpy(path, cp, len);
|
|
path[len] = '\0';
|
|
}
|
|
|
|
/* Push any excess characters (e.g. comment, newline) back to the lexer */
|
|
if (*ep != '\0')
|
|
yyless((int)(ep - base));
|
|
|
|
return path;
|
|
}
|
|
|
|
#ifdef TRACELEXER
|
|
static int
|
|
sudoers_trace_print(const char *msg)
|
|
{
|
|
return fputs(msg, stderr);
|
|
}
|
|
#endif /* TRACELEXER */
|