unbound/util/configlexer.c
Wouter Wijngaards 2705aaaad9 Nicer error for typo in include directive.
git-svn-id: file:///svn/unbound/trunk@1459 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-02-06 08:53:00 +00:00

3225 lines
104 KiB
C

#include "util/configyyrename.h"
#line 3 "<stdout>"
#define YY_INT_ALIGNED short int
/* A lexical scanner generated by flex */
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5
#define YY_FLEX_SUBMINOR_VERSION 35
#if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA
#endif
/* First, we deal with platform-specific or compiler-specific issues. */
/* begin standard C headers. */
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
/* end standard C headers. */
/* flex integer type definitions */
#ifndef FLEXINT_H
#define FLEXINT_H
/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
* if you want the limit (max/min) macros for int types.
*/
#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS 1
#endif
#include <inttypes.h>
typedef int8_t flex_int8_t;
typedef uint8_t flex_uint8_t;
typedef int16_t flex_int16_t;
typedef uint16_t flex_uint16_t;
typedef int32_t flex_int32_t;
typedef uint32_t flex_uint32_t;
#else
typedef signed char flex_int8_t;
typedef short int flex_int16_t;
typedef int flex_int32_t;
typedef unsigned char flex_uint8_t;
typedef unsigned short int flex_uint16_t;
typedef unsigned int flex_uint32_t;
#endif /* ! C99 */
/* Limits of integral types. */
#ifndef INT8_MIN
#define INT8_MIN (-128)
#endif
#ifndef INT16_MIN
#define INT16_MIN (-32767-1)
#endif
#ifndef INT32_MIN
#define INT32_MIN (-2147483647-1)
#endif
#ifndef INT8_MAX
#define INT8_MAX (127)
#endif
#ifndef INT16_MAX
#define INT16_MAX (32767)
#endif
#ifndef INT32_MAX
#define INT32_MAX (2147483647)
#endif
#ifndef UINT8_MAX
#define UINT8_MAX (255U)
#endif
#ifndef UINT16_MAX
#define UINT16_MAX (65535U)
#endif
#ifndef UINT32_MAX
#define UINT32_MAX (4294967295U)
#endif
#endif /* ! FLEXINT_H */
#ifdef __cplusplus
/* The "const" storage-class-modifier is valid. */
#define YY_USE_CONST
#else /* ! __cplusplus */
/* C99 requires __STDC__ to be defined as 1. */
#if defined (__STDC__)
#define YY_USE_CONST
#endif /* defined (__STDC__) */
#endif /* ! __cplusplus */
#ifdef YY_USE_CONST
#define yyconst const
#else
#define yyconst
#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. */
#ifndef YY_BUF_SIZE
#define YY_BUF_SIZE 16384
#endif
/* The state buf must be large enough to hold one state per character in the main buffer.
*/
#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
#ifndef YY_TYPEDEF_YY_BUFFER_STATE
#define YY_TYPEDEF_YY_BUFFER_STATE
typedef struct yy_buffer_state *YY_BUFFER_STATE;
#endif
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
#define YY_LESS_LINENO(n)
/* Return all but the first "n" matched characters back to the input stream. */
#define yyless(n) \
do \
{ \
/* Undo effects of setting up yytext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
*yy_cp = (yy_hold_char); \
YY_RESTORE_YY_MORE_OFFSET \
(yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
YY_DO_BEFORE_ACTION; /* set up yytext again */ \
} \
while ( 0 )
#define unput(c) yyunput( c, (yytext_ptr) )
#ifndef YY_TYPEDEF_YY_SIZE_T
#define YY_TYPEDEF_YY_SIZE_T
typedef size_t yy_size_t;
#endif
#ifndef YY_STRUCT_YY_BUFFER_STATE
#define YY_STRUCT_YY_BUFFER_STATE
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;
int yy_bs_lineno; /**< The line count. */
int yy_bs_column; /**< The column count. */
/* 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
};
#endif /* !YY_STRUCT_YY_BUFFER_STATE */
/* Stack of input buffers. */
static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
/* 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".
*
* Returns the top of the stack, or NULL.
*/
#define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
? (yy_buffer_stack)[(yy_buffer_stack_top)] \
: NULL)
/* Same as previous macro, but useful when we know that the buffer stack is not
* NULL or when we need an lvalue. For internal use only.
*/
#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
/* 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 = 0; /* 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 (FILE *input_file );
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer );
YY_BUFFER_STATE yy_create_buffer (FILE *file,int size );
void yy_delete_buffer (YY_BUFFER_STATE b );
void yy_flush_buffer (YY_BUFFER_STATE b );
void yypush_buffer_state (YY_BUFFER_STATE new_buffer );
void yypop_buffer_state (void );
static void yyensure_buffer_stack (void );
static void yy_load_buffer_state (void );
static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file );
#define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER )
YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size );
YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str );
YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len );
void *yyalloc (yy_size_t );
void *yyrealloc (void *,yy_size_t );
void yyfree (void * );
#define yy_new_buffer yy_create_buffer
#define yy_set_interactive(is_interactive) \
{ \
if ( ! YY_CURRENT_BUFFER ){ \
yyensure_buffer_stack (); \
YY_CURRENT_BUFFER_LVALUE = \
yy_create_buffer(yyin,YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
}
#define yy_set_bol(at_bol) \
{ \
if ( ! YY_CURRENT_BUFFER ){\
yyensure_buffer_stack (); \
YY_CURRENT_BUFFER_LVALUE = \
yy_create_buffer(yyin,YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
}
#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
/* Begin user sect3 */
typedef unsigned char YY_CHAR;
FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
typedef int yy_state_type;
extern int yylineno;
int yylineno = 1;
extern char *yytext;
#define yytext_ptr yytext
static yy_state_type yy_get_previous_state (void );
static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
static int yy_get_next_buffer (void );
static void yy_fatal_error (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; \
(yytext_ptr) -= (yy_more_len); \
yyleng = (size_t) (yy_cp - (yytext_ptr)); \
(yy_hold_char) = *yy_cp; \
*yy_cp = '\0'; \
(yy_c_buf_p) = yy_cp;
#define YY_NUM_RULES 111
#define YY_END_OF_BUFFER 112
/* This struct is not used in this scanner,
but its presence is necessary. */
struct yy_trans_info
{
flex_int32_t yy_verify;
flex_int32_t yy_nxt;
};
static yyconst flex_int16_t yy_accept[1025] =
{ 0,
1, 1, 95, 95, 99, 99, 103, 103, 107, 107,
112, 110, 1, 93, 94, 2, 98, 111, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 95, 96, 111,
97, 111, 99, 100, 101, 111, 106, 103, 104, 105,
111, 107, 108, 109, 111, 110, 0, 1, 2, 2,
2, 2, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 95, 0,
99, 0, 106, 0, 103, 107, 0, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 50, 110, 110, 110, 110, 110, 6, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 20, 110,
110, 110, 110, 12, 13, 110, 15, 14, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 3, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 102, 110, 110, 110, 110,
110, 110, 110, 110, 110, 23, 110, 110, 110, 110,
110, 110, 110, 24, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 63, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 62, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 21, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
22, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
17, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 51, 52, 110, 49, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 5, 110,
110, 110, 110, 110, 110, 110, 110, 65, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 80,
79, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 25, 110, 110, 110, 110, 53,
110, 110, 110, 110, 110, 78, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 42, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 4, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 88, 110, 16, 110,
110, 55, 56, 54, 110, 110, 110, 110, 110, 61,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 69, 110, 110, 110, 110, 110, 110, 110, 110,
110, 31, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 60, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 64, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
71, 110, 110, 110, 110, 59, 110, 86, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 32, 33, 110, 38, 74, 110, 81, 110,
27, 110, 76, 110, 110, 110, 110, 110, 7, 110,
48, 85, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
66, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 110, 110, 75, 26, 28, 110, 110, 110, 110,
110, 47, 110, 110, 110, 89, 110, 110, 110, 110,
110, 110, 45, 110, 110, 110, 110, 110, 110, 91,
110, 110, 110, 110, 110, 110, 110, 11, 110, 110,
110, 110, 110, 110, 10, 110, 110, 29, 110, 90,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
92, 87, 110, 110, 110, 110, 110, 110, 110, 110,
110, 34, 110, 110, 110, 110, 110, 30, 110, 110,
110, 67, 68, 110, 110, 110, 70, 110, 110, 110,
110, 110, 110, 110, 110, 110, 110, 110, 110, 18,
110, 110, 110, 110, 110, 110, 110, 110, 110, 110,
110, 84, 110, 110, 110, 110, 110, 110, 19, 110,
9, 110, 110, 82, 39, 110, 110, 110, 73, 57,
110, 110, 41, 44, 40, 110, 35, 110, 8, 110,
110, 72, 110, 110, 110, 36, 110, 83, 110, 110,
58, 43, 37, 110, 110, 110, 110, 46, 110, 110,
110, 110, 77, 0
} ;
static yyconst flex_int32_t yy_ec[256] =
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 2, 1, 5, 6, 1, 1, 1, 7, 1,
1, 1, 1, 1, 8, 1, 1, 1, 1, 1,
9, 10, 1, 11, 1, 1, 1, 12, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 13, 1, 1, 1, 1, 14, 15, 16, 17,
18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
28, 29, 30, 31, 32, 33, 34, 35, 36, 37,
38, 39, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1
} ;
static yyconst flex_int32_t yy_meta[40] =
{ 0,
1, 2, 3, 4, 5, 1, 6, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1
} ;
static yyconst flex_int16_t yy_base[1036] =
{ 0,
0, 0, 37, 40, 44, 51, 63, 75, 56, 68,
2098, 2084, 50, 2099, 2099, 82, 2099, 89, 33, 84,
79, 62, 72, 89, 93, 95, 96, 100, 102, 103,
49, 105, 111, 113, 127, 122, 130, 2083, 2099, 2099,
2099, 146, 2082, 2099, 2099, 115, 2081, 2091, 2099, 2099,
155, 2079, 2099, 2099, 148, 2078, 159, 163, 0, 166,
0, 0, 159, 161, 125, 154, 163, 112, 170, 167,
171, 172, 169, 174, 177, 175, 176, 185, 178, 184,
119, 186, 195, 196, 198, 199, 200, 205, 204, 203,
206, 210, 207, 212, 213, 215, 214, 221, 2077, 236,
2076, 238, 2075, 246, 2085, 2073, 250, 243, 244, 230,
234, 246, 255, 256, 253, 249, 257, 259, 266, 263,
267, 268, 262, 274, 283, 281, 271, 291, 288, 294,
295, 296, 298, 279, 297, 300, 301, 302, 305, 306,
308, 309, 311, 312, 322, 323, 329, 314, 320, 324,
328, 332, 336, 341, 61, 334, 344, 350, 338, 355,
353, 362, 343, 345, 351, 359, 361, 365, 367, 368,
369, 371, 372, 382, 373, 384, 385, 386, 388, 389,
391, 397, 393, 394, 396, 403, 402, 406, 408, 409,
410, 429, 415, 414, 416, 425, 417, 418, 419, 427,
442, 451, 434, 436, 440, 446, 453, 455, 457, 458,
459, 461, 465, 462, 472, 473, 480, 464, 478, 481,
484, 2072, 486, 482, 488, 489, 492, 2071, 490, 494,
493, 500, 491, 497, 505, 507, 517, 508, 514, 511,
518, 520, 525, 523, 524, 529, 526, 532, 538, 530,
540, 541, 544, 548, 549, 555, 557, 563, 561, 565,
566, 568, 574, 573, 570, 567, 576, 578, 582, 579,
588, 586, 591, 593, 601, 597, 599, 604, 600, 606,
608, 609, 610, 616, 612, 620, 630, 613, 627, 619,
618, 626, 637, 638, 640, 642, 635, 643, 645, 646,
649, 650, 652, 648, 656, 659, 660, 667, 2070, 669,
661, 670, 671, 2069, 2068, 421, 2067, 2066, 672, 680,
687, 677, 674, 683, 685, 681, 689, 695, 696, 698,
693, 703, 714, 702, 719, 704, 716, 712, 721, 709,
723, 724, 726, 735, 733, 732, 737, 739, 2065, 734,
740, 741, 745, 747, 749, 748, 756, 753, 752, 758,
759, 763, 765, 769, 767, 768, 773, 775, 776, 223,
794, 777, 780, 778, 779, 787, 788, 790, 786, 806,
808, 801, 811, 812, 816, 2064, 822, 818, 819, 820,
823, 826, 824, 827, 830, 2063, 834, 832, 836, 840,
839, 842, 851, 2062, 852, 850, 854, 855, 857, 859,
860, 861, 866, 867, 868, 870, 869, 871, 881, 883,
877, 885, 887, 888, 893, 890, 891, 894, 2061, 895,
901, 898, 897, 899, 905, 907, 915, 912, 916, 918,
917, 920, 926, 927, 921, 928, 929, 931, 933, 932,
934, 2060, 939, 938, 935, 945, 959, 944, 956, 960,
962, 963, 964, 970, 971, 968, 972, 969, 975, 974,
980, 981, 984, 986, 988, 990, 996, 998, 1001, 1003,
991, 999, 1005, 1008, 1012, 1014, 2059, 1020, 1022, 1024,
1016, 1023, 1028, 1029, 1030, 1033, 1031, 1034, 1035, 1037,
2058, 1041, 1038, 1039, 1043, 1044, 1046, 1045, 1047, 1053,
1061, 1062, 1052, 1069, 1056, 1072, 1074, 1080, 1081, 1082,
2057, 1084, 1073, 1091, 1088, 1094, 1101, 1085, 1095, 1097,
1098, 1099, 1102, 1103, 1105, 1107, 1108, 1109, 1120, 1110,
1112, 1127, 1130, 2056, 2055, 1134, 2054, 1128, 1124, 1126,
1135, 1137, 1142, 1136, 1143, 1138, 1146, 1145, 2053, 1147,
1148, 1153, 550, 1154, 1160, 1157, 1161, 2052, 1158, 1162,
1169, 1166, 1171, 1174, 1175, 1182, 1178, 1172, 1176, 1185,
1186, 1188, 1194, 1192, 1193, 1195, 1199, 1197, 1202, 2051,
2050, 1198, 1203, 1208, 1210, 1226, 1224, 1211, 1215, 1225,
1227, 1229, 1232, 1230, 2049, 1239, 1240, 1236, 1246, 2048,
1237, 1238, 1244, 1250, 1251, 2047, 1252, 1253, 1254, 1260,
1258, 1261, 1262, 1273, 1270, 1271, 1275, 1278, 1279, 1284,
1285, 1286, 1291, 1293, 1295, 1296, 2046, 1302, 1287, 1303,
1300, 1308, 1309, 1301, 1310, 1311, 1312, 1314, 1316, 1317,
1319, 1321, 1324, 1322, 1326, 1323, 1329, 2045, 1336, 1343,
1334, 1337, 1346, 1347, 1340, 1350, 1352, 1353, 1357, 1359,
1365, 1368, 1366, 1364, 1375, 1371, 1377, 1372, 1379, 1380,
1382, 1385, 1386, 1388, 1389, 1387, 2044, 1391, 2043, 1398,
1400, 2042, 2041, 2040, 1406, 1390, 1404, 1411, 1415, 2039,
1408, 1416, 1412, 1418, 1419, 1420, 1421, 1422, 1424, 1423,
1426, 1435, 1427, 1438, 1437, 1440, 1441, 1447, 1448, 1454,
1450, 1451, 1452, 1457, 1462, 1458, 1460, 1463, 1459, 1461,
1475, 2038, 1478, 1464, 1473, 1486, 1483, 1480, 1487, 1488,
1495, 2037, 1496, 1498, 1500, 1490, 1503, 1506, 1504, 1507,
1509, 1511, 1512, 1513, 2036, 1514, 1516, 1518, 1520, 1523,
1536, 1525, 1540, 1542, 1527, 1544, 2035, 1545, 1548, 1530,
1552, 1515, 1553, 1554, 1555, 1561, 1558, 1563, 1565, 1566,
1567, 1569, 1570, 1572, 1573, 1574, 1576, 1579, 1587, 1580,
2034, 1583, 1586, 1590, 1599, 2033, 1596, 2032, 1597, 1601,
1605, 1598, 1607, 1609, 1611, 1612, 1618, 1614, 1616, 1619,
1615, 1625, 2031, 2030, 1621, 2029, 2028, 1634, 2027, 1636,
2026, 1638, 2025, 1644, 1640, 1626, 1628, 1643, 2024, 1646,
2023, 2022, 1647, 1649, 1653, 1655, 1656, 1657, 1659, 1660,
1661, 1662, 1664, 1665, 1666, 1667, 1670, 1676, 1679, 1678,
2021, 1680, 1685, 1688, 1689, 1690, 1693, 1691, 1695, 1701,
1699, 1700, 1702, 2017, 2013, 2012, 1703, 1712, 1705, 1706,
1711, 2011, 1717, 1713, 1725, 2007, 1726, 1718, 1728, 1730,
1731, 1733, 2006, 1734, 1738, 1739, 1742, 1746, 1748, 2002,
1750, 1751, 1753, 1752, 1758, 1759, 1762, 2001, 1754, 1764,
1766, 1768, 1770, 1769, 2000, 1772, 1775, 1994, 1780, 1966,
1776, 1784, 1786, 1791, 1793, 1782, 1787, 1799, 1798, 1802,
1965, 1964, 1795, 1803, 1804, 1805, 1807, 1808, 1809, 1810,
1813, 1963, 1815, 1816, 1825, 1822, 1820, 1962, 1827, 1830,
1831, 1960, 1959, 1832, 1838, 1840, 1958, 1841, 1843, 1844,
1848, 1845, 1850, 1852, 1853, 1851, 1854, 1864, 1865, 1957,
1867, 1855, 1857, 1872, 1881, 1868, 1874, 1876, 1883, 1885,
1878, 1956, 1888, 1890, 1892, 1895, 1898, 1900, 1954, 1901,
1953, 1905, 1906, 1952, 1951, 1907, 1909, 1912, 1817, 1720,
1910, 1914, 1669, 1630, 1537, 1920, 1456, 1921, 1264, 1923,
1913, 1204, 1916, 1927, 1932, 1077, 1936, 993, 1929, 1937,
904, 783, 700, 1939, 1924, 1946, 1933, 628, 1940, 1947,
1948, 1950, 584, 2099, 1980, 1986, 1992, 1998, 154, 2004,
2010, 2016, 62, 2021, 2027
} ;
static yyconst flex_int16_t yy_def[1036] =
{ 0,
1024, 1, 1025, 1025, 1026, 1026, 1027, 1027, 1028, 1028,
1024, 1029, 1024, 1024, 1024, 1030, 1024, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1031, 1024, 1024,
1024, 1031, 1032, 1024, 1024, 1032, 1033, 1024, 1024, 1024,
1033, 1034, 1024, 1024, 1034, 1029, 1029, 1024, 1035, 1030,
1035, 1030, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1031, 1031,
1032, 1032, 1033, 1033, 1024, 1034, 1034, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029, 1029,
1029, 1029, 1029, 0, 1024, 1024, 1024, 1024, 1024, 1024,
1024, 1024, 1024, 1024, 1024
} ;
static yyconst flex_int16_t yy_nxt[2139] =
{ 0,
12, 13, 14, 14, 15, 16, 17, 12, 12, 12,
12, 12, 18, 19, 12, 20, 21, 22, 23, 12,
24, 25, 26, 27, 28, 29, 30, 31, 32, 12,
33, 34, 35, 36, 37, 12, 12, 12, 12, 39,
40, 41, 39, 40, 41, 57, 44, 40, 63, 42,
45, 58, 42, 44, 40, 59, 46, 45, 53, 53,
54, 57, 103, 46, 48, 49, 49, 50, 55, 40,
53, 53, 54, 57, 57, 51, 48, 49, 49, 50,
55, 40, 84, 61, 57, 61, 61, 51, 61, 202,
56, 57, 56, 56, 62, 56, 57, 64, 70, 71,
67, 57, 72, 68, 65, 57, 69, 57, 57, 74,
73, 66, 57, 77, 57, 57, 81, 57, 101, 75,
82, 101, 76, 57, 57, 57, 85, 78, 88, 79,
91, 57, 86, 80, 57, 87, 83, 57, 89, 57,
93, 90, 57, 97, 129, 92, 113, 98, 95, 99,
99, 106, 106, 96, 56, 110, 103, 94, 103, 103,
56, 103, 56, 56, 58, 56, 57, 61, 59, 61,
61, 57, 61, 57, 108, 57, 109, 114, 62, 57,
111, 57, 57, 57, 57, 118, 57, 57, 57, 57,
57, 119, 120, 112, 127, 121, 57, 57, 57, 115,
125, 116, 117, 128, 126, 130, 123, 57, 57, 122,
57, 57, 57, 124, 133, 57, 57, 57, 57, 57,
131, 135, 57, 140, 57, 57, 57, 57, 132, 134,
136, 137, 145, 57, 138, 57, 139, 142, 146, 99,
99, 101, 57, 141, 101, 143, 57, 103, 144, 103,
103, 147, 103, 106, 106, 57, 57, 150, 57, 431,
148, 57, 153, 152, 149, 57, 151, 57, 57, 57,
159, 57, 154, 161, 57, 57, 162, 155, 57, 57,
57, 169, 156, 57, 160, 167, 57, 164, 157, 158,
165, 57, 163, 57, 168, 57, 170, 166, 173, 171,
57, 175, 176, 57, 172, 174, 57, 57, 57, 57,
57, 179, 57, 57, 57, 177, 178, 57, 57, 183,
57, 57, 186, 57, 57, 189, 57, 181, 187, 190,
192, 180, 57, 182, 57, 57, 57, 196, 185, 184,
57, 57, 188, 193, 57, 195, 57, 199, 57, 200,
57, 197, 191, 57, 201, 57, 57, 57, 198, 204,
194, 203, 57, 57, 206, 57, 205, 57, 207, 209,
208, 57, 213, 57, 57, 210, 212, 57, 211, 57,
57, 57, 216, 57, 57, 57, 220, 221, 223, 215,
218, 214, 217, 222, 57, 219, 57, 57, 57, 228,
57, 57, 229, 57, 231, 57, 57, 227, 57, 57,
235, 233, 226, 224, 57, 57, 225, 234, 57, 236,
57, 57, 57, 230, 239, 232, 57, 57, 57, 57,
57, 57, 250, 57, 238, 248, 241, 57, 237, 57,
240, 57, 247, 242, 243, 252, 57, 249, 57, 251,
375, 253, 57, 254, 57, 244, 245, 246, 57, 255,
256, 257, 261, 57, 259, 57, 258, 57, 260, 57,
57, 57, 269, 57, 57, 267, 57, 57, 264, 266,
270, 263, 268, 262, 57, 57, 272, 273, 274, 271,
57, 265, 57, 57, 57, 275, 57, 277, 57, 278,
57, 57, 57, 57, 57, 57, 57, 286, 280, 57,
281, 284, 57, 285, 276, 279, 282, 57, 289, 57,
57, 287, 283, 57, 294, 290, 57, 297, 288, 57,
57, 299, 57, 291, 295, 57, 57, 57, 57, 293,
296, 57, 57, 292, 57, 307, 304, 300, 298, 301,
57, 309, 57, 57, 302, 308, 57, 305, 303, 306,
57, 57, 57, 312, 625, 310, 314, 57, 315, 57,
316, 311, 317, 57, 313, 57, 318, 57, 57, 57,
57, 321, 57, 319, 320, 57, 57, 323, 57, 322,
57, 57, 330, 325, 57, 331, 57, 327, 57, 324,
57, 332, 328, 57, 326, 57, 329, 333, 336, 57,
335, 57, 57, 57, 338, 337, 57, 340, 57, 339,
57, 57, 57, 345, 57, 57, 343, 344, 57, 334,
57, 57, 57, 346, 342, 347, 341, 348, 57, 57,
57, 349, 57, 351, 355, 350, 352, 57, 353, 57,
57, 356, 57, 354, 57, 57, 357, 57, 57, 358,
57, 57, 57, 359, 57, 362, 363, 364, 57, 365,
361, 57, 57, 57, 360, 369, 371, 367, 366, 57,
370, 57, 57, 57, 57, 368, 57, 377, 376, 57,
373, 372, 57, 57, 383, 57, 386, 57, 374, 57,
387, 57, 388, 378, 384, 57, 379, 57, 57, 390,
57, 380, 57, 391, 57, 57, 57, 381, 382, 397,
385, 57, 389, 393, 57, 392, 57, 394, 57, 395,
396, 57, 399, 57, 398, 57, 57, 404, 57, 401,
402, 400, 405, 403, 57, 57, 57, 57, 406, 57,
408, 57, 57, 57, 409, 411, 412, 57, 407, 57,
57, 57, 410, 418, 57, 57, 414, 416, 57, 419,
57, 57, 413, 415, 417, 57, 422, 57, 424, 57,
57, 57, 421, 420, 425, 57, 429, 57, 57, 57,
57, 57, 57, 427, 441, 57, 423, 426, 57, 57,
57, 442, 57, 430, 439, 428, 57, 438, 443, 432,
446, 433, 440, 57, 437, 434, 445, 435, 57, 447,
57, 449, 436, 57, 57, 448, 444, 452, 57, 453,
57, 57, 57, 454, 57, 57, 57, 450, 57, 57,
457, 459, 57, 451, 57, 456, 57, 458, 57, 463,
455, 57, 57, 464, 57, 467, 461, 465, 468, 460,
466, 462, 57, 57, 57, 469, 57, 57, 470, 57,
473, 57, 57, 57, 474, 476, 475, 471, 57, 57,
57, 57, 57, 57, 482, 480, 472, 481, 484, 57,
485, 477, 479, 57, 483, 57, 487, 57, 478, 57,
57, 490, 57, 57, 486, 57, 57, 57, 495, 57,
57, 57, 492, 57, 489, 496, 57, 57, 488, 57,
491, 494, 499, 497, 57, 498, 501, 57, 57, 57,
57, 493, 57, 57, 500, 504, 506, 503, 57, 57,
57, 57, 502, 57, 57, 57, 57, 57, 505, 512,
57, 57, 509, 507, 508, 515, 57, 57, 517, 511,
513, 510, 519, 523, 514, 516, 520, 518, 57, 522,
521, 57, 57, 524, 57, 57, 57, 528, 529, 525,
57, 57, 57, 57, 57, 530, 57, 57, 531, 526,
532, 536, 57, 57, 527, 533, 57, 534, 57, 535,
57, 537, 57, 57, 540, 57, 538, 544, 57, 545,
57, 57, 539, 57, 547, 57, 541, 57, 546, 549,
57, 543, 550, 548, 57, 542, 57, 554, 57, 555,
552, 556, 57, 553, 57, 57, 57, 557, 551, 559,
57, 57, 57, 57, 563, 57, 57, 57, 567, 57,
57, 57, 568, 57, 558, 57, 57, 57, 57, 57,
572, 560, 561, 562, 57, 57, 564, 566, 57, 570,
576, 574, 565, 57, 57, 571, 569, 573, 575, 578,
577, 57, 579, 581, 57, 57, 57, 584, 585, 57,
580, 583, 57, 57, 57, 586, 57, 57, 589, 591,
57, 587, 590, 57, 588, 582, 57, 57, 593, 57,
57, 57, 592, 57, 57, 57, 594, 57, 601, 57,
57, 57, 57, 602, 57, 598, 595, 606, 596, 597,
600, 605, 57, 603, 608, 599, 57, 609, 57, 57,
57, 604, 57, 611, 607, 610, 57, 57, 57, 57,
57, 612, 614, 616, 57, 57, 618, 57, 57, 57,
57, 619, 620, 613, 615, 57, 57, 627, 617, 57,
57, 626, 57, 57, 57, 630, 621, 622, 57, 629,
623, 57, 632, 57, 57, 624, 57, 57, 57, 628,
57, 635, 636, 637, 57, 638, 633, 57, 57, 631,
57, 644, 639, 634, 57, 57, 57, 57, 640, 57,
57, 57, 642, 643, 57, 57, 57, 641, 649, 652,
57, 650, 57, 57, 645, 646, 648, 57, 647, 654,
651, 656, 655, 657, 653, 658, 57, 57, 57, 57,
660, 57, 57, 659, 57, 664, 666, 667, 57, 57,
57, 57, 57, 662, 668, 661, 57, 671, 57, 663,
665, 669, 57, 57, 57, 57, 57, 670, 672, 677,
57, 678, 57, 57, 57, 673, 57, 679, 674, 680,
683, 675, 57, 57, 676, 57, 682, 57, 681, 687,
57, 57, 690, 686, 684, 689, 57, 57, 57, 57,
688, 685, 692, 57, 693, 57, 694, 57, 57, 696,
698, 695, 57, 57, 57, 57, 701, 697, 691, 700,
57, 57, 57, 57, 57, 702, 57, 703, 57, 57,
710, 57, 704, 57, 57, 57, 57, 699, 57, 715,
712, 57, 705, 706, 707, 713, 57, 708, 57, 57,
719, 711, 57, 718, 709, 57, 721, 717, 57, 57,
714, 716, 57, 722, 57, 57, 720, 724, 723, 57,
726, 57, 730, 733, 727, 731, 57, 57, 57, 732,
57, 725, 735, 57, 57, 729, 739, 57, 734, 57,
728, 57, 57, 737, 57, 736, 742, 57, 57, 57,
57, 57, 57, 57, 743, 744, 741, 745, 746, 738,
57, 748, 57, 751, 740, 747, 57, 753, 57, 752,
57, 750, 749, 57, 57, 754, 755, 57, 57, 757,
57, 57, 57, 57, 57, 57, 57, 765, 57, 57,
756, 764, 759, 760, 761, 758, 767, 57, 762, 57,
57, 770, 57, 57, 763, 769, 766, 771, 772, 57,
57, 775, 57, 57, 57, 768, 57, 776, 57, 57,
57, 57, 57, 57, 57, 57, 57, 773, 778, 782,
774, 779, 777, 780, 783, 57, 781, 57, 784, 786,
57, 785, 57, 787, 790, 57, 788, 791, 57, 57,
57, 789, 57, 794, 792, 795, 796, 57, 57, 798,
57, 793, 57, 799, 800, 57, 57, 797, 57, 57,
801, 57, 802, 57, 57, 57, 57, 57, 57, 809,
57, 803, 57, 812, 813, 57, 807, 57, 804, 57,
805, 810, 57, 811, 806, 824, 808, 814, 57, 57,
815, 816, 57, 817, 57, 819, 57, 57, 818, 821,
57, 822, 820, 823, 57, 57, 57, 57, 827, 826,
57, 825, 829, 57, 831, 57, 832, 57, 57, 57,
834, 57, 57, 828, 57, 57, 57, 836, 57, 830,
838, 57, 57, 835, 842, 57, 843, 840, 57, 57,
841, 839, 57, 846, 833, 837, 847, 845, 57, 57,
57, 57, 849, 57, 852, 844, 851, 57, 850, 57,
848, 57, 853, 57, 57, 857, 57, 57, 57, 856,
57, 57, 858, 57, 863, 861, 860, 57, 57, 862,
57, 854, 57, 855, 859, 864, 57, 865, 57, 866,
57, 867, 57, 868, 869, 57, 57, 872, 57, 57,
871, 57, 870, 874, 873, 57, 876, 57, 57, 57,
875, 57, 57, 57, 57, 883, 57, 57, 57, 57,
877, 57, 57, 879, 880, 881, 884, 878, 57, 890,
57, 57, 57, 888, 882, 887, 889, 57, 892, 886,
57, 57, 57, 57, 885, 57, 898, 57, 899, 893,
891, 57, 57, 57, 57, 57, 905, 57, 57, 894,
895, 896, 897, 57, 57, 57, 900, 904, 908, 57,
57, 901, 57, 906, 902, 903, 910, 57, 57, 911,
57, 907, 57, 57, 909, 57, 57, 914, 915, 913,
57, 57, 912, 916, 57, 918, 919, 921, 57, 922,
57, 917, 57, 57, 57, 57, 57, 923, 925, 920,
57, 57, 928, 926, 57, 924, 57, 932, 57, 927,
57, 57, 57, 929, 57, 930, 935, 57, 57, 933,
934, 938, 57, 936, 57, 931, 57, 940, 57, 57,
937, 941, 942, 57, 943, 57, 946, 57, 939, 947,
57, 57, 944, 945, 57, 57, 57, 57, 948, 57,
57, 57, 57, 950, 953, 57, 949, 57, 57, 57,
958, 956, 57, 952, 57, 951, 960, 57, 961, 57,
954, 962, 57, 57, 57, 957, 959, 955, 963, 966,
57, 967, 57, 57, 964, 57, 57, 57, 969, 972,
57, 968, 57, 57, 57, 57, 57, 57, 965, 57,
976, 971, 975, 973, 970, 979, 57, 57, 981, 57,
57, 974, 980, 984, 57, 978, 57, 982, 57, 977,
57, 983, 985, 57, 989, 57, 990, 57, 987, 986,
57, 993, 57, 994, 57, 992, 995, 57, 988, 991,
57, 997, 57, 57, 998, 996, 999, 57, 57, 57,
1002, 57, 57, 1000, 57, 57, 57, 1001, 57, 1003,
1005, 1006, 57, 57, 1008, 57, 57, 1007, 1011, 57,
1009, 57, 1004, 1012, 57, 57, 1010, 1013, 57, 57,
1015, 57, 57, 1014, 1019, 1016, 1017, 1018, 57, 57,
57, 1023, 57, 57, 57, 57, 57, 1020, 57, 57,
57, 57, 57, 1021, 57, 57, 57, 57, 57, 1022,
38, 38, 38, 38, 38, 38, 43, 43, 43, 43,
43, 43, 47, 47, 47, 47, 47, 47, 52, 52,
52, 52, 52, 52, 60, 60, 57, 60, 60, 60,
99, 99, 57, 57, 57, 99, 101, 101, 57, 57,
101, 106, 106, 57, 57, 57, 106, 61, 61, 57,
61, 61, 61, 57, 57, 57, 57, 57, 57, 57,
57, 57, 57, 57, 57, 57, 57, 57, 57, 57,
57, 57, 57, 57, 57, 57, 57, 57, 57, 57,
57, 57, 57, 57, 57, 57, 57, 57, 57, 57,
57, 57, 57, 57, 57, 57, 57, 57, 57, 57,
57, 57, 57, 57, 57, 107, 105, 104, 102, 100,
57, 107, 105, 104, 102, 100, 57, 1024, 11, 1024,
1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024,
1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024,
1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024,
1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024
} ;
static yyconst flex_int16_t yy_chk[2139] =
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 3,
3, 3, 4, 4, 4, 19, 5, 5, 19, 3,
5, 13, 4, 6, 6, 13, 5, 6, 9, 9,
9, 31, 1033, 6, 7, 7, 7, 7, 9, 7,
10, 10, 10, 155, 22, 7, 8, 8, 8, 8,
10, 8, 31, 16, 23, 16, 16, 8, 16, 155,
18, 21, 18, 18, 16, 18, 20, 20, 22, 23,
21, 24, 24, 21, 20, 25, 21, 26, 27, 25,
24, 20, 28, 27, 29, 30, 30, 32, 46, 25,
30, 46, 26, 33, 68, 34, 32, 28, 33, 29,
34, 81, 32, 29, 36, 32, 30, 65, 33, 35,
35, 33, 37, 37, 81, 34, 68, 37, 36, 42,
42, 55, 55, 36, 1029, 65, 51, 35, 51, 51,
57, 51, 57, 57, 58, 57, 66, 60, 58, 60,
60, 63, 60, 64, 63, 67, 64, 69, 60, 70,
66, 73, 69, 71, 72, 73, 74, 76, 77, 75,
79, 74, 75, 67, 79, 75, 80, 78, 82, 70,
78, 71, 72, 80, 78, 82, 76, 83, 84, 75,
85, 86, 87, 77, 85, 90, 89, 88, 91, 93,
83, 87, 92, 92, 94, 95, 97, 96, 84, 86,
88, 89, 96, 98, 90, 370, 91, 93, 97, 100,
100, 102, 110, 92, 102, 94, 111, 104, 95, 104,
104, 98, 104, 107, 107, 108, 109, 110, 112, 370,
108, 116, 113, 112, 109, 115, 111, 113, 114, 117,
115, 118, 114, 117, 123, 120, 118, 114, 119, 121,
122, 124, 114, 127, 116, 122, 124, 120, 114, 114,
120, 134, 119, 126, 123, 125, 125, 121, 128, 126,
129, 130, 131, 128, 127, 129, 130, 131, 132, 135,
133, 134, 136, 137, 138, 132, 133, 139, 140, 138,
141, 142, 141, 143, 144, 144, 148, 136, 142, 145,
146, 135, 149, 137, 145, 146, 150, 149, 140, 139,
151, 147, 143, 147, 152, 148, 156, 152, 153, 153,
159, 150, 145, 154, 154, 163, 157, 164, 151, 157,
147, 156, 158, 165, 159, 161, 158, 160, 160, 162,
161, 166, 166, 167, 162, 163, 165, 168, 164, 169,
170, 171, 169, 172, 173, 175, 173, 173, 175, 168,
171, 167, 170, 174, 174, 172, 176, 177, 178, 179,
179, 180, 180, 181, 182, 183, 184, 178, 185, 182,
186, 184, 177, 176, 187, 186, 176, 185, 188, 187,
189, 190, 191, 181, 190, 183, 194, 193, 195, 197,
198, 199, 196, 316, 189, 194, 191, 196, 188, 200,
190, 192, 193, 192, 192, 198, 203, 195, 204, 197,
316, 199, 205, 200, 201, 192, 192, 192, 206, 201,
202, 202, 206, 202, 204, 207, 203, 208, 205, 209,
210, 211, 213, 212, 214, 211, 218, 213, 209, 210,
214, 208, 212, 207, 215, 216, 216, 217, 218, 215,
219, 209, 217, 220, 224, 219, 221, 221, 223, 223,
225, 226, 229, 233, 227, 231, 230, 232, 225, 234,
226, 230, 232, 231, 220, 224, 227, 235, 235, 236,
238, 233, 229, 240, 237, 235, 239, 239, 234, 237,
241, 241, 242, 235, 237, 244, 245, 243, 247, 236,
238, 246, 250, 235, 248, 249, 246, 242, 240, 243,
249, 251, 251, 252, 244, 250, 253, 247, 245, 248,
254, 255, 563, 254, 563, 252, 256, 256, 257, 257,
258, 253, 259, 259, 255, 258, 260, 260, 261, 266,
262, 263, 265, 261, 262, 264, 263, 265, 267, 264,
268, 270, 270, 267, 269, 271, 1023, 269, 272, 266,
271, 272, 269, 273, 268, 274, 269, 273, 275, 276,
274, 277, 279, 275, 277, 276, 278, 279, 280, 278,
281, 282, 283, 284, 285, 288, 282, 283, 284, 273,
291, 290, 286, 285, 281, 286, 280, 287, 292, 289,
1018, 287, 287, 289, 293, 288, 290, 297, 291, 293,
294, 294, 295, 292, 296, 298, 295, 299, 300, 296,
304, 301, 302, 297, 303, 300, 301, 302, 305, 303,
299, 306, 307, 311, 298, 307, 310, 305, 304, 308,
308, 310, 312, 313, 319, 306, 323, 320, 319, 322,
312, 311, 320, 326, 322, 324, 325, 325, 313, 321,
326, 327, 327, 321, 323, 331, 321, 328, 329, 329,
330, 321, 1013, 330, 334, 332, 336, 321, 321, 336,
324, 340, 328, 332, 338, 331, 333, 333, 337, 334,
335, 335, 338, 339, 337, 341, 342, 343, 343, 340,
341, 339, 344, 342, 346, 345, 350, 344, 345, 347,
347, 348, 351, 352, 348, 350, 351, 353, 346, 354,
356, 355, 348, 357, 359, 358, 353, 355, 357, 358,
360, 361, 352, 354, 356, 362, 361, 363, 363, 365,
366, 364, 360, 359, 364, 367, 368, 368, 369, 372,
374, 375, 373, 366, 376, 1012, 362, 365, 379, 376,
377, 377, 378, 369, 374, 367, 371, 373, 377, 371,
379, 371, 375, 382, 372, 371, 378, 371, 380, 380,
381, 382, 371, 383, 384, 381, 377, 385, 385, 387,
388, 389, 390, 388, 387, 391, 393, 383, 392, 394,
391, 393, 395, 384, 398, 390, 397, 392, 399, 398,
389, 401, 400, 399, 402, 402, 395, 400, 403, 394,
401, 397, 406, 403, 405, 405, 407, 408, 405, 409,
408, 410, 411, 412, 409, 411, 410, 406, 413, 414,
415, 417, 416, 418, 417, 415, 407, 416, 419, 421,
420, 412, 414, 419, 418, 420, 422, 422, 413, 423,
424, 425, 426, 427, 421, 425, 428, 430, 431, 433,
432, 434, 427, 431, 424, 432, 1011, 435, 423, 436,
426, 430, 435, 433, 438, 434, 437, 437, 439, 441,
440, 428, 442, 445, 436, 440, 442, 439, 443, 444,
446, 447, 438, 448, 450, 449, 451, 455, 441, 448,
454, 453, 445, 443, 444, 451, 458, 456, 454, 447,
449, 446, 456, 459, 450, 453, 457, 455, 459, 458,
457, 457, 460, 460, 461, 462, 463, 464, 465, 461,
466, 468, 464, 465, 467, 466, 470, 469, 467, 462,
468, 469, 471, 472, 463, 468, 473, 468, 474, 468,
475, 470, 476, 481, 473, 1008, 471, 477, 477, 478,
478, 482, 472, 479, 480, 480, 474, 483, 479, 482,
484, 476, 483, 481, 485, 475, 486, 488, 491, 489,
485, 490, 488, 486, 489, 492, 490, 491, 484, 493,
493, 494, 495, 497, 497, 496, 498, 499, 502, 500,
503, 504, 502, 502, 492, 505, 506, 508, 507, 509,
506, 494, 495, 496, 513, 510, 498, 500, 515, 504,
510, 508, 499, 511, 512, 505, 503, 507, 509, 512,
511, 514, 513, 515, 516, 523, 517, 518, 519, 1006,
514, 517, 518, 519, 520, 520, 522, 528, 524, 525,
525, 522, 524, 524, 523, 516, 526, 529, 527, 530,
531, 532, 526, 527, 533, 534, 528, 535, 535, 536,
537, 538, 540, 536, 541, 532, 529, 540, 530, 531,
534, 539, 539, 537, 542, 533, 549, 543, 550, 542,
548, 538, 543, 548, 541, 546, 546, 551, 554, 552,
556, 549, 551, 553, 553, 555, 555, 558, 557, 560,
561, 556, 557, 550, 552, 562, 564, 565, 554, 566,
569, 564, 565, 567, 570, 569, 558, 560, 572, 567,
561, 571, 571, 573, 578, 562, 574, 575, 579, 566,
577, 574, 575, 576, 576, 577, 572, 580, 581, 570,
582, 583, 578, 573, 584, 585, 583, 586, 579, 588,
592, 587, 581, 582, 589, 593, 1002, 580, 588, 592,
594, 588, 595, 598, 584, 585, 587, 599, 586, 594,
589, 595, 594, 596, 593, 597, 597, 600, 596, 601,
599, 602, 604, 598, 603, 603, 606, 607, 608, 611,
612, 606, 607, 601, 608, 600, 613, 611, 609, 602,
604, 609, 614, 615, 617, 618, 619, 609, 612, 618,
621, 619, 620, 622, 623, 613, 999, 620, 614, 621,
624, 615, 625, 626, 617, 624, 623, 627, 622, 628,
628, 629, 631, 627, 625, 630, 630, 631, 632, 639,
629, 626, 633, 633, 634, 634, 635, 635, 636, 638,
640, 636, 641, 644, 638, 640, 643, 639, 632, 642,
642, 643, 645, 646, 647, 644, 648, 644, 649, 650,
650, 651, 644, 652, 654, 656, 653, 641, 655, 655,
652, 657, 645, 646, 647, 653, 661, 648, 659, 662,
660, 651, 665, 659, 649, 660, 662, 657, 663, 664,
654, 656, 666, 663, 667, 668, 661, 665, 664, 669,
667, 670, 671, 673, 668, 672, 674, 671, 673, 672,
672, 666, 675, 676, 678, 670, 679, 675, 674, 677,
669, 679, 680, 677, 681, 676, 682, 682, 683, 686,
684, 685, 696, 688, 683, 684, 681, 685, 686, 678,
690, 690, 691, 695, 680, 688, 697, 697, 695, 696,
701, 691, 690, 698, 703, 698, 699, 699, 702, 702,
704, 705, 706, 707, 708, 710, 709, 710, 711, 713,
701, 709, 704, 705, 706, 703, 712, 712, 707, 715,
714, 715, 716, 717, 708, 714, 711, 716, 717, 718,
719, 720, 721, 722, 723, 713, 720, 721, 997, 724,
726, 729, 727, 730, 725, 728, 734, 718, 723, 726,
719, 724, 722, 725, 727, 735, 725, 731, 728, 730,
733, 729, 738, 731, 735, 737, 733, 736, 736, 739,
740, 734, 746, 739, 737, 740, 741, 741, 743, 744,
744, 738, 745, 745, 746, 747, 749, 743, 748, 750,
747, 751, 748, 752, 753, 754, 756, 772, 757, 756,
758, 749, 759, 759, 760, 760, 753, 762, 750, 765,
751, 757, 770, 758, 752, 772, 754, 761, 761, 995,
762, 763, 763, 764, 764, 766, 766, 768, 765, 769,
769, 770, 768, 771, 771, 773, 774, 775, 775, 774,
777, 773, 776, 776, 778, 778, 779, 779, 780, 781,
781, 782, 783, 775, 784, 785, 786, 783, 787, 777,
785, 788, 790, 782, 789, 792, 790, 787, 793, 789,
788, 786, 794, 794, 780, 784, 795, 793, 797, 799,
802, 795, 799, 800, 802, 792, 801, 801, 800, 803,
797, 804, 803, 805, 806, 807, 808, 811, 809, 806,
807, 810, 808, 815, 815, 811, 810, 812, 826, 812,
827, 804, 994, 805, 809, 818, 818, 820, 820, 822,
822, 824, 825, 825, 826, 828, 824, 830, 830, 833,
828, 834, 827, 834, 833, 835, 836, 836, 837, 838,
835, 839, 840, 841, 842, 843, 843, 844, 845, 846,
837, 993, 847, 839, 840, 841, 844, 838, 848, 850,
850, 849, 852, 848, 842, 847, 849, 853, 853, 846,
854, 855, 856, 858, 845, 857, 859, 859, 860, 854,
852, 861, 862, 860, 863, 867, 869, 869, 870, 855,
856, 857, 858, 871, 868, 874, 861, 868, 873, 873,
878, 862, 990, 870, 863, 867, 875, 875, 877, 877,
879, 871, 880, 881, 874, 882, 884, 880, 881, 879,
885, 886, 878, 882, 887, 885, 886, 888, 888, 889,
889, 884, 891, 892, 894, 893, 899, 891, 893, 887,
895, 896, 896, 894, 897, 892, 900, 901, 901, 895,
902, 904, 903, 897, 906, 899, 904, 907, 911, 902,
903, 909, 909, 906, 916, 900, 912, 912, 913, 917,
907, 913, 914, 914, 915, 915, 918, 923, 911, 919,
919, 918, 916, 917, 920, 924, 925, 926, 920, 927,
928, 929, 930, 924, 927, 931, 923, 933, 934, 989,
933, 930, 937, 926, 936, 925, 935, 935, 936, 939,
928, 937, 940, 941, 944, 931, 934, 929, 939, 944,
945, 945, 946, 948, 940, 949, 950, 952, 948, 951,
951, 946, 953, 956, 954, 955, 957, 962, 941, 963,
955, 950, 954, 952, 949, 958, 958, 959, 961, 961,
966, 953, 959, 964, 964, 957, 967, 962, 968, 956,
971, 963, 965, 965, 969, 969, 970, 970, 967, 966,
973, 974, 974, 975, 975, 973, 976, 976, 968, 971,
977, 978, 978, 980, 980, 977, 982, 982, 983, 986,
987, 987, 991, 983, 988, 1001, 992, 986, 1003, 988,
992, 996, 996, 998, 1000, 1000, 1015, 998, 1004, 1004,
1001, 1009, 991, 1005, 1005, 1017, 1003, 1007, 1007, 1010,
1010, 1014, 1019, 1009, 1017, 1014, 1015, 1016, 1016, 1020,
1021, 1022, 1022, 985, 984, 981, 979, 1019, 972, 960,
947, 943, 942, 1020, 938, 932, 922, 921, 910, 1021,
1025, 1025, 1025, 1025, 1025, 1025, 1026, 1026, 1026, 1026,
1026, 1026, 1027, 1027, 1027, 1027, 1027, 1027, 1028, 1028,
1028, 1028, 1028, 1028, 1030, 1030, 908, 1030, 1030, 1030,
1031, 1031, 905, 898, 890, 1031, 1032, 1032, 883, 876,
1032, 1034, 1034, 872, 866, 865, 1034, 1035, 1035, 864,
1035, 1035, 1035, 851, 832, 831, 829, 823, 821, 819,
817, 816, 814, 813, 798, 796, 791, 767, 755, 742,
732, 700, 694, 693, 692, 689, 687, 658, 637, 616,
610, 605, 591, 590, 568, 559, 547, 545, 544, 521,
501, 487, 452, 429, 404, 396, 386, 349, 318, 317,
315, 314, 309, 228, 222, 106, 105, 103, 101, 99,
56, 52, 48, 47, 43, 38, 12, 11, 1024, 1024,
1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024,
1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024,
1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024,
1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024
} ;
static yy_state_type yy_last_accepting_state;
static char *yy_last_accepting_cpos;
extern int yy_flex_debug;
int yy_flex_debug = 0;
/* The intent behind this definition is that it'll catch
* any uses of REJECT which flex missed.
*/
#define REJECT reject_used_but_not_detected
static int yy_more_flag = 0;
static int yy_more_len = 0;
#define yymore() ((yy_more_flag) = 1)
#define YY_MORE_ADJ (yy_more_len)
#define YY_RESTORE_YY_MORE_OFFSET
char *yytext;
#line 1 "util/configlexer.lex"
#line 2 "util/configlexer.lex"
/*
* configlexer.lex - lexical analyzer for unbound config file
*
* Copyright (c) 2001-2006, NLnet Labs. All rights reserved
*
* See LICENSE for the license.
*
*/
#include "config.h"
#include <ctype.h>
#include <string.h>
#include <strings.h>
#include "util/configyyrename.h"
#include "util/config_file.h"
#include "util/configparser.h"
void ub_c_error(const char *message);
#if 0
#define LEXOUT(s) printf s /* used ONLY when debugging */
#else
#define LEXOUT(s)
#endif
#define YDOUT LEXOUT(("v(%s )", yytext))
struct inc_state {
char* filename;
int line;
};
static struct inc_state parse_stack[MAXINCLUDES];
static YY_BUFFER_STATE include_stack[MAXINCLUDES];
static int config_include_stack_ptr = 0;
static void config_start_include(const char* filename)
{
FILE *input;
if(strlen(filename) == 0) {
ub_c_error_msg("empty include file name");
return;
}
if(config_include_stack_ptr >= MAXINCLUDES) {
ub_c_error_msg("includes nested too deeply, skipped (>%d)", MAXINCLUDES);
return;
}
if(cfg_parser->chroot && strncmp(filename, cfg_parser->chroot,
strlen(cfg_parser->chroot)) == 0) {
filename += strlen(cfg_parser->chroot);
}
input = fopen(filename, "r");
if(!input) {
ub_c_error_msg("cannot open include file '%s': %s",
filename, strerror(errno));
return;
}
LEXOUT(("switch_to_include_file(%s) ", filename));
parse_stack[config_include_stack_ptr].filename = cfg_parser->filename;
parse_stack[config_include_stack_ptr].line = cfg_parser->line;
include_stack[config_include_stack_ptr] = YY_CURRENT_BUFFER;
cfg_parser->filename = strdup(filename);
cfg_parser->line = 1;
yy_switch_to_buffer(yy_create_buffer(input,YY_BUF_SIZE));
++config_include_stack_ptr;
}
static void config_end_include(void)
{
--config_include_stack_ptr;
free(cfg_parser->filename);
cfg_parser->filename = parse_stack[config_include_stack_ptr].filename;
cfg_parser->line = parse_stack[config_include_stack_ptr].line;
yy_delete_buffer(YY_CURRENT_BUFFER);
yy_switch_to_buffer(include_stack[config_include_stack_ptr]);
}
#ifndef yy_set_bol /* compat definition, for flex 2.4.6 */
#define yy_set_bol(at_bol) \
{ \
if ( ! yy_current_buffer ) \
yy_current_buffer = yy_create_buffer(yyin,YY_BUF_SIZE ); \
yy_current_buffer->yy_ch_buf[0] = ((at_bol)?'\n':' '); \
}
#endif
#define YY_NO_INPUT 1
#line 92 "util/configlexer.lex"
#ifndef YY_NO_UNPUT
#define YY_NO_UNPUT 1
#endif
#ifndef YY_NO_INPUT
#define YY_NO_INPUT 1
#endif
#line 1357 "<stdout>"
#define INITIAL 0
#define quotedstring 1
#define singlequotedstr 2
#define include 3
#define include_quoted 4
#ifndef YY_NO_UNISTD_H
/* Special case for "unistd.h", since it is non-ANSI. We include it way
* down here because we want the user's section 1 to have been scanned first.
* The user has a chance to override it with an option.
*/
#include <unistd.h>
#endif
#ifndef YY_EXTRA_TYPE
#define YY_EXTRA_TYPE void *
#endif
static int yy_init_globals (void );
/* Accessor methods to globals.
These are made visible to non-reentrant scanners for convenience. */
int yylex_destroy (void );
int yyget_debug (void );
void yyset_debug (int debug_flag );
YY_EXTRA_TYPE yyget_extra (void );
void yyset_extra (YY_EXTRA_TYPE user_defined );
FILE *yyget_in (void );
void yyset_in (FILE * in_str );
FILE *yyget_out (void );
void yyset_out (FILE * out_str );
int yyget_leng (void );
char *yyget_text (void );
int yyget_lineno (void );
void yyset_lineno (int line_number );
/* Macros after this point can all be overridden by user definitions in
* section 1.
*/
#ifndef YY_SKIP_YYWRAP
#ifdef __cplusplus
extern "C" int yywrap (void );
#else
extern int yywrap (void );
#endif
#endif
#ifndef yytext_ptr
static void yy_flex_strncpy (char *,yyconst char *,int );
#endif
#ifdef YY_NEED_STRLEN
static int yy_flex_strlen (yyconst char * );
#endif
#ifndef YY_NO_INPUT
#ifdef __cplusplus
static int yyinput (void );
#else
static int input (void );
#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 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_LVALUE->yy_is_interactive ) \
{ \
int c = '*'; \
unsigned 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 \
{ \
errno=0; \
while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
{ \
if( errno != EINTR) \
{ \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
break; \
} \
errno=0; \
clearerr(yyin); \
} \
}\
\
#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
/* end tables serialization structures and prototypes */
/* Default declaration of generated scanner - a define so the user can
* easily add parameters.
*/
#ifndef YY_DECL
#define YY_DECL_IS_OURS 1
extern int yylex (void);
#define YY_DECL int yylex (void)
#endif /* !YY_DECL */
/* 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 \
YY_USER_ACTION
/** The main scanner function which does all the work.
*/
YY_DECL
{
register yy_state_type yy_current_state;
register char *yy_cp, *yy_bp;
register int yy_act;
#line 111 "util/configlexer.lex"
#line 1543 "<stdout>"
if ( !(yy_init) )
{
(yy_init) = 1;
#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 ) {
yyensure_buffer_stack ();
YY_CURRENT_BUFFER_LVALUE =
yy_create_buffer(yyin,YY_BUF_SIZE );
}
yy_load_buffer_state( );
}
while ( 1 ) /* loops until end-of-file is reached */
{
(yy_more_len) = 0;
if ( (yy_more_flag) )
{
(yy_more_len) = (yy_c_buf_p) - (yytext_ptr);
(yy_more_flag) = 0;
}
yy_cp = (yy_c_buf_p);
/* Support of yytext. */
*yy_cp = (yy_hold_char);
/* yy_bp points to the position in yy_ch_buf of the start of
* the current run.
*/
yy_bp = yy_cp;
yy_current_state = (yy_start);
yy_match:
do
{
register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
if ( yy_accept[yy_current_state] )
{
(yy_last_accepting_state) = yy_current_state;
(yy_last_accepting_cpos) = yy_cp;
}
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 1025 )
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
++yy_cp;
}
while ( yy_base[yy_current_state] != 2099 );
yy_find_action:
yy_act = yy_accept[yy_current_state];
if ( yy_act == 0 )
{ /* have to back up */
yy_cp = (yy_last_accepting_cpos);
yy_current_state = (yy_last_accepting_state);
yy_act = yy_accept[yy_current_state];
}
YY_DO_BEFORE_ACTION;
do_action: /* This label is used only to access EOF actions. */
switch ( yy_act )
{ /* beginning of action switch */
case 0: /* must back up */
/* undo the effects of YY_DO_BEFORE_ACTION */
*yy_cp = (yy_hold_char);
yy_cp = (yy_last_accepting_cpos);
yy_current_state = (yy_last_accepting_state);
goto yy_find_action;
case 1:
YY_RULE_SETUP
#line 112 "util/configlexer.lex"
{ LEXOUT(("SP ")); /* ignore */ }
YY_BREAK
case 2:
YY_RULE_SETUP
#line 113 "util/configlexer.lex"
{ LEXOUT(("comment(%s) ", yytext)); /* ignore */ }
YY_BREAK
case 3:
YY_RULE_SETUP
#line 114 "util/configlexer.lex"
{ YDOUT; return VAR_SERVER;}
YY_BREAK
case 4:
YY_RULE_SETUP
#line 115 "util/configlexer.lex"
{ YDOUT; return VAR_NUM_THREADS;}
YY_BREAK
case 5:
YY_RULE_SETUP
#line 116 "util/configlexer.lex"
{ YDOUT; return VAR_VERBOSITY;}
YY_BREAK
case 6:
YY_RULE_SETUP
#line 117 "util/configlexer.lex"
{ YDOUT; return VAR_PORT;}
YY_BREAK
case 7:
YY_RULE_SETUP
#line 118 "util/configlexer.lex"
{ YDOUT; return VAR_OUTGOING_RANGE;}
YY_BREAK
case 8:
YY_RULE_SETUP
#line 119 "util/configlexer.lex"
{ YDOUT; return VAR_OUTGOING_PORT_PERMIT;}
YY_BREAK
case 9:
YY_RULE_SETUP
#line 120 "util/configlexer.lex"
{ YDOUT; return VAR_OUTGOING_PORT_AVOID;}
YY_BREAK
case 10:
YY_RULE_SETUP
#line 121 "util/configlexer.lex"
{ YDOUT; return VAR_OUTGOING_NUM_TCP;}
YY_BREAK
case 11:
YY_RULE_SETUP
#line 122 "util/configlexer.lex"
{ YDOUT; return VAR_INCOMING_NUM_TCP;}
YY_BREAK
case 12:
YY_RULE_SETUP
#line 123 "util/configlexer.lex"
{ YDOUT; return VAR_DO_IP4;}
YY_BREAK
case 13:
YY_RULE_SETUP
#line 124 "util/configlexer.lex"
{ YDOUT; return VAR_DO_IP6;}
YY_BREAK
case 14:
YY_RULE_SETUP
#line 125 "util/configlexer.lex"
{ YDOUT; return VAR_DO_UDP;}
YY_BREAK
case 15:
YY_RULE_SETUP
#line 126 "util/configlexer.lex"
{ YDOUT; return VAR_DO_TCP;}
YY_BREAK
case 16:
YY_RULE_SETUP
#line 127 "util/configlexer.lex"
{ YDOUT; return VAR_DO_DAEMONIZE;}
YY_BREAK
case 17:
YY_RULE_SETUP
#line 128 "util/configlexer.lex"
{ YDOUT; return VAR_INTERFACE;}
YY_BREAK
case 18:
YY_RULE_SETUP
#line 129 "util/configlexer.lex"
{ YDOUT; return VAR_OUTGOING_INTERFACE;}
YY_BREAK
case 19:
YY_RULE_SETUP
#line 130 "util/configlexer.lex"
{ YDOUT; return VAR_INTERFACE_AUTOMATIC;}
YY_BREAK
case 20:
YY_RULE_SETUP
#line 131 "util/configlexer.lex"
{ YDOUT; return VAR_CHROOT;}
YY_BREAK
case 21:
YY_RULE_SETUP
#line 132 "util/configlexer.lex"
{ YDOUT; return VAR_USERNAME;}
YY_BREAK
case 22:
YY_RULE_SETUP
#line 133 "util/configlexer.lex"
{ YDOUT; return VAR_DIRECTORY;}
YY_BREAK
case 23:
YY_RULE_SETUP
#line 134 "util/configlexer.lex"
{ YDOUT; return VAR_LOGFILE;}
YY_BREAK
case 24:
YY_RULE_SETUP
#line 135 "util/configlexer.lex"
{ YDOUT; return VAR_PIDFILE;}
YY_BREAK
case 25:
YY_RULE_SETUP
#line 136 "util/configlexer.lex"
{ YDOUT; return VAR_ROOT_HINTS;}
YY_BREAK
case 26:
YY_RULE_SETUP
#line 137 "util/configlexer.lex"
{ YDOUT; return VAR_MSG_BUFFER_SIZE;}
YY_BREAK
case 27:
YY_RULE_SETUP
#line 138 "util/configlexer.lex"
{ YDOUT; return VAR_MSG_CACHE_SIZE;}
YY_BREAK
case 28:
YY_RULE_SETUP
#line 139 "util/configlexer.lex"
{ YDOUT; return VAR_MSG_CACHE_SLABS;}
YY_BREAK
case 29:
YY_RULE_SETUP
#line 140 "util/configlexer.lex"
{ YDOUT; return VAR_RRSET_CACHE_SIZE;}
YY_BREAK
case 30:
YY_RULE_SETUP
#line 141 "util/configlexer.lex"
{ YDOUT; return VAR_RRSET_CACHE_SLABS;}
YY_BREAK
case 31:
YY_RULE_SETUP
#line 142 "util/configlexer.lex"
{ YDOUT; return VAR_CACHE_MAX_TTL;}
YY_BREAK
case 32:
YY_RULE_SETUP
#line 143 "util/configlexer.lex"
{ YDOUT; return VAR_INFRA_HOST_TTL;}
YY_BREAK
case 33:
YY_RULE_SETUP
#line 144 "util/configlexer.lex"
{ YDOUT; return VAR_INFRA_LAME_TTL;}
YY_BREAK
case 34:
YY_RULE_SETUP
#line 145 "util/configlexer.lex"
{ YDOUT; return VAR_INFRA_CACHE_SLABS;}
YY_BREAK
case 35:
YY_RULE_SETUP
#line 146 "util/configlexer.lex"
{ YDOUT; return VAR_INFRA_CACHE_NUMHOSTS;}
YY_BREAK
case 36:
YY_RULE_SETUP
#line 147 "util/configlexer.lex"
{ YDOUT; return VAR_INFRA_CACHE_LAME_SIZE;}
YY_BREAK
case 37:
YY_RULE_SETUP
#line 148 "util/configlexer.lex"
{ YDOUT; return VAR_NUM_QUERIES_PER_THREAD;}
YY_BREAK
case 38:
YY_RULE_SETUP
#line 149 "util/configlexer.lex"
{ YDOUT; return VAR_JOSTLE_TIMEOUT;}
YY_BREAK
case 39:
YY_RULE_SETUP
#line 150 "util/configlexer.lex"
{ YDOUT; return VAR_TARGET_FETCH_POLICY;}
YY_BREAK
case 40:
YY_RULE_SETUP
#line 151 "util/configlexer.lex"
{ YDOUT; return VAR_HARDEN_SHORT_BUFSIZE;}
YY_BREAK
case 41:
YY_RULE_SETUP
#line 152 "util/configlexer.lex"
{ YDOUT; return VAR_HARDEN_LARGE_QUERIES;}
YY_BREAK
case 42:
YY_RULE_SETUP
#line 153 "util/configlexer.lex"
{ YDOUT; return VAR_HARDEN_GLUE;}
YY_BREAK
case 43:
YY_RULE_SETUP
#line 154 "util/configlexer.lex"
{ YDOUT; return VAR_HARDEN_DNNSEC_STRIPPED;}
YY_BREAK
case 44:
YY_RULE_SETUP
#line 155 "util/configlexer.lex"
{ YDOUT; return VAR_HARDEN_REFERRAL_PATH;}
YY_BREAK
case 45:
YY_RULE_SETUP
#line 156 "util/configlexer.lex"
{ YDOUT; return VAR_USE_CAPS_FOR_ID;}
YY_BREAK
case 46:
YY_RULE_SETUP
#line 157 "util/configlexer.lex"
{ YDOUT; return VAR_UNWANTED_REPLY_THRESHOLD;}
YY_BREAK
case 47:
YY_RULE_SETUP
#line 158 "util/configlexer.lex"
{ YDOUT; return VAR_PRIVATE_ADDRESS;}
YY_BREAK
case 48:
YY_RULE_SETUP
#line 159 "util/configlexer.lex"
{ YDOUT; return VAR_PRIVATE_DOMAIN;}
YY_BREAK
case 49:
YY_RULE_SETUP
#line 160 "util/configlexer.lex"
{ YDOUT; return VAR_STUB_ZONE;}
YY_BREAK
case 50:
YY_RULE_SETUP
#line 161 "util/configlexer.lex"
{ YDOUT; return VAR_NAME;}
YY_BREAK
case 51:
YY_RULE_SETUP
#line 162 "util/configlexer.lex"
{ YDOUT; return VAR_STUB_ADDR;}
YY_BREAK
case 52:
YY_RULE_SETUP
#line 163 "util/configlexer.lex"
{ YDOUT; return VAR_STUB_HOST;}
YY_BREAK
case 53:
YY_RULE_SETUP
#line 164 "util/configlexer.lex"
{ YDOUT; return VAR_STUB_PRIME;}
YY_BREAK
case 54:
YY_RULE_SETUP
#line 165 "util/configlexer.lex"
{ YDOUT; return VAR_FORWARD_ZONE;}
YY_BREAK
case 55:
YY_RULE_SETUP
#line 166 "util/configlexer.lex"
{ YDOUT; return VAR_FORWARD_ADDR;}
YY_BREAK
case 56:
YY_RULE_SETUP
#line 167 "util/configlexer.lex"
{ YDOUT; return VAR_FORWARD_HOST;}
YY_BREAK
case 57:
YY_RULE_SETUP
#line 168 "util/configlexer.lex"
{ YDOUT; return VAR_DO_NOT_QUERY_ADDRESS;}
YY_BREAK
case 58:
YY_RULE_SETUP
#line 169 "util/configlexer.lex"
{ YDOUT; return VAR_DO_NOT_QUERY_LOCALHOST;}
YY_BREAK
case 59:
YY_RULE_SETUP
#line 170 "util/configlexer.lex"
{ YDOUT; return VAR_ACCESS_CONTROL;}
YY_BREAK
case 60:
YY_RULE_SETUP
#line 171 "util/configlexer.lex"
{ YDOUT; return VAR_HIDE_IDENTITY;}
YY_BREAK
case 61:
YY_RULE_SETUP
#line 172 "util/configlexer.lex"
{ YDOUT; return VAR_HIDE_VERSION;}
YY_BREAK
case 62:
YY_RULE_SETUP
#line 173 "util/configlexer.lex"
{ YDOUT; return VAR_IDENTITY;}
YY_BREAK
case 63:
YY_RULE_SETUP
#line 174 "util/configlexer.lex"
{ YDOUT; return VAR_VERSION;}
YY_BREAK
case 64:
YY_RULE_SETUP
#line 175 "util/configlexer.lex"
{ YDOUT; return VAR_MODULE_CONF;}
YY_BREAK
case 65:
YY_RULE_SETUP
#line 176 "util/configlexer.lex"
{ YDOUT; return VAR_DLV_ANCHOR;}
YY_BREAK
case 66:
YY_RULE_SETUP
#line 177 "util/configlexer.lex"
{ YDOUT; return VAR_DLV_ANCHOR_FILE;}
YY_BREAK
case 67:
YY_RULE_SETUP
#line 178 "util/configlexer.lex"
{ YDOUT; return VAR_TRUST_ANCHOR_FILE;}
YY_BREAK
case 68:
YY_RULE_SETUP
#line 179 "util/configlexer.lex"
{ YDOUT; return VAR_TRUSTED_KEYS_FILE;}
YY_BREAK
case 69:
YY_RULE_SETUP
#line 180 "util/configlexer.lex"
{ YDOUT; return VAR_TRUST_ANCHOR;}
YY_BREAK
case 70:
YY_RULE_SETUP
#line 181 "util/configlexer.lex"
{ YDOUT; return VAR_VAL_OVERRIDE_DATE;}
YY_BREAK
case 71:
YY_RULE_SETUP
#line 182 "util/configlexer.lex"
{ YDOUT; return VAR_BOGUS_TTL;}
YY_BREAK
case 72:
YY_RULE_SETUP
#line 183 "util/configlexer.lex"
{ YDOUT; return VAR_VAL_CLEAN_ADDITIONAL;}
YY_BREAK
case 73:
YY_RULE_SETUP
#line 184 "util/configlexer.lex"
{ YDOUT; return VAR_VAL_PERMISSIVE_MODE;}
YY_BREAK
case 74:
YY_RULE_SETUP
#line 185 "util/configlexer.lex"
{ YDOUT; return VAR_KEY_CACHE_SIZE;}
YY_BREAK
case 75:
YY_RULE_SETUP
#line 186 "util/configlexer.lex"
{ YDOUT; return VAR_KEY_CACHE_SLABS;}
YY_BREAK
case 76:
YY_RULE_SETUP
#line 187 "util/configlexer.lex"
{ YDOUT; return VAR_NEG_CACHE_SIZE;}
YY_BREAK
case 77:
YY_RULE_SETUP
#line 188 "util/configlexer.lex"
{ YDOUT; return VAR_VAL_NSEC3_KEYSIZE_ITERATIONS;}
YY_BREAK
case 78:
YY_RULE_SETUP
#line 189 "util/configlexer.lex"
{ YDOUT; return VAR_USE_SYSLOG;}
YY_BREAK
case 79:
YY_RULE_SETUP
#line 190 "util/configlexer.lex"
{ YDOUT; return VAR_LOCAL_ZONE;}
YY_BREAK
case 80:
YY_RULE_SETUP
#line 191 "util/configlexer.lex"
{ YDOUT; return VAR_LOCAL_DATA;}
YY_BREAK
case 81:
YY_RULE_SETUP
#line 192 "util/configlexer.lex"
{ YDOUT; return VAR_LOCAL_DATA_PTR;}
YY_BREAK
case 82:
YY_RULE_SETUP
#line 193 "util/configlexer.lex"
{ YDOUT; return VAR_STATISTICS_INTERVAL;}
YY_BREAK
case 83:
YY_RULE_SETUP
#line 194 "util/configlexer.lex"
{ YDOUT; return VAR_STATISTICS_CUMULATIVE;}
YY_BREAK
case 84:
YY_RULE_SETUP
#line 195 "util/configlexer.lex"
{ YDOUT; return VAR_EXTENDED_STATISTICS;}
YY_BREAK
case 85:
YY_RULE_SETUP
#line 196 "util/configlexer.lex"
{ YDOUT; return VAR_REMOTE_CONTROL; }
YY_BREAK
case 86:
YY_RULE_SETUP
#line 197 "util/configlexer.lex"
{ YDOUT; return VAR_CONTROL_ENABLE; }
YY_BREAK
case 87:
YY_RULE_SETUP
#line 198 "util/configlexer.lex"
{ YDOUT; return VAR_CONTROL_INTERFACE; }
YY_BREAK
case 88:
YY_RULE_SETUP
#line 199 "util/configlexer.lex"
{ YDOUT; return VAR_CONTROL_PORT; }
YY_BREAK
case 89:
YY_RULE_SETUP
#line 200 "util/configlexer.lex"
{ YDOUT; return VAR_SERVER_KEY_FILE; }
YY_BREAK
case 90:
YY_RULE_SETUP
#line 201 "util/configlexer.lex"
{ YDOUT; return VAR_SERVER_CERT_FILE; }
YY_BREAK
case 91:
YY_RULE_SETUP
#line 202 "util/configlexer.lex"
{ YDOUT; return VAR_CONTROL_KEY_FILE; }
YY_BREAK
case 92:
YY_RULE_SETUP
#line 203 "util/configlexer.lex"
{ YDOUT; return VAR_CONTROL_CERT_FILE; }
YY_BREAK
case 93:
/* rule 93 can match eol */
YY_RULE_SETUP
#line 204 "util/configlexer.lex"
{ LEXOUT(("NL\n")); cfg_parser->line++;}
YY_BREAK
/* Quoted strings. Strip leading and ending quotes */
case 94:
YY_RULE_SETUP
#line 207 "util/configlexer.lex"
{ BEGIN(quotedstring); LEXOUT(("QS ")); }
YY_BREAK
case YY_STATE_EOF(quotedstring):
#line 208 "util/configlexer.lex"
{
yyerror("EOF inside quoted string");
BEGIN(INITIAL);
}
YY_BREAK
case 95:
YY_RULE_SETUP
#line 212 "util/configlexer.lex"
{ LEXOUT(("STR(%s) ", yytext)); yymore(); }
YY_BREAK
case 96:
/* rule 96 can match eol */
YY_RULE_SETUP
#line 213 "util/configlexer.lex"
{ cfg_parser->line++; yymore(); }
YY_BREAK
case 97:
YY_RULE_SETUP
#line 214 "util/configlexer.lex"
{
LEXOUT(("QE "));
BEGIN(INITIAL);
yytext[yyleng - 1] = '\0';
yylval.str = strdup(yytext);
if(!yylval.str)
yyerror("out of memory");
return STRING;
}
YY_BREAK
/* Single Quoted strings. Strip leading and ending quotes */
case 98:
YY_RULE_SETUP
#line 225 "util/configlexer.lex"
{ BEGIN(singlequotedstr); LEXOUT(("SQS ")); }
YY_BREAK
case YY_STATE_EOF(singlequotedstr):
#line 226 "util/configlexer.lex"
{
yyerror("EOF inside quoted string");
BEGIN(INITIAL);
}
YY_BREAK
case 99:
YY_RULE_SETUP
#line 230 "util/configlexer.lex"
{ LEXOUT(("STR(%s) ", yytext)); yymore(); }
YY_BREAK
case 100:
/* rule 100 can match eol */
YY_RULE_SETUP
#line 231 "util/configlexer.lex"
{ cfg_parser->line++; yymore(); }
YY_BREAK
case 101:
YY_RULE_SETUP
#line 232 "util/configlexer.lex"
{
LEXOUT(("SQE "));
BEGIN(INITIAL);
yytext[yyleng - 1] = '\0';
yylval.str = strdup(yytext);
if(!yylval.str)
yyerror("out of memory");
return STRING;
}
YY_BREAK
/* include: directive */
case 102:
YY_RULE_SETUP
#line 243 "util/configlexer.lex"
{ LEXOUT(("v(%s) ", yytext)); BEGIN(include); }
YY_BREAK
case YY_STATE_EOF(include):
#line 244 "util/configlexer.lex"
{
yyerror("EOF inside include directive");
BEGIN(INITIAL);
}
YY_BREAK
case 103:
YY_RULE_SETUP
#line 248 "util/configlexer.lex"
{ LEXOUT(("ISP ")); /* ignore */ }
YY_BREAK
case 104:
/* rule 104 can match eol */
YY_RULE_SETUP
#line 249 "util/configlexer.lex"
{ LEXOUT(("NL\n")); cfg_parser->line++;}
YY_BREAK
case 105:
YY_RULE_SETUP
#line 250 "util/configlexer.lex"
{ LEXOUT(("IQS ")); BEGIN(include_quoted); }
YY_BREAK
case 106:
YY_RULE_SETUP
#line 251 "util/configlexer.lex"
{
LEXOUT(("Iunquotedstr(%s) ", yytext));
config_start_include(yytext);
BEGIN(INITIAL);
}
YY_BREAK
case YY_STATE_EOF(include_quoted):
#line 256 "util/configlexer.lex"
{
yyerror("EOF inside quoted string");
BEGIN(INITIAL);
}
YY_BREAK
case 107:
YY_RULE_SETUP
#line 260 "util/configlexer.lex"
{ LEXOUT(("ISTR(%s) ", yytext)); yymore(); }
YY_BREAK
case 108:
/* rule 108 can match eol */
YY_RULE_SETUP
#line 261 "util/configlexer.lex"
{ yyerror("EOL before \" in include name");
cfg_parser->line++; BEGIN(INITIAL); }
YY_BREAK
case 109:
YY_RULE_SETUP
#line 263 "util/configlexer.lex"
{
LEXOUT(("IQE "));
yytext[yyleng - 1] = '\0';
config_start_include(yytext);
BEGIN(INITIAL);
}
YY_BREAK
case YY_STATE_EOF(INITIAL):
#line 269 "util/configlexer.lex"
{
yy_set_bol(1); /* Set beginning of line, so "^" rules match. */
if (config_include_stack_ptr == 0) {
yyterminate();
} else {
fclose(yyin);
config_end_include();
}
}
YY_BREAK
case 110:
YY_RULE_SETUP
#line 279 "util/configlexer.lex"
{ LEXOUT(("unquotedstr(%s) ", yytext));
yylval.str = strdup(yytext); return STRING; }
YY_BREAK
case 111:
YY_RULE_SETUP
#line 282 "util/configlexer.lex"
ECHO;
YY_BREAK
#line 2262 "<stdout>"
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_LVALUE->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_LVALUE->yy_n_chars;
YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
YY_CURRENT_BUFFER_LVALUE->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_LVALUE->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_LVALUE->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 (void)
{
register char *dest = YY_CURRENT_BUFFER_LVALUE->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_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
YY_FATAL_ERROR(
"fatal flex scanner internal error--end of buffer missed" );
if ( YY_CURRENT_BUFFER_LVALUE->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_LVALUE->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_LVALUE->yy_n_chars = (yy_n_chars) = 0;
else
{
int num_to_read =
YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
while ( num_to_read <= 0 )
{ /* Not enough room in the buffer - grow it. */
/* 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. */
yyrealloc((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_LVALUE->yy_buf_size -
number_to_move - 1;
}
if ( num_to_read > YY_READ_BUF_SIZE )
num_to_read = YY_READ_BUF_SIZE;
/* Read in more data. */
YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
(yy_n_chars), (size_t) num_to_read );
YY_CURRENT_BUFFER_LVALUE->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_LVALUE->yy_buffer_status =
YY_BUFFER_EOF_PENDING;
}
}
else
ret_val = EOB_ACT_CONTINUE_SCAN;
if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
/* Extend the array by 50%, plus the number we really need. */
yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
}
(yy_n_chars) += number_to_move;
YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
(yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->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 (void)
{
register yy_state_type yy_current_state;
register char *yy_cp;
yy_current_state = (yy_start);
for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
{
register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
if ( yy_accept[yy_current_state] )
{
(yy_last_accepting_state) = yy_current_state;
(yy_last_accepting_cpos) = yy_cp;
}
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 1025 )
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 );
*/
static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
{
register int yy_is_jam;
register char *yy_cp = (yy_c_buf_p);
register YY_CHAR yy_c = 1;
if ( yy_accept[yy_current_state] )
{
(yy_last_accepting_state) = yy_current_state;
(yy_last_accepting_cpos) = yy_cp;
}
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 1025 )
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
yy_is_jam = (yy_current_state == 1024);
return yy_is_jam ? 0 : yy_current_state;
}
#ifndef YY_NO_INPUT
#ifdef __cplusplus
static int yyinput (void)
#else
static int input (void)
#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_LVALUE->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 );
/*FALLTHROUGH*/
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);
return c;
}
#endif /* ifndef YY_NO_INPUT */
/** Immediately switch to a different input stream.
* @param input_file A readable stream.
*
* @note This function does not reset the start condition to @c INITIAL .
*/
void yyrestart (FILE * input_file )
{
if ( ! YY_CURRENT_BUFFER ){
yyensure_buffer_stack ();
YY_CURRENT_BUFFER_LVALUE =
yy_create_buffer(yyin,YY_BUF_SIZE );
}
yy_init_buffer(YY_CURRENT_BUFFER,input_file );
yy_load_buffer_state( );
}
/** Switch to a different input buffer.
* @param new_buffer The new input buffer.
*
*/
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
{
/* TODO. We should be able to replace this entire function body
* with
* yypop_buffer_state();
* yypush_buffer_state(new_buffer);
*/
yyensure_buffer_stack ();
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_LVALUE->yy_buf_pos = (yy_c_buf_p);
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
}
YY_CURRENT_BUFFER_LVALUE = 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;
}
static void yy_load_buffer_state (void)
{
(yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
(yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
(yy_hold_char) = *(yy_c_buf_p);
}
/** Allocate and initialize an input buffer state.
* @param file A readable stream.
* @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
*
* @return the allocated buffer state.
*/
YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
{
YY_BUFFER_STATE b;
b = (YY_BUFFER_STATE) yyalloc(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 *) yyalloc(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;
}
/** Destroy the buffer.
* @param b a buffer created with yy_create_buffer()
*
*/
void yy_delete_buffer (YY_BUFFER_STATE b )
{
if ( ! b )
return;
if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
if ( b->yy_is_our_buffer )
yyfree((void *) b->yy_ch_buf );
yyfree((void *) b );
}
#ifndef __cplusplus
extern int isatty (int );
#endif /* __cplusplus */
/* Initializes or reinitializes a buffer.
* This function is sometimes called more than once on the same buffer,
* such as during a yyrestart() or at EOF.
*/
static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
{
int oerrno = errno;
yy_flush_buffer(b );
b->yy_input_file = file;
b->yy_fill_buffer = 1;
/* If b is the current buffer, then yy_init_buffer was _probably_
* called from yyrestart() or through yy_get_next_buffer.
* In that case, we don't want to reset the lineno or column.
*/
if (b != YY_CURRENT_BUFFER){
b->yy_bs_lineno = 1;
b->yy_bs_column = 0;
}
b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
errno = oerrno;
}
/** Discard all buffered characters. On the next scan, YY_INPUT will be called.
* @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
*
*/
void yy_flush_buffer (YY_BUFFER_STATE b )
{
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( );
}
/** Pushes the new state onto the stack. The new state becomes
* the current state. This function will allocate the stack
* if necessary.
* @param new_buffer The new state.
*
*/
void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
{
if (new_buffer == NULL)
return;
yyensure_buffer_stack();
/* This block is copied from yy_switch_to_buffer. */
if ( YY_CURRENT_BUFFER )
{
/* Flush out information for old buffer. */
*(yy_c_buf_p) = (yy_hold_char);
YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
}
/* Only push if top exists. Otherwise, replace top. */
if (YY_CURRENT_BUFFER)
(yy_buffer_stack_top)++;
YY_CURRENT_BUFFER_LVALUE = new_buffer;
/* copied from yy_switch_to_buffer. */
yy_load_buffer_state( );
(yy_did_buffer_switch_on_eof) = 1;
}
/** Removes and deletes the top of the stack, if present.
* The next element becomes the new top.
*
*/
void yypop_buffer_state (void)
{
if (!YY_CURRENT_BUFFER)
return;
yy_delete_buffer(YY_CURRENT_BUFFER );
YY_CURRENT_BUFFER_LVALUE = NULL;
if ((yy_buffer_stack_top) > 0)
--(yy_buffer_stack_top);
if (YY_CURRENT_BUFFER) {
yy_load_buffer_state( );
(yy_did_buffer_switch_on_eof) = 1;
}
}
/* Allocates the stack if it does not exist.
* Guarantees space for at least one push.
*/
static void yyensure_buffer_stack (void)
{
int num_to_alloc;
if (!(yy_buffer_stack)) {
/* First allocation is just for 2 elements, since we don't know if this
* scanner will even need a stack. We use 2 instead of 1 to avoid an
* immediate realloc on the next call.
*/
num_to_alloc = 1;
(yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
(num_to_alloc * sizeof(struct yy_buffer_state*)
);
if ( ! (yy_buffer_stack) )
YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
(yy_buffer_stack_max) = num_to_alloc;
(yy_buffer_stack_top) = 0;
return;
}
if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
/* Increase the buffer to prepare for a possible push. */
int grow_size = 8 /* arbitrary grow size */;
num_to_alloc = (yy_buffer_stack_max) + grow_size;
(yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
((yy_buffer_stack),
num_to_alloc * sizeof(struct yy_buffer_state*)
);
if ( ! (yy_buffer_stack) )
YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
/* zero only the new slots.*/
memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
(yy_buffer_stack_max) = num_to_alloc;
}
}
/** Setup the input buffer state to scan directly from a user-specified character buffer.
* @param base the character buffer
* @param size the size in bytes of the character buffer
*
* @return the newly allocated buffer state object.
*/
YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
{
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) yyalloc(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;
}
/** Setup the input buffer state to scan a string. The next call to yylex() will
* scan from a @e copy of @a str.
* @param yystr a NUL-terminated string to scan
*
* @return the newly allocated buffer state object.
* @note If you want to scan bytes that may contain NUL values, then use
* yy_scan_bytes() instead.
*/
YY_BUFFER_STATE yy_scan_string (yyconst char * yystr )
{
return yy_scan_bytes(yystr,strlen(yystr) );
}
/** Setup the input buffer state to scan the given bytes. The next call to yylex() will
* scan from a @e copy of @a bytes.
* @param bytes the byte buffer to scan
* @param len the number of bytes in the buffer pointed to by @a bytes.
*
* @return the newly allocated buffer state object.
*/
YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len )
{
YY_BUFFER_STATE b;
char *buf;
yy_size_t n;
int i;
/* Get memory for full buffer, including space for trailing EOB's. */
n = _yybytes_len + 2;
buf = (char *) yyalloc(n );
if ( ! buf )
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
for ( i = 0; i < _yybytes_len; ++i )
buf[i] = yybytes[i];
buf[_yybytes_len] = buf[_yybytes_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;
}
#ifndef YY_EXIT_FAILURE
#define YY_EXIT_FAILURE 2
#endif
static void yy_fatal_error (yyconst char* msg )
{
(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. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
yytext[yyleng] = (yy_hold_char); \
(yy_c_buf_p) = yytext + yyless_macro_arg; \
(yy_hold_char) = *(yy_c_buf_p); \
*(yy_c_buf_p) = '\0'; \
yyleng = yyless_macro_arg; \
} \
while ( 0 )
/* Accessor methods (get/set functions) to struct members. */
/** Get the current line number.
*
*/
int yyget_lineno (void)
{
return yylineno;
}
/** Get the input stream.
*
*/
FILE *yyget_in (void)
{
return yyin;
}
/** Get the output stream.
*
*/
FILE *yyget_out (void)
{
return yyout;
}
/** Get the length of the current token.
*
*/
int yyget_leng (void)
{
return yyleng;
}
/** Get the current token.
*
*/
char *yyget_text (void)
{
return yytext;
}
/** Set the current line number.
* @param line_number
*
*/
void yyset_lineno (int line_number )
{
yylineno = line_number;
}
/** Set the input stream. This does not discard the current
* input buffer.
* @param in_str A readable stream.
*
* @see yy_switch_to_buffer
*/
void yyset_in (FILE * in_str )
{
yyin = in_str ;
}
void yyset_out (FILE * out_str )
{
yyout = out_str ;
}
int yyget_debug (void)
{
return yy_flex_debug;
}
void yyset_debug (int bdebug )
{
yy_flex_debug = bdebug ;
}
static int yy_init_globals (void)
{
/* Initialization is the same as for the non-reentrant scanner.
* This function is called from yylex_destroy(), so don't allocate here.
*/
(yy_buffer_stack) = 0;
(yy_buffer_stack_top) = 0;
(yy_buffer_stack_max) = 0;
(yy_c_buf_p) = (char *) 0;
(yy_init) = 0;
(yy_start) = 0;
/* Defined in main.c */
#ifdef YY_STDINIT
yyin = stdin;
yyout = stdout;
#else
yyin = (FILE *) 0;
yyout = (FILE *) 0;
#endif
/* For future reference: Set errno on error, since we are called by
* yylex_init()
*/
return 0;
}
/* yylex_destroy is for both reentrant and non-reentrant scanners. */
int yylex_destroy (void)
{
/* Pop the buffer stack, destroying each element. */
while(YY_CURRENT_BUFFER){
yy_delete_buffer(YY_CURRENT_BUFFER );
YY_CURRENT_BUFFER_LVALUE = NULL;
yypop_buffer_state();
}
/* Destroy the stack itself. */
yyfree((yy_buffer_stack) );
(yy_buffer_stack) = NULL;
/* Reset the globals. This is important in a non-reentrant scanner so the next time
* yylex() is called, initialization will occur. */
yy_init_globals( );
return 0;
}
/*
* Internal utility routines.
*/
#ifndef yytext_ptr
static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
{
register int i;
for ( i = 0; i < n; ++i )
s1[i] = s2[i];
}
#endif
#ifdef YY_NEED_STRLEN
static int yy_flex_strlen (yyconst char * s )
{
register int n;
for ( n = 0; s[n]; ++n )
;
return n;
}
#endif
void *yyalloc (yy_size_t size )
{
return (void *) malloc( size );
}
void *yyrealloc (void * ptr, yy_size_t size )
{
/* 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 );
}
void yyfree (void * ptr )
{
free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
}
#define YYTABLES_NAME "yytables"
#line 282 "util/configlexer.lex"