2007-06-23 23:58:54 +00:00
|
|
|
/* $OpenBSD: flex.skl,v 1.10 2007/01/26 14:38:19 tsi Exp $ */
|
1999-01-17 21:42:12 +00:00
|
|
|
|
|
|
|
/* A lexical scanner generated by flex */
|
|
|
|
|
|
|
|
/* Scanner skeleton version:
|
|
|
|
* $Header$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define FLEX_SCANNER
|
|
|
|
#define YY_FLEX_MAJOR_VERSION 2
|
|
|
|
#define YY_FLEX_MINOR_VERSION 5
|
|
|
|
|
|
|
|
#include <stdio.h>
|
2001-01-07 18:55:32 +00:00
|
|
|
#include <errno.h>
|
1999-01-17 21:42:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
|
|
|
|
#ifdef c_plusplus
|
|
|
|
#ifndef __cplusplus
|
|
|
|
#define __cplusplus
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
|
|
|
|
/* Use prototypes in function declarations. */
|
|
|
|
#define YY_USE_PROTOS
|
|
|
|
|
|
|
|
/* The "const" storage-class-modifier is valid. */
|
|
|
|
#define YY_USE_CONST
|
|
|
|
|
|
|
|
#else /* ! __cplusplus */
|
|
|
|
|
|
|
|
#ifdef __STDC__
|
|
|
|
|
|
|
|
#define YY_USE_PROTOS
|
|
|
|
#define YY_USE_CONST
|
|
|
|
|
|
|
|
#endif /* __STDC__ */
|
|
|
|
#endif /* ! __cplusplus */
|
|
|
|
|
|
|
|
#ifdef __TURBOC__
|
|
|
|
#pragma warn -rch
|
|
|
|
#pragma warn -use
|
|
|
|
#include <io.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#define YY_USE_CONST
|
|
|
|
#define YY_USE_PROTOS
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef YY_USE_CONST
|
|
|
|
#define yyconst const
|
|
|
|
#else
|
|
|
|
#define yyconst
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef YY_USE_PROTOS
|
|
|
|
#define YY_PROTO(proto) proto
|
|
|
|
#else
|
|
|
|
#define YY_PROTO(proto) ()
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Returned upon end-of-file. */
|
|
|
|
#define YY_NULL 0
|
|
|
|
|
|
|
|
/* Promotes a possibly negative, possibly signed char to an unsigned
|
|
|
|
* integer for use as an array index. If the signed char is negative,
|
|
|
|
* we want to instead treat it as an 8-bit unsigned char, hence the
|
|
|
|
* double cast.
|
|
|
|
*/
|
|
|
|
#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
|
|
|
|
|
|
|
|
/* Enter a start condition. This macro really ought to take a parameter,
|
|
|
|
* but we do it the disgusting crufty way forced on us by the ()-less
|
|
|
|
* definition of BEGIN.
|
|
|
|
*/
|
|
|
|
#define BEGIN yy_start = 1 + 2 *
|
|
|
|
|
|
|
|
/* Translate the current start state into a value that can be later handed
|
|
|
|
* to BEGIN to return to the state. The YYSTATE alias is for lex
|
|
|
|
* compatibility.
|
|
|
|
*/
|
|
|
|
#define YY_START ((yy_start - 1) / 2)
|
|
|
|
#define YYSTATE YY_START
|
|
|
|
|
|
|
|
/* Action number for EOF rule of a given start state. */
|
|
|
|
#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
|
|
|
|
|
|
|
|
/* Special action meaning "start processing a new file". */
|
|
|
|
#define YY_NEW_FILE yyrestart( yyin )
|
|
|
|
|
|
|
|
#define YY_END_OF_BUFFER_CHAR 0
|
|
|
|
|
|
|
|
/* Size of default input buffer. */
|
|
|
|
#define YY_BUF_SIZE 16384
|
|
|
|
|
|
|
|
typedef struct yy_buffer_state *YY_BUFFER_STATE;
|
|
|
|
|
|
|
|
extern int yyleng;
|
|
|
|
extern FILE *yyin, *yyout;
|
|
|
|
|
|
|
|
#define EOB_ACT_CONTINUE_SCAN 0
|
|
|
|
#define EOB_ACT_END_OF_FILE 1
|
|
|
|
#define EOB_ACT_LAST_MATCH 2
|
|
|
|
|
|
|
|
/* The funky do-while in the following #define is used to turn the definition
|
|
|
|
* int a single C statement (which needs a semi-colon terminator). This
|
|
|
|
* avoids problems with code like:
|
|
|
|
*
|
|
|
|
* if ( condition_holds )
|
|
|
|
* yyless( 5 );
|
|
|
|
* else
|
|
|
|
* do_something_else();
|
|
|
|
*
|
|
|
|
* Prior to using the do-while the compiler would get upset at the
|
|
|
|
* "else" because it interpreted the "if" statement as being all
|
|
|
|
* done when it reached the ';' after the yyless() call.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Return all but the first 'n' matched characters back to the input stream. */
|
|
|
|
|
|
|
|
#define yyless(n) \
|
|
|
|
do \
|
|
|
|
{ \
|
|
|
|
/* Undo effects of setting up yytext. */ \
|
|
|
|
*yy_cp = yy_hold_char; \
|
|
|
|
YY_RESTORE_YY_MORE_OFFSET \
|
|
|
|
yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
|
|
|
|
YY_DO_BEFORE_ACTION; /* set up yytext again */ \
|
|
|
|
} \
|
|
|
|
while ( 0 )
|
|
|
|
|
|
|
|
#define unput(c) yyunput( c, yytext_ptr )
|
|
|
|
|
|
|
|
/* The following is because we cannot portably get our hands on size_t
|
|
|
|
* (without autoconf's help, which isn't available because we want
|
|
|
|
* flex-generated scanners to compile on their own).
|
|
|
|
*/
|
|
|
|
typedef unsigned int yy_size_t;
|
|
|
|
|
|
|
|
|
|
|
|
struct yy_buffer_state
|
|
|
|
{
|
|
|
|
FILE *yy_input_file;
|
|
|
|
|
|
|
|
char *yy_ch_buf; /* input buffer */
|
|
|
|
char *yy_buf_pos; /* current position in input buffer */
|
|
|
|
|
|
|
|
/* Size of input buffer in bytes, not including room for EOB
|
|
|
|
* characters.
|
|
|
|
*/
|
|
|
|
yy_size_t yy_buf_size;
|
|
|
|
|
|
|
|
/* Number of characters read into yy_ch_buf, not including EOB
|
|
|
|
* characters.
|
|
|
|
*/
|
|
|
|
int yy_n_chars;
|
|
|
|
|
|
|
|
/* Whether we "own" the buffer - i.e., we know we created it,
|
|
|
|
* and can realloc() it to grow it, and should free() it to
|
|
|
|
* delete it.
|
|
|
|
*/
|
|
|
|
int yy_is_our_buffer;
|
|
|
|
|
|
|
|
/* Whether this is an "interactive" input source; if so, and
|
|
|
|
* if we're using stdio for input, then we want to use getc()
|
|
|
|
* instead of fread(), to make sure we stop fetching input after
|
|
|
|
* each newline.
|
|
|
|
*/
|
|
|
|
int yy_is_interactive;
|
|
|
|
|
|
|
|
/* Whether we're considered to be at the beginning of a line.
|
|
|
|
* If so, '^' rules will be active on the next match, otherwise
|
|
|
|
* not.
|
|
|
|
*/
|
|
|
|
int yy_at_bol;
|
|
|
|
|
|
|
|
/* Whether to try to fill the input buffer when we reach the
|
|
|
|
* end of it.
|
|
|
|
*/
|
|
|
|
int yy_fill_buffer;
|
|
|
|
|
|
|
|
int yy_buffer_status;
|
|
|
|
#define YY_BUFFER_NEW 0
|
|
|
|
#define YY_BUFFER_NORMAL 1
|
|
|
|
/* When an EOF's been seen but there's still some text to process
|
|
|
|
* then we mark the buffer as YY_EOF_PENDING, to indicate that we
|
|
|
|
* shouldn't try reading from the input source any more. We might
|
|
|
|
* still have a bunch of tokens to match, though, because of
|
|
|
|
* possible backing-up.
|
|
|
|
*
|
|
|
|
* When we actually see the EOF, we change the status to "new"
|
|
|
|
* (via yyrestart()), so that the user can continue scanning by
|
|
|
|
* just pointing yyin at a new input file.
|
|
|
|
*/
|
|
|
|
#define YY_BUFFER_EOF_PENDING 2
|
|
|
|
};
|
|
|
|
|
|
|
|
static YY_BUFFER_STATE yy_current_buffer = 0;
|
|
|
|
|
|
|
|
/* We provide macros for accessing buffer states in case in the
|
|
|
|
* future we want to put the buffer states in a more general
|
|
|
|
* "scanner state".
|
|
|
|
*/
|
|
|
|
#define YY_CURRENT_BUFFER yy_current_buffer
|
|
|
|
|
|
|
|
|
|
|
|
/* yy_hold_char holds the character lost when yytext is formed. */
|
|
|
|
static char yy_hold_char;
|
|
|
|
|
|
|
|
static int yy_n_chars; /* number of characters read into yy_ch_buf */
|
|
|
|
|
|
|
|
|
|
|
|
int yyleng;
|
|
|
|
|
|
|
|
/* Points to current character in buffer. */
|
|
|
|
static char *yy_c_buf_p = (char *) 0;
|
|
|
|
static int yy_init = 1; /* whether we need to initialize */
|
|
|
|
static int yy_start = 0; /* start state number */
|
|
|
|
|
|
|
|
/* Flag which is used to allow yywrap()'s to do buffer switches
|
|
|
|
* instead of setting up a fresh yyin. A bit of a hack ...
|
|
|
|
*/
|
|
|
|
static int yy_did_buffer_switch_on_eof;
|
|
|
|
|
|
|
|
void yyrestart YY_PROTO(( FILE *input_file ));
|
|
|
|
|
|
|
|
void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
|
|
|
|
void yy_load_buffer_state YY_PROTO(( void ));
|
|
|
|
YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
|
|
|
|
void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
|
|
|
|
void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
|
|
|
|
void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
|
|
|
|
#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
|
|
|
|
|
|
|
|
YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
|
|
|
|
YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
|
|
|
|
YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
|
|
|
|
|
|
|
|
static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
|
|
|
|
static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
|
|
|
|
static void yy_flex_free YY_PROTO(( void * ));
|
|
|
|
|
|
|
|
#define yy_new_buffer yy_create_buffer
|
|
|
|
|
|
|
|
#define yy_set_interactive(is_interactive) \
|
|
|
|
{ \
|
|
|
|
if ( ! yy_current_buffer ) \
|
|
|
|
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
|
|
|
|
yy_current_buffer->yy_is_interactive = is_interactive; \
|
|
|
|
}
|
|
|
|
|
|
|
|
#define yy_set_bol(at_bol) \
|
|
|
|
{ \
|
|
|
|
if ( ! yy_current_buffer ) \
|
|
|
|
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
|
|
|
|
yy_current_buffer->yy_at_bol = at_bol; \
|
|
|
|
}
|
|
|
|
|
|
|
|
#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
|
|
|
|
|
2004-10-26 22:29:32 +00:00
|
|
|
|
|
|
|
#define yywrap() 1
|
|
|
|
#define YY_SKIP_YYWRAP
|
1999-01-17 21:42:12 +00:00
|
|
|
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;
|
|
|
|
|
2009-05-17 20:22:24 +00:00
|
|
|
#define YY_NUM_RULES 50
|
|
|
|
#define YY_END_OF_BUFFER 51
|
|
|
|
static yyconst short int yy_accept[551] =
|
1999-01-17 21:42:12 +00:00
|
|
|
{ 0,
|
2001-12-12 20:11:47 +00:00
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2009-05-17 20:22:24 +00:00
|
|
|
0, 0, 51, 38, 46, 45, 44, 38, 49, 38,
|
|
|
|
39, 40, 38, 41, 38, 38, 38, 38, 43, 42,
|
|
|
|
49, 33, 33, 33, 33, 33, 33, 49, 38, 38,
|
|
|
|
46, 49, 33, 33, 33, 33, 33, 1, 49, 38,
|
|
|
|
38, 16, 15, 16, 15, 15, 49, 49, 49, 2,
|
|
|
|
8, 7, 8, 3, 8, 4, 49, 12, 12, 12,
|
|
|
|
10, 11, 38, 0, 46, 44, 38, 0, 0, 0,
|
|
|
|
48, 0, 38, 28, 0, 27, 0, 36, 36, 0,
|
|
|
|
38, 38, 0, 38, 38, 38, 38, 0, 31, 33,
|
|
|
|
|
|
|
|
33, 33, 33, 33, 33, 38, 47, 38, 46, 0,
|
|
|
|
0, 0, 0, 0, 0, 38, 38, 38, 38, 38,
|
|
|
|
1, 0, 34, 34, 0, 38, 16, 16, 14, 13,
|
|
|
|
14, 0, 0, 2, 8, 0, 5, 6, 8, 8,
|
|
|
|
12, 0, 12, 12, 0, 9, 37, 37, 0, 0,
|
|
|
|
0, 38, 38, 38, 38, 38, 0, 0, 31, 31,
|
|
|
|
33, 33, 33, 33, 33, 33, 33, 38, 0, 0,
|
|
|
|
0, 0, 0, 0, 38, 38, 38, 38, 38, 0,
|
|
|
|
38, 9, 0, 38, 38, 38, 38, 38, 38, 0,
|
|
|
|
32, 32, 32, 0, 0, 31, 31, 31, 31, 31,
|
|
|
|
|
|
|
|
31, 31, 33, 33, 33, 33, 33, 33, 33, 38,
|
|
|
|
0, 0, 0, 0, 0, 0, 38, 38, 38, 38,
|
|
|
|
38, 38, 38, 0, 0, 32, 32, 32, 0, 31,
|
|
|
|
31, 0, 31, 31, 31, 31, 31, 31, 31, 31,
|
|
|
|
31, 31, 31, 0, 24, 33, 33, 33, 33, 33,
|
|
|
|
38, 0, 0, 0, 0, 38, 38, 38, 38, 38,
|
|
|
|
38, 38, 38, 0, 32, 0, 31, 31, 31, 0,
|
|
|
|
0, 0, 31, 31, 31, 31, 31, 31, 31, 31,
|
|
|
|
31, 31, 31, 31, 31, 33, 33, 33, 33, 33,
|
|
|
|
38, 0, 0, 0, 38, 38, 38, 29, 29, 29,
|
|
|
|
|
|
|
|
0, 0, 31, 31, 31, 31, 31, 31, 31, 0,
|
|
|
|
0, 0, 0, 0, 31, 31, 31, 31, 31, 31,
|
|
|
|
31, 31, 31, 31, 31, 31, 31, 31, 0, 23,
|
|
|
|
33, 33, 0, 22, 0, 25, 38, 0, 0, 0,
|
|
|
|
38, 38, 38, 38, 29, 29, 29, 29, 0, 31,
|
|
|
|
0, 31, 31, 31, 31, 31, 31, 31, 31, 31,
|
|
|
|
31, 31, 0, 0, 0, 31, 31, 31, 31, 31,
|
|
|
|
31, 31, 31, 31, 31, 31, 31, 31, 33, 33,
|
|
|
|
35, 0, 0, 0, 38, 19, 34, 38, 30, 30,
|
|
|
|
30, 31, 0, 0, 0, 31, 31, 31, 31, 31,
|
2008-06-26 11:49:16 +00:00
|
|
|
|
2009-04-18 23:25:08 +00:00
|
|
|
31, 31, 31, 31, 31, 31, 31, 31, 0, 0,
|
2009-05-17 20:22:24 +00:00
|
|
|
0, 0, 0, 31, 31, 31, 31, 31, 31, 31,
|
|
|
|
31, 0, 21, 0, 26, 0, 19, 0, 0, 38,
|
|
|
|
0, 38, 38, 38, 30, 30, 30, 30, 30, 0,
|
|
|
|
0, 0, 0, 0, 31, 31, 31, 31, 31, 31,
|
|
|
|
31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
|
|
|
|
31, 31, 31, 31, 0, 0, 0, 20, 19, 0,
|
|
|
|
19, 0, 38, 38, 38, 30, 30, 0, 0, 0,
|
2009-04-18 23:25:08 +00:00
|
|
|
31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
|
2009-05-17 20:22:24 +00:00
|
|
|
31, 31, 31, 31, 31, 31, 31, 31, 20, 0,
|
2008-06-26 11:49:16 +00:00
|
|
|
|
2009-05-17 20:22:24 +00:00
|
|
|
17, 0, 38, 38, 38, 38, 38, 0, 0, 0,
|
|
|
|
0, 0, 31, 31, 31, 31, 31, 31, 31, 31,
|
|
|
|
0, 38, 38, 38, 31, 31, 31, 31, 31, 31,
|
|
|
|
0, 38, 38, 38, 38, 38, 31, 31, 31, 31,
|
|
|
|
31, 0, 18, 29, 29, 29, 29, 29, 29, 0
|
1999-01-17 21:42:12 +00:00
|
|
|
} ;
|
|
|
|
|
|
|
|
static yyconst int yy_ec[256] =
|
|
|
|
{ 0,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
1999-09-08 08:06:28 +00:00
|
|
|
1, 2, 4, 5, 6, 1, 7, 1, 1, 8,
|
2004-05-17 22:10:20 +00:00
|
|
|
9, 10, 11, 12, 13, 14, 15, 16, 17, 18,
|
2007-08-13 16:34:21 +00:00
|
|
|
19, 20, 21, 22, 22, 22, 23, 24, 1, 1,
|
|
|
|
25, 26, 10, 27, 28, 29, 30, 31, 32, 29,
|
2007-08-15 15:20:01 +00:00
|
|
|
33, 34, 33, 33, 33, 33, 33, 35, 36, 37,
|
|
|
|
33, 38, 39, 40, 41, 42, 43, 44, 33, 33,
|
|
|
|
10, 45, 10, 1, 46, 1, 47, 48, 49, 50,
|
2007-08-13 16:34:21 +00:00
|
|
|
|
2007-08-15 15:20:01 +00:00
|
|
|
51, 52, 53, 53, 54, 53, 53, 55, 56, 57,
|
|
|
|
58, 53, 53, 59, 60, 61, 62, 53, 53, 53,
|
|
|
|
53, 53, 1, 1, 1, 1, 1, 1, 1, 1,
|
1999-01-17 21:42:12 +00:00
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
1, 1, 1, 1, 1
|
|
|
|
} ;
|
|
|
|
|
2007-08-15 15:20:01 +00:00
|
|
|
static yyconst int yy_meta[63] =
|
1999-01-17 21:42:12 +00:00
|
|
|
{ 0,
|
2007-08-20 23:19:44 +00:00
|
|
|
1, 2, 3, 4, 5, 6, 1, 4, 4, 1,
|
|
|
|
1, 2, 1, 7, 8, 9, 9, 9, 9, 9,
|
|
|
|
9, 9, 9, 10, 6, 4, 1, 9, 9, 9,
|
|
|
|
9, 9, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
1, 1, 1, 1, 11, 12, 13, 13, 13, 13,
|
|
|
|
13, 13, 12, 12, 12, 12, 12, 12, 12, 12,
|
|
|
|
12, 12
|
1999-01-17 21:42:12 +00:00
|
|
|
} ;
|
|
|
|
|
2009-05-17 20:22:24 +00:00
|
|
|
static yyconst short int yy_base[616] =
|
1999-01-17 21:42:12 +00:00
|
|
|
{ 0,
|
2007-08-22 22:39:20 +00:00
|
|
|
0, 61, 62, 63, 69, 84, 128, 189, 250, 294,
|
2009-05-17 20:22:24 +00:00
|
|
|
80, 101, 2330, 2282, 2324, 3469, 2321, 338, 381, 2253,
|
|
|
|
3469, 3469, 2250, 3469, 107, 391, 119, 137, 2270, 3469,
|
|
|
|
3469, 443, 2249, 490, 2248, 2238, 2231, 541, 145, 35,
|
|
|
|
167, 565, 2206, 2210, 2202, 2197, 2184, 2232, 193, 256,
|
|
|
|
55, 0, 3469, 2227, 0, 3469, 264, 617, 110, 0,
|
|
|
|
2177, 3469, 73, 3469, 76, 3469, 117, 2167, 105, 106,
|
|
|
|
3469, 142, 2157, 306, 2163, 2160, 639, 2123, 2122, 2113,
|
|
|
|
3469, 201, 209, 2060, 347, 2057, 550, 276, 2056, 587,
|
|
|
|
410, 669, 2076, 2082, 306, 358, 317, 2070, 55, 706,
|
|
|
|
|
|
|
|
0, 2061, 240, 2050, 2047, 125, 3469, 98, 355, 2030,
|
|
|
|
2034, 2026, 2011, 2010, 146, 115, 219, 29, 212, 149,
|
|
|
|
2067, 507, 361, 2016, 598, 154, 0, 2034, 256, 3469,
|
|
|
|
3469, 636, 284, 0, 1991, 567, 3469, 3469, 1964, 389,
|
|
|
|
1961, 1999, 271, 300, 288, 1975, 1905, 3469, 1946, 1945,
|
|
|
|
603, 745, 777, 809, 841, 1933, 1895, 878, 268, 916,
|
|
|
|
953, 1888, 1872, 1872, 1867, 1859, 1850, 236, 1824, 1828,
|
|
|
|
1819, 1806, 1811, 317, 157, 1804, 307, 79, 258, 669,
|
|
|
|
296, 1838, 1834, 686, 402, 992, 1024, 725, 337, 1782,
|
|
|
|
1746, 755, 499, 1744, 1707, 343, 764, 1056, 785, 515,
|
|
|
|
|
|
|
|
1094, 795, 1706, 393, 1694, 1686, 1684, 1670, 1647, 373,
|
|
|
|
1631, 1632, 1602, 1615, 1602, 543, 400, 556, 233, 506,
|
|
|
|
1133, 1165, 1197, 1621, 1620, 817, 1620, 1618, 1602, 1601,
|
|
|
|
540, 826, 546, 858, 602, 1229, 0, 897, 1240, 933,
|
|
|
|
694, 1278, 972, 601, 3469, 1584, 1572, 1548, 1548, 1536,
|
|
|
|
616, 1531, 1487, 1488, 387, 407, 21, 617, 1003, 423,
|
|
|
|
1317, 1349, 1013, 1523, 1522, 1521, 1469, 1379, 645, 1043,
|
|
|
|
1075, 1113, 653, 658, 736, 1033, 963, 1418, 0, 1143,
|
|
|
|
1429, 1152, 866, 1467, 1175, 672, 1449, 1440, 728, 745,
|
|
|
|
625, 1446, 1401, 310, 576, 687, 695, 1505, 1536, 1567,
|
|
|
|
|
|
|
|
1431, 1430, 1382, 1183, 1599, 1205, 941, 1636, 1215, 1257,
|
|
|
|
1390, 1297, 1327, 1337, 795, 841, 983, 1124, 1357, 1308,
|
|
|
|
1675, 0, 1367, 1686, 1396, 1265, 1724, 1448, 917, 3469,
|
|
|
|
1359, 1347, 918, 3469, 994, 3469, 805, 1309, 1300, 591,
|
|
|
|
1036, 503, 806, 1484, 631, 1762, 1793, 1515, 1336, 1335,
|
|
|
|
1521, 1152, 1545, 1166, 1825, 0, 627, 1836, 1553, 1404,
|
|
|
|
1873, 1577, 1587, 1618, 1655, 1104, 1215, 1697, 1705, 1741,
|
|
|
|
1708, 1912, 0, 1772, 1923, 1781, 1492, 1803, 1015, 1097,
|
|
|
|
1279, 1267, 1245, 818, 633, 1724, 1259, 1962, 1994, 2026,
|
|
|
|
2058, 1243, 1813, 1855, 1892, 1242, 1328, 1449, 1940, 1578,
|
|
|
|
|
|
|
|
2090, 0, 766, 2101, 1970, 1948, 2138, 1980, 2002, 1251,
|
|
|
|
2012, 2036, 2046, 1288, 1609, 2068, 838, 889, 2177, 0,
|
|
|
|
900, 1470, 3469, 1725, 3469, 1194, 2064, 1390, 629, 569,
|
|
|
|
1167, 1162, 2118, 563, 2187, 2219, 2251, 2283, 2081, 2155,
|
|
|
|
1151, 2197, 2207, 2229, 1116, 1113, 1656, 1781, 2235, 1804,
|
|
|
|
2315, 0, 957, 2326, 2259, 2126, 2363, 2269, 2292, 2301,
|
|
|
|
2344, 1846, 1105, 1021, 1042, 1025, 940, 971, 879, 2394,
|
|
|
|
860, 2419, 2432, 2464, 2496, 2416, 1749, 2446, 2474, 2484,
|
|
|
|
800, 768, 1893, 1981, 2504, 2013, 2528, 0, 1045, 2539,
|
|
|
|
2512, 2163, 2558, 718, 2577, 2586, 2455, 680, 3469, 594,
|
|
|
|
|
|
|
|
3469, 1080, 2594, 1163, 2626, 2658, 2605, 2611, 576, 2637,
|
|
|
|
2647, 2668, 547, 445, 2027, 437, 411, 2676, 0, 1078,
|
|
|
|
2386, 2690, 2722, 2754, 2698, 2706, 2730, 364, 0, 334,
|
|
|
|
308, 2738, 1195, 2786, 2818, 2768, 3469, 2774, 2798, 2806,
|
|
|
|
3469, 193, 3469, 2826, 2834, 2864, 126, 2872, 2856, 3469,
|
|
|
|
2917, 2930, 2943, 2956, 2969, 2982, 2995, 3008, 3021, 3034,
|
|
|
|
3039, 3052, 3065, 3067, 3080, 3093, 3106, 3119, 3132, 3145,
|
|
|
|
3158, 3163, 3169, 3182, 3195, 3200, 3206, 3211, 3216, 3221,
|
|
|
|
3227, 3232, 3237, 3242, 3248, 3255, 3260, 3265, 3270, 3276,
|
|
|
|
3283, 3288, 3293, 3299, 3306, 3311, 3318, 3324, 3331, 3336,
|
|
|
|
|
|
|
|
3343, 3349, 3356, 3369, 3382, 3387, 3394, 3400, 3413, 3418,
|
|
|
|
3425, 3430, 3437, 3442, 3455
|
1999-01-17 21:42:12 +00:00
|
|
|
} ;
|
|
|
|
|
2009-05-17 20:22:24 +00:00
|
|
|
static yyconst short int yy_def[616] =
|
1999-01-17 21:42:12 +00:00
|
|
|
{ 0,
|
2009-05-17 20:22:24 +00:00
|
|
|
550, 1, 1, 1, 551, 551, 552, 552, 553, 553,
|
|
|
|
554, 554, 550, 555, 550, 550, 550, 556, 557, 558,
|
|
|
|
550, 550, 559, 550, 560, 555, 26, 26, 561, 550,
|
|
|
|
550, 550, 32, 32, 34, 34, 34, 555, 26, 555,
|
|
|
|
550, 557, 32, 32, 34, 34, 34, 550, 550, 562,
|
|
|
|
555, 563, 550, 563, 563, 550, 550, 557, 550, 564,
|
|
|
|
565, 550, 565, 550, 565, 550, 566, 567, 567, 567,
|
|
|
|
550, 550, 555, 555, 550, 550, 556, 568, 556, 569,
|
|
|
|
550, 570, 550, 558, 558, 559, 559, 560, 571, 555,
|
|
|
|
555, 26, 561, 92, 92, 92, 92, 572, 573, 32,
|
|
|
|
|
|
|
|
34, 34, 34, 34, 34, 555, 550, 555, 550, 550,
|
|
|
|
550, 550, 550, 550, 569, 555, 92, 555, 555, 555,
|
|
|
|
550, 550, 562, 574, 555, 555, 563, 563, 550, 550,
|
|
|
|
550, 570, 550, 564, 565, 565, 550, 550, 565, 565,
|
|
|
|
567, 550, 567, 567, 550, 550, 555, 550, 569, 575,
|
|
|
|
550, 555, 555, 555, 92, 155, 576, 550, 577, 550,
|
|
|
|
32, 34, 34, 34, 34, 34, 34, 555, 550, 550,
|
|
|
|
550, 550, 550, 569, 555, 155, 555, 555, 555, 550,
|
|
|
|
555, 550, 575, 555, 555, 555, 555, 555, 555, 578,
|
|
|
|
579, 579, 192, 580, 579, 581, 160, 550, 198, 198,
|
|
|
|
|
|
|
|
550, 198, 34, 34, 34, 34, 34, 34, 34, 555,
|
|
|
|
550, 550, 550, 550, 550, 569, 555, 555, 555, 555,
|
|
|
|
555, 555, 555, 550, 582, 582, 226, 582, 583, 584,
|
|
|
|
585, 550, 586, 201, 586, 586, 236, 586, 550, 239,
|
|
|
|
239, 550, 239, 550, 550, 34, 34, 34, 34, 34,
|
|
|
|
555, 550, 550, 550, 569, 555, 555, 555, 555, 555,
|
|
|
|
555, 555, 555, 587, 587, 588, 589, 550, 550, 550,
|
|
|
|
550, 550, 590, 590, 591, 242, 591, 591, 278, 591,
|
|
|
|
550, 281, 281, 550, 281, 34, 34, 34, 34, 34,
|
|
|
|
555, 550, 550, 569, 555, 555, 555, 555, 555, 555,
|
|
|
|
|
|
|
|
550, 592, 593, 268, 550, 305, 305, 550, 305, 550,
|
|
|
|
550, 550, 550, 550, 550, 594, 594, 595, 284, 595,
|
|
|
|
595, 321, 595, 550, 324, 324, 550, 324, 550, 550,
|
|
|
|
34, 34, 550, 550, 550, 550, 555, 550, 550, 569,
|
|
|
|
555, 555, 555, 555, 555, 555, 555, 555, 550, 596,
|
|
|
|
550, 597, 308, 597, 597, 355, 355, 550, 358, 358,
|
|
|
|
550, 358, 550, 550, 550, 550, 598, 598, 599, 327,
|
|
|
|
599, 599, 372, 599, 550, 375, 375, 375, 34, 34,
|
|
|
|
555, 550, 550, 569, 555, 555, 555, 555, 555, 555,
|
|
|
|
555, 550, 550, 550, 550, 600, 600, 601, 361, 601,
|
|
|
|
|
|
|
|
601, 401, 401, 550, 404, 404, 550, 404, 550, 550,
|
|
|
|
550, 550, 550, 550, 602, 602, 603, 603, 603, 419,
|
|
|
|
419, 550, 550, 550, 550, 550, 550, 569, 569, 555,
|
|
|
|
604, 605, 555, 555, 555, 555, 555, 555, 555, 550,
|
|
|
|
550, 550, 550, 550, 550, 606, 606, 607, 407, 607,
|
|
|
|
607, 451, 451, 550, 454, 454, 550, 454, 550, 550,
|
|
|
|
550, 550, 608, 608, 550, 609, 569, 555, 604, 604,
|
|
|
|
605, 605, 555, 555, 555, 555, 555, 550, 550, 550,
|
|
|
|
550, 610, 610, 611, 457, 611, 611, 487, 487, 550,
|
|
|
|
490, 490, 490, 550, 550, 550, 550, 550, 550, 609,
|
|
|
|
|
|
|
|
550, 569, 555, 555, 555, 555, 555, 550, 550, 550,
|
|
|
|
550, 550, 550, 612, 612, 613, 613, 613, 518, 518,
|
|
|
|
569, 555, 555, 555, 550, 550, 550, 550, 614, 614,
|
|
|
|
615, 555, 555, 555, 555, 555, 550, 550, 550, 550,
|
|
|
|
550, 615, 550, 555, 555, 555, 555, 555, 555, 0,
|
|
|
|
550, 550, 550, 550, 550, 550, 550, 550, 550, 550,
|
|
|
|
550, 550, 550, 550, 550, 550, 550, 550, 550, 550,
|
|
|
|
550, 550, 550, 550, 550, 550, 550, 550, 550, 550,
|
|
|
|
550, 550, 550, 550, 550, 550, 550, 550, 550, 550,
|
|
|
|
550, 550, 550, 550, 550, 550, 550, 550, 550, 550,
|
|
|
|
|
|
|
|
550, 550, 550, 550, 550, 550, 550, 550, 550, 550,
|
|
|
|
550, 550, 550, 550, 550
|
1999-01-17 21:42:12 +00:00
|
|
|
} ;
|
|
|
|
|
2009-05-17 20:22:24 +00:00
|
|
|
static yyconst short int yy_nxt[3532] =
|
1999-01-17 21:42:12 +00:00
|
|
|
{ 0,
|
2009-05-17 20:22:24 +00:00
|
|
|
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, 35, 34, 36, 34, 37, 34,
|
|
|
|
34, 34, 34, 34, 38, 14, 39, 39, 39, 39,
|
|
|
|
39, 39, 14, 14, 14, 14, 14, 14, 14, 40,
|
|
|
|
14, 14, 41, 48, 48, 74, 42, 49, 49, 158,
|
|
|
|
15, 53, 54, 74, 55, 296, 50, 50, 160, 74,
|
|
|
|
56, 69, 16, 70, 71, 15, 53, 54, 177, 55,
|
|
|
|
43, 44, 56, 55, 45, 56, 108, 137, 46, 74,
|
|
|
|
|
|
|
|
138, 47, 69, 16, 70, 71, 143, 56, 55, 144,
|
|
|
|
89, 133, 107, 57, 89, 89, 126, 136, 140, 107,
|
|
|
|
136, 51, 51, 74, 72, 219, 133, 107, 57, 15,
|
|
|
|
16, 17, 89, 58, 95, 95, 95, 95, 95, 95,
|
|
|
|
95, 95, 74, 145, 146, 72, 141, 168, 81, 142,
|
|
|
|
142, 90, 96, 96, 96, 96, 96, 97, 73, 74,
|
|
|
|
94, 94, 94, 94, 94, 94, 94, 94, 109, 74,
|
|
|
|
74, 175, 59, 60, 60, 60, 60, 60, 60, 60,
|
|
|
|
60, 60, 60, 60, 60, 60, 60, 60, 60, 60,
|
|
|
|
15, 16, 17, 74, 58, 543, 110, 111, 74, 179,
|
|
|
|
|
|
|
|
112, 74, 174, 181, 113, 122, 217, 114, 83, 83,
|
|
|
|
83, 83, 83, 83, 83, 83, 83, 83, 83, 83,
|
|
|
|
83, 83, 83, 83, 83, 83, 83, 83, 83, 83,
|
|
|
|
83, 83, 73, 59, 60, 60, 60, 60, 60, 60,
|
|
|
|
60, 60, 60, 60, 60, 60, 60, 60, 60, 60,
|
|
|
|
60, 15, 16, 17, 62, 58, 74, 133, 107, 124,
|
|
|
|
63, 64, 65, 124, 124, 129, 107, 130, 178, 131,
|
|
|
|
176, 163, 143, 130, 66, 131, 164, 74, 165, 89,
|
|
|
|
74, 124, 158, 89, 89, 133, 107, 131, 131, 145,
|
|
|
|
146, 197, 217, 210, 67, 15, 16, 17, 62, 58,
|
|
|
|
|
|
|
|
125, 89, 74, 144, 63, 64, 65, 73, 131, 73,
|
|
|
|
543, 73, 81, 73, 73, 142, 217, 73, 66, 81,
|
|
|
|
90, 156, 156, 156, 156, 156, 156, 156, 156, 73,
|
|
|
|
73, 73, 156, 156, 156, 156, 156, 156, 67, 78,
|
|
|
|
74, 78, 73, 78, 142, 78, 78, 351, 84, 78,
|
|
|
|
84, 74, 84, 220, 84, 84, 109, 158, 84, 340,
|
|
|
|
93, 78, 78, 78, 124, 216, 197, 217, 124, 124,
|
|
|
|
84, 84, 84, 156, 156, 156, 156, 156, 156, 156,
|
|
|
|
156, 74, 79, 81, 110, 111, 124, 485, 112, 81,
|
|
|
|
133, 107, 113, 82, 244, 114, 83, 83, 83, 83,
|
|
|
|
|
|
|
|
83, 83, 83, 83, 91, 125, 92, 92, 92, 92,
|
|
|
|
92, 92, 92, 92, 93, 184, 245, 74, 94, 94,
|
|
|
|
94, 94, 94, 251, 550, 152, 153, 154, 152, 152,
|
|
|
|
152, 152, 152, 136, 295, 74, 259, 94, 94, 94,
|
|
|
|
94, 94, 94, 73, 74, 256, 74, 73, 294, 73,
|
|
|
|
351, 74, 73, 73, 74, 73, 73, 73, 100, 100,
|
|
|
|
100, 100, 100, 100, 100, 100, 93, 74, 485, 73,
|
|
|
|
100, 100, 100, 100, 100, 101, 101, 101, 101, 101,
|
|
|
|
101, 101, 101, 101, 101, 101, 101, 74, 101, 94,
|
|
|
|
94, 94, 94, 94, 94, 73, 73, 73, 73, 73,
|
|
|
|
|
|
|
|
73, 73, 73, 73, 73, 101, 101, 101, 101, 101,
|
|
|
|
101, 101, 101, 550, 228, 228, 228, 101, 101, 101,
|
|
|
|
101, 101, 83, 83, 83, 83, 83, 83, 83, 83,
|
|
|
|
237, 237, 237, 237, 237, 238, 73, 73, 73, 73,
|
|
|
|
73, 73, 106, 107, 73, 81, 73, 74, 73, 73,
|
|
|
|
74, 86, 73, 86, 158, 86, 258, 86, 86, 232,
|
|
|
|
158, 86, 386, 197, 73, 73, 73, 81, 135, 234,
|
|
|
|
449, 135, 135, 86, 86, 86, 433, 82, 135, 93,
|
|
|
|
83, 83, 83, 83, 83, 83, 83, 83, 88, 508,
|
|
|
|
73, 135, 88, 81, 73, 73, 501, 255, 88, 123,
|
|
|
|
|
|
|
|
74, 73, 244, 123, 89, 73, 73, 74, 89, 123,
|
|
|
|
88, 88, 73, 74, 89, 550, 158, 257, 115, 81,
|
|
|
|
74, 123, 123, 73, 245, 234, 89, 89, 468, 132,
|
|
|
|
341, 81, 550, 550, 550, 550, 550, 550, 550, 550,
|
|
|
|
78, 384, 78, 147, 78, 344, 78, 78, 396, 396,
|
|
|
|
78, 550, 550, 550, 550, 550, 550, 550, 550, 158,
|
|
|
|
74, 74, 78, 78, 78, 291, 297, 158, 197, 74,
|
|
|
|
124, 232, 158, 329, 124, 74, 234, 74, 337, 430,
|
|
|
|
124, 234, 467, 79, 155, 155, 155, 155, 155, 155,
|
|
|
|
155, 155, 124, 124, 158, 330, 155, 155, 155, 155,
|
|
|
|
|
|
|
|
155, 221, 222, 223, 221, 221, 221, 221, 221, 279,
|
|
|
|
279, 279, 279, 279, 280, 155, 155, 155, 155, 155,
|
|
|
|
155, 161, 161, 161, 161, 161, 161, 161, 161, 333,
|
|
|
|
74, 74, 158, 161, 161, 161, 161, 161, 184, 74,
|
|
|
|
185, 185, 185, 185, 185, 185, 335, 342, 343, 232,
|
|
|
|
158, 334, 155, 155, 155, 155, 155, 155, 184, 276,
|
|
|
|
185, 185, 185, 185, 185, 185, 185, 185, 336, 74,
|
|
|
|
226, 226, 227, 228, 228, 228, 228, 228, 194, 202,
|
|
|
|
202, 202, 202, 202, 202, 202, 202, 446, 446, 74,
|
|
|
|
184, 449, 186, 186, 186, 186, 186, 186, 186, 186,
|
|
|
|
|
|
|
|
236, 236, 236, 236, 236, 236, 236, 236, 550, 158,
|
|
|
|
235, 235, 235, 235, 235, 235, 235, 235, 234, 428,
|
|
|
|
81, 74, 184, 399, 187, 187, 187, 187, 187, 188,
|
|
|
|
185, 185, 265, 265, 265, 265, 265, 265, 265, 265,
|
|
|
|
194, 270, 271, 272, 270, 270, 270, 270, 270, 74,
|
|
|
|
74, 232, 158, 74, 73, 158, 189, 189, 189, 189,
|
|
|
|
189, 189, 189, 189, 276, 381, 387, 429, 189, 189,
|
|
|
|
189, 189, 189, 243, 243, 243, 243, 243, 243, 243,
|
|
|
|
243, 322, 322, 322, 322, 322, 323, 189, 189, 189,
|
|
|
|
189, 189, 189, 191, 192, 193, 193, 193, 193, 193,
|
|
|
|
|
|
|
|
193, 194, 550, 158, 472, 195, 195, 195, 195, 195,
|
|
|
|
232, 158, 274, 274, 274, 274, 274, 274, 329, 333,
|
|
|
|
234, 463, 463, 470, 195, 195, 195, 195, 195, 195,
|
|
|
|
158, 198, 199, 200, 198, 198, 198, 198, 198, 201,
|
|
|
|
330, 334, 81, 202, 202, 202, 202, 202, 278, 278,
|
|
|
|
278, 278, 278, 278, 278, 278, 356, 356, 356, 356,
|
|
|
|
356, 357, 202, 202, 202, 202, 202, 202, 203, 203,
|
|
|
|
203, 203, 203, 203, 203, 203, 550, 158, 482, 482,
|
|
|
|
203, 203, 203, 203, 203, 550, 276, 277, 277, 277,
|
|
|
|
277, 277, 277, 277, 277, 335, 232, 158, 502, 189,
|
|
|
|
|
|
|
|
189, 189, 189, 189, 189, 184, 276, 185, 185, 185,
|
|
|
|
185, 185, 185, 185, 185, 74, 422, 336, 298, 299,
|
|
|
|
300, 298, 298, 298, 298, 298, 259, 501, 260, 260,
|
|
|
|
260, 260, 260, 260, 232, 158, 74, 184, 423, 185,
|
|
|
|
185, 185, 185, 185, 185, 185, 185, 74, 285, 285,
|
|
|
|
285, 285, 285, 285, 285, 285, 310, 74, 311, 311,
|
|
|
|
311, 311, 311, 311, 311, 311, 514, 514, 74, 232,
|
|
|
|
158, 233, 233, 233, 233, 233, 233, 233, 233, 234,
|
|
|
|
74, 521, 81, 235, 235, 235, 235, 235, 310, 385,
|
|
|
|
312, 312, 312, 312, 312, 312, 312, 312, 424, 529,
|
|
|
|
|
|
|
|
529, 499, 235, 235, 235, 235, 235, 235, 158, 239,
|
|
|
|
240, 241, 239, 239, 239, 239, 239, 242, 158, 158,
|
|
|
|
425, 243, 243, 243, 243, 243, 310, 276, 313, 313,
|
|
|
|
313, 313, 313, 314, 311, 311, 399, 232, 158, 353,
|
|
|
|
243, 243, 243, 243, 243, 243, 259, 319, 260, 260,
|
|
|
|
260, 260, 260, 260, 260, 260, 232, 158, 317, 317,
|
|
|
|
317, 317, 317, 317, 440, 351, 276, 321, 321, 321,
|
|
|
|
321, 321, 321, 321, 321, 353, 503, 74, 259, 550,
|
|
|
|
261, 261, 261, 261, 261, 261, 261, 261, 550, 353,
|
|
|
|
320, 320, 320, 320, 320, 320, 320, 320, 309, 309,
|
|
|
|
|
|
|
|
309, 309, 309, 309, 309, 309, 472, 74, 532, 74,
|
|
|
|
259, 470, 262, 262, 262, 262, 262, 263, 260, 260,
|
|
|
|
355, 355, 355, 355, 355, 355, 355, 355, 550, 158,
|
|
|
|
354, 354, 354, 354, 354, 354, 354, 354, 319, 74,
|
|
|
|
465, 74, 232, 158, 274, 274, 274, 274, 274, 274,
|
|
|
|
274, 274, 234, 232, 158, 275, 275, 275, 275, 275,
|
|
|
|
275, 275, 275, 276, 409, 353, 304, 277, 277, 277,
|
|
|
|
277, 277, 363, 364, 365, 363, 363, 363, 363, 363,
|
|
|
|
373, 373, 373, 373, 373, 374, 277, 277, 277, 277,
|
|
|
|
277, 277, 158, 281, 282, 283, 281, 281, 281, 281,
|
|
|
|
|
|
|
|
281, 284, 158, 74, 427, 285, 285, 285, 285, 285,
|
|
|
|
310, 319, 311, 311, 311, 311, 311, 311, 311, 311,
|
|
|
|
426, 550, 158, 74, 285, 285, 285, 285, 285, 285,
|
|
|
|
259, 319, 260, 260, 260, 260, 260, 260, 260, 260,
|
|
|
|
310, 351, 311, 311, 311, 311, 311, 311, 311, 311,
|
|
|
|
310, 353, 311, 311, 311, 311, 311, 311, 304, 230,
|
|
|
|
383, 74, 259, 382, 260, 260, 260, 260, 260, 260,
|
|
|
|
260, 260, 328, 328, 328, 328, 328, 328, 328, 328,
|
|
|
|
232, 158, 368, 368, 368, 368, 368, 368, 380, 379,
|
|
|
|
319, 428, 81, 74, 305, 306, 307, 305, 305, 305,
|
|
|
|
|
|
|
|
305, 305, 308, 310, 466, 304, 309, 309, 309, 309,
|
|
|
|
309, 372, 372, 372, 372, 372, 372, 372, 372, 402,
|
|
|
|
402, 402, 402, 402, 403, 309, 309, 309, 309, 309,
|
|
|
|
309, 232, 158, 317, 317, 317, 317, 317, 317, 317,
|
|
|
|
317, 276, 232, 158, 318, 318, 318, 318, 318, 318,
|
|
|
|
318, 318, 319, 230, 194, 339, 320, 320, 320, 320,
|
|
|
|
320, 550, 351, 371, 371, 371, 371, 371, 371, 371,
|
|
|
|
371, 422, 399, 338, 332, 320, 320, 320, 320, 320,
|
|
|
|
320, 158, 324, 325, 326, 324, 324, 324, 324, 324,
|
|
|
|
327, 331, 304, 423, 328, 328, 328, 328, 328, 388,
|
|
|
|
|
|
|
|
389, 390, 391, 388, 388, 388, 388, 420, 420, 420,
|
|
|
|
420, 420, 421, 328, 328, 328, 328, 328, 328, 344,
|
|
|
|
345, 345, 345, 345, 345, 345, 345, 345, 74, 344,
|
|
|
|
345, 345, 345, 345, 345, 345, 393, 394, 395, 393,
|
|
|
|
393, 393, 393, 393, 230, 194, 194, 252, 293, 74,
|
|
|
|
344, 346, 346, 346, 346, 346, 346, 346, 346, 74,
|
|
|
|
362, 362, 362, 362, 362, 362, 362, 362, 401, 401,
|
|
|
|
401, 401, 401, 401, 401, 401, 292, 290, 289, 288,
|
|
|
|
74, 344, 347, 347, 347, 347, 347, 348, 345, 345,
|
|
|
|
550, 550, 400, 400, 400, 400, 400, 400, 400, 400,
|
|
|
|
|
|
|
|
409, 399, 410, 410, 410, 410, 410, 410, 410, 410,
|
|
|
|
287, 74, 351, 286, 352, 352, 352, 352, 352, 352,
|
|
|
|
352, 352, 353, 158, 268, 230, 354, 354, 354, 354,
|
|
|
|
354, 409, 370, 411, 411, 411, 411, 411, 411, 411,
|
|
|
|
411, 194, 264, 194, 99, 354, 354, 354, 354, 354,
|
|
|
|
354, 358, 359, 360, 358, 358, 358, 358, 358, 361,
|
|
|
|
252, 254, 252, 362, 362, 362, 362, 362, 409, 351,
|
|
|
|
412, 412, 412, 412, 412, 413, 410, 410, 253, 399,
|
|
|
|
252, 250, 362, 362, 362, 362, 362, 362, 232, 158,
|
|
|
|
368, 368, 368, 368, 368, 368, 368, 368, 319, 232,
|
|
|
|
|
|
|
|
158, 369, 369, 369, 369, 369, 369, 369, 369, 370,
|
|
|
|
232, 158, 249, 371, 371, 371, 371, 371, 232, 158,
|
|
|
|
319, 550, 158, 248, 247, 246, 424, 431, 370, 93,
|
|
|
|
194, 370, 371, 371, 371, 371, 371, 371, 158, 375,
|
|
|
|
376, 377, 375, 375, 375, 375, 375, 431, 425, 431,
|
|
|
|
432, 378, 378, 378, 378, 378, 378, 378, 378, 378,
|
|
|
|
378, 378, 378, 378, 477, 477, 477, 230, 74, 194,
|
|
|
|
378, 378, 378, 378, 378, 378, 344, 345, 345, 345,
|
|
|
|
345, 345, 345, 345, 345, 232, 158, 416, 416, 416,
|
|
|
|
416, 416, 416, 74, 351, 370, 419, 419, 419, 419,
|
|
|
|
|
|
|
|
419, 419, 419, 419, 449, 99, 74, 344, 345, 345,
|
|
|
|
345, 345, 345, 345, 345, 345, 550, 550, 418, 418,
|
|
|
|
418, 418, 418, 418, 418, 418, 440, 449, 441, 441,
|
|
|
|
441, 441, 441, 441, 441, 441, 81, 74, 351, 182,
|
|
|
|
397, 397, 397, 397, 397, 397, 397, 397, 353, 351,
|
|
|
|
218, 398, 398, 398, 398, 398, 398, 398, 398, 399,
|
|
|
|
158, 215, 214, 400, 400, 400, 400, 400, 440, 370,
|
|
|
|
442, 442, 442, 442, 442, 442, 442, 442, 213, 212,
|
|
|
|
211, 209, 400, 400, 400, 400, 400, 400, 404, 405,
|
|
|
|
406, 404, 404, 404, 404, 404, 407, 208, 207, 206,
|
|
|
|
|
|
|
|
408, 408, 408, 408, 408, 440, 351, 443, 443, 443,
|
|
|
|
443, 443, 444, 441, 441, 205, 449, 204, 99, 408,
|
|
|
|
408, 408, 408, 408, 408, 232, 158, 416, 416, 416,
|
|
|
|
416, 416, 416, 416, 416, 370, 232, 158, 417, 417,
|
|
|
|
417, 417, 417, 417, 417, 417, 91, 81, 81, 74,
|
|
|
|
418, 418, 418, 418, 418, 408, 408, 408, 408, 408,
|
|
|
|
408, 408, 408, 452, 452, 452, 452, 452, 453, 418,
|
|
|
|
418, 418, 418, 418, 418, 433, 182, 434, 434, 434,
|
|
|
|
434, 434, 434, 434, 434, 451, 451, 451, 451, 451,
|
|
|
|
451, 451, 451, 550, 351, 450, 450, 450, 450, 450,
|
|
|
|
|
|
|
|
450, 450, 450, 141, 485, 142, 74, 433, 136, 435,
|
|
|
|
435, 435, 435, 435, 435, 435, 435, 459, 460, 461,
|
|
|
|
459, 459, 459, 459, 459, 409, 550, 410, 410, 410,
|
|
|
|
410, 410, 410, 410, 410, 136, 485, 128, 74, 433,
|
|
|
|
351, 436, 436, 436, 436, 436, 437, 438, 438, 409,
|
|
|
|
485, 410, 410, 410, 410, 410, 410, 410, 410, 409,
|
|
|
|
180, 410, 410, 410, 410, 410, 410, 431, 121, 173,
|
|
|
|
74, 433, 172, 439, 439, 439, 434, 434, 434, 434,
|
|
|
|
434, 232, 158, 171, 170, 169, 167, 431, 166, 431,
|
|
|
|
431, 370, 162, 99, 433, 73, 477, 477, 477, 99,
|
|
|
|
|
|
|
|
151, 87, 74, 351, 85, 447, 447, 447, 447, 447,
|
|
|
|
447, 447, 447, 399, 351, 81, 448, 448, 448, 448,
|
|
|
|
448, 448, 448, 448, 449, 74, 147, 148, 450, 450,
|
|
|
|
450, 450, 450, 473, 474, 475, 473, 473, 473, 473,
|
|
|
|
473, 488, 488, 488, 488, 488, 489, 450, 450, 450,
|
|
|
|
450, 450, 450, 454, 455, 456, 454, 454, 454, 454,
|
|
|
|
454, 457, 74, 76, 75, 458, 458, 458, 458, 458,
|
|
|
|
478, 479, 480, 478, 478, 478, 478, 478, 519, 519,
|
|
|
|
519, 519, 519, 520, 458, 458, 458, 458, 458, 458,
|
|
|
|
232, 158, 464, 464, 464, 464, 464, 464, 464, 464,
|
|
|
|
|
|
|
|
433, 74, 438, 438, 438, 438, 438, 438, 438, 438,
|
|
|
|
440, 142, 441, 441, 441, 441, 441, 441, 441, 441,
|
|
|
|
440, 136, 441, 441, 441, 441, 441, 441, 441, 441,
|
|
|
|
128, 74, 433, 121, 438, 438, 438, 438, 438, 438,
|
|
|
|
438, 438, 440, 120, 441, 441, 441, 441, 441, 441,
|
|
|
|
458, 458, 458, 458, 458, 458, 458, 458, 119, 118,
|
|
|
|
117, 116, 105, 74, 433, 104, 438, 438, 438, 438,
|
|
|
|
438, 438, 476, 476, 487, 487, 487, 487, 487, 487,
|
|
|
|
487, 487, 550, 103, 486, 486, 486, 486, 486, 486,
|
|
|
|
486, 486, 102, 99, 87, 74, 433, 85, 476, 476,
|
|
|
|
|
|
|
|
476, 476, 476, 476, 476, 476, 158, 494, 494, 494,
|
|
|
|
494, 494, 494, 494, 494, 158, 495, 495, 495, 495,
|
|
|
|
495, 495, 495, 495, 76, 75, 74, 74, 351, 550,
|
|
|
|
483, 483, 483, 483, 483, 483, 483, 483, 449, 351,
|
|
|
|
550, 484, 484, 484, 484, 484, 484, 484, 484, 485,
|
|
|
|
550, 550, 550, 486, 486, 486, 486, 486, 158, 496,
|
|
|
|
496, 496, 496, 496, 497, 494, 494, 550, 550, 550,
|
|
|
|
550, 550, 486, 486, 486, 486, 486, 486, 490, 491,
|
|
|
|
492, 490, 490, 490, 490, 490, 550, 521, 81, 550,
|
|
|
|
493, 493, 493, 493, 493, 469, 550, 469, 550, 469,
|
|
|
|
|
|
|
|
531, 469, 469, 550, 550, 469, 550, 550, 550, 493,
|
|
|
|
493, 493, 493, 493, 493, 550, 550, 469, 469, 469,
|
|
|
|
471, 550, 471, 550, 471, 550, 471, 471, 550, 550,
|
|
|
|
471, 476, 476, 476, 476, 476, 476, 476, 476, 550,
|
|
|
|
550, 550, 471, 471, 471, 503, 550, 504, 504, 504,
|
|
|
|
504, 504, 504, 504, 504, 550, 550, 550, 550, 508,
|
|
|
|
74, 509, 509, 509, 509, 509, 509, 509, 509, 158,
|
|
|
|
494, 494, 494, 494, 494, 494, 74, 503, 550, 505,
|
|
|
|
505, 505, 505, 505, 505, 505, 505, 508, 550, 510,
|
|
|
|
510, 510, 510, 510, 510, 510, 510, 508, 550, 511,
|
|
|
|
|
|
|
|
511, 511, 511, 511, 512, 509, 509, 550, 74, 503,
|
|
|
|
550, 506, 506, 506, 506, 506, 507, 504, 504, 493,
|
|
|
|
493, 493, 493, 493, 493, 493, 493, 518, 518, 518,
|
|
|
|
518, 518, 518, 518, 518, 550, 550, 550, 550, 550,
|
|
|
|
74, 351, 550, 515, 515, 515, 515, 515, 515, 515,
|
|
|
|
515, 485, 351, 550, 516, 516, 516, 516, 516, 516,
|
|
|
|
516, 516, 550, 550, 550, 550, 517, 517, 517, 517,
|
|
|
|
517, 550, 550, 517, 517, 517, 517, 517, 517, 517,
|
|
|
|
517, 550, 550, 550, 550, 517, 517, 517, 517, 517,
|
|
|
|
517, 158, 494, 494, 494, 494, 494, 494, 494, 494,
|
|
|
|
|
|
|
|
158, 494, 494, 494, 494, 494, 494, 494, 494, 522,
|
|
|
|
523, 524, 522, 522, 522, 522, 522, 550, 503, 550,
|
|
|
|
504, 504, 504, 504, 504, 504, 525, 526, 527, 525,
|
|
|
|
525, 525, 525, 525, 550, 550, 550, 550, 74, 503,
|
|
|
|
550, 504, 504, 504, 504, 504, 504, 504, 504, 74,
|
|
|
|
508, 550, 509, 509, 509, 509, 509, 509, 509, 509,
|
|
|
|
508, 550, 509, 509, 509, 509, 509, 509, 509, 509,
|
|
|
|
74, 503, 550, 504, 504, 504, 504, 504, 504, 504,
|
|
|
|
504, 508, 550, 509, 509, 509, 509, 509, 509, 351,
|
|
|
|
550, 530, 530, 530, 530, 530, 530, 530, 530, 550,
|
|
|
|
|
|
|
|
550, 550, 74, 532, 550, 533, 533, 533, 533, 533,
|
|
|
|
533, 533, 533, 537, 537, 537, 537, 537, 537, 537,
|
|
|
|
537, 538, 538, 538, 538, 538, 538, 538, 538, 550,
|
|
|
|
550, 550, 550, 550, 74, 532, 550, 534, 534, 534,
|
|
|
|
534, 534, 534, 534, 534, 539, 539, 539, 539, 539,
|
|
|
|
540, 537, 537, 544, 545, 546, 544, 544, 544, 544,
|
|
|
|
544, 550, 550, 550, 550, 550, 74, 532, 550, 535,
|
|
|
|
535, 535, 535, 535, 536, 533, 533, 550, 550, 550,
|
|
|
|
550, 532, 74, 533, 533, 533, 533, 533, 533, 537,
|
|
|
|
537, 537, 537, 537, 537, 537, 537, 550, 74, 532,
|
|
|
|
|
|
|
|
550, 533, 533, 533, 533, 533, 533, 533, 533, 550,
|
|
|
|
550, 550, 74, 537, 537, 537, 537, 537, 537, 537,
|
|
|
|
537, 537, 537, 537, 537, 537, 537, 550, 550, 550,
|
|
|
|
74, 532, 550, 533, 533, 533, 533, 533, 533, 533,
|
|
|
|
533, 547, 547, 547, 547, 547, 547, 547, 547, 544,
|
|
|
|
544, 544, 544, 544, 544, 544, 544, 550, 550, 550,
|
|
|
|
550, 550, 74, 550, 550, 550, 550, 550, 550, 550,
|
|
|
|
74, 547, 547, 547, 547, 547, 547, 550, 74, 548,
|
|
|
|
548, 548, 548, 548, 549, 547, 547, 547, 547, 547,
|
|
|
|
547, 547, 547, 547, 547, 550, 550, 550, 550, 550,
|
|
|
|
|
|
|
|
74, 550, 550, 550, 550, 550, 550, 550, 74, 550,
|
|
|
|
550, 550, 550, 550, 550, 550, 74, 52, 52, 52,
|
|
|
|
52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
|
|
|
|
31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
|
|
|
|
31, 31, 31, 61, 61, 61, 61, 61, 61, 61,
|
|
|
|
61, 61, 61, 61, 61, 61, 68, 68, 68, 68,
|
|
|
|
68, 68, 68, 68, 68, 68, 68, 68, 68, 73,
|
|
|
|
550, 550, 550, 73, 550, 73, 73, 73, 550, 73,
|
|
|
|
73, 73, 77, 77, 550, 77, 77, 77, 77, 77,
|
|
|
|
77, 77, 77, 77, 77, 80, 80, 80, 80, 80,
|
|
|
|
|
|
|
|
80, 80, 80, 80, 80, 80, 80, 80, 84, 550,
|
|
|
|
550, 550, 84, 550, 84, 84, 84, 550, 84, 84,
|
|
|
|
84, 86, 550, 550, 550, 86, 550, 86, 86, 86,
|
|
|
|
550, 86, 86, 86, 88, 550, 550, 88, 88, 550,
|
|
|
|
88, 88, 88, 550, 88, 88, 88, 98, 98, 550,
|
|
|
|
550, 98, 123, 550, 550, 123, 123, 550, 123, 123,
|
|
|
|
123, 550, 123, 123, 123, 127, 550, 550, 127, 127,
|
|
|
|
127, 127, 127, 127, 550, 550, 127, 127, 134, 134,
|
|
|
|
135, 550, 550, 135, 550, 550, 135, 135, 135, 135,
|
|
|
|
135, 135, 135, 139, 139, 139, 139, 139, 139, 139,
|
|
|
|
|
|
|
|
139, 139, 139, 139, 139, 139, 141, 141, 550, 141,
|
|
|
|
550, 141, 141, 141, 141, 141, 141, 141, 141, 78,
|
|
|
|
78, 550, 78, 78, 78, 78, 78, 78, 78, 78,
|
|
|
|
78, 78, 149, 149, 149, 149, 149, 149, 149, 149,
|
|
|
|
149, 149, 149, 149, 149, 150, 150, 550, 150, 150,
|
|
|
|
150, 150, 150, 150, 150, 150, 150, 150, 89, 550,
|
|
|
|
550, 89, 89, 550, 89, 89, 89, 550, 89, 89,
|
|
|
|
89, 157, 157, 550, 550, 157, 159, 159, 159, 550,
|
|
|
|
550, 159, 124, 550, 550, 124, 124, 550, 124, 124,
|
|
|
|
124, 550, 124, 124, 124, 183, 183, 183, 183, 183,
|
|
|
|
|
|
|
|
183, 183, 183, 183, 183, 183, 183, 183, 190, 190,
|
|
|
|
550, 550, 190, 196, 196, 196, 550, 550, 196, 224,
|
|
|
|
224, 550, 550, 224, 225, 225, 550, 550, 225, 229,
|
|
|
|
229, 550, 550, 229, 231, 231, 231, 550, 550, 231,
|
|
|
|
264, 264, 550, 550, 264, 266, 266, 550, 550, 266,
|
|
|
|
267, 267, 550, 550, 267, 269, 269, 269, 550, 550,
|
|
|
|
269, 273, 273, 273, 273, 550, 550, 273, 301, 301,
|
|
|
|
550, 550, 301, 302, 302, 550, 550, 302, 303, 303,
|
|
|
|
550, 550, 303, 315, 315, 315, 550, 550, 315, 316,
|
|
|
|
316, 316, 316, 550, 550, 316, 349, 349, 550, 550,
|
|
|
|
|
|
|
|
349, 350, 350, 550, 550, 350, 366, 366, 366, 550,
|
|
|
|
550, 366, 367, 367, 367, 367, 550, 550, 367, 392,
|
|
|
|
392, 550, 550, 392, 396, 550, 396, 396, 550, 550,
|
|
|
|
396, 414, 414, 414, 550, 550, 414, 415, 415, 415,
|
|
|
|
415, 550, 550, 415, 445, 445, 550, 550, 445, 446,
|
|
|
|
550, 446, 446, 550, 550, 446, 462, 462, 462, 550,
|
|
|
|
550, 462, 463, 463, 463, 550, 550, 550, 463, 469,
|
|
|
|
550, 550, 550, 469, 550, 469, 469, 469, 550, 469,
|
|
|
|
469, 469, 471, 550, 550, 550, 471, 550, 471, 471,
|
|
|
|
471, 550, 471, 471, 471, 481, 481, 550, 550, 481,
|
|
|
|
|
|
|
|
482, 550, 482, 482, 550, 550, 482, 498, 498, 550,
|
|
|
|
550, 550, 498, 500, 500, 500, 500, 500, 500, 500,
|
|
|
|
500, 500, 500, 500, 500, 500, 513, 513, 550, 550,
|
|
|
|
513, 514, 550, 514, 514, 550, 550, 514, 528, 528,
|
|
|
|
550, 550, 528, 529, 550, 529, 550, 550, 550, 529,
|
|
|
|
541, 550, 550, 550, 541, 542, 542, 542, 542, 542,
|
|
|
|
542, 542, 542, 542, 542, 542, 542, 542, 13, 550,
|
|
|
|
550, 550, 550, 550, 550, 550, 550, 550, 550, 550,
|
|
|
|
550, 550, 550, 550, 550, 550, 550, 550, 550, 550,
|
|
|
|
550, 550, 550, 550, 550, 550, 550, 550, 550, 550,
|
|
|
|
|
|
|
|
550, 550, 550, 550, 550, 550, 550, 550, 550, 550,
|
|
|
|
550, 550, 550, 550, 550, 550, 550, 550, 550, 550,
|
|
|
|
550, 550, 550, 550, 550, 550, 550, 550, 550, 550,
|
|
|
|
550
|
1999-01-17 21:42:12 +00:00
|
|
|
} ;
|
|
|
|
|
2009-05-17 20:22:24 +00:00
|
|
|
static yyconst short int yy_chk[3532] =
|
1999-01-17 21:42:12 +00:00
|
|
|
{ 0,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
1999-08-24 16:40:23 +00:00
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
1999-09-08 08:06:28 +00:00
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
2004-10-26 22:29:32 +00:00
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
2009-05-17 20:22:24 +00:00
|
|
|
1, 1, 2, 3, 4, 257, 2, 3, 4, 99,
|
|
|
|
5, 5, 5, 118, 5, 257, 3, 4, 99, 40,
|
|
|
|
5, 11, 11, 11, 11, 6, 6, 6, 118, 6,
|
|
|
|
2, 2, 5, 5, 2, 6, 40, 63, 2, 51,
|
|
|
|
|
|
|
|
65, 2, 12, 12, 12, 12, 69, 6, 6, 70,
|
|
|
|
25, 59, 59, 5, 25, 25, 51, 63, 67, 67,
|
|
|
|
65, 3, 4, 178, 11, 178, 106, 106, 6, 7,
|
|
|
|
7, 7, 25, 7, 27, 27, 27, 27, 27, 27,
|
|
|
|
27, 27, 108, 72, 72, 12, 72, 108, 115, 69,
|
|
|
|
70, 25, 28, 28, 28, 28, 28, 28, 39, 116,
|
|
|
|
39, 39, 39, 39, 39, 39, 39, 39, 41, 106,
|
|
|
|
547, 116, 7, 7, 7, 7, 7, 7, 7, 7,
|
2007-08-22 22:39:20 +00:00
|
|
|
7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
|
2009-05-17 20:22:24 +00:00
|
|
|
8, 8, 8, 120, 8, 542, 41, 41, 126, 120,
|
2007-08-22 22:39:20 +00:00
|
|
|
|
2009-05-17 20:22:24 +00:00
|
|
|
41, 175, 115, 126, 41, 49, 175, 41, 49, 49,
|
|
|
|
49, 49, 49, 49, 49, 49, 82, 82, 82, 82,
|
|
|
|
82, 82, 82, 82, 83, 83, 83, 83, 83, 83,
|
|
|
|
83, 83, 117, 8, 8, 8, 8, 8, 8, 8,
|
2007-08-22 22:39:20 +00:00
|
|
|
8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
|
2009-05-17 20:22:24 +00:00
|
|
|
8, 9, 9, 9, 9, 9, 119, 129, 129, 50,
|
|
|
|
9, 9, 9, 50, 50, 57, 57, 57, 119, 57,
|
|
|
|
117, 103, 143, 57, 9, 57, 103, 219, 103, 88,
|
|
|
|
168, 50, 159, 88, 88, 133, 133, 57, 57, 145,
|
|
|
|
145, 159, 219, 168, 9, 10, 10, 10, 10, 10,
|
|
|
|
|
|
|
|
50, 88, 179, 144, 10, 10, 10, 74, 57, 74,
|
|
|
|
531, 74, 294, 74, 74, 143, 179, 74, 10, 174,
|
|
|
|
88, 95, 95, 95, 95, 95, 95, 95, 95, 74,
|
|
|
|
74, 74, 97, 97, 97, 97, 97, 97, 10, 18,
|
|
|
|
181, 18, 18, 18, 144, 18, 18, 530, 85, 18,
|
|
|
|
85, 177, 85, 181, 85, 85, 109, 196, 85, 294,
|
|
|
|
189, 18, 18, 18, 123, 174, 196, 177, 123, 123,
|
|
|
|
85, 85, 85, 96, 96, 96, 96, 96, 96, 96,
|
|
|
|
96, 189, 18, 19, 109, 109, 123, 528, 109, 255,
|
|
|
|
140, 140, 109, 19, 204, 109, 19, 19, 19, 19,
|
|
|
|
|
|
|
|
19, 19, 19, 19, 26, 123, 26, 26, 26, 26,
|
|
|
|
26, 26, 26, 26, 26, 185, 204, 210, 26, 26,
|
|
|
|
26, 26, 26, 210, 517, 91, 91, 91, 91, 91,
|
|
|
|
91, 91, 91, 140, 256, 26, 260, 26, 26, 26,
|
|
|
|
26, 26, 26, 32, 217, 217, 185, 32, 255, 32,
|
|
|
|
516, 256, 32, 32, 91, 32, 32, 32, 32, 32,
|
|
|
|
32, 32, 32, 32, 32, 32, 32, 260, 514, 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, 193, 193, 193, 34, 34, 34,
|
|
|
|
34, 34, 122, 122, 122, 122, 122, 122, 122, 122,
|
|
|
|
200, 200, 200, 200, 200, 200, 34, 34, 34, 34,
|
|
|
|
34, 34, 38, 38, 38, 216, 38, 342, 38, 38,
|
|
|
|
220, 87, 38, 87, 231, 87, 220, 87, 87, 233,
|
|
|
|
233, 87, 342, 231, 38, 38, 38, 42, 136, 233,
|
|
|
|
513, 136, 136, 87, 87, 87, 434, 42, 136, 218,
|
|
|
|
42, 42, 42, 42, 42, 42, 42, 42, 90, 509,
|
|
|
|
90, 136, 90, 340, 90, 90, 500, 216, 90, 125,
|
|
|
|
|
|
|
|
218, 125, 244, 125, 151, 125, 125, 434, 151, 125,
|
|
|
|
90, 90, 90, 430, 151, 235, 235, 218, 42, 58,
|
|
|
|
295, 125, 125, 125, 244, 235, 151, 151, 430, 58,
|
|
|
|
295, 429, 58, 58, 58, 58, 58, 58, 58, 58,
|
|
|
|
77, 340, 77, 77, 77, 345, 77, 77, 357, 357,
|
|
|
|
77, 132, 132, 132, 132, 132, 132, 132, 132, 269,
|
|
|
|
251, 258, 77, 77, 77, 251, 258, 273, 269, 291,
|
|
|
|
180, 274, 274, 286, 180, 345, 273, 385, 291, 385,
|
|
|
|
180, 274, 429, 77, 92, 92, 92, 92, 92, 92,
|
|
|
|
92, 92, 180, 180, 498, 286, 92, 92, 92, 92,
|
|
|
|
|
|
|
|
92, 184, 184, 184, 184, 184, 184, 184, 184, 241,
|
|
|
|
241, 241, 241, 241, 241, 92, 92, 92, 92, 92,
|
|
|
|
92, 100, 100, 100, 100, 100, 100, 100, 100, 289,
|
|
|
|
184, 296, 494, 100, 100, 100, 100, 100, 188, 297,
|
|
|
|
188, 188, 188, 188, 188, 188, 290, 296, 297, 275,
|
|
|
|
275, 289, 100, 100, 100, 100, 100, 100, 152, 275,
|
|
|
|
152, 152, 152, 152, 152, 152, 152, 152, 290, 188,
|
|
|
|
192, 192, 192, 192, 192, 192, 192, 192, 192, 197,
|
|
|
|
197, 197, 197, 197, 197, 197, 197, 403, 403, 152,
|
|
|
|
153, 482, 153, 153, 153, 153, 153, 153, 153, 153,
|
|
|
|
|
|
|
|
199, 199, 199, 199, 199, 199, 199, 199, 202, 315,
|
|
|
|
202, 202, 202, 202, 202, 202, 202, 202, 315, 384,
|
|
|
|
384, 153, 154, 481, 154, 154, 154, 154, 154, 154,
|
|
|
|
154, 154, 226, 226, 226, 226, 226, 226, 226, 226,
|
|
|
|
226, 232, 232, 232, 232, 232, 232, 232, 232, 337,
|
|
|
|
343, 417, 417, 154, 155, 316, 155, 155, 155, 155,
|
|
|
|
155, 155, 155, 155, 316, 337, 343, 384, 155, 155,
|
|
|
|
155, 155, 155, 234, 234, 234, 234, 234, 234, 234,
|
|
|
|
234, 283, 283, 283, 283, 283, 283, 155, 155, 155,
|
|
|
|
155, 155, 155, 158, 158, 158, 158, 158, 158, 158,
|
|
|
|
|
|
|
|
158, 158, 418, 418, 471, 158, 158, 158, 158, 158,
|
|
|
|
238, 238, 238, 238, 238, 238, 238, 238, 329, 333,
|
|
|
|
238, 421, 421, 469, 158, 158, 158, 158, 158, 158,
|
|
|
|
160, 160, 160, 160, 160, 160, 160, 160, 160, 160,
|
|
|
|
329, 333, 467, 160, 160, 160, 160, 160, 240, 240,
|
|
|
|
240, 240, 240, 240, 240, 240, 307, 307, 307, 307,
|
|
|
|
307, 307, 160, 160, 160, 160, 160, 160, 161, 161,
|
|
|
|
161, 161, 161, 161, 161, 161, 277, 277, 453, 453,
|
|
|
|
161, 161, 161, 161, 161, 243, 277, 243, 243, 243,
|
|
|
|
243, 243, 243, 243, 243, 335, 317, 317, 467, 161,
|
|
|
|
|
|
|
|
161, 161, 161, 161, 161, 186, 317, 186, 186, 186,
|
|
|
|
186, 186, 186, 186, 186, 468, 379, 335, 259, 259,
|
|
|
|
259, 259, 259, 259, 259, 259, 263, 466, 263, 263,
|
|
|
|
263, 263, 263, 263, 464, 464, 186, 187, 379, 187,
|
|
|
|
187, 187, 187, 187, 187, 187, 187, 259, 276, 276,
|
|
|
|
276, 276, 276, 276, 276, 276, 270, 263, 270, 270,
|
|
|
|
270, 270, 270, 270, 270, 270, 489, 489, 187, 198,
|
|
|
|
198, 198, 198, 198, 198, 198, 198, 198, 198, 198,
|
|
|
|
341, 502, 502, 198, 198, 198, 198, 198, 271, 341,
|
|
|
|
271, 271, 271, 271, 271, 271, 271, 271, 380, 520,
|
|
|
|
|
|
|
|
520, 465, 198, 198, 198, 198, 198, 198, 201, 201,
|
|
|
|
201, 201, 201, 201, 201, 201, 201, 201, 366, 463,
|
|
|
|
380, 201, 201, 201, 201, 201, 272, 366, 272, 272,
|
|
|
|
272, 272, 272, 272, 272, 272, 446, 318, 318, 445,
|
|
|
|
201, 201, 201, 201, 201, 201, 221, 318, 221, 221,
|
|
|
|
221, 221, 221, 221, 221, 221, 280, 280, 280, 280,
|
|
|
|
280, 280, 280, 280, 441, 352, 280, 282, 282, 282,
|
|
|
|
282, 282, 282, 282, 282, 352, 504, 221, 222, 354,
|
|
|
|
222, 222, 222, 222, 222, 222, 222, 222, 285, 354,
|
|
|
|
285, 285, 285, 285, 285, 285, 285, 285, 304, 304,
|
|
|
|
|
|
|
|
304, 304, 304, 304, 304, 304, 432, 504, 533, 222,
|
|
|
|
223, 431, 223, 223, 223, 223, 223, 223, 223, 223,
|
|
|
|
306, 306, 306, 306, 306, 306, 306, 306, 309, 367,
|
|
|
|
309, 309, 309, 309, 309, 309, 309, 309, 367, 533,
|
|
|
|
426, 223, 236, 236, 236, 236, 236, 236, 236, 236,
|
|
|
|
236, 236, 236, 239, 239, 239, 239, 239, 239, 239,
|
|
|
|
239, 239, 239, 239, 410, 396, 392, 239, 239, 239,
|
|
|
|
239, 239, 310, 310, 310, 310, 310, 310, 310, 310,
|
|
|
|
326, 326, 326, 326, 326, 326, 239, 239, 239, 239,
|
|
|
|
239, 239, 242, 242, 242, 242, 242, 242, 242, 242,
|
|
|
|
|
|
|
|
242, 242, 414, 387, 383, 242, 242, 242, 242, 242,
|
|
|
|
312, 414, 312, 312, 312, 312, 312, 312, 312, 312,
|
|
|
|
382, 320, 320, 381, 242, 242, 242, 242, 242, 242,
|
|
|
|
261, 320, 261, 261, 261, 261, 261, 261, 261, 261,
|
|
|
|
313, 397, 313, 313, 313, 313, 313, 313, 313, 313,
|
|
|
|
314, 397, 314, 314, 314, 314, 314, 314, 350, 349,
|
|
|
|
339, 261, 262, 338, 262, 262, 262, 262, 262, 262,
|
|
|
|
262, 262, 319, 319, 319, 319, 319, 319, 319, 319,
|
|
|
|
323, 323, 323, 323, 323, 323, 323, 323, 332, 331,
|
|
|
|
323, 428, 428, 262, 268, 268, 268, 268, 268, 268,
|
|
|
|
|
|
|
|
268, 268, 268, 311, 428, 303, 268, 268, 268, 268,
|
|
|
|
268, 325, 325, 325, 325, 325, 325, 325, 325, 360,
|
|
|
|
360, 360, 360, 360, 360, 268, 268, 268, 268, 268,
|
|
|
|
268, 278, 278, 278, 278, 278, 278, 278, 278, 278,
|
|
|
|
278, 278, 281, 281, 281, 281, 281, 281, 281, 281,
|
|
|
|
281, 281, 281, 302, 301, 293, 281, 281, 281, 281,
|
|
|
|
281, 328, 398, 328, 328, 328, 328, 328, 328, 328,
|
|
|
|
328, 422, 398, 292, 288, 281, 281, 281, 281, 281,
|
|
|
|
281, 284, 284, 284, 284, 284, 284, 284, 284, 284,
|
|
|
|
284, 287, 267, 422, 284, 284, 284, 284, 284, 344,
|
|
|
|
|
|
|
|
344, 344, 344, 344, 344, 344, 344, 377, 377, 377,
|
|
|
|
377, 377, 377, 284, 284, 284, 284, 284, 284, 298,
|
|
|
|
298, 298, 298, 298, 298, 298, 298, 298, 344, 348,
|
|
|
|
348, 348, 348, 348, 348, 348, 351, 351, 351, 351,
|
|
|
|
351, 351, 351, 351, 266, 265, 264, 254, 253, 298,
|
|
|
|
299, 299, 299, 299, 299, 299, 299, 299, 299, 348,
|
|
|
|
353, 353, 353, 353, 353, 353, 353, 353, 359, 359,
|
|
|
|
359, 359, 359, 359, 359, 359, 252, 250, 249, 248,
|
|
|
|
299, 300, 300, 300, 300, 300, 300, 300, 300, 300,
|
|
|
|
362, 400, 362, 362, 362, 362, 362, 362, 362, 362,
|
|
|
|
|
|
|
|
363, 400, 363, 363, 363, 363, 363, 363, 363, 363,
|
|
|
|
247, 300, 305, 246, 305, 305, 305, 305, 305, 305,
|
|
|
|
305, 305, 305, 415, 230, 229, 305, 305, 305, 305,
|
|
|
|
305, 364, 415, 364, 364, 364, 364, 364, 364, 364,
|
|
|
|
364, 228, 227, 225, 224, 305, 305, 305, 305, 305,
|
|
|
|
305, 308, 308, 308, 308, 308, 308, 308, 308, 308,
|
|
|
|
215, 214, 213, 308, 308, 308, 308, 308, 365, 447,
|
|
|
|
365, 365, 365, 365, 365, 365, 365, 365, 212, 447,
|
|
|
|
211, 209, 308, 308, 308, 308, 308, 308, 321, 321,
|
|
|
|
321, 321, 321, 321, 321, 321, 321, 321, 321, 324,
|
|
|
|
|
|
|
|
324, 324, 324, 324, 324, 324, 324, 324, 324, 324,
|
|
|
|
368, 368, 208, 324, 324, 324, 324, 324, 369, 369,
|
|
|
|
368, 371, 371, 207, 206, 205, 424, 386, 369, 203,
|
|
|
|
195, 371, 324, 324, 324, 324, 324, 324, 327, 327,
|
|
|
|
327, 327, 327, 327, 327, 327, 327, 386, 424, 386,
|
|
|
|
386, 327, 327, 327, 327, 327, 370, 370, 370, 370,
|
|
|
|
370, 370, 370, 370, 477, 477, 477, 194, 386, 191,
|
|
|
|
327, 327, 327, 327, 327, 327, 346, 346, 346, 346,
|
|
|
|
346, 346, 346, 346, 346, 374, 374, 374, 374, 374,
|
|
|
|
374, 374, 374, 477, 448, 374, 376, 376, 376, 376,
|
|
|
|
|
|
|
|
376, 376, 376, 376, 448, 190, 346, 347, 347, 347,
|
|
|
|
347, 347, 347, 347, 347, 347, 378, 450, 378, 378,
|
|
|
|
378, 378, 378, 378, 378, 378, 393, 450, 393, 393,
|
|
|
|
393, 393, 393, 393, 393, 393, 183, 347, 355, 182,
|
|
|
|
355, 355, 355, 355, 355, 355, 355, 355, 355, 358,
|
|
|
|
176, 358, 358, 358, 358, 358, 358, 358, 358, 358,
|
|
|
|
462, 173, 172, 358, 358, 358, 358, 358, 394, 462,
|
|
|
|
394, 394, 394, 394, 394, 394, 394, 394, 171, 170,
|
|
|
|
169, 167, 358, 358, 358, 358, 358, 358, 361, 361,
|
|
|
|
361, 361, 361, 361, 361, 361, 361, 166, 165, 164,
|
|
|
|
|
|
|
|
361, 361, 361, 361, 361, 395, 483, 395, 395, 395,
|
|
|
|
395, 395, 395, 395, 395, 163, 483, 162, 157, 361,
|
|
|
|
361, 361, 361, 361, 361, 372, 372, 372, 372, 372,
|
|
|
|
372, 372, 372, 372, 372, 372, 375, 375, 375, 375,
|
|
|
|
375, 375, 375, 375, 375, 375, 156, 150, 149, 147,
|
|
|
|
375, 375, 375, 375, 375, 399, 399, 399, 399, 399,
|
|
|
|
399, 399, 399, 406, 406, 406, 406, 406, 406, 375,
|
|
|
|
375, 375, 375, 375, 375, 388, 146, 388, 388, 388,
|
|
|
|
388, 388, 388, 388, 388, 405, 405, 405, 405, 405,
|
|
|
|
405, 405, 405, 408, 484, 408, 408, 408, 408, 408,
|
|
|
|
|
|
|
|
408, 408, 408, 142, 484, 141, 388, 389, 139, 389,
|
|
|
|
389, 389, 389, 389, 389, 389, 389, 409, 409, 409,
|
|
|
|
409, 409, 409, 409, 409, 411, 486, 411, 411, 411,
|
|
|
|
411, 411, 411, 411, 411, 135, 486, 128, 389, 390,
|
|
|
|
515, 390, 390, 390, 390, 390, 390, 390, 390, 412,
|
|
|
|
515, 412, 412, 412, 412, 412, 412, 412, 412, 413,
|
|
|
|
124, 413, 413, 413, 413, 413, 413, 427, 121, 114,
|
|
|
|
390, 391, 113, 391, 391, 391, 391, 391, 391, 391,
|
|
|
|
391, 416, 416, 112, 111, 110, 105, 427, 104, 427,
|
|
|
|
427, 416, 102, 98, 439, 94, 439, 439, 439, 93,
|
|
|
|
|
|
|
|
89, 86, 391, 401, 84, 401, 401, 401, 401, 401,
|
|
|
|
401, 401, 401, 401, 404, 80, 404, 404, 404, 404,
|
|
|
|
404, 404, 404, 404, 404, 439, 79, 78, 404, 404,
|
|
|
|
404, 404, 404, 433, 433, 433, 433, 433, 433, 433,
|
|
|
|
433, 456, 456, 456, 456, 456, 456, 404, 404, 404,
|
|
|
|
404, 404, 404, 407, 407, 407, 407, 407, 407, 407,
|
|
|
|
407, 407, 433, 76, 75, 407, 407, 407, 407, 407,
|
|
|
|
440, 440, 440, 440, 440, 440, 440, 440, 492, 492,
|
|
|
|
492, 492, 492, 492, 407, 407, 407, 407, 407, 407,
|
|
|
|
419, 419, 419, 419, 419, 419, 419, 419, 419, 419,
|
|
|
|
|
|
|
|
435, 73, 435, 435, 435, 435, 435, 435, 435, 435,
|
|
|
|
442, 68, 442, 442, 442, 442, 442, 442, 442, 442,
|
|
|
|
443, 61, 443, 443, 443, 443, 443, 443, 443, 443,
|
|
|
|
54, 435, 436, 48, 436, 436, 436, 436, 436, 436,
|
|
|
|
436, 436, 444, 47, 444, 444, 444, 444, 444, 444,
|
|
|
|
449, 449, 449, 449, 449, 449, 449, 449, 46, 45,
|
|
|
|
44, 43, 37, 436, 437, 36, 437, 437, 437, 437,
|
|
|
|
437, 437, 437, 437, 455, 455, 455, 455, 455, 455,
|
|
|
|
455, 455, 458, 35, 458, 458, 458, 458, 458, 458,
|
|
|
|
458, 458, 33, 29, 23, 437, 438, 20, 438, 438,
|
|
|
|
|
|
|
|
438, 438, 438, 438, 438, 438, 459, 459, 459, 459,
|
|
|
|
459, 459, 459, 459, 459, 460, 460, 460, 460, 460,
|
|
|
|
460, 460, 460, 460, 17, 15, 14, 438, 451, 13,
|
|
|
|
451, 451, 451, 451, 451, 451, 451, 451, 451, 454,
|
|
|
|
0, 454, 454, 454, 454, 454, 454, 454, 454, 454,
|
|
|
|
0, 0, 0, 454, 454, 454, 454, 454, 461, 461,
|
|
|
|
461, 461, 461, 461, 461, 461, 461, 0, 0, 0,
|
|
|
|
0, 0, 454, 454, 454, 454, 454, 454, 457, 457,
|
|
|
|
457, 457, 457, 457, 457, 457, 0, 521, 521, 0,
|
|
|
|
457, 457, 457, 457, 457, 470, 0, 470, 0, 470,
|
|
|
|
|
|
|
|
521, 470, 470, 0, 0, 470, 0, 0, 0, 457,
|
|
|
|
457, 457, 457, 457, 457, 0, 0, 470, 470, 470,
|
|
|
|
472, 0, 472, 0, 472, 0, 472, 472, 0, 0,
|
|
|
|
472, 476, 476, 476, 476, 476, 476, 476, 476, 0,
|
|
|
|
0, 0, 472, 472, 472, 473, 0, 473, 473, 473,
|
|
|
|
473, 473, 473, 473, 473, 0, 0, 0, 0, 478,
|
|
|
|
476, 478, 478, 478, 478, 478, 478, 478, 478, 497,
|
|
|
|
497, 497, 497, 497, 497, 497, 473, 474, 0, 474,
|
|
|
|
474, 474, 474, 474, 474, 474, 474, 479, 0, 479,
|
|
|
|
479, 479, 479, 479, 479, 479, 479, 480, 0, 480,
|
|
|
|
|
|
|
|
480, 480, 480, 480, 480, 480, 480, 0, 474, 475,
|
|
|
|
0, 475, 475, 475, 475, 475, 475, 475, 475, 485,
|
|
|
|
485, 485, 485, 485, 485, 485, 485, 491, 491, 491,
|
|
|
|
491, 491, 491, 491, 491, 0, 0, 0, 0, 0,
|
|
|
|
475, 487, 0, 487, 487, 487, 487, 487, 487, 487,
|
|
|
|
487, 487, 490, 0, 490, 490, 490, 490, 490, 490,
|
|
|
|
490, 490, 0, 0, 0, 0, 490, 490, 490, 490,
|
|
|
|
490, 493, 0, 493, 493, 493, 493, 493, 493, 493,
|
|
|
|
493, 0, 0, 0, 0, 490, 490, 490, 490, 490,
|
|
|
|
490, 495, 495, 495, 495, 495, 495, 495, 495, 495,
|
|
|
|
|
|
|
|
496, 496, 496, 496, 496, 496, 496, 496, 496, 503,
|
|
|
|
503, 503, 503, 503, 503, 503, 503, 0, 507, 0,
|
|
|
|
507, 507, 507, 507, 507, 507, 508, 508, 508, 508,
|
|
|
|
508, 508, 508, 508, 0, 0, 0, 0, 503, 505,
|
|
|
|
0, 505, 505, 505, 505, 505, 505, 505, 505, 507,
|
|
|
|
510, 0, 510, 510, 510, 510, 510, 510, 510, 510,
|
|
|
|
511, 0, 511, 511, 511, 511, 511, 511, 511, 511,
|
|
|
|
505, 506, 0, 506, 506, 506, 506, 506, 506, 506,
|
|
|
|
506, 512, 0, 512, 512, 512, 512, 512, 512, 518,
|
|
|
|
0, 518, 518, 518, 518, 518, 518, 518, 518, 0,
|
|
|
|
|
|
|
|
0, 0, 506, 522, 0, 522, 522, 522, 522, 522,
|
|
|
|
522, 522, 522, 525, 525, 525, 525, 525, 525, 525,
|
|
|
|
525, 526, 526, 526, 526, 526, 526, 526, 526, 0,
|
|
|
|
0, 0, 0, 0, 522, 523, 0, 523, 523, 523,
|
|
|
|
523, 523, 523, 523, 523, 527, 527, 527, 527, 527,
|
|
|
|
527, 527, 527, 532, 532, 532, 532, 532, 532, 532,
|
|
|
|
532, 0, 0, 0, 0, 0, 523, 524, 0, 524,
|
|
|
|
524, 524, 524, 524, 524, 524, 524, 0, 0, 0,
|
|
|
|
0, 536, 532, 536, 536, 536, 536, 536, 536, 538,
|
|
|
|
538, 538, 538, 538, 538, 538, 538, 0, 524, 534,
|
|
|
|
|
|
|
|
0, 534, 534, 534, 534, 534, 534, 534, 534, 0,
|
|
|
|
0, 0, 536, 539, 539, 539, 539, 539, 539, 539,
|
|
|
|
539, 540, 540, 540, 540, 540, 540, 0, 0, 0,
|
|
|
|
534, 535, 0, 535, 535, 535, 535, 535, 535, 535,
|
|
|
|
535, 544, 544, 544, 544, 544, 544, 544, 544, 545,
|
|
|
|
545, 545, 545, 545, 545, 545, 545, 0, 0, 0,
|
|
|
|
0, 0, 535, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
544, 549, 549, 549, 549, 549, 549, 0, 545, 546,
|
|
|
|
546, 546, 546, 546, 546, 546, 546, 548, 548, 548,
|
|
|
|
548, 548, 548, 548, 548, 0, 0, 0, 0, 0,
|
|
|
|
|
|
|
|
549, 0, 0, 0, 0, 0, 0, 0, 546, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 548, 551, 551, 551,
|
|
|
|
551, 551, 551, 551, 551, 551, 551, 551, 551, 551,
|
|
|
|
552, 552, 552, 552, 552, 552, 552, 552, 552, 552,
|
|
|
|
552, 552, 552, 553, 553, 553, 553, 553, 553, 553,
|
|
|
|
553, 553, 553, 553, 553, 553, 554, 554, 554, 554,
|
|
|
|
554, 554, 554, 554, 554, 554, 554, 554, 554, 555,
|
|
|
|
0, 0, 0, 555, 0, 555, 555, 555, 0, 555,
|
|
|
|
555, 555, 556, 556, 0, 556, 556, 556, 556, 556,
|
|
|
|
556, 556, 556, 556, 556, 557, 557, 557, 557, 557,
|
|
|
|
|
|
|
|
557, 557, 557, 557, 557, 557, 557, 557, 558, 0,
|
|
|
|
0, 0, 558, 0, 558, 558, 558, 0, 558, 558,
|
|
|
|
558, 559, 0, 0, 0, 559, 0, 559, 559, 559,
|
|
|
|
0, 559, 559, 559, 560, 0, 0, 560, 560, 0,
|
|
|
|
560, 560, 560, 0, 560, 560, 560, 561, 561, 0,
|
|
|
|
0, 561, 562, 0, 0, 562, 562, 0, 562, 562,
|
|
|
|
562, 0, 562, 562, 562, 563, 0, 0, 563, 563,
|
|
|
|
563, 563, 563, 563, 0, 0, 563, 563, 564, 564,
|
|
|
|
565, 0, 0, 565, 0, 0, 565, 565, 565, 565,
|
|
|
|
565, 565, 565, 566, 566, 566, 566, 566, 566, 566,
|
|
|
|
|
|
|
|
566, 566, 566, 566, 566, 566, 567, 567, 0, 567,
|
|
|
|
0, 567, 567, 567, 567, 567, 567, 567, 567, 568,
|
|
|
|
568, 0, 568, 568, 568, 568, 568, 568, 568, 568,
|
|
|
|
568, 568, 569, 569, 569, 569, 569, 569, 569, 569,
|
|
|
|
569, 569, 569, 569, 569, 570, 570, 0, 570, 570,
|
|
|
|
570, 570, 570, 570, 570, 570, 570, 570, 571, 0,
|
|
|
|
0, 571, 571, 0, 571, 571, 571, 0, 571, 571,
|
|
|
|
571, 572, 572, 0, 0, 572, 573, 573, 573, 0,
|
|
|
|
0, 573, 574, 0, 0, 574, 574, 0, 574, 574,
|
|
|
|
574, 0, 574, 574, 574, 575, 575, 575, 575, 575,
|
|
|
|
|
|
|
|
575, 575, 575, 575, 575, 575, 575, 575, 576, 576,
|
|
|
|
0, 0, 576, 577, 577, 577, 0, 0, 577, 578,
|
|
|
|
578, 0, 0, 578, 579, 579, 0, 0, 579, 580,
|
|
|
|
580, 0, 0, 580, 581, 581, 581, 0, 0, 581,
|
|
|
|
582, 582, 0, 0, 582, 583, 583, 0, 0, 583,
|
|
|
|
584, 584, 0, 0, 584, 585, 585, 585, 0, 0,
|
|
|
|
585, 586, 586, 586, 586, 0, 0, 586, 587, 587,
|
|
|
|
0, 0, 587, 588, 588, 0, 0, 588, 589, 589,
|
|
|
|
0, 0, 589, 590, 590, 590, 0, 0, 590, 591,
|
|
|
|
591, 591, 591, 0, 0, 591, 592, 592, 0, 0,
|
|
|
|
|
|
|
|
592, 593, 593, 0, 0, 593, 594, 594, 594, 0,
|
|
|
|
0, 594, 595, 595, 595, 595, 0, 0, 595, 596,
|
|
|
|
596, 0, 0, 596, 597, 0, 597, 597, 0, 0,
|
|
|
|
597, 598, 598, 598, 0, 0, 598, 599, 599, 599,
|
|
|
|
599, 0, 0, 599, 600, 600, 0, 0, 600, 601,
|
|
|
|
0, 601, 601, 0, 0, 601, 602, 602, 602, 0,
|
|
|
|
0, 602, 603, 603, 603, 0, 0, 0, 603, 604,
|
|
|
|
0, 0, 0, 604, 0, 604, 604, 604, 0, 604,
|
|
|
|
604, 604, 605, 0, 0, 0, 605, 0, 605, 605,
|
|
|
|
605, 0, 605, 605, 605, 606, 606, 0, 0, 606,
|
|
|
|
|
|
|
|
607, 0, 607, 607, 0, 0, 607, 608, 608, 0,
|
|
|
|
0, 0, 608, 609, 609, 609, 609, 609, 609, 609,
|
|
|
|
609, 609, 609, 609, 609, 609, 610, 610, 0, 0,
|
|
|
|
610, 611, 0, 611, 611, 0, 0, 611, 612, 612,
|
|
|
|
0, 0, 612, 613, 0, 613, 0, 0, 0, 613,
|
|
|
|
614, 0, 0, 0, 614, 615, 615, 615, 615, 615,
|
|
|
|
615, 615, 615, 615, 615, 615, 615, 615, 550, 550,
|
|
|
|
550, 550, 550, 550, 550, 550, 550, 550, 550, 550,
|
|
|
|
550, 550, 550, 550, 550, 550, 550, 550, 550, 550,
|
|
|
|
550, 550, 550, 550, 550, 550, 550, 550, 550, 550,
|
|
|
|
|
|
|
|
550, 550, 550, 550, 550, 550, 550, 550, 550, 550,
|
|
|
|
550, 550, 550, 550, 550, 550, 550, 550, 550, 550,
|
|
|
|
550, 550, 550, 550, 550, 550, 550, 550, 550, 550,
|
|
|
|
550
|
1999-01-17 21:42:12 +00:00
|
|
|
} ;
|
|
|
|
|
|
|
|
static yy_state_type yy_last_accepting_state;
|
|
|
|
static char *yy_last_accepting_cpos;
|
|
|
|
|
|
|
|
/* The intent behind this definition is that it'll catch
|
|
|
|
* any uses of REJECT which flex missed.
|
|
|
|
*/
|
|
|
|
#define REJECT reject_used_but_not_detected
|
|
|
|
#define yymore() yymore_used_but_not_detected
|
|
|
|
#define YY_MORE_ADJ 0
|
|
|
|
#define YY_RESTORE_YY_MORE_OFFSET
|
|
|
|
char *yytext;
|
2004-10-26 22:29:32 +00:00
|
|
|
#line 1 "toke.l"
|
1999-01-17 21:42:12 +00:00
|
|
|
#define INITIAL 0
|
2004-10-26 22:29:32 +00:00
|
|
|
#line 2 "toke.l"
|
1999-01-17 21:42:12 +00:00
|
|
|
/*
|
2008-11-09 14:15:36 +00:00
|
|
|
* Copyright (c) 1996, 1998-2005, 2007-2008
|
2007-06-23 23:58:54 +00:00
|
|
|
* Todd C. Miller <Todd.Miller@courtesan.com>
|
1999-01-17 21:42:12 +00:00
|
|
|
*
|
2004-02-13 21:37:02 +00:00
|
|
|
* Permission to use, copy, modify, and distribute this software for any
|
|
|
|
* purpose with or without fee is hereby granted, provided that the above
|
|
|
|
* copyright notice and this permission notice appear in all copies.
|
1999-01-17 21:42:12 +00:00
|
|
|
*
|
2004-02-13 21:37:02 +00:00
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
|
|
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
|
|
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
|
|
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
|
|
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
|
|
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
|
|
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
1999-07-22 13:12:27 +00:00
|
|
|
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
|
|
|
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
|
|
|
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
2004-01-05 02:48:09 +00:00
|
|
|
*
|
|
|
|
* Sponsored in part by the Defense Advanced Research Projects
|
|
|
|
* Agency (DARPA) and Air Force Research Laboratory, Air Force
|
|
|
|
* Materiel Command, USAF, under agreement number F39502-99-1-0512.
|
1999-01-17 21:42:12 +00:00
|
|
|
*/
|
|
|
|
|
2004-11-19 18:39:14 +00:00
|
|
|
#include <config.h>
|
1999-01-17 21:42:12 +00:00
|
|
|
|
2001-12-14 19:59:57 +00:00
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/param.h>
|
2009-04-18 23:25:08 +00:00
|
|
|
#include <sys/stat.h>
|
2001-12-14 19:59:57 +00:00
|
|
|
#include <stdio.h>
|
1999-01-17 21:42:12 +00:00
|
|
|
#ifdef STDC_HEADERS
|
2001-12-14 19:59:57 +00:00
|
|
|
# include <stdlib.h>
|
|
|
|
# include <stddef.h>
|
|
|
|
#else
|
|
|
|
# ifdef HAVE_STDLIB_H
|
|
|
|
# include <stdlib.h>
|
|
|
|
# endif
|
1999-01-17 21:42:12 +00:00
|
|
|
#endif /* STDC_HEADERS */
|
|
|
|
#ifdef HAVE_STRING_H
|
2001-12-14 19:59:57 +00:00
|
|
|
# include <string.h>
|
|
|
|
#else
|
|
|
|
# ifdef HAVE_STRINGS_H
|
|
|
|
# include <strings.h>
|
|
|
|
# endif
|
1999-01-17 21:42:12 +00:00
|
|
|
#endif /* HAVE_STRING_H */
|
2001-12-14 19:59:57 +00:00
|
|
|
#ifdef HAVE_UNISTD_H
|
|
|
|
# include <unistd.h>
|
|
|
|
#endif /* HAVE_UNISTD_H */
|
1999-01-17 21:42:12 +00:00
|
|
|
#if defined(HAVE_MALLOC_H) && !defined(STDC_HEADERS)
|
2001-12-14 19:59:57 +00:00
|
|
|
# include <malloc.h>
|
1999-01-17 21:42:12 +00:00
|
|
|
#endif /* HAVE_MALLOC_H && !STDC_HEADERS */
|
2009-04-22 20:32:08 +00:00
|
|
|
#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
|
1999-01-17 21:42:12 +00:00
|
|
|
#include <ctype.h>
|
|
|
|
#include "sudo.h"
|
1999-07-22 13:12:27 +00:00
|
|
|
#include "parse.h"
|
2004-11-19 18:39:14 +00:00
|
|
|
#include <gram.h>
|
1999-01-17 21:42:12 +00:00
|
|
|
|
|
|
|
#ifndef lint
|
2005-01-27 15:42:30 +00:00
|
|
|
__unused static const char rcsid[] = "$Sudo$";
|
1999-01-17 21:42:12 +00:00
|
|
|
#endif /* lint */
|
|
|
|
|
|
|
|
extern YYSTYPE yylval;
|
|
|
|
int sudolineno = 1;
|
2004-09-28 18:37:08 +00:00
|
|
|
char *sudoers;
|
1999-01-17 21:42:12 +00:00
|
|
|
static int sawspace = 0;
|
|
|
|
static int arg_len = 0;
|
|
|
|
static int arg_size = 0;
|
|
|
|
|
2007-08-20 23:19:44 +00:00
|
|
|
static int append __P((char *, int));
|
|
|
|
static int _fill __P((char *, int, int));
|
2004-09-28 00:47:47 +00:00
|
|
|
static int fill_cmnd __P((char *, int));
|
|
|
|
static int fill_args __P((char *, int, int));
|
2009-04-18 23:25:08 +00:00
|
|
|
static int _push_include __P((char *, int));
|
|
|
|
static int pop_include __P((void));
|
2007-08-25 02:47:54 +00:00
|
|
|
static int ipv6_valid __P((const char *s));
|
2007-08-23 11:47:08 +00:00
|
|
|
static char *parse_include __P((char *));
|
2004-09-27 16:08:18 +00:00
|
|
|
extern void yyerror __P((const char *));
|
|
|
|
|
2007-08-20 23:19:44 +00:00
|
|
|
#define fill(a, b) _fill(a, b, 0)
|
|
|
|
|
2009-04-18 23:25:08 +00:00
|
|
|
#define push_include(_p) (_push_include((_p), FALSE))
|
|
|
|
#define push_includedir(_p) (_push_include((_p), TRUE))
|
1999-01-17 21:42:12 +00:00
|
|
|
|
|
|
|
/* realloc() to size + COMMANDARGINC to make room for command args */
|
|
|
|
#define COMMANDARGINC 64
|
|
|
|
|
|
|
|
#ifdef TRACELEXER
|
|
|
|
#define LEXTRACE(msg) fputs(msg, stderr)
|
|
|
|
#else
|
|
|
|
#define LEXTRACE(msg)
|
|
|
|
#endif
|
2004-09-29 19:22:38 +00:00
|
|
|
#define YY_NO_UNPUT 1
|
2007-08-22 22:39:20 +00:00
|
|
|
#define GOTDEFS 1
|
1999-01-17 21:42:12 +00:00
|
|
|
|
2007-08-22 22:39:20 +00:00
|
|
|
#define GOTCMND 2
|
1999-01-17 21:42:12 +00:00
|
|
|
|
2007-08-22 22:39:20 +00:00
|
|
|
#define STARTDEFS 3
|
1999-09-08 08:06:28 +00:00
|
|
|
|
2007-08-22 22:39:20 +00:00
|
|
|
#define INDEFS 4
|
2001-12-12 20:11:47 +00:00
|
|
|
|
2007-08-22 22:39:20 +00:00
|
|
|
#define INSTR 5
|
2007-08-20 23:19:44 +00:00
|
|
|
|
2009-05-17 20:22:24 +00:00
|
|
|
#line 1462 "lex.yy.c"
|
1999-01-17 21:42:12 +00:00
|
|
|
|
|
|
|
/* Macros after this point can all be overridden by user definitions in
|
|
|
|
* section 1.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef YY_SKIP_YYWRAP
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" int yywrap YY_PROTO(( void ));
|
|
|
|
#else
|
|
|
|
extern int yywrap YY_PROTO(( void ));
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef YY_NO_UNPUT
|
|
|
|
static void yyunput YY_PROTO(( int c, char *buf_ptr ));
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef yytext_ptr
|
|
|
|
static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef YY_NEED_STRLEN
|
|
|
|
static int yy_flex_strlen YY_PROTO(( yyconst char * ));
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef YY_NO_INPUT
|
|
|
|
#ifdef __cplusplus
|
|
|
|
static int yyinput YY_PROTO(( void ));
|
|
|
|
#else
|
|
|
|
static int input YY_PROTO(( void ));
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2007-06-23 23:58:54 +00:00
|
|
|
#if defined(YY_STACK_USED) && YY_STACK_USED
|
1999-01-17 21:42:12 +00:00
|
|
|
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 \
|
1999-09-08 08:06:28 +00:00
|
|
|
if ( yyleng > 0 ) \
|
|
|
|
yy_current_buffer->yy_at_bol = \
|
|
|
|
(yytext[yyleng - 1] == '\n'); \
|
1999-01-17 21:42:12 +00:00
|
|
|
YY_USER_ACTION
|
|
|
|
|
|
|
|
YY_DECL
|
|
|
|
{
|
|
|
|
register yy_state_type yy_current_state;
|
|
|
|
register char *yy_cp, *yy_bp;
|
|
|
|
register int yy_act;
|
|
|
|
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 131 "toke.l"
|
1999-01-17 21:42:12 +00:00
|
|
|
|
2009-05-17 20:22:24 +00:00
|
|
|
#line 1618 "lex.yy.c"
|
1999-01-17 21:42:12 +00:00
|
|
|
|
|
|
|
if ( yy_init )
|
|
|
|
{
|
|
|
|
yy_init = 0;
|
|
|
|
|
|
|
|
#ifdef YY_USER_INIT
|
|
|
|
YY_USER_INIT;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
if ( ! yy_start )
|
|
|
|
yy_start = 1; /* first start state */
|
|
|
|
|
|
|
|
if ( ! yyin )
|
|
|
|
yyin = stdin;
|
|
|
|
|
|
|
|
if ( ! yyout )
|
|
|
|
yyout = stdout;
|
|
|
|
|
|
|
|
if ( ! yy_current_buffer )
|
|
|
|
yy_current_buffer =
|
|
|
|
yy_create_buffer( yyin, YY_BUF_SIZE );
|
|
|
|
|
|
|
|
yy_load_buffer_state();
|
|
|
|
}
|
|
|
|
|
|
|
|
while ( 1 ) /* loops until end-of-file is reached */
|
|
|
|
{
|
|
|
|
yy_cp = yy_c_buf_p;
|
|
|
|
|
|
|
|
/* Support of yytext. */
|
|
|
|
*yy_cp = yy_hold_char;
|
|
|
|
|
|
|
|
/* yy_bp points to the position in yy_ch_buf of the start of
|
|
|
|
* the current run.
|
|
|
|
*/
|
|
|
|
yy_bp = yy_cp;
|
|
|
|
|
|
|
|
yy_current_state = yy_start;
|
1999-09-08 08:06:28 +00:00
|
|
|
yy_current_state += YY_AT_BOL();
|
1999-01-17 21:42:12 +00:00
|
|
|
yy_match:
|
|
|
|
do
|
|
|
|
{
|
|
|
|
register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
|
|
|
|
if ( yy_accept[yy_current_state] )
|
|
|
|
{
|
|
|
|
yy_last_accepting_state = yy_current_state;
|
|
|
|
yy_last_accepting_cpos = yy_cp;
|
|
|
|
}
|
|
|
|
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
|
|
|
|
{
|
|
|
|
yy_current_state = (int) yy_def[yy_current_state];
|
2009-05-17 20:22:24 +00:00
|
|
|
if ( yy_current_state >= 551 )
|
1999-01-17 21:42:12 +00:00
|
|
|
yy_c = yy_meta[(unsigned int) yy_c];
|
|
|
|
}
|
|
|
|
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
|
|
|
|
++yy_cp;
|
|
|
|
}
|
2009-05-17 20:22:24 +00:00
|
|
|
while ( yy_base[yy_current_state] != 3469 );
|
1999-01-17 21:42:12 +00:00
|
|
|
|
|
|
|
yy_find_action:
|
|
|
|
yy_act = yy_accept[yy_current_state];
|
|
|
|
if ( yy_act == 0 )
|
|
|
|
{ /* have to back up */
|
|
|
|
yy_cp = yy_last_accepting_cpos;
|
|
|
|
yy_current_state = yy_last_accepting_state;
|
|
|
|
yy_act = yy_accept[yy_current_state];
|
|
|
|
}
|
|
|
|
|
|
|
|
YY_DO_BEFORE_ACTION;
|
|
|
|
|
|
|
|
|
|
|
|
do_action: /* This label is used only to access EOF actions. */
|
|
|
|
|
|
|
|
|
|
|
|
switch ( yy_act )
|
|
|
|
{ /* beginning of action switch */
|
|
|
|
case 0: /* must back up */
|
|
|
|
/* undo the effects of YY_DO_BEFORE_ACTION */
|
|
|
|
*yy_cp = yy_hold_char;
|
|
|
|
yy_cp = yy_last_accepting_cpos;
|
|
|
|
yy_current_state = yy_last_accepting_state;
|
|
|
|
goto yy_find_action;
|
|
|
|
|
|
|
|
case 1:
|
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 132 "toke.l"
|
2001-12-12 20:11:47 +00:00
|
|
|
BEGIN STARTDEFS;
|
1999-01-17 21:42:12 +00:00
|
|
|
YY_BREAK
|
|
|
|
case 2:
|
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 134 "toke.l"
|
1999-09-08 08:06:28 +00:00
|
|
|
{
|
2001-12-12 20:11:47 +00:00
|
|
|
BEGIN INDEFS;
|
|
|
|
LEXTRACE("DEFVAR ");
|
2004-09-28 00:47:47 +00:00
|
|
|
if (!fill(yytext, yyleng))
|
|
|
|
yyterminate();
|
2001-12-12 20:11:47 +00:00
|
|
|
return(DEFVAR);
|
|
|
|
}
|
1999-01-17 21:42:12 +00:00
|
|
|
YY_BREAK
|
2001-12-12 20:11:47 +00:00
|
|
|
|
1999-01-17 21:42:12 +00:00
|
|
|
case 3:
|
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 143 "toke.l"
|
1999-01-17 21:42:12 +00:00
|
|
|
{
|
2001-12-12 20:11:47 +00:00
|
|
|
BEGIN STARTDEFS;
|
|
|
|
LEXTRACE(", ");
|
|
|
|
return(',');
|
|
|
|
} /* return ',' */
|
1999-01-17 21:42:12 +00:00
|
|
|
YY_BREAK
|
|
|
|
case 4:
|
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 149 "toke.l"
|
1999-09-08 08:06:28 +00:00
|
|
|
{
|
2001-12-12 20:11:47 +00:00
|
|
|
LEXTRACE("= ");
|
|
|
|
return('=');
|
|
|
|
} /* return '=' */
|
1999-09-08 08:06:28 +00:00
|
|
|
YY_BREAK
|
|
|
|
case 5:
|
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 154 "toke.l"
|
1999-09-08 08:06:28 +00:00
|
|
|
{
|
2001-12-12 20:11:47 +00:00
|
|
|
LEXTRACE("+= ");
|
|
|
|
return('+');
|
|
|
|
} /* return '+' */
|
1999-09-08 08:06:28 +00:00
|
|
|
YY_BREAK
|
|
|
|
case 6:
|
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 159 "toke.l"
|
1999-01-17 21:42:12 +00:00
|
|
|
{
|
2001-12-12 20:11:47 +00:00
|
|
|
LEXTRACE("-= ");
|
|
|
|
return('-');
|
|
|
|
} /* return '-' */
|
1999-01-17 21:42:12 +00:00
|
|
|
YY_BREAK
|
1999-09-08 08:06:28 +00:00
|
|
|
case 7:
|
1999-01-17 21:42:12 +00:00
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 164 "toke.l"
|
1999-09-08 08:06:28 +00:00
|
|
|
{
|
2007-08-20 23:19:44 +00:00
|
|
|
LEXTRACE("BEGINSTR ");
|
|
|
|
yylval.string = NULL;
|
|
|
|
BEGIN INSTR;
|
2001-12-12 20:11:47 +00:00
|
|
|
}
|
1999-01-17 21:42:12 +00:00
|
|
|
YY_BREAK
|
2001-12-30 22:12:17 +00:00
|
|
|
case 8:
|
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 170 "toke.l"
|
2001-12-30 22:12:17 +00:00
|
|
|
{
|
|
|
|
LEXTRACE("WORD(2) ");
|
2004-09-28 00:47:47 +00:00
|
|
|
if (!fill(yytext, yyleng))
|
|
|
|
yyterminate();
|
2001-12-30 22:12:17 +00:00
|
|
|
return(WORD);
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2001-12-12 20:11:47 +00:00
|
|
|
|
|
|
|
|
2001-12-30 22:12:17 +00:00
|
|
|
case 9:
|
1999-01-17 21:42:12 +00:00
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 179 "toke.l"
|
2007-08-20 23:19:44 +00:00
|
|
|
{
|
|
|
|
/* Line continuation char followed by newline. */
|
|
|
|
++sudolineno;
|
|
|
|
LEXTRACE("\n");
|
|
|
|
}
|
|
|
|
YY_BREAK
|
|
|
|
case 10:
|
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 185 "toke.l"
|
2007-08-20 23:19:44 +00:00
|
|
|
{
|
|
|
|
LEXTRACE("ENDSTR ");
|
|
|
|
BEGIN INDEFS;
|
|
|
|
return(WORD);
|
|
|
|
}
|
|
|
|
YY_BREAK
|
|
|
|
case 11:
|
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 191 "toke.l"
|
2008-06-26 11:49:16 +00:00
|
|
|
{
|
|
|
|
LEXTRACE("BACKSLASH ");
|
|
|
|
if (!append(yytext, yyleng))
|
|
|
|
yyterminate();
|
|
|
|
}
|
|
|
|
YY_BREAK
|
|
|
|
case 12:
|
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 197 "toke.l"
|
2007-08-20 23:19:44 +00:00
|
|
|
{
|
|
|
|
LEXTRACE("STRBODY ");
|
|
|
|
if (!append(yytext, yyleng))
|
|
|
|
yyterminate();
|
|
|
|
}
|
|
|
|
YY_BREAK
|
|
|
|
|
|
|
|
|
2008-06-26 11:49:16 +00:00
|
|
|
case 13:
|
2007-08-20 23:19:44 +00:00
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 205 "toke.l"
|
1999-01-17 21:42:12 +00:00
|
|
|
{
|
2004-05-17 22:10:20 +00:00
|
|
|
/* quoted fnmatch glob char, pass verbatim */
|
2001-12-12 20:11:47 +00:00
|
|
|
LEXTRACE("QUOTEDCHAR ");
|
2004-09-28 00:47:47 +00:00
|
|
|
if (!fill_args(yytext, 2, sawspace))
|
|
|
|
yyterminate();
|
2001-12-12 20:11:47 +00:00
|
|
|
sawspace = FALSE;
|
|
|
|
}
|
1999-01-17 21:42:12 +00:00
|
|
|
YY_BREAK
|
2008-06-26 11:49:16 +00:00
|
|
|
case 14:
|
1999-01-17 21:42:12 +00:00
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 213 "toke.l"
|
2004-05-17 22:10:20 +00:00
|
|
|
{
|
|
|
|
/* quoted sudoers special char, strip backslash */
|
|
|
|
LEXTRACE("QUOTEDCHAR ");
|
2004-09-28 00:47:47 +00:00
|
|
|
if (!fill_args(yytext + 1, 1, sawspace))
|
|
|
|
yyterminate();
|
2004-05-17 22:10:20 +00:00
|
|
|
sawspace = FALSE;
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2008-06-26 11:49:16 +00:00
|
|
|
case 15:
|
2004-05-17 22:10:20 +00:00
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 221 "toke.l"
|
1999-01-17 21:42:12 +00:00
|
|
|
{
|
2001-12-12 20:11:47 +00:00
|
|
|
BEGIN INITIAL;
|
2004-10-04 20:15:38 +00:00
|
|
|
yyless(0);
|
2001-12-12 20:11:47 +00:00
|
|
|
return(COMMAND);
|
|
|
|
} /* end of command line args */
|
1999-01-17 21:42:12 +00:00
|
|
|
YY_BREAK
|
2008-06-26 11:49:16 +00:00
|
|
|
case 16:
|
1999-01-17 21:42:12 +00:00
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 227 "toke.l"
|
1999-01-17 21:42:12 +00:00
|
|
|
{
|
2001-12-12 20:11:47 +00:00
|
|
|
LEXTRACE("ARG ");
|
2004-09-28 00:47:47 +00:00
|
|
|
if (!fill_args(yytext, yyleng, sawspace))
|
|
|
|
yyterminate();
|
2001-12-12 20:11:47 +00:00
|
|
|
sawspace = FALSE;
|
|
|
|
} /* a command line arg */
|
1999-01-17 21:42:12 +00:00
|
|
|
YY_BREAK
|
2001-12-12 20:11:47 +00:00
|
|
|
|
2008-06-26 11:49:16 +00:00
|
|
|
case 17:
|
1999-01-17 21:42:12 +00:00
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 235 "toke.l"
|
2004-09-27 16:08:18 +00:00
|
|
|
{
|
2007-08-23 11:47:08 +00:00
|
|
|
char *path;
|
|
|
|
|
|
|
|
if ((path = parse_include(yytext)) == NULL)
|
2004-09-28 00:47:47 +00:00
|
|
|
yyterminate();
|
2007-08-23 11:47:08 +00:00
|
|
|
|
2004-09-27 16:08:18 +00:00
|
|
|
LEXTRACE("INCLUDE\n");
|
2007-08-23 11:47:08 +00:00
|
|
|
|
|
|
|
/* Push current buffer and switch to include file */
|
|
|
|
if (!push_include(path))
|
|
|
|
yyterminate();
|
2004-09-27 16:08:18 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2008-06-26 11:49:16 +00:00
|
|
|
case 18:
|
2004-09-27 16:08:18 +00:00
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 248 "toke.l"
|
2009-04-18 23:25:08 +00:00
|
|
|
{
|
|
|
|
char *path;
|
|
|
|
|
|
|
|
if ((path = parse_include(yytext)) == NULL)
|
|
|
|
yyterminate();
|
|
|
|
|
|
|
|
LEXTRACE("INCLUDEDIR\n");
|
|
|
|
|
|
|
|
/* Push current buffer and switch to include file */
|
|
|
|
if (!push_includedir(path))
|
|
|
|
yyterminate();
|
|
|
|
}
|
|
|
|
YY_BREAK
|
|
|
|
case 19:
|
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 261 "toke.l"
|
1999-01-17 21:42:12 +00:00
|
|
|
{
|
2005-03-08 03:21:28 +00:00
|
|
|
int n;
|
|
|
|
for (n = 0; isblank((unsigned char)yytext[n]); n++)
|
|
|
|
continue;
|
|
|
|
n += 8;
|
2001-12-12 20:11:47 +00:00
|
|
|
BEGIN GOTDEFS;
|
2005-03-08 03:21:28 +00:00
|
|
|
switch (yytext[n++]) {
|
2001-12-12 20:11:47 +00:00
|
|
|
case ':':
|
2005-03-08 03:21:28 +00:00
|
|
|
yyless(n);
|
2001-12-12 20:11:47 +00:00
|
|
|
LEXTRACE("DEFAULTS_USER ");
|
|
|
|
return(DEFAULTS_USER);
|
2003-01-17 23:10:05 +00:00
|
|
|
case '>':
|
2005-03-08 03:21:28 +00:00
|
|
|
yyless(n);
|
2003-01-17 23:10:05 +00:00
|
|
|
LEXTRACE("DEFAULTS_RUNAS ");
|
|
|
|
return(DEFAULTS_RUNAS);
|
2001-12-12 20:11:47 +00:00
|
|
|
case '@':
|
2005-03-08 03:21:28 +00:00
|
|
|
yyless(n);
|
2001-12-12 20:11:47 +00:00
|
|
|
LEXTRACE("DEFAULTS_HOST ");
|
|
|
|
return(DEFAULTS_HOST);
|
2004-11-19 21:35:12 +00:00
|
|
|
case '!':
|
2005-03-08 03:21:28 +00:00
|
|
|
yyless(n);
|
2004-11-19 21:35:12 +00:00
|
|
|
LEXTRACE("DEFAULTS_CMND ");
|
|
|
|
return(DEFAULTS_CMND);
|
2001-12-12 20:11:47 +00:00
|
|
|
default:
|
|
|
|
LEXTRACE("DEFAULTS ");
|
|
|
|
return(DEFAULTS);
|
|
|
|
}
|
1999-01-17 21:42:12 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2009-04-18 23:25:08 +00:00
|
|
|
case 20:
|
1999-01-17 21:42:12 +00:00
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 290 "toke.l"
|
1999-01-17 21:42:12 +00:00
|
|
|
{
|
2005-03-08 03:21:28 +00:00
|
|
|
int n;
|
|
|
|
for (n = 0; isblank((unsigned char)yytext[n]); n++)
|
|
|
|
continue;
|
|
|
|
switch (yytext[n]) {
|
2001-12-12 20:11:47 +00:00
|
|
|
case 'H':
|
|
|
|
LEXTRACE("HOSTALIAS ");
|
|
|
|
return(HOSTALIAS);
|
|
|
|
case 'C':
|
|
|
|
LEXTRACE("CMNDALIAS ");
|
|
|
|
return(CMNDALIAS);
|
|
|
|
case 'U':
|
|
|
|
LEXTRACE("USERALIAS ");
|
|
|
|
return(USERALIAS);
|
|
|
|
case 'R':
|
|
|
|
LEXTRACE("RUNASALIAS ");
|
|
|
|
return(RUNASALIAS);
|
|
|
|
}
|
|
|
|
}
|
1999-01-17 21:42:12 +00:00
|
|
|
YY_BREAK
|
2009-04-18 23:25:08 +00:00
|
|
|
case 21:
|
1999-01-17 21:42:12 +00:00
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 310 "toke.l"
|
1999-09-08 08:06:28 +00:00
|
|
|
{
|
1999-01-17 21:42:12 +00:00
|
|
|
/* cmnd does not require passwd for this user */
|
|
|
|
LEXTRACE("NOPASSWD ");
|
|
|
|
return(NOPASSWD);
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2009-04-18 23:25:08 +00:00
|
|
|
case 22:
|
1999-01-17 21:42:12 +00:00
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 316 "toke.l"
|
1999-09-08 08:06:28 +00:00
|
|
|
{
|
1999-04-05 20:29:54 +00:00
|
|
|
/* cmnd requires passwd for this user */
|
|
|
|
LEXTRACE("PASSWD ");
|
|
|
|
return(PASSWD);
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2009-04-18 23:25:08 +00:00
|
|
|
case 23:
|
1999-04-05 20:29:54 +00:00
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 322 "toke.l"
|
2004-01-05 02:48:09 +00:00
|
|
|
{
|
|
|
|
LEXTRACE("NOEXEC ");
|
|
|
|
return(NOEXEC);
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2009-04-18 23:25:08 +00:00
|
|
|
case 24:
|
2004-01-05 02:48:09 +00:00
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 327 "toke.l"
|
2004-01-05 02:48:09 +00:00
|
|
|
{
|
|
|
|
LEXTRACE("EXEC ");
|
|
|
|
return(EXEC);
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2009-04-18 23:25:08 +00:00
|
|
|
case 25:
|
2004-01-05 02:48:09 +00:00
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 332 "toke.l"
|
2007-06-23 23:58:54 +00:00
|
|
|
{
|
|
|
|
LEXTRACE("SETENV ");
|
|
|
|
return(SETENV);
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2009-04-18 23:25:08 +00:00
|
|
|
case 26:
|
2007-06-23 23:58:54 +00:00
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 337 "toke.l"
|
2007-06-23 23:58:54 +00:00
|
|
|
{
|
|
|
|
LEXTRACE("NOSETENV ");
|
|
|
|
return(NOSETENV);
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2009-04-18 23:25:08 +00:00
|
|
|
case 27:
|
2007-06-23 23:58:54 +00:00
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 342 "toke.l"
|
1999-01-17 21:42:12 +00:00
|
|
|
{
|
|
|
|
/* netgroup */
|
2004-09-28 00:47:47 +00:00
|
|
|
if (!fill(yytext, yyleng))
|
|
|
|
yyterminate();
|
1999-09-08 08:06:28 +00:00
|
|
|
LEXTRACE("NETGROUP ");
|
1999-01-17 21:42:12 +00:00
|
|
|
return(NETGROUP);
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2009-04-18 23:25:08 +00:00
|
|
|
case 28:
|
1999-01-17 21:42:12 +00:00
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 350 "toke.l"
|
1999-01-17 21:42:12 +00:00
|
|
|
{
|
|
|
|
/* UN*X group */
|
2004-09-28 00:47:47 +00:00
|
|
|
if (!fill(yytext, yyleng))
|
|
|
|
yyterminate();
|
2004-10-26 22:29:32 +00:00
|
|
|
LEXTRACE("USERGROUP ");
|
1999-01-17 21:42:12 +00:00
|
|
|
return(USERGROUP);
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2009-04-18 23:25:08 +00:00
|
|
|
case 29:
|
1999-01-17 21:42:12 +00:00
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 358 "toke.l"
|
1999-01-17 21:42:12 +00:00
|
|
|
{
|
2004-09-28 00:47:47 +00:00
|
|
|
if (!fill(yytext, yyleng))
|
|
|
|
yyterminate();
|
1999-01-17 21:42:12 +00:00
|
|
|
LEXTRACE("NTWKADDR ");
|
|
|
|
return(NTWKADDR);
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2009-04-18 23:25:08 +00:00
|
|
|
case 30:
|
1999-01-17 21:42:12 +00:00
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 365 "toke.l"
|
1999-08-24 16:40:23 +00:00
|
|
|
{
|
2004-09-28 00:47:47 +00:00
|
|
|
if (!fill(yytext, yyleng))
|
|
|
|
yyterminate();
|
1999-08-24 16:40:23 +00:00
|
|
|
LEXTRACE("NTWKADDR ");
|
|
|
|
return(NTWKADDR);
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2009-04-18 23:25:08 +00:00
|
|
|
case 31:
|
1999-08-24 16:40:23 +00:00
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 372 "toke.l"
|
2007-08-13 16:34:21 +00:00
|
|
|
{
|
2007-08-25 02:47:54 +00:00
|
|
|
if (!ipv6_valid(yytext)) {
|
|
|
|
LEXTRACE("ERROR ");
|
|
|
|
return(ERROR);
|
|
|
|
}
|
2007-08-13 16:34:21 +00:00
|
|
|
if (!fill(yytext, yyleng))
|
|
|
|
yyterminate();
|
|
|
|
LEXTRACE("NTWKADDR ");
|
|
|
|
return(NTWKADDR);
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2009-04-18 23:25:08 +00:00
|
|
|
case 32:
|
2007-08-13 16:34:21 +00:00
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 383 "toke.l"
|
2007-08-13 16:34:21 +00:00
|
|
|
{
|
2007-08-25 02:47:54 +00:00
|
|
|
if (!ipv6_valid(yytext)) {
|
|
|
|
LEXTRACE("ERROR ");
|
|
|
|
return(ERROR);
|
|
|
|
}
|
2007-08-13 16:34:21 +00:00
|
|
|
if (!fill(yytext, yyleng))
|
|
|
|
yyterminate();
|
|
|
|
LEXTRACE("NTWKADDR ");
|
|
|
|
return(NTWKADDR);
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2009-04-18 23:25:08 +00:00
|
|
|
case 33:
|
2007-08-13 16:34:21 +00:00
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 394 "toke.l"
|
1999-01-17 21:42:12 +00:00
|
|
|
{
|
|
|
|
if (strcmp(yytext, "ALL") == 0) {
|
|
|
|
LEXTRACE("ALL ");
|
|
|
|
return(ALL);
|
|
|
|
}
|
2008-02-09 14:30:07 +00:00
|
|
|
#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);
|
1999-01-17 21:42:12 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2009-04-18 23:25:08 +00:00
|
|
|
case 34:
|
2007-08-21 13:19:04 +00:00
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 416 "toke.l"
|
2004-01-22 01:03:16 +00:00
|
|
|
{
|
2004-11-19 23:04:14 +00:00
|
|
|
/* no command args allowed for Defaults!/path */
|
2004-09-28 00:47:47 +00:00
|
|
|
if (!fill_cmnd(yytext, yyleng))
|
|
|
|
yyterminate();
|
2004-11-19 23:04:14 +00:00
|
|
|
LEXTRACE("COMMAND ");
|
|
|
|
return(COMMAND);
|
|
|
|
}
|
2004-01-22 01:03:16 +00:00
|
|
|
YY_BREAK
|
2009-04-18 23:25:08 +00:00
|
|
|
case 35:
|
2004-01-22 01:03:16 +00:00
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 424 "toke.l"
|
2004-11-19 21:35:12 +00:00
|
|
|
{
|
2004-11-19 23:04:14 +00:00
|
|
|
BEGIN GOTCMND;
|
|
|
|
LEXTRACE("COMMAND ");
|
2004-11-19 21:35:12 +00:00
|
|
|
if (!fill_cmnd(yytext, yyleng))
|
|
|
|
yyterminate();
|
2004-11-19 23:04:14 +00:00
|
|
|
} /* sudo -e */
|
2004-11-19 21:35:12 +00:00
|
|
|
YY_BREAK
|
2009-04-18 23:25:08 +00:00
|
|
|
case 36:
|
2004-11-19 21:35:12 +00:00
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 431 "toke.l"
|
1999-01-17 21:42:12 +00:00
|
|
|
{
|
2001-12-12 20:11:47 +00:00
|
|
|
/* directories can't have args... */
|
|
|
|
if (yytext[yyleng - 1] == '/') {
|
|
|
|
LEXTRACE("COMMAND ");
|
2004-09-28 00:47:47 +00:00
|
|
|
if (!fill_cmnd(yytext, yyleng))
|
|
|
|
yyterminate();
|
2001-12-12 20:11:47 +00:00
|
|
|
return(COMMAND);
|
1999-08-04 15:31:47 +00:00
|
|
|
} else {
|
2001-12-12 20:11:47 +00:00
|
|
|
BEGIN GOTCMND;
|
|
|
|
LEXTRACE("COMMAND ");
|
2004-09-28 00:47:47 +00:00
|
|
|
if (!fill_cmnd(yytext, yyleng))
|
|
|
|
yyterminate();
|
1999-01-17 21:42:12 +00:00
|
|
|
}
|
2001-12-12 20:11:47 +00:00
|
|
|
} /* a pathname */
|
1999-01-17 21:42:12 +00:00
|
|
|
YY_BREAK
|
2009-04-18 23:25:08 +00:00
|
|
|
case 37:
|
1999-09-08 08:06:28 +00:00
|
|
|
YY_RULE_SETUP
|
2009-04-22 20:32:08 +00:00
|
|
|
#line 446 "toke.l"
|
2009-05-17 20:22:24 +00:00
|
|
|
{
|
|
|
|
/* a quoted user/group name */
|
|
|
|
if (!fill(yytext + 1, yyleng - 2))
|
|
|
|
yyterminate();
|
|
|
|
switch (yytext[1]) {
|
|
|
|
case '%':
|
|
|
|
LEXTRACE("USERGROUP ");
|
|
|
|
return(USERGROUP);
|
|
|
|
case '+':
|
|
|
|
LEXTRACE("NETGROUP ");
|
|
|
|
return(NETGROUP);
|
|
|
|
default:
|
|
|
|
LEXTRACE("WORD(4) ");
|
|
|
|
return(WORD);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
YY_BREAK
|
|
|
|
case 38:
|
|
|
|
YY_RULE_SETUP
|
|
|
|
#line 463 "toke.l"
|
1999-09-08 08:06:28 +00:00
|
|
|
{
|
2001-12-12 20:11:47 +00:00
|
|
|
/* a word */
|
2004-09-28 00:47:47 +00:00
|
|
|
if (!fill(yytext, yyleng))
|
|
|
|
yyterminate();
|
2009-05-17 20:22:24 +00:00
|
|
|
LEXTRACE("WORD(5) ");
|
1999-09-08 08:06:28 +00:00
|
|
|
return(WORD);
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2009-05-17 20:22:24 +00:00
|
|
|
case 39:
|
2007-08-22 22:39:20 +00:00
|
|
|
YY_RULE_SETUP
|
2009-05-17 20:22:24 +00:00
|
|
|
#line 471 "toke.l"
|
2007-08-22 22:39:20 +00:00
|
|
|
{
|
|
|
|
LEXTRACE("( ");
|
|
|
|
return ('(');
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2009-05-17 20:22:24 +00:00
|
|
|
case 40:
|
2007-08-22 22:39:20 +00:00
|
|
|
YY_RULE_SETUP
|
2009-05-17 20:22:24 +00:00
|
|
|
#line 476 "toke.l"
|
2007-08-22 22:39:20 +00:00
|
|
|
{
|
|
|
|
LEXTRACE(") ");
|
|
|
|
return(')');
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2009-05-17 20:22:24 +00:00
|
|
|
case 41:
|
2001-12-12 20:11:47 +00:00
|
|
|
YY_RULE_SETUP
|
2009-05-17 20:22:24 +00:00
|
|
|
#line 481 "toke.l"
|
2001-12-12 20:11:47 +00:00
|
|
|
{
|
|
|
|
LEXTRACE(", ");
|
|
|
|
return(',');
|
|
|
|
} /* return ',' */
|
|
|
|
YY_BREAK
|
2009-05-17 20:22:24 +00:00
|
|
|
case 42:
|
1999-09-08 08:06:28 +00:00
|
|
|
YY_RULE_SETUP
|
2009-05-17 20:22:24 +00:00
|
|
|
#line 486 "toke.l"
|
1999-09-08 08:06:28 +00:00
|
|
|
{
|
2001-12-12 20:11:47 +00:00
|
|
|
LEXTRACE("= ");
|
|
|
|
return('=');
|
|
|
|
} /* return '=' */
|
1999-09-08 08:06:28 +00:00
|
|
|
YY_BREAK
|
2009-05-17 20:22:24 +00:00
|
|
|
case 43:
|
1999-01-17 21:42:12 +00:00
|
|
|
YY_RULE_SETUP
|
2009-05-17 20:22:24 +00:00
|
|
|
#line 491 "toke.l"
|
1999-01-17 21:42:12 +00:00
|
|
|
{
|
2001-12-12 20:11:47 +00:00
|
|
|
LEXTRACE(": ");
|
|
|
|
return(':');
|
|
|
|
} /* return ':' */
|
1999-01-17 21:42:12 +00:00
|
|
|
YY_BREAK
|
2009-05-17 20:22:24 +00:00
|
|
|
case 44:
|
1999-01-17 21:42:12 +00:00
|
|
|
YY_RULE_SETUP
|
2009-05-17 20:22:24 +00:00
|
|
|
#line 496 "toke.l"
|
1999-01-17 21:42:12 +00:00
|
|
|
{
|
2001-12-12 20:11:47 +00:00
|
|
|
if (yyleng % 2 == 1)
|
|
|
|
return('!'); /* return '!' */
|
|
|
|
}
|
1999-09-08 08:06:28 +00:00
|
|
|
YY_BREAK
|
2009-05-17 20:22:24 +00:00
|
|
|
case 45:
|
1999-09-08 08:06:28 +00:00
|
|
|
YY_RULE_SETUP
|
2009-05-17 20:22:24 +00:00
|
|
|
#line 501 "toke.l"
|
1999-09-08 08:06:28 +00:00
|
|
|
{
|
2001-12-12 20:11:47 +00:00
|
|
|
BEGIN INITIAL;
|
|
|
|
++sudolineno;
|
|
|
|
LEXTRACE("\n");
|
|
|
|
return(COMMENT);
|
|
|
|
} /* return newline */
|
1999-09-08 08:06:28 +00:00
|
|
|
YY_BREAK
|
2009-05-17 20:22:24 +00:00
|
|
|
case 46:
|
1999-09-08 08:06:28 +00:00
|
|
|
YY_RULE_SETUP
|
2009-05-17 20:22:24 +00:00
|
|
|
#line 508 "toke.l"
|
2001-12-12 20:11:47 +00:00
|
|
|
{ /* throw away space/tabs */
|
|
|
|
sawspace = TRUE; /* but remember for fill_args */
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2009-05-17 20:22:24 +00:00
|
|
|
case 47:
|
2001-12-12 20:11:47 +00:00
|
|
|
YY_RULE_SETUP
|
2009-05-17 20:22:24 +00:00
|
|
|
#line 512 "toke.l"
|
2001-12-12 20:11:47 +00:00
|
|
|
{
|
|
|
|
sawspace = TRUE; /* remember for fill_args */
|
|
|
|
++sudolineno;
|
|
|
|
LEXTRACE("\n\t");
|
|
|
|
} /* throw away EOL after \ */
|
|
|
|
YY_BREAK
|
2009-05-17 20:22:24 +00:00
|
|
|
case 48:
|
2001-12-12 20:11:47 +00:00
|
|
|
YY_RULE_SETUP
|
2009-05-17 20:22:24 +00:00
|
|
|
#line 518 "toke.l"
|
2001-12-12 20:11:47 +00:00
|
|
|
{
|
|
|
|
BEGIN INITIAL;
|
|
|
|
++sudolineno;
|
|
|
|
LEXTRACE("\n");
|
|
|
|
return(COMMENT);
|
2009-01-17 22:36:09 +00:00
|
|
|
} /* comment, not uid/gid */
|
2001-12-12 20:11:47 +00:00
|
|
|
YY_BREAK
|
2009-05-17 20:22:24 +00:00
|
|
|
case 49:
|
2001-12-12 20:11:47 +00:00
|
|
|
YY_RULE_SETUP
|
2009-05-17 20:22:24 +00:00
|
|
|
#line 525 "toke.l"
|
1999-09-08 08:06:28 +00:00
|
|
|
{
|
|
|
|
LEXTRACE("ERROR ");
|
1999-01-17 21:42:12 +00:00
|
|
|
return(ERROR);
|
|
|
|
} /* parse error */
|
|
|
|
YY_BREAK
|
|
|
|
case YY_STATE_EOF(INITIAL):
|
1999-09-08 08:06:28 +00:00
|
|
|
case YY_STATE_EOF(GOTDEFS):
|
2001-12-12 20:11:47 +00:00
|
|
|
case YY_STATE_EOF(GOTCMND):
|
|
|
|
case YY_STATE_EOF(STARTDEFS):
|
|
|
|
case YY_STATE_EOF(INDEFS):
|
2007-08-20 23:19:44 +00:00
|
|
|
case YY_STATE_EOF(INSTR):
|
2009-05-17 20:22:24 +00:00
|
|
|
#line 530 "toke.l"
|
2003-01-17 23:10:05 +00:00
|
|
|
{
|
|
|
|
if (YY_START != INITIAL) {
|
|
|
|
BEGIN INITIAL;
|
|
|
|
LEXTRACE("ERROR ");
|
|
|
|
return(ERROR);
|
|
|
|
}
|
2004-09-27 16:08:18 +00:00
|
|
|
if (!pop_include())
|
|
|
|
yyterminate();
|
2003-01-17 23:10:05 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2009-05-17 20:22:24 +00:00
|
|
|
case 50:
|
2003-01-17 23:10:05 +00:00
|
|
|
YY_RULE_SETUP
|
2009-05-17 20:22:24 +00:00
|
|
|
#line 540 "toke.l"
|
2003-01-17 23:10:05 +00:00
|
|
|
ECHO;
|
|
|
|
YY_BREAK
|
2009-05-17 20:22:24 +00:00
|
|
|
#line 2269 "lex.yy.c"
|
1999-01-17 21:42:12 +00:00
|
|
|
|
|
|
|
case YY_END_OF_BUFFER:
|
|
|
|
{
|
|
|
|
/* Amount of text matched not including the EOB char. */
|
|
|
|
int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
|
|
|
|
|
|
|
|
/* Undo the effects of YY_DO_BEFORE_ACTION. */
|
|
|
|
*yy_cp = yy_hold_char;
|
|
|
|
YY_RESTORE_YY_MORE_OFFSET
|
|
|
|
|
|
|
|
if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
|
|
|
|
{
|
|
|
|
/* We're scanning a new file or input source. It's
|
|
|
|
* possible that this happened because the user
|
|
|
|
* just pointed yyin at a new source and called
|
|
|
|
* yylex(). If so, then we have to assure
|
|
|
|
* consistency between yy_current_buffer and our
|
|
|
|
* globals. Here is the right place to do so, because
|
|
|
|
* this is the first action (other than possibly a
|
|
|
|
* back-up) that will match for the new input source.
|
|
|
|
*/
|
|
|
|
yy_n_chars = yy_current_buffer->yy_n_chars;
|
|
|
|
yy_current_buffer->yy_input_file = yyin;
|
|
|
|
yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Note that here we test for yy_c_buf_p "<=" to the position
|
|
|
|
* of the first EOB in the buffer, since yy_c_buf_p will
|
|
|
|
* already have been incremented past the NUL character
|
|
|
|
* (since all states make transitions on EOB to the
|
|
|
|
* end-of-buffer state). Contrast this with the test
|
|
|
|
* in input().
|
|
|
|
*/
|
|
|
|
if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
|
|
|
|
{ /* This was really a NUL. */
|
|
|
|
yy_state_type yy_next_state;
|
|
|
|
|
|
|
|
yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
|
|
|
|
|
|
|
|
yy_current_state = yy_get_previous_state();
|
|
|
|
|
|
|
|
/* Okay, we're now positioned to make the NUL
|
|
|
|
* transition. We couldn't have
|
|
|
|
* yy_get_previous_state() go ahead and do it
|
|
|
|
* for us because it doesn't know how to deal
|
|
|
|
* with the possibility of jamming (and we don't
|
|
|
|
* want to build jamming into it because then it
|
|
|
|
* will run more slowly).
|
|
|
|
*/
|
|
|
|
|
|
|
|
yy_next_state = yy_try_NUL_trans( yy_current_state );
|
|
|
|
|
|
|
|
yy_bp = yytext_ptr + YY_MORE_ADJ;
|
|
|
|
|
|
|
|
if ( yy_next_state )
|
|
|
|
{
|
|
|
|
/* Consume the NUL. */
|
|
|
|
yy_cp = ++yy_c_buf_p;
|
|
|
|
yy_current_state = yy_next_state;
|
|
|
|
goto yy_match;
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
{
|
|
|
|
yy_cp = yy_c_buf_p;
|
|
|
|
goto yy_find_action;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else switch ( yy_get_next_buffer() )
|
|
|
|
{
|
|
|
|
case EOB_ACT_END_OF_FILE:
|
|
|
|
{
|
|
|
|
yy_did_buffer_switch_on_eof = 0;
|
|
|
|
|
|
|
|
if ( yywrap() )
|
|
|
|
{
|
|
|
|
/* Note: because we've taken care in
|
|
|
|
* yy_get_next_buffer() to have set up
|
|
|
|
* yytext, we can now set up
|
|
|
|
* yy_c_buf_p so that if some total
|
|
|
|
* hoser (like flex itself) wants to
|
|
|
|
* call the scanner after we return the
|
|
|
|
* YY_NULL, it'll still work - another
|
|
|
|
* YY_NULL will get returned.
|
|
|
|
*/
|
|
|
|
yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
|
|
|
|
|
|
|
|
yy_act = YY_STATE_EOF(YY_START);
|
|
|
|
goto do_action;
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if ( ! yy_did_buffer_switch_on_eof )
|
|
|
|
YY_NEW_FILE;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
case EOB_ACT_CONTINUE_SCAN:
|
|
|
|
yy_c_buf_p =
|
|
|
|
yytext_ptr + yy_amount_of_matched_text;
|
|
|
|
|
|
|
|
yy_current_state = yy_get_previous_state();
|
|
|
|
|
|
|
|
yy_cp = yy_c_buf_p;
|
|
|
|
yy_bp = yytext_ptr + YY_MORE_ADJ;
|
|
|
|
goto yy_match;
|
|
|
|
|
|
|
|
case EOB_ACT_LAST_MATCH:
|
|
|
|
yy_c_buf_p =
|
|
|
|
&yy_current_buffer->yy_ch_buf[yy_n_chars];
|
|
|
|
|
|
|
|
yy_current_state = yy_get_previous_state();
|
|
|
|
|
|
|
|
yy_cp = yy_c_buf_p;
|
|
|
|
yy_bp = yytext_ptr + YY_MORE_ADJ;
|
|
|
|
goto yy_find_action;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
default:
|
|
|
|
YY_FATAL_ERROR(
|
|
|
|
"fatal flex scanner internal error--no action found" );
|
|
|
|
} /* end of action switch */
|
|
|
|
} /* end of scanning one token */
|
|
|
|
} /* end of yylex */
|
|
|
|
|
|
|
|
|
|
|
|
/* yy_get_next_buffer - try to read in a new buffer
|
|
|
|
*
|
|
|
|
* Returns a code representing an action:
|
|
|
|
* EOB_ACT_LAST_MATCH -
|
|
|
|
* EOB_ACT_CONTINUE_SCAN - continue scanning from current position
|
|
|
|
* EOB_ACT_END_OF_FILE - end of file
|
|
|
|
*/
|
|
|
|
|
|
|
|
static int yy_get_next_buffer()
|
|
|
|
{
|
|
|
|
register char *dest = yy_current_buffer->yy_ch_buf;
|
|
|
|
register char *source = yytext_ptr;
|
|
|
|
register int number_to_move, i;
|
|
|
|
int ret_val;
|
|
|
|
|
|
|
|
if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
|
|
|
|
YY_FATAL_ERROR(
|
|
|
|
"fatal flex scanner internal error--end of buffer missed" );
|
|
|
|
|
|
|
|
if ( yy_current_buffer->yy_fill_buffer == 0 )
|
|
|
|
{ /* Don't try to fill the buffer, so this is an EOF. */
|
|
|
|
if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
|
|
|
|
{
|
|
|
|
/* We matched a single character, the EOB, so
|
|
|
|
* treat this as a final EOF.
|
|
|
|
*/
|
|
|
|
return EOB_ACT_END_OF_FILE;
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
{
|
|
|
|
/* We matched some text prior to the EOB, first
|
|
|
|
* process it.
|
|
|
|
*/
|
|
|
|
return EOB_ACT_LAST_MATCH;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Try to read more data. */
|
|
|
|
|
|
|
|
/* First move last chars to start of buffer. */
|
|
|
|
number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
|
|
|
|
|
|
|
|
for ( i = 0; i < number_to_move; ++i )
|
|
|
|
*(dest++) = *(source++);
|
|
|
|
|
|
|
|
if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
|
|
|
|
/* don't do the read, it's not guaranteed to return an EOF,
|
|
|
|
* just force an EOF
|
|
|
|
*/
|
|
|
|
yy_current_buffer->yy_n_chars = yy_n_chars = 0;
|
|
|
|
|
|
|
|
else
|
|
|
|
{
|
|
|
|
int num_to_read =
|
|
|
|
yy_current_buffer->yy_buf_size - number_to_move - 1;
|
|
|
|
|
|
|
|
while ( num_to_read <= 0 )
|
|
|
|
{ /* Not enough room in the buffer - grow it. */
|
|
|
|
#ifdef YY_USES_REJECT
|
|
|
|
YY_FATAL_ERROR(
|
|
|
|
"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
|
|
|
|
#else
|
|
|
|
|
|
|
|
/* just a shorter name for the current buffer */
|
|
|
|
YY_BUFFER_STATE b = yy_current_buffer;
|
|
|
|
|
|
|
|
int yy_c_buf_p_offset =
|
|
|
|
(int) (yy_c_buf_p - b->yy_ch_buf);
|
|
|
|
|
|
|
|
if ( b->yy_is_our_buffer )
|
|
|
|
{
|
|
|
|
int new_size = b->yy_buf_size * 2;
|
|
|
|
|
|
|
|
if ( new_size <= 0 )
|
|
|
|
b->yy_buf_size += b->yy_buf_size / 8;
|
|
|
|
else
|
|
|
|
b->yy_buf_size *= 2;
|
|
|
|
|
|
|
|
b->yy_ch_buf = (char *)
|
|
|
|
/* Include room in for 2 EOB chars. */
|
|
|
|
yy_flex_realloc( (void *) b->yy_ch_buf,
|
|
|
|
b->yy_buf_size + 2 );
|
|
|
|
}
|
|
|
|
else
|
|
|
|
/* Can't grow it, we don't own it. */
|
|
|
|
b->yy_ch_buf = 0;
|
|
|
|
|
|
|
|
if ( ! b->yy_ch_buf )
|
|
|
|
YY_FATAL_ERROR(
|
|
|
|
"fatal error - scanner input buffer overflow" );
|
|
|
|
|
|
|
|
yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
|
|
|
|
|
|
|
|
num_to_read = yy_current_buffer->yy_buf_size -
|
|
|
|
number_to_move - 1;
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( num_to_read > YY_READ_BUF_SIZE )
|
|
|
|
num_to_read = YY_READ_BUF_SIZE;
|
|
|
|
|
|
|
|
/* Read in more data. */
|
|
|
|
YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
|
|
|
|
yy_n_chars, num_to_read );
|
|
|
|
|
|
|
|
yy_current_buffer->yy_n_chars = yy_n_chars;
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( yy_n_chars == 0 )
|
|
|
|
{
|
|
|
|
if ( number_to_move == YY_MORE_ADJ )
|
|
|
|
{
|
|
|
|
ret_val = EOB_ACT_END_OF_FILE;
|
|
|
|
yyrestart( yyin );
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
{
|
|
|
|
ret_val = EOB_ACT_LAST_MATCH;
|
|
|
|
yy_current_buffer->yy_buffer_status =
|
|
|
|
YY_BUFFER_EOF_PENDING;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
ret_val = EOB_ACT_CONTINUE_SCAN;
|
|
|
|
|
|
|
|
yy_n_chars += number_to_move;
|
|
|
|
yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
|
|
|
|
yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
|
|
|
|
|
|
|
|
yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
|
|
|
|
|
|
|
|
return ret_val;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* yy_get_previous_state - get the state just before the EOB char was reached */
|
|
|
|
|
|
|
|
static yy_state_type yy_get_previous_state()
|
|
|
|
{
|
|
|
|
register yy_state_type yy_current_state;
|
|
|
|
register char *yy_cp;
|
|
|
|
|
|
|
|
yy_current_state = yy_start;
|
1999-09-08 08:06:28 +00:00
|
|
|
yy_current_state += YY_AT_BOL();
|
1999-01-17 21:42:12 +00:00
|
|
|
|
|
|
|
for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
|
|
|
|
{
|
|
|
|
register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
|
|
|
|
if ( yy_accept[yy_current_state] )
|
|
|
|
{
|
|
|
|
yy_last_accepting_state = yy_current_state;
|
|
|
|
yy_last_accepting_cpos = yy_cp;
|
|
|
|
}
|
|
|
|
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
|
|
|
|
{
|
|
|
|
yy_current_state = (int) yy_def[yy_current_state];
|
2009-05-17 20:22:24 +00:00
|
|
|
if ( yy_current_state >= 551 )
|
1999-01-17 21:42:12 +00:00
|
|
|
yy_c = yy_meta[(unsigned int) yy_c];
|
|
|
|
}
|
|
|
|
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
|
|
|
|
}
|
|
|
|
|
|
|
|
return yy_current_state;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* yy_try_NUL_trans - try to make a transition on the NUL character
|
|
|
|
*
|
|
|
|
* synopsis
|
|
|
|
* next_state = yy_try_NUL_trans( current_state );
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef YY_USE_PROTOS
|
|
|
|
static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
|
|
|
|
#else
|
|
|
|
static yy_state_type yy_try_NUL_trans( yy_current_state )
|
|
|
|
yy_state_type yy_current_state;
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
register int yy_is_jam;
|
|
|
|
register char *yy_cp = yy_c_buf_p;
|
|
|
|
|
|
|
|
register YY_CHAR yy_c = 1;
|
|
|
|
if ( yy_accept[yy_current_state] )
|
|
|
|
{
|
|
|
|
yy_last_accepting_state = yy_current_state;
|
|
|
|
yy_last_accepting_cpos = yy_cp;
|
|
|
|
}
|
|
|
|
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
|
|
|
|
{
|
|
|
|
yy_current_state = (int) yy_def[yy_current_state];
|
2009-05-17 20:22:24 +00:00
|
|
|
if ( yy_current_state >= 551 )
|
1999-01-17 21:42:12 +00:00
|
|
|
yy_c = yy_meta[(unsigned int) yy_c];
|
|
|
|
}
|
|
|
|
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
|
2009-05-17 20:22:24 +00:00
|
|
|
yy_is_jam = (yy_current_state == 550);
|
1999-01-17 21:42:12 +00:00
|
|
|
|
|
|
|
return yy_is_jam ? 0 : yy_current_state;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef YY_NO_UNPUT
|
|
|
|
#ifdef YY_USE_PROTOS
|
|
|
|
static void yyunput( int c, register char *yy_bp )
|
|
|
|
#else
|
|
|
|
static void yyunput( c, yy_bp )
|
|
|
|
int c;
|
|
|
|
register char *yy_bp;
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
register char *yy_cp = yy_c_buf_p;
|
|
|
|
|
|
|
|
/* undo effects of setting up yytext */
|
|
|
|
*yy_cp = yy_hold_char;
|
|
|
|
|
|
|
|
if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
|
|
|
|
{ /* need to shift things up to make room */
|
|
|
|
/* +2 for EOB chars. */
|
|
|
|
register int number_to_move = yy_n_chars + 2;
|
|
|
|
register char *dest = &yy_current_buffer->yy_ch_buf[
|
|
|
|
yy_current_buffer->yy_buf_size + 2];
|
|
|
|
register char *source =
|
|
|
|
&yy_current_buffer->yy_ch_buf[number_to_move];
|
|
|
|
|
|
|
|
while ( source > yy_current_buffer->yy_ch_buf )
|
|
|
|
*--dest = *--source;
|
|
|
|
|
|
|
|
yy_cp += (int) (dest - source);
|
|
|
|
yy_bp += (int) (dest - source);
|
|
|
|
yy_current_buffer->yy_n_chars =
|
|
|
|
yy_n_chars = yy_current_buffer->yy_buf_size;
|
|
|
|
|
|
|
|
if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
|
|
|
|
YY_FATAL_ERROR( "flex scanner push-back overflow" );
|
|
|
|
}
|
|
|
|
|
|
|
|
*--yy_cp = (char) c;
|
|
|
|
|
|
|
|
|
|
|
|
yytext_ptr = yy_bp;
|
|
|
|
yy_hold_char = *yy_cp;
|
|
|
|
yy_c_buf_p = yy_cp;
|
|
|
|
}
|
|
|
|
#endif /* ifndef YY_NO_UNPUT */
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
static int yyinput()
|
|
|
|
#else
|
|
|
|
static int input()
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
int c;
|
|
|
|
|
|
|
|
*yy_c_buf_p = yy_hold_char;
|
|
|
|
|
|
|
|
if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
|
|
|
|
{
|
|
|
|
/* yy_c_buf_p now points to the character we want to return.
|
|
|
|
* If this occurs *before* the EOB characters, then it's a
|
|
|
|
* valid NUL; if not, then we've hit the end of the buffer.
|
|
|
|
*/
|
|
|
|
if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
|
|
|
|
/* This was really a NUL. */
|
|
|
|
*yy_c_buf_p = '\0';
|
|
|
|
|
|
|
|
else
|
|
|
|
{ /* need more input */
|
|
|
|
int offset = yy_c_buf_p - yytext_ptr;
|
|
|
|
++yy_c_buf_p;
|
|
|
|
|
|
|
|
switch ( yy_get_next_buffer() )
|
|
|
|
{
|
|
|
|
case EOB_ACT_LAST_MATCH:
|
|
|
|
/* This happens because yy_g_n_b()
|
|
|
|
* sees that we've accumulated a
|
|
|
|
* token and flags that we need to
|
|
|
|
* try matching the token before
|
|
|
|
* proceeding. But for input(),
|
|
|
|
* there's no matching to consider.
|
|
|
|
* So convert the EOB_ACT_LAST_MATCH
|
|
|
|
* to EOB_ACT_END_OF_FILE.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Reset buffer status. */
|
|
|
|
yyrestart( yyin );
|
|
|
|
|
|
|
|
/* fall through */
|
|
|
|
|
|
|
|
case EOB_ACT_END_OF_FILE:
|
|
|
|
{
|
|
|
|
if ( yywrap() )
|
|
|
|
return EOF;
|
|
|
|
|
|
|
|
if ( ! yy_did_buffer_switch_on_eof )
|
|
|
|
YY_NEW_FILE;
|
|
|
|
#ifdef __cplusplus
|
|
|
|
return yyinput();
|
|
|
|
#else
|
|
|
|
return input();
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
case EOB_ACT_CONTINUE_SCAN:
|
|
|
|
yy_c_buf_p = yytext_ptr + offset;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
|
|
|
|
*yy_c_buf_p = '\0'; /* preserve yytext */
|
|
|
|
yy_hold_char = *++yy_c_buf_p;
|
|
|
|
|
1999-09-08 08:06:28 +00:00
|
|
|
yy_current_buffer->yy_at_bol = (c == '\n');
|
1999-01-17 21:42:12 +00:00
|
|
|
|
|
|
|
return c;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef YY_USE_PROTOS
|
|
|
|
void yyrestart( FILE *input_file )
|
|
|
|
#else
|
|
|
|
void yyrestart( input_file )
|
|
|
|
FILE *input_file;
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
if ( ! yy_current_buffer )
|
|
|
|
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
|
|
|
|
|
|
|
|
yy_init_buffer( yy_current_buffer, input_file );
|
|
|
|
yy_load_buffer_state();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef YY_USE_PROTOS
|
|
|
|
void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
|
|
|
|
#else
|
|
|
|
void yy_switch_to_buffer( new_buffer )
|
|
|
|
YY_BUFFER_STATE new_buffer;
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
if ( yy_current_buffer == new_buffer )
|
|
|
|
return;
|
|
|
|
|
|
|
|
if ( yy_current_buffer )
|
|
|
|
{
|
|
|
|
/* Flush out information for old buffer. */
|
|
|
|
*yy_c_buf_p = yy_hold_char;
|
|
|
|
yy_current_buffer->yy_buf_pos = yy_c_buf_p;
|
|
|
|
yy_current_buffer->yy_n_chars = yy_n_chars;
|
|
|
|
}
|
|
|
|
|
|
|
|
yy_current_buffer = new_buffer;
|
|
|
|
yy_load_buffer_state();
|
|
|
|
|
|
|
|
/* We don't actually know whether we did this switch during
|
|
|
|
* EOF (yywrap()) processing, but the only time this flag
|
|
|
|
* is looked at is after yywrap() is called, so it's safe
|
|
|
|
* to go ahead and always set it.
|
|
|
|
*/
|
|
|
|
yy_did_buffer_switch_on_eof = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef YY_USE_PROTOS
|
|
|
|
void yy_load_buffer_state( void )
|
|
|
|
#else
|
|
|
|
void yy_load_buffer_state()
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
yy_n_chars = yy_current_buffer->yy_n_chars;
|
|
|
|
yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
|
|
|
|
yyin = yy_current_buffer->yy_input_file;
|
|
|
|
yy_hold_char = *yy_c_buf_p;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef YY_USE_PROTOS
|
|
|
|
YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
|
|
|
|
#else
|
|
|
|
YY_BUFFER_STATE yy_create_buffer( file, size )
|
|
|
|
FILE *file;
|
|
|
|
int size;
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
YY_BUFFER_STATE b;
|
|
|
|
|
|
|
|
b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
|
|
|
|
if ( ! b )
|
|
|
|
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
|
|
|
|
|
|
|
|
b->yy_buf_size = size;
|
|
|
|
|
|
|
|
/* yy_ch_buf has to be 2 characters longer than the size given because
|
|
|
|
* we need to put in 2 end-of-buffer characters.
|
|
|
|
*/
|
|
|
|
b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
|
|
|
|
if ( ! b->yy_ch_buf )
|
|
|
|
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
|
|
|
|
|
|
|
|
b->yy_is_our_buffer = 1;
|
|
|
|
|
|
|
|
yy_init_buffer( b, file );
|
|
|
|
|
|
|
|
return b;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef YY_USE_PROTOS
|
|
|
|
void yy_delete_buffer( YY_BUFFER_STATE b )
|
|
|
|
#else
|
|
|
|
void yy_delete_buffer( b )
|
|
|
|
YY_BUFFER_STATE b;
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
if ( ! b )
|
|
|
|
return;
|
|
|
|
|
|
|
|
if ( b == yy_current_buffer )
|
|
|
|
yy_current_buffer = (YY_BUFFER_STATE) 0;
|
|
|
|
|
|
|
|
if ( b->yy_is_our_buffer )
|
|
|
|
yy_flex_free( (void *) b->yy_ch_buf );
|
|
|
|
|
|
|
|
yy_flex_free( (void *) b );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef YY_ALWAYS_INTERACTIVE
|
|
|
|
#ifndef YY_NEVER_INTERACTIVE
|
2004-02-13 21:37:02 +00:00
|
|
|
#include <unistd.h>
|
1999-01-17 21:42:12 +00:00
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef YY_USE_PROTOS
|
|
|
|
void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
|
|
|
|
#else
|
|
|
|
void yy_init_buffer( b, file )
|
|
|
|
YY_BUFFER_STATE b;
|
|
|
|
FILE *file;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
{
|
2001-01-07 18:55:32 +00:00
|
|
|
int oerrno = errno;
|
|
|
|
|
1999-01-17 21:42:12 +00:00
|
|
|
yy_flush_buffer( b );
|
|
|
|
|
|
|
|
b->yy_input_file = file;
|
|
|
|
b->yy_fill_buffer = 1;
|
|
|
|
|
2007-06-23 23:58:54 +00:00
|
|
|
#if defined(YY_ALWAYS_INTERACTIVE) && YY_ALWAYS_INTERACTIVE
|
1999-01-17 21:42:12 +00:00
|
|
|
b->yy_is_interactive = 1;
|
|
|
|
#else
|
2007-06-23 23:58:54 +00:00
|
|
|
#if defined(YY_NEVER_INTERACTIVE) && YY_NEVER_INTERACTIVE
|
1999-01-17 21:42:12 +00:00
|
|
|
b->yy_is_interactive = 0;
|
|
|
|
#else
|
|
|
|
b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
|
|
|
|
#endif
|
|
|
|
#endif
|
2001-01-07 18:55:32 +00:00
|
|
|
errno = oerrno;
|
1999-01-17 21:42:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef YY_USE_PROTOS
|
|
|
|
void yy_flush_buffer( YY_BUFFER_STATE b )
|
|
|
|
#else
|
|
|
|
void yy_flush_buffer( b )
|
|
|
|
YY_BUFFER_STATE b;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
{
|
|
|
|
if ( ! b )
|
|
|
|
return;
|
|
|
|
|
|
|
|
b->yy_n_chars = 0;
|
|
|
|
|
|
|
|
/* We always need two end-of-buffer characters. The first causes
|
|
|
|
* a transition to the end-of-buffer state. The second causes
|
|
|
|
* a jam in that state.
|
|
|
|
*/
|
|
|
|
b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
|
|
|
|
b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
|
|
|
|
|
|
|
|
b->yy_buf_pos = &b->yy_ch_buf[0];
|
|
|
|
|
|
|
|
b->yy_at_bol = 1;
|
|
|
|
b->yy_buffer_status = YY_BUFFER_NEW;
|
|
|
|
|
|
|
|
if ( b == yy_current_buffer )
|
|
|
|
yy_load_buffer_state();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef YY_NO_SCAN_BUFFER
|
|
|
|
#ifdef YY_USE_PROTOS
|
|
|
|
YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
|
|
|
|
#else
|
|
|
|
YY_BUFFER_STATE yy_scan_buffer( base, size )
|
|
|
|
char *base;
|
|
|
|
yy_size_t size;
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
YY_BUFFER_STATE b;
|
|
|
|
|
|
|
|
if ( size < 2 ||
|
|
|
|
base[size-2] != YY_END_OF_BUFFER_CHAR ||
|
|
|
|
base[size-1] != YY_END_OF_BUFFER_CHAR )
|
|
|
|
/* They forgot to leave room for the EOB's. */
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
|
|
|
|
if ( ! b )
|
|
|
|
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
|
|
|
|
|
|
|
|
b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
|
|
|
|
b->yy_buf_pos = b->yy_ch_buf = base;
|
|
|
|
b->yy_is_our_buffer = 0;
|
|
|
|
b->yy_input_file = 0;
|
|
|
|
b->yy_n_chars = b->yy_buf_size;
|
|
|
|
b->yy_is_interactive = 0;
|
|
|
|
b->yy_at_bol = 1;
|
|
|
|
b->yy_fill_buffer = 0;
|
|
|
|
b->yy_buffer_status = YY_BUFFER_NEW;
|
|
|
|
|
|
|
|
yy_switch_to_buffer( b );
|
|
|
|
|
|
|
|
return b;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef YY_NO_SCAN_STRING
|
|
|
|
#ifdef YY_USE_PROTOS
|
|
|
|
YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
|
|
|
|
#else
|
|
|
|
YY_BUFFER_STATE yy_scan_string( yy_str )
|
|
|
|
yyconst char *yy_str;
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
int len;
|
|
|
|
for ( len = 0; yy_str[len]; ++len )
|
|
|
|
;
|
|
|
|
|
|
|
|
return yy_scan_bytes( yy_str, len );
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef YY_NO_SCAN_BYTES
|
|
|
|
#ifdef YY_USE_PROTOS
|
|
|
|
YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
|
|
|
|
#else
|
|
|
|
YY_BUFFER_STATE yy_scan_bytes( bytes, len )
|
|
|
|
yyconst char *bytes;
|
|
|
|
int len;
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
YY_BUFFER_STATE b;
|
|
|
|
char *buf;
|
|
|
|
yy_size_t n;
|
|
|
|
int i;
|
|
|
|
|
|
|
|
/* Get memory for full buffer, including space for trailing EOB's. */
|
|
|
|
n = len + 2;
|
|
|
|
buf = (char *) yy_flex_alloc( n );
|
|
|
|
if ( ! buf )
|
|
|
|
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
|
|
|
|
|
|
|
|
for ( i = 0; i < len; ++i )
|
|
|
|
buf[i] = bytes[i];
|
|
|
|
|
|
|
|
buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
|
|
|
|
|
|
|
|
b = yy_scan_buffer( buf, n );
|
|
|
|
if ( ! b )
|
|
|
|
YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
|
|
|
|
|
|
|
|
/* It's okay to grow etc. this buffer, and we should throw it
|
|
|
|
* away when we're done.
|
|
|
|
*/
|
|
|
|
b->yy_is_our_buffer = 1;
|
|
|
|
|
|
|
|
return b;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef YY_NO_PUSH_STATE
|
|
|
|
#ifdef YY_USE_PROTOS
|
|
|
|
static void yy_push_state( int new_state )
|
|
|
|
#else
|
|
|
|
static void yy_push_state( new_state )
|
|
|
|
int new_state;
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
if ( yy_start_stack_ptr >= yy_start_stack_depth )
|
|
|
|
{
|
|
|
|
yy_size_t new_size;
|
|
|
|
|
|
|
|
yy_start_stack_depth += YY_START_STACK_INCR;
|
|
|
|
new_size = yy_start_stack_depth * sizeof( int );
|
|
|
|
|
|
|
|
if ( ! yy_start_stack )
|
|
|
|
yy_start_stack = (int *) yy_flex_alloc( new_size );
|
|
|
|
|
|
|
|
else
|
|
|
|
yy_start_stack = (int *) yy_flex_realloc(
|
|
|
|
(void *) yy_start_stack, new_size );
|
|
|
|
|
|
|
|
if ( ! yy_start_stack )
|
|
|
|
YY_FATAL_ERROR(
|
|
|
|
"out of memory expanding start-condition stack" );
|
|
|
|
}
|
|
|
|
|
|
|
|
yy_start_stack[yy_start_stack_ptr++] = YY_START;
|
|
|
|
|
|
|
|
BEGIN(new_state);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef YY_NO_POP_STATE
|
|
|
|
static void yy_pop_state()
|
|
|
|
{
|
|
|
|
if ( --yy_start_stack_ptr < 0 )
|
|
|
|
YY_FATAL_ERROR( "start-condition stack underflow" );
|
|
|
|
|
|
|
|
BEGIN(yy_start_stack[yy_start_stack_ptr]);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef YY_NO_TOP_STATE
|
|
|
|
static int yy_top_state()
|
|
|
|
{
|
|
|
|
return yy_start_stack[yy_start_stack_ptr - 1];
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef YY_EXIT_FAILURE
|
|
|
|
#define YY_EXIT_FAILURE 2
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef YY_USE_PROTOS
|
|
|
|
static void yy_fatal_error( yyconst char msg[] )
|
|
|
|
#else
|
|
|
|
static void yy_fatal_error( msg )
|
|
|
|
char msg[];
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
(void) fprintf( stderr, "%s\n", msg );
|
|
|
|
exit( YY_EXIT_FAILURE );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Redefine yyless() so it works in section 3 code. */
|
|
|
|
|
|
|
|
#undef yyless
|
|
|
|
#define yyless(n) \
|
|
|
|
do \
|
|
|
|
{ \
|
|
|
|
/* Undo effects of setting up yytext. */ \
|
|
|
|
yytext[yyleng] = yy_hold_char; \
|
|
|
|
yy_c_buf_p = yytext + n; \
|
|
|
|
yy_hold_char = *yy_c_buf_p; \
|
|
|
|
*yy_c_buf_p = '\0'; \
|
|
|
|
yyleng = n; \
|
|
|
|
} \
|
|
|
|
while ( 0 )
|
|
|
|
|
|
|
|
|
|
|
|
/* Internal utility routines. */
|
|
|
|
|
|
|
|
#ifndef yytext_ptr
|
|
|
|
#ifdef YY_USE_PROTOS
|
|
|
|
static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
|
|
|
|
#else
|
|
|
|
static void yy_flex_strncpy( s1, s2, n )
|
|
|
|
char *s1;
|
|
|
|
yyconst char *s2;
|
|
|
|
int n;
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
register int i;
|
|
|
|
for ( i = 0; i < n; ++i )
|
|
|
|
s1[i] = s2[i];
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef YY_NEED_STRLEN
|
|
|
|
#ifdef YY_USE_PROTOS
|
|
|
|
static int yy_flex_strlen( yyconst char *s )
|
|
|
|
#else
|
|
|
|
static int yy_flex_strlen( s )
|
|
|
|
yyconst char *s;
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
register int n;
|
|
|
|
for ( n = 0; s[n]; ++n )
|
|
|
|
;
|
|
|
|
|
|
|
|
return n;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef YY_USE_PROTOS
|
|
|
|
static void *yy_flex_alloc( yy_size_t size )
|
|
|
|
#else
|
|
|
|
static void *yy_flex_alloc( size )
|
|
|
|
yy_size_t size;
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
return (void *) malloc( size );
|
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef YY_USE_PROTOS
|
|
|
|
static void *yy_flex_realloc( void *ptr, yy_size_t size )
|
|
|
|
#else
|
|
|
|
static void *yy_flex_realloc( ptr, size )
|
|
|
|
void *ptr;
|
|
|
|
yy_size_t size;
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
/* The cast to (char *) in the following accommodates both
|
|
|
|
* implementations that use char* generic pointers, and those
|
|
|
|
* that use void* generic pointers. It works with the latter
|
|
|
|
* because both ANSI C and C++ allow castless assignment from
|
|
|
|
* any pointer type to void*, and deal with argument conversions
|
|
|
|
* as though doing an assignment.
|
|
|
|
*/
|
|
|
|
return (void *) realloc( (char *) ptr, size );
|
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef YY_USE_PROTOS
|
|
|
|
static void yy_flex_free( void *ptr )
|
|
|
|
#else
|
|
|
|
static void yy_flex_free( ptr )
|
|
|
|
void *ptr;
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
free( ptr );
|
|
|
|
}
|
|
|
|
|
2007-06-23 23:58:54 +00:00
|
|
|
#if defined(YY_MAIN) && YY_MAIN
|
1999-01-17 21:42:12 +00:00
|
|
|
int main()
|
|
|
|
{
|
|
|
|
yylex();
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
2009-05-17 20:22:24 +00:00
|
|
|
#line 540 "toke.l"
|
1999-01-17 21:42:12 +00:00
|
|
|
|
2004-09-28 00:47:47 +00:00
|
|
|
static int
|
2007-08-20 23:19:44 +00:00
|
|
|
_fill(src, len, olen)
|
|
|
|
char *src;
|
|
|
|
int len, olen;
|
1999-01-17 21:42:12 +00:00
|
|
|
{
|
1999-10-10 18:38:40 +00:00
|
|
|
int i, j;
|
2007-08-20 23:19:44 +00:00
|
|
|
char *dst;
|
1999-10-10 18:38:40 +00:00
|
|
|
|
2007-08-20 23:19:44 +00:00
|
|
|
dst = olen ? realloc(yylval.string, olen + len + 1) : malloc(len + 1);
|
|
|
|
if (dst == NULL) {
|
1999-01-17 21:42:12 +00:00
|
|
|
yyerror("unable to allocate memory");
|
2004-09-28 00:47:47 +00:00
|
|
|
return(FALSE);
|
2003-03-13 20:27:38 +00:00
|
|
|
}
|
2007-08-20 23:19:44 +00:00
|
|
|
yylval.string = dst;
|
1999-01-17 21:42:12 +00:00
|
|
|
|
1999-10-10 18:38:40 +00:00
|
|
|
/* Copy the string and collapse any escaped characters. */
|
2007-08-20 23:19:44 +00:00
|
|
|
dst += olen;
|
1999-10-10 18:38:40 +00:00
|
|
|
for (i = 0, j = 0; i < len; i++, j++) {
|
2007-08-20 23:19:44 +00:00
|
|
|
if (src[i] == '\\' && i != len - 1)
|
|
|
|
dst[j] = src[++i];
|
1999-10-10 18:38:40 +00:00
|
|
|
else
|
2007-08-20 23:19:44 +00:00
|
|
|
dst[j] = src[i];
|
1999-10-10 18:38:40 +00:00
|
|
|
}
|
2007-08-20 23:19:44 +00:00
|
|
|
dst[j] = '\0';
|
2004-09-28 00:47:47 +00:00
|
|
|
return(TRUE);
|
1999-01-17 21:42:12 +00:00
|
|
|
}
|
|
|
|
|
2007-08-20 23:19:44 +00:00
|
|
|
static int
|
|
|
|
append(src, len)
|
|
|
|
char *src;
|
|
|
|
int len;
|
|
|
|
{
|
|
|
|
int olen = 0;
|
|
|
|
|
|
|
|
if (yylval.string != NULL)
|
|
|
|
olen = strlen(yylval.string);
|
|
|
|
|
|
|
|
return(_fill(src, len, olen));
|
|
|
|
}
|
|
|
|
|
2008-10-08 18:27:35 +00:00
|
|
|
#define SPECIAL(c) \
|
|
|
|
((c) == ',' || (c) == ':' || (c) == '=' || (c) == ' ' || (c) == '\t' || (c) == '#')
|
|
|
|
|
2004-09-28 00:47:47 +00:00
|
|
|
static int
|
2008-10-08 18:27:35 +00:00
|
|
|
fill_cmnd(src, len)
|
|
|
|
char *src;
|
1999-01-17 21:42:12 +00:00
|
|
|
int len;
|
|
|
|
{
|
2008-10-08 18:27:35 +00:00
|
|
|
char *dst;
|
|
|
|
int i;
|
|
|
|
|
1999-01-17 21:42:12 +00:00
|
|
|
arg_len = arg_size = 0;
|
|
|
|
|
2008-11-08 15:40:33 +00:00
|
|
|
dst = yylval.command.cmnd = (char *) malloc(len + 1);
|
2003-03-13 20:27:38 +00:00
|
|
|
if (yylval.command.cmnd == NULL) {
|
1999-01-17 21:42:12 +00:00
|
|
|
yyerror("unable to allocate memory");
|
2004-09-28 00:47:47 +00:00
|
|
|
return(FALSE);
|
2003-03-13 20:27:38 +00:00
|
|
|
}
|
1999-01-17 21:42:12 +00:00
|
|
|
|
2008-10-08 18:27:35 +00:00
|
|
|
/* Copy the string and collapse any escaped sudo-specific characters. */
|
|
|
|
for (i = 0; i < len; i++) {
|
|
|
|
if (src[i] == '\\' && i != len - 1 && SPECIAL(src[i + 1]))
|
|
|
|
*dst++ = src[++i];
|
|
|
|
else
|
|
|
|
*dst++ = src[i];
|
|
|
|
}
|
|
|
|
*dst = '\0';
|
1999-01-17 21:42:12 +00:00
|
|
|
|
|
|
|
yylval.command.args = NULL;
|
2004-09-28 00:47:47 +00:00
|
|
|
return(TRUE);
|
1999-01-17 21:42:12 +00:00
|
|
|
}
|
|
|
|
|
2004-09-28 00:47:47 +00:00
|
|
|
static int
|
1999-04-10 04:49:03 +00:00
|
|
|
fill_args(s, len, addspace)
|
1999-01-17 21:42:12 +00:00
|
|
|
char *s;
|
|
|
|
int len;
|
|
|
|
int addspace;
|
|
|
|
{
|
|
|
|
int new_len;
|
|
|
|
char *p;
|
|
|
|
|
|
|
|
if (yylval.command.args == NULL) {
|
|
|
|
addspace = 0;
|
|
|
|
new_len = len;
|
2003-03-13 20:17:41 +00:00
|
|
|
} else
|
|
|
|
new_len = arg_len + len + addspace;
|
1999-01-17 21:42:12 +00:00
|
|
|
|
2003-03-13 20:17:41 +00:00
|
|
|
if (new_len >= arg_size) {
|
|
|
|
/* Allocate more space than we need for subsequent args */
|
1999-01-17 21:42:12 +00:00
|
|
|
while (new_len >= (arg_size += COMMANDARGINC))
|
|
|
|
;
|
|
|
|
|
2003-03-13 20:27:38 +00:00
|
|
|
p = yylval.command.args ?
|
|
|
|
(char *) realloc(yylval.command.args, arg_size) :
|
|
|
|
(char *) malloc(arg_size);
|
|
|
|
if (p == NULL) {
|
2005-03-29 14:29:47 +00:00
|
|
|
efree(yylval.command.args);
|
2003-03-13 20:17:41 +00:00
|
|
|
yyerror("unable to allocate memory");
|
2004-09-28 00:47:47 +00:00
|
|
|
return(FALSE);
|
2003-03-13 20:17:41 +00:00
|
|
|
} else
|
|
|
|
yylval.command.args = p;
|
1999-01-17 21:42:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Efficiently append the arg (with a leading space if needed). */
|
|
|
|
p = yylval.command.args + arg_len;
|
|
|
|
if (addspace)
|
|
|
|
*p++ = ' ';
|
2004-09-28 00:47:47 +00:00
|
|
|
if (strlcpy(p, s, arg_size - (p - yylval.command.args)) != len) {
|
2003-03-13 20:17:41 +00:00
|
|
|
yyerror("fill_args: buffer overflow"); /* paranoia */
|
2004-09-28 00:47:47 +00:00
|
|
|
return(FALSE);
|
|
|
|
}
|
1999-01-17 21:42:12 +00:00
|
|
|
arg_len = new_len;
|
2004-09-28 00:47:47 +00:00
|
|
|
return(TRUE);
|
1999-01-17 21:42:12 +00:00
|
|
|
}
|
|
|
|
|
2009-04-18 23:25:08 +00:00
|
|
|
struct path_list {
|
|
|
|
char *path;
|
|
|
|
struct path_list *next;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct include_stack {
|
2004-09-28 18:37:08 +00:00
|
|
|
YY_BUFFER_STATE bs;
|
|
|
|
char *path;
|
2009-04-18 23:25:08 +00:00
|
|
|
struct path_list *more; /* more files in case of includedir */
|
2004-09-28 18:37:08 +00:00
|
|
|
int lineno;
|
2009-04-18 23:25:08 +00:00
|
|
|
int keepopen;
|
2004-09-28 18:37:08 +00:00
|
|
|
};
|
|
|
|
|
2009-04-18 23:25:08 +00:00
|
|
|
static int
|
|
|
|
pl_compare(v1, v2)
|
|
|
|
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(stack, dirpath)
|
|
|
|
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(FALSE);
|
|
|
|
}
|
|
|
|
while ((dent = readdir(dir))) {
|
2009-04-19 12:56:42 +00:00
|
|
|
/* Ignore files that end in '~' or have a '.' in them. */
|
2009-04-22 20:32:08 +00:00
|
|
|
if (dent->d_name[0] == '\0' || dent->d_name[NAMLEN(dent) - 1] == '~'
|
2009-04-19 12:56:42 +00:00
|
|
|
|| strchr(dent->d_name, '.') != NULL) {
|
2009-04-18 23:25:08 +00:00
|
|
|
continue;
|
2009-04-19 12:56:42 +00:00
|
|
|
}
|
2009-04-18 23:25:08 +00:00
|
|
|
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);
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2004-09-28 18:37:08 +00:00
|
|
|
#define MAX_SUDOERS_DEPTH 128
|
2004-10-26 22:29:32 +00:00
|
|
|
#define SUDOERS_STACK_INCREMENT 16
|
2004-09-28 18:37:08 +00:00
|
|
|
|
2009-04-18 23:25:08 +00:00
|
|
|
static size_t istacksize, idepth;
|
|
|
|
static struct include_stack *istack;
|
|
|
|
static int keepopen;
|
|
|
|
|
|
|
|
void
|
|
|
|
init_lexer()
|
|
|
|
{
|
|
|
|
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 (!istack[idepth].keepopen)
|
|
|
|
fclose(istack[idepth].bs->yy_input_file);
|
|
|
|
yy_delete_buffer(istack[idepth].bs);
|
|
|
|
}
|
|
|
|
efree(istack);
|
|
|
|
istack = NULL;
|
|
|
|
istacksize = idepth = 0;
|
|
|
|
keepopen = FALSE;
|
|
|
|
}
|
|
|
|
|
2004-09-28 18:37:08 +00:00
|
|
|
static int
|
2009-04-18 23:25:08 +00:00
|
|
|
_push_include(path, isdir)
|
2004-09-28 18:37:08 +00:00
|
|
|
char *path;
|
2009-04-18 23:25:08 +00:00
|
|
|
int isdir;
|
2004-09-27 16:08:18 +00:00
|
|
|
{
|
|
|
|
FILE *fp;
|
|
|
|
|
2009-04-18 23:25:08 +00:00
|
|
|
/* 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))) {
|
|
|
|
yyerror(path);
|
|
|
|
return(FALSE);
|
2004-09-27 16:08:18 +00:00
|
|
|
}
|
2009-04-18 23:25:08 +00:00
|
|
|
if ((fp = open_sudoers(path, FALSE, &keepopen)) == NULL) {
|
|
|
|
yyerror(path);
|
|
|
|
return(FALSE); /* XXX - just to go next one? */
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
if ((fp = open_sudoers(path, TRUE, &keepopen)) == NULL) {
|
2004-09-27 16:08:18 +00:00
|
|
|
yyerror(path);
|
2004-09-28 00:47:47 +00:00
|
|
|
return(FALSE);
|
|
|
|
}
|
2009-04-18 23:25:08 +00:00
|
|
|
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()
|
|
|
|
{
|
|
|
|
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);
|
|
|
|
keepopen = FALSE;
|
|
|
|
if ((pl = istack[idepth - 1].more) != NULL) {
|
|
|
|
/* Move to next file in the dir. */
|
|
|
|
istack[idepth - 1].more = pl->next;
|
|
|
|
if ((fp = open_sudoers(pl->path, FALSE, &keepopen)) == NULL) {
|
|
|
|
yyerror(pl->path);
|
|
|
|
return(FALSE); /* XXX - just to go next one? */
|
|
|
|
}
|
|
|
|
efree(sudoers);
|
|
|
|
sudoers = pl->path;
|
2004-09-28 18:37:08 +00:00
|
|
|
sudolineno = 1;
|
2004-09-27 16:08:18 +00:00
|
|
|
yy_switch_to_buffer(yy_create_buffer(fp, YY_BUF_SIZE));
|
2009-04-18 23:25:08 +00:00
|
|
|
efree(pl);
|
2004-09-27 16:08:18 +00:00
|
|
|
} else {
|
2009-04-18 23:25:08 +00:00
|
|
|
idepth--;
|
|
|
|
yy_switch_to_buffer(istack[idepth].bs);
|
2005-03-29 14:29:47 +00:00
|
|
|
efree(sudoers);
|
2009-04-18 23:25:08 +00:00
|
|
|
sudoers = istack[idepth].path;
|
|
|
|
sudolineno = istack[idepth].lineno;
|
2004-09-27 16:08:18 +00:00
|
|
|
}
|
|
|
|
return(TRUE);
|
|
|
|
}
|
2007-08-23 11:47:08 +00:00
|
|
|
|
|
|
|
static char *
|
|
|
|
parse_include(base)
|
|
|
|
char *base;
|
|
|
|
{
|
|
|
|
char *cp, *ep, *path;
|
2009-02-21 21:51:42 +00:00
|
|
|
int len = 0, subst = 0;
|
|
|
|
size_t shost_len = 0;
|
2007-08-23 11:47:08 +00:00
|
|
|
|
|
|
|
/* Pull out path from #include line. */
|
|
|
|
cp = base + sizeof("#include");
|
2009-04-18 23:25:08 +00:00
|
|
|
if (*cp == 'i')
|
|
|
|
cp += 3; /* includedir */
|
2007-08-23 11:47:08 +00:00
|
|
|
while (isblank((unsigned char) *cp))
|
|
|
|
cp++;
|
|
|
|
ep = cp;
|
2009-02-21 21:51:42 +00:00
|
|
|
while (*ep != '\0' && !isspace((unsigned char) *ep)) {
|
|
|
|
if (ep[0] == '%' && ep[1] == 'h') {
|
|
|
|
shost_len = strlen(user_shost);
|
|
|
|
len += shost_len - 2;
|
|
|
|
subst = 1;
|
|
|
|
}
|
2007-08-23 11:47:08 +00:00
|
|
|
ep++;
|
2009-02-21 21:51:42 +00:00
|
|
|
}
|
2007-08-23 11:47:08 +00:00
|
|
|
|
|
|
|
/* Make a copy of path and return it. */
|
2009-02-21 21:51:42 +00:00
|
|
|
len += (int)(ep - cp);
|
2007-08-23 11:47:08 +00:00
|
|
|
if ((path = malloc(len + 1)) == NULL)
|
|
|
|
yyerror("unable to allocate memory");
|
2009-02-21 21:51:42 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
*pp++ = *cp++;
|
|
|
|
}
|
|
|
|
*pp = '\0';
|
|
|
|
} else {
|
|
|
|
memcpy(path, cp, len);
|
|
|
|
path[len] = '\0';
|
|
|
|
}
|
2007-08-23 11:47:08 +00:00
|
|
|
|
|
|
|
/* Push any excess characters (e.g. comment, newline) back to the lexer */
|
|
|
|
if (*ep != '\0')
|
|
|
|
yyless((int)(ep - base));
|
|
|
|
|
|
|
|
return(path);
|
|
|
|
}
|
2007-08-25 02:47:54 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Check to make sure an IPv6 address does not contain multiple instances
|
|
|
|
* of the string "::". Assumes strlen(s) >= 1.
|
|
|
|
* Returns TRUE if address is valid else FALSE.
|
|
|
|
*/
|
|
|
|
static int
|
|
|
|
ipv6_valid(s)
|
|
|
|
const char *s;
|
|
|
|
{
|
|
|
|
int nmatch = 0;
|
|
|
|
|
|
|
|
for (; *s != '\0'; s++) {
|
|
|
|
if (s[0] == ':' && s[1] == ':') {
|
|
|
|
if (++nmatch > 1)
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
if (s[0] == '/')
|
|
|
|
nmatch = 0; /* reset if we hit netmask */
|
|
|
|
}
|
|
|
|
|
|
|
|
return (nmatch <= 1);
|
|
|
|
}
|