unbound/util/configlexer.c

3187 lines
102 KiB
C
Raw Normal View History

#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 109
#define YY_END_OF_BUFFER 110
/* 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[995] =
{ 0,
1, 1, 93, 93, 97, 97, 101, 101, 105, 105,
110, 108, 1, 91, 92, 2, 96, 109, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 93, 94, 109,
95, 109, 97, 98, 99, 109, 104, 101, 102, 103,
109, 105, 106, 107, 109, 108, 0, 1, 2, 2,
2, 2, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 93, 0, 97,
0, 104, 0, 101, 105, 0, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 49, 108,
108, 108, 108, 108, 6, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 20, 108, 108, 108, 108, 12, 13, 108,
15, 14, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 3, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 100, 108, 108,
108, 108, 108, 108, 108, 108, 108, 23, 108, 108,
108, 108, 108, 108, 108, 24, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 61, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 60, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 21, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 22, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 17, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 50, 51, 48, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 5, 108, 108, 108, 108, 108,
108, 108, 108, 63, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 78, 77, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
25, 108, 108, 108, 108, 108, 108, 108, 108, 76,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
42, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 4, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 86,
108, 16, 108, 108, 53, 54, 52, 108, 108, 108,
108, 108, 59, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 67, 108, 108, 108, 108, 108,
108, 108, 108, 31, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 58, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 62, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 69, 108, 108, 108, 108, 57, 108, 84, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 32, 33, 108, 38, 72, 108, 79,
108, 27, 108, 74, 108, 108, 108, 108, 108, 7,
108, 47, 83, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
64, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, 108, 108, 73, 26, 28, 108, 108, 108, 108,
108, 46, 108, 108, 108, 87, 108, 108, 108, 108,
108, 45, 108, 108, 108, 108, 108, 108, 89, 108,
108, 108, 108, 108, 108, 108, 11, 108, 108, 108,
108, 108, 108, 10, 108, 108, 29, 108, 88, 108,
108, 108, 108, 108, 108, 108, 108, 108, 90, 85,
108, 108, 108, 108, 108, 108, 108, 108, 108, 34,
108, 108, 108, 108, 108, 30, 108, 108, 108, 65,
66, 108, 108, 68, 108, 108, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 18, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 82, 108, 108,
108, 108, 108, 108, 19, 108, 9, 108, 108, 80,
39, 108, 108, 71, 55, 108, 108, 41, 44, 40,
108, 35, 108, 8, 108, 70, 108, 108, 108, 36,
108, 81, 108, 56, 43, 37, 108, 108, 108, 108,
108, 108, 75, 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[1006] =
{ 0,
0, 0, 37, 40, 44, 51, 63, 75, 56, 68,
2038, 2024, 50, 2039, 2039, 82, 2039, 89, 33, 84,
79, 62, 72, 89, 93, 95, 96, 100, 102, 103,
49, 105, 111, 113, 127, 106, 130, 2023, 2039, 2039,
2039, 145, 2022, 2039, 2039, 118, 2021, 2031, 2039, 2039,
149, 2019, 2039, 2039, 155, 2018, 159, 163, 0, 166,
0, 0, 119, 139, 144, 149, 154, 159, 169, 165,
161, 168, 167, 170, 174, 173, 176, 184, 178, 183,
189, 188, 193, 196, 199, 197, 198, 200, 204, 205,
208, 209, 211, 212, 217, 220, 218, 2017, 236, 2016,
240, 2015, 246, 2025, 2013, 250, 239, 243, 245, 246,
247, 253, 267, 249, 250, 221, 256, 255, 262, 257,
258, 259, 270, 282, 272, 264, 289, 286, 295, 297,
293, 296, 294, 298, 301, 299, 303, 304, 305, 132,
306, 309, 312, 315, 321, 317, 322, 318, 311, 331,
337, 341, 61, 324, 332, 343, 344, 345, 348, 354,
350, 351, 352, 355, 357, 268, 359, 361, 214, 364,
366, 378, 360, 367, 371, 374, 380, 381, 385, 393,
389, 390, 391, 397, 394, 396, 398, 404, 419, 408,
402, 406, 412, 410, 413, 420, 415, 426, 439, 424,
427, 432, 438, 441, 446, 445, 447, 449, 452, 455,
451, 458, 464, 471, 462, 468, 469, 475, 2012, 477,
470, 472, 479, 481, 2011, 482, 484, 486, 492, 483,
485, 495, 497, 505, 498, 506, 507, 509, 511, 513,
512, 514, 516, 515, 525, 526, 528, 529, 518, 537,
536, 543, 545, 551, 548, 553, 550, 554, 561, 559,
557, 560, 564, 565, 570, 566, 576, 572, 577, 583,
589, 568, 587, 591, 592, 586, 585, 593, 595, 601,
602, 605, 614, 606, 612, 607, 610, 620, 617, 619,
522, 621, 624, 627, 628, 630, 631, 629, 632, 638,
639, 643, 2010, 650, 646, 648, 651, 2009, 2008, 653,
2007, 2006, 654, 660, 671, 657, 649, 659, 669, 665,
673, 661, 679, 682, 677, 686, 687, 681, 692, 695,
693, 700, 701, 702, 705, 704, 707, 717, 713, 714,
718, 721, 2005, 722, 723, 715, 725, 729, 726, 738,
730, 736, 737, 741, 743, 747, 745, 746, 751, 753,
754, 755, 780, 756, 757, 760, 761, 770, 767, 764,
776, 786, 790, 758, 784, 773, 800, 2004, 802, 801,
794, 803, 805, 806, 807, 808, 809, 2003, 811, 814,
817, 820, 818, 829, 836, 2002, 833, 824, 821, 832,
838, 840, 844, 842, 846, 848, 849, 852, 403, 856,
850, 858, 859, 861, 867, 862, 864, 868, 2001, 869,
876, 872, 870, 874, 881, 879, 890, 882, 887, 892,
885, 891, 898, 899, 901, 902, 903, 905, 907, 906,
908, 2000, 910, 919, 909, 925, 933, 918, 939, 915,
935, 936, 937, 943, 946, 942, 944, 945, 949, 951,
956, 952, 957, 958, 960, 962, 968, 973, 975, 964,
969, 978, 980, 982, 1999, 992, 993, 995, 991, 979,
997, 994, 999, 1002, 1003, 1001, 1005, 1006, 1998, 1012,
1008, 1009, 1013, 1018, 1010, 1017, 1016, 1023, 1025, 1036,
1026, 1037, 1038, 1039, 1040, 1047, 1048, 1049, 1997, 1051,
1052, 1059, 1062, 1057, 1069, 1055, 1065, 1066, 1067, 1068,
1070, 1072, 1075, 1073, 1079, 1078, 1081, 1083, 1089, 1095,
1099, 1996, 1995, 1994, 1093, 1097, 1100, 1101, 1103, 1104,
1105, 1107, 1110, 1108, 1993, 1111, 1113, 1115, 1117, 1121,
1128, 1120, 1130, 1992, 1132, 1122, 1138, 1131, 1134, 1141,
1143, 1145, 1150, 1142, 1151, 1152, 1153, 1156, 1162, 1158,
1159, 1161, 1165, 1164, 1168, 1991, 1990, 1166, 1170, 1174,
1181, 1192, 1194, 1177, 1185, 1188, 1191, 1195, 1199, 1196,
1989, 1207, 1208, 1204, 1209, 1211, 1215, 1201, 1216, 1988,
1217, 1221, 1222, 1223, 1226, 1224, 1229, 1236, 1230, 1232,
1238, 1246, 1240, 1248, 1256, 1243, 1253, 1255, 1258, 1259,
1987, 1265, 1261, 1269, 1266, 1268, 1275, 1271, 1272, 1273,
1274, 1276, 1277, 1280, 1278, 1282, 1286, 1284, 1287, 1296,
1299, 1986, 1300, 1306, 1304, 1302, 1307, 1308, 1311, 1313,
1314, 1316, 1318, 1319, 1328, 1335, 1336, 1342, 1329, 1340,
1321, 1343, 1327, 1345, 1348, 1350, 1353, 1354, 1352, 1985,
1351, 1984, 1364, 1359, 1983, 1982, 1981, 1367, 1355, 1369,
1371, 1375, 1980, 1366, 1377, 1379, 1380, 1381, 1382, 1383,
1384, 1385, 1387, 1388, 1396, 1391, 1397, 1399, 1403, 1405,
1407, 1409, 1416, 1413, 1412, 1414, 1415, 1421, 1423, 1422,
1424, 1419, 1420, 1435, 1979, 1438, 1440, 1443, 1445, 1446,
1447, 1448, 1456, 1978, 1450, 1458, 1460, 1452, 1462, 1466,
1463, 1468, 1469, 1471, 1472, 1473, 1977, 1474, 1476, 1480,
1481, 1486, 1491, 1483, 1498, 1500, 1495, 1502, 1976, 1503,
1505, 1506, 1510, 1511, 1507, 1512, 1516, 1519, 1520, 1522,
1524, 1526, 1527, 1530, 1531, 1533, 1535, 1534, 1537, 1538,
1475, 1975, 1541, 1544, 1550, 1548, 1974, 1545, 1973, 1555,
1559, 1563, 1556, 1565, 1566, 1567, 1569, 1575, 1571, 1572,
1573, 1576, 1579, 1972, 1971, 1582, 1970, 1969, 1590, 1968,
1592, 1967, 1594, 1966, 1585, 1595, 1597, 1598, 1599, 1965,
1601, 1964, 1963, 1602, 1603, 1606, 1609, 1610, 1612, 1614,
1615, 1616, 1618, 1623, 1619, 1621, 1624, 1629, 1631, 1639,
1962, 1625, 1646, 1633, 1635, 1640, 1644, 1648, 1650, 1656,
1654, 1652, 1655, 1961, 1960, 1959, 1657, 1659, 1664, 1661,
1665, 1955, 1673, 1666, 1679, 1951, 1680, 1668, 1682, 1684,
1687, 1950, 1686, 1688, 1694, 1695, 1697, 1703, 1949, 1700,
1704, 1706, 1698, 1708, 1711, 1713, 1945, 1714, 1715, 1719,
1720, 1723, 1721, 1944, 1727, 1724, 1940, 1739, 1939, 1725,
1740, 1732, 1743, 1747, 1730, 1753, 1750, 1670, 1938, 1932,
1751, 1752, 1754, 1755, 1756, 1757, 1758, 1759, 1762, 1904,
1763, 1765, 1775, 1772, 1769, 1903, 1779, 1780, 1764, 1902,
1901, 1785, 1781, 1900, 1791, 1787, 1793, 1795, 1797, 1798,
1799, 1800, 1801, 1802, 1804, 1809, 1899, 1811, 1812, 1815,
1819, 1823, 1816, 1820, 1825, 1830, 1826, 1897, 1831, 1834,
1839, 1842, 1843, 1847, 1896, 1849, 1895, 1852, 1853, 1894,
1893, 1855, 1856, 1892, 1891, 1844, 1859, 1890, 1889, 1860,
1866, 1835, 1867, 1767, 1869, 1728, 1857, 1873, 1877, 1426,
1879, 1163, 1880, 1015, 912, 777, 1862, 1874, 1870, 1884,
1886, 1888, 703, 2039, 1918, 1924, 1930, 1936, 675, 1942,
1948, 1954, 62, 1959, 1965
} ;
static yyconst flex_int16_t yy_def[1006] =
{ 0,
994, 1, 995, 995, 996, 996, 997, 997, 998, 998,
994, 999, 994, 994, 994, 1000, 994, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 1001, 994, 994,
994, 1001, 1002, 994, 994, 1002, 1003, 994, 994, 994,
1003, 1004, 994, 994, 1004, 999, 999, 994, 1005, 1000,
1005, 1000, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 1001, 1001, 1002,
1002, 1003, 1003, 994, 1004, 1004, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 999, 999, 999, 999, 999, 999, 999,
999, 999, 999, 0, 994, 994, 994, 994, 994, 994,
994, 994, 994, 994, 994
} ;
static yyconst flex_int16_t yy_nxt[2079] =
{ 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, 102, 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, 199,
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, 57, 75,
82, 100, 76, 57, 100, 57, 85, 78, 88, 79,
91, 57, 86, 80, 107, 87, 83, 95, 89, 57,
93, 90, 57, 96, 57, 92, 184, 97, 98, 98,
102, 57, 102, 102, 108, 102, 57, 94, 105, 105,
56, 57, 56, 56, 58, 56, 57, 61, 59, 61,
61, 57, 61, 57, 109, 110, 113, 57, 62, 57,
57, 57, 57, 117, 111, 57, 57, 118, 57, 119,
57, 115, 120, 112, 126, 57, 57, 114, 116, 124,
57, 57, 127, 125, 122, 57, 121, 129, 57, 57,
57, 57, 57, 123, 128, 132, 57, 57, 130, 134,
57, 57, 139, 57, 57, 135, 57, 133, 131, 57,
57, 136, 57, 57, 143, 215, 137, 159, 138, 98,
98, 141, 140, 100, 144, 142, 100, 102, 145, 102,
102, 57, 102, 105, 105, 57, 146, 57, 57, 57,
151, 57, 57, 147, 150, 57, 157, 57, 57, 57,
57, 57, 148, 160, 57, 165, 57, 167, 149, 57,
57, 161, 57, 152, 57, 158, 162, 164, 153, 163,
169, 166, 212, 154, 57, 168, 171, 170, 57, 155,
156, 57, 173, 172, 174, 57, 57, 57, 57, 57,
57, 57, 175, 57, 176, 57, 57, 57, 57, 187,
181, 57, 189, 57, 57, 185, 177, 57, 179, 57,
57, 180, 178, 57, 57, 190, 57, 183, 182, 193,
186, 195, 188, 57, 57, 194, 196, 201, 192, 57,
197, 200, 191, 57, 198, 57, 57, 57, 204, 202,
57, 206, 57, 57, 57, 205, 57, 57, 210, 57,
203, 57, 57, 57, 213, 220, 57, 209, 57, 57,
217, 218, 207, 57, 208, 214, 57, 211, 216, 219,
57, 225, 57, 57, 226, 224, 221, 57, 223, 222,
228, 57, 57, 57, 232, 57, 57, 230, 57, 57,
57, 233, 231, 235, 57, 57, 57, 227, 57, 246,
57, 229, 57, 244, 57, 57, 472, 57, 234, 236,
237, 57, 57, 238, 239, 243, 57, 245, 57, 57,
248, 250, 247, 251, 57, 240, 241, 242, 252, 253,
57, 57, 249, 57, 257, 255, 254, 57, 57, 57,
256, 57, 265, 57, 57, 263, 260, 57, 262, 266,
57, 258, 259, 264, 57, 267, 57, 268, 269, 261,
57, 57, 57, 57, 57, 271, 270, 57, 273, 57,
274, 57, 276, 57, 57, 57, 57, 57, 57, 282,
277, 280, 272, 275, 57, 278, 281, 57, 285, 57,
57, 291, 289, 283, 279, 286, 284, 57, 57, 57,
293, 57, 290, 57, 57, 57, 57, 57, 57, 288,
57, 298, 301, 287, 57, 295, 294, 57, 57, 303,
57, 57, 300, 292, 296, 305, 297, 299, 57, 57,
351, 302, 306, 304, 308, 57, 309, 57, 310, 311,
57, 307, 57, 57, 312, 57, 57, 313, 315, 57,
314, 57, 57, 57, 317, 316, 57, 57, 57, 324,
57, 319, 57, 325, 57, 321, 331, 326, 57, 57,
322, 320, 318, 327, 323, 57, 330, 57, 57, 57,
329, 57, 332, 57, 57, 57, 333, 57, 339, 334,
337, 336, 338, 57, 57, 328, 335, 57, 57, 57,
341, 342, 57, 340, 57, 343, 57, 348, 345, 57,
349, 57, 57, 57, 346, 350, 57, 347, 344, 57,
57, 57, 57, 57, 57, 355, 354, 356, 357, 353,
57, 57, 352, 359, 361, 57, 362, 363, 57, 358,
57, 57, 57, 57, 360, 57, 57, 369, 365, 57,
368, 57, 57, 57, 375, 56, 364, 57, 366, 376,
378, 57, 367, 57, 379, 57, 380, 370, 381, 57,
371, 57, 382, 57, 57, 372, 377, 383, 57, 57,
386, 373, 374, 388, 57, 57, 385, 57, 387, 384,
389, 390, 57, 57, 57, 57, 57, 57, 396, 57,
391, 392, 394, 395, 397, 57, 57, 57, 398, 57,
57, 400, 393, 57, 57, 57, 401, 57, 57, 404,
399, 57, 57, 403, 402, 409, 405, 407, 57, 57,
57, 406, 408, 57, 412, 57, 414, 57, 57, 57,
411, 410, 415, 57, 419, 57, 57, 57, 57, 57,
57, 417, 57, 57, 413, 416, 57, 431, 439, 57,
432, 420, 57, 418, 428, 57, 429, 433, 57, 57,
435, 421, 57, 427, 430, 422, 57, 423, 57, 437,
436, 424, 57, 425, 441, 434, 57, 438, 426, 443,
440, 442, 57, 57, 57, 57, 444, 57, 57, 57,
57, 57, 447, 57, 449, 445, 57, 448, 446, 57,
57, 453, 57, 57, 454, 451, 57, 455, 452, 456,
450, 57, 457, 458, 57, 57, 459, 463, 57, 460,
57, 461, 57, 462, 57, 464, 57, 465, 57, 466,
57, 57, 57, 473, 57, 469, 470, 471, 57, 475,
57, 57, 467, 57, 57, 478, 57, 474, 468, 57,
57, 57, 57, 483, 57, 480, 57, 477, 57, 484,
476, 57, 479, 57, 57, 482, 485, 57, 487, 57,
486, 489, 57, 57, 57, 481, 488, 494, 491, 492,
57, 57, 490, 57, 57, 57, 493, 57, 57, 57,
57, 57, 57, 500, 57, 495, 496, 57, 512, 503,
57, 57, 497, 499, 501, 498, 504, 57, 502, 505,
508, 506, 507, 510, 509, 57, 511, 57, 57, 57,
516, 57, 513, 517, 57, 57, 57, 57, 57, 518,
519, 57, 514, 57, 57, 524, 520, 515, 57, 57,
57, 521, 57, 522, 57, 523, 57, 528, 525, 532,
57, 57, 526, 527, 533, 57, 534, 57, 529, 536,
57, 57, 57, 531, 57, 537, 535, 530, 538, 540,
541, 539, 542, 57, 57, 57, 57, 57, 545, 57,
544, 57, 543, 57, 57, 57, 549, 57, 57, 553,
57, 57, 57, 554, 57, 57, 546, 57, 57, 57,
57, 547, 548, 550, 558, 57, 552, 57, 57, 556,
562, 559, 551, 560, 563, 557, 555, 561, 57, 57,
57, 57, 57, 564, 570, 571, 565, 569, 566, 57,
57, 57, 572, 57, 57, 567, 575, 57, 573, 57,
576, 57, 568, 577, 57, 578, 579, 57, 57, 57,
57, 57, 57, 574, 57, 57, 580, 57, 587, 588,
57, 57, 591, 57, 584, 57, 581, 582, 583, 586,
592, 57, 594, 585, 589, 57, 595, 57, 596, 57,
590, 57, 57, 57, 600, 57, 57, 57, 602, 57,
57, 593, 57, 57, 597, 57, 604, 57, 599, 57,
603, 609, 57, 57, 57, 611, 601, 598, 610, 605,
57, 606, 57, 57, 57, 607, 57, 608, 613, 614,
57, 616, 612, 57, 57, 57, 621, 57, 619, 615,
620, 617, 57, 57, 57, 57, 618, 622, 57, 628,
57, 57, 623, 57, 57, 57, 57, 57, 57, 626,
57, 627, 57, 624, 625, 633, 57, 636, 634, 57,
629, 630, 632, 57, 631, 638, 635, 57, 639, 641,
57, 637, 640, 57, 57, 642, 57, 57, 57, 643,
644, 57, 648, 57, 650, 651, 57, 646, 645, 57,
57, 57, 652, 57, 653, 647, 649, 57, 57, 57,
654, 655, 657, 57, 57, 57, 57, 660, 57, 661,
662, 57, 57, 666, 57, 656, 658, 663, 57, 659,
57, 664, 57, 665, 667, 57, 669, 670, 57, 672,
57, 671, 668, 673, 675, 57, 676, 57, 57, 677,
57, 57, 679, 57, 678, 674, 681, 57, 57, 683,
57, 57, 684, 57, 57, 57, 57, 57, 57, 57,
57, 680, 57, 693, 57, 685, 57, 686, 57, 57,
698, 695, 687, 682, 688, 689, 690, 696, 57, 691,
694, 57, 57, 702, 57, 692, 57, 701, 57, 57,
57, 704, 697, 57, 705, 57, 57, 700, 57, 706,
57, 57, 709, 57, 699, 713, 703, 710, 707, 57,
57, 57, 714, 716, 708, 712, 715, 57, 57, 717,
721, 711, 57, 718, 57, 57, 719, 57, 720, 724,
57, 722, 57, 57, 57, 57, 57, 57, 725, 723,
726, 57, 727, 728, 733, 729, 57, 730, 57, 57,
732, 57, 735, 57, 734, 736, 737, 57, 731, 57,
739, 57, 57, 57, 57, 57, 57, 57, 738, 57,
57, 747, 746, 57, 741, 742, 743, 749, 57, 57,
744, 57, 740, 752, 751, 57, 745, 57, 748, 57,
753, 57, 754, 757, 57, 57, 57, 57, 57, 750,
758, 57, 57, 57, 57, 57, 57, 755, 57, 761,
760, 756, 762, 759, 764, 763, 765, 57, 768, 766,
57, 767, 57, 769, 772, 57, 770, 57, 57, 57,
57, 771, 57, 775, 57, 776, 773, 777, 57, 779,
57, 778, 57, 780, 57, 57, 781, 774, 57, 782,
57, 57, 783, 57, 57, 57, 57, 57, 57, 790,
784, 823, 57, 57, 793, 57, 788, 794, 57, 785,
786, 791, 795, 57, 787, 792, 789, 57, 796, 797,
57, 798, 57, 800, 57, 57, 802, 57, 57, 57,
801, 804, 57, 57, 57, 806, 799, 807, 57, 808,
810, 57, 57, 812, 57, 813, 57, 803, 57, 57,
815, 805, 57, 57, 809, 57, 57, 57, 817, 57,
57, 811, 819, 57, 816, 827, 57, 57, 821, 822,
57, 820, 57, 826, 814, 825, 818, 57, 57, 828,
829, 57, 832, 824, 831, 57, 830, 57, 57, 57,
833, 57, 837, 57, 57, 57, 836, 57, 57, 838,
840, 57, 847, 842, 57, 843, 841, 57, 834, 835,
839, 844, 57, 845, 57, 846, 57, 57, 848, 57,
57, 57, 852, 57, 57, 57, 851, 854, 57, 853,
856, 57, 57, 855, 57, 849, 57, 57, 57, 862,
57, 57, 850, 57, 857, 57, 57, 57, 859, 860,
861, 57, 858, 57, 863, 57, 867, 57, 868, 866,
869, 57, 57, 865, 872, 870, 57, 864, 57, 871,
57, 877, 57, 878, 57, 873, 57, 57, 57, 57,
874, 57, 875, 57, 883, 884, 57, 57, 57, 876,
57, 879, 57, 880, 887, 57, 925, 881, 885, 882,
889, 57, 57, 890, 57, 886, 57, 888, 57, 57,
57, 893, 891, 892, 894, 896, 57, 57, 899, 57,
57, 897, 57, 895, 900, 57, 57, 901, 57, 904,
57, 903, 898, 57, 906, 57, 57, 57, 902, 905,
910, 57, 57, 57, 907, 57, 57, 57, 913, 57,
57, 911, 57, 912, 57, 908, 909, 919, 914, 915,
916, 57, 57, 918, 920, 57, 922, 917, 921, 57,
923, 924, 57, 57, 57, 57, 57, 57, 57, 57,
57, 57, 927, 930, 57, 57, 57, 57, 935, 57,
933, 57, 926, 929, 57, 928, 937, 57, 938, 931,
939, 57, 57, 57, 934, 936, 932, 57, 943, 57,
940, 942, 944, 57, 941, 57, 948, 57, 945, 57,
57, 57, 57, 57, 57, 955, 57, 952, 946, 951,
947, 57, 957, 57, 57, 949, 956, 57, 57, 950,
960, 57, 57, 954, 961, 57, 964, 57, 57, 953,
962, 965, 57, 57, 958, 968, 57, 57, 967, 959,
969, 57, 963, 970, 57, 57, 57, 966, 972, 57,
971, 57, 973, 974, 57, 57, 976, 57, 57, 57,
975, 57, 57, 977, 57, 979, 978, 980, 57, 57,
982, 57, 57, 981, 984, 57, 57, 983, 985, 57,
986, 57, 57, 987, 988, 989, 57, 990, 57, 993,
57, 57, 57, 57, 57, 57, 57, 57, 57, 57,
991, 57, 57, 57, 57, 57, 57, 992, 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, 98, 98,
57, 57, 57, 98, 100, 100, 57, 57, 100, 105,
105, 57, 57, 57, 105, 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, 57, 57, 106, 104, 103, 101, 99,
57, 106, 104, 103, 101, 99, 57, 994, 11, 994,
994, 994, 994, 994, 994, 994, 994, 994, 994, 994,
994, 994, 994, 994, 994, 994, 994, 994, 994, 994,
994, 994, 994, 994, 994, 994, 994, 994, 994, 994,
994, 994, 994, 994, 994, 994, 994, 994
} ;
static yyconst flex_int16_t yy_chk[2079] =
{ 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, 1003, 6, 7, 7, 7, 7, 9, 7,
10, 10, 10, 153, 22, 7, 8, 8, 8, 8,
10, 8, 31, 16, 23, 16, 16, 8, 16, 153,
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, 36, 25,
30, 46, 26, 33, 46, 34, 32, 28, 33, 29,
34, 63, 32, 29, 63, 32, 30, 36, 33, 35,
35, 33, 37, 37, 140, 34, 140, 37, 42, 42,
51, 64, 51, 51, 64, 51, 65, 35, 55, 55,
57, 66, 57, 57, 58, 57, 67, 60, 58, 60,
60, 68, 60, 71, 65, 66, 69, 70, 60, 73,
72, 69, 74, 73, 67, 76, 75, 74, 77, 75,
79, 71, 75, 68, 79, 80, 78, 70, 72, 78,
82, 81, 80, 78, 76, 83, 75, 82, 84, 86,
87, 85, 88, 77, 81, 85, 89, 90, 83, 87,
91, 92, 92, 93, 94, 88, 169, 86, 84, 95,
97, 89, 96, 116, 95, 169, 90, 116, 91, 99,
99, 93, 92, 101, 96, 94, 101, 103, 97, 103,
103, 107, 103, 106, 106, 108, 107, 109, 110, 111,
112, 114, 115, 108, 111, 112, 114, 118, 117, 120,
121, 122, 109, 117, 119, 121, 126, 123, 110, 113,
166, 118, 123, 113, 125, 115, 119, 120, 113, 119,
125, 122, 166, 113, 124, 124, 127, 126, 128, 113,
113, 127, 129, 128, 130, 131, 133, 129, 132, 130,
134, 136, 131, 135, 132, 137, 138, 139, 141, 143,
137, 142, 144, 149, 143, 141, 133, 144, 135, 146,
148, 136, 134, 145, 147, 145, 154, 139, 138, 147,
142, 149, 143, 150, 155, 148, 150, 155, 146, 151,
151, 154, 145, 152, 152, 156, 157, 158, 158, 156,
159, 160, 161, 162, 163, 159, 160, 164, 164, 165,
157, 167, 173, 168, 167, 173, 170, 163, 171, 174,
171, 171, 161, 175, 162, 168, 176, 165, 170, 172,
172, 177, 177, 178, 178, 176, 174, 179, 175, 174,
180, 181, 182, 183, 184, 180, 185, 182, 186, 184,
187, 185, 183, 187, 191, 409, 188, 179, 192, 193,
190, 181, 194, 191, 193, 195, 409, 197, 186, 187,
188, 189, 196, 189, 189, 190, 200, 192, 198, 201,
195, 197, 194, 198, 202, 189, 189, 189, 199, 199,
203, 199, 196, 204, 203, 201, 200, 206, 205, 207,
202, 208, 210, 211, 209, 208, 206, 210, 207, 211,
212, 204, 205, 209, 215, 212, 213, 213, 214, 206,
216, 217, 221, 214, 222, 216, 215, 218, 218, 220,
220, 223, 222, 224, 226, 230, 227, 231, 228, 229,
223, 227, 217, 221, 229, 224, 228, 232, 232, 233,
235, 235, 234, 230, 226, 232, 231, 234, 236, 237,
237, 238, 234, 239, 241, 240, 242, 244, 243, 233,
249, 242, 245, 232, 291, 239, 238, 245, 246, 247,
247, 248, 244, 236, 240, 249, 241, 243, 251, 250,
291, 246, 250, 248, 252, 252, 253, 253, 254, 255,
255, 251, 257, 254, 256, 256, 258, 257, 259, 261,
258, 260, 262, 259, 261, 260, 263, 264, 266, 266,
272, 263, 265, 267, 268, 265, 272, 268, 267, 269,
265, 264, 262, 269, 265, 270, 271, 277, 276, 273,
270, 271, 273, 274, 275, 278, 274, 279, 280, 275,
278, 277, 279, 280, 281, 269, 276, 282, 284, 286,
282, 283, 287, 281, 285, 283, 283, 288, 285, 289,
289, 290, 288, 292, 286, 290, 293, 287, 284, 294,
295, 298, 296, 297, 299, 295, 294, 296, 297, 293,
300, 301, 292, 299, 301, 302, 302, 304, 305, 298,
306, 317, 304, 307, 300, 310, 313, 314, 306, 316,
313, 318, 314, 322, 316, 999, 305, 320, 307, 317,
319, 319, 310, 315, 320, 321, 321, 315, 322, 325,
315, 323, 323, 328, 324, 315, 318, 324, 326, 327,
327, 315, 315, 329, 329, 331, 326, 330, 328, 325,
330, 331, 332, 333, 334, 993, 336, 335, 337, 337,
332, 333, 335, 336, 338, 339, 340, 346, 339, 338,
341, 341, 334, 342, 344, 345, 342, 347, 349, 345,
340, 348, 351, 344, 342, 350, 346, 348, 352, 353,
350, 347, 349, 354, 353, 355, 355, 357, 358, 356,
352, 351, 356, 359, 360, 360, 361, 362, 364, 365,
374, 358, 366, 367, 354, 357, 370, 368, 374, 369,
369, 361, 368, 359, 365, 376, 366, 369, 371, 986,
370, 362, 363, 364, 367, 363, 375, 363, 372, 372,
371, 363, 373, 363, 376, 369, 381, 373, 363, 379,
375, 377, 377, 380, 379, 382, 380, 383, 384, 385,
386, 387, 383, 389, 385, 381, 390, 384, 382, 391,
393, 390, 392, 399, 391, 387, 398, 392, 389, 393,
386, 394, 394, 395, 400, 397, 397, 400, 395, 397,
401, 398, 402, 399, 404, 401, 403, 402, 405, 403,
406, 407, 411, 410, 408, 406, 407, 408, 410, 412,
412, 413, 404, 414, 416, 415, 417, 411, 405, 415,
418, 420, 423, 421, 422, 417, 424, 414, 421, 422,
413, 426, 416, 425, 428, 420, 423, 431, 425, 429,
424, 427, 427, 432, 430, 418, 426, 432, 429, 430,
433, 434, 428, 435, 436, 437, 431, 438, 440, 439,
441, 445, 443, 438, 985, 433, 434, 450, 450, 441,
448, 444, 435, 437, 439, 436, 443, 446, 440, 444,
447, 445, 446, 448, 447, 447, 449, 451, 452, 453,
454, 449, 451, 455, 456, 454, 457, 458, 455, 456,
457, 459, 452, 460, 462, 459, 458, 453, 461, 463,
464, 458, 465, 458, 466, 458, 470, 463, 460, 467,
467, 471, 461, 462, 468, 468, 469, 469, 464, 471,
472, 480, 473, 466, 474, 472, 470, 465, 473, 476,
477, 474, 478, 479, 476, 477, 482, 478, 481, 481,
480, 483, 479, 486, 484, 485, 485, 487, 488, 490,
491, 492, 495, 490, 490, 493, 482, 984, 497, 496,
494, 483, 484, 486, 494, 498, 488, 499, 501, 492,
498, 495, 487, 496, 499, 493, 491, 497, 500, 502,
503, 504, 505, 500, 506, 507, 501, 505, 502, 506,
507, 508, 508, 510, 511, 503, 512, 516, 510, 514,
512, 512, 504, 513, 513, 514, 515, 517, 518, 519,
520, 515, 521, 511, 522, 524, 516, 523, 523, 524,
526, 525, 527, 527, 520, 528, 517, 518, 519, 522,
528, 529, 530, 521, 525, 535, 531, 530, 535, 536,
526, 531, 537, 538, 539, 539, 540, 541, 541, 542,
544, 529, 543, 546, 536, 547, 543, 548, 538, 549,
542, 549, 552, 550, 556, 551, 540, 537, 550, 544,
551, 546, 553, 558, 555, 547, 559, 548, 553, 555,
557, 557, 552, 560, 564, 561, 562, 562, 560, 556,
561, 558, 563, 565, 566, 567, 559, 563, 568, 569,
570, 571, 564, 572, 569, 982, 574, 573, 578, 567,
575, 568, 579, 565, 566, 574, 580, 578, 574, 584,
570, 571, 573, 581, 572, 580, 575, 585, 580, 582,
586, 579, 581, 587, 582, 583, 583, 588, 590, 584,
585, 589, 589, 598, 592, 593, 594, 587, 586, 592,
593, 595, 594, 596, 595, 588, 590, 597, 599, 601,
595, 596, 598, 602, 603, 604, 606, 602, 605, 603,
604, 607, 609, 608, 610, 597, 599, 605, 608, 601,
611, 606, 613, 607, 609, 616, 611, 612, 612, 614,
614, 613, 610, 615, 617, 617, 618, 618, 615, 619,
619, 620, 622, 623, 620, 616, 624, 622, 625, 626,
626, 624, 627, 628, 629, 630, 631, 627, 632, 633,
635, 623, 634, 634, 636, 628, 638, 628, 637, 639,
639, 636, 628, 625, 629, 630, 631, 637, 640, 632,
635, 641, 643, 644, 646, 633, 645, 643, 644, 647,
648, 646, 638, 649, 647, 650, 651, 641, 652, 648,
653, 654, 651, 661, 640, 655, 645, 652, 649, 663,
655, 659, 656, 657, 650, 654, 656, 656, 657, 658,
662, 653, 660, 659, 658, 662, 660, 664, 661, 665,
665, 663, 666, 671, 669, 667, 668, 679, 666, 664,
667, 674, 668, 669, 678, 671, 673, 673, 684, 678,
674, 680, 680, 681, 679, 681, 682, 682, 673, 685,
685, 686, 687, 688, 689, 690, 691, 692, 684, 693,
694, 693, 692, 696, 687, 688, 689, 695, 695, 697,
690, 698, 686, 698, 697, 699, 691, 700, 694, 701,
699, 702, 700, 703, 705, 704, 706, 707, 703, 696,
704, 712, 713, 708, 710, 709, 711, 701, 980, 707,
706, 702, 708, 705, 709, 708, 710, 714, 713, 711,
716, 712, 717, 714, 718, 718, 716, 719, 720, 721,
722, 717, 725, 721, 728, 722, 719, 723, 723, 726,
726, 725, 727, 727, 729, 731, 728, 720, 730, 729,
732, 733, 730, 734, 735, 736, 738, 771, 739, 738,
731, 771, 740, 741, 741, 744, 735, 742, 742, 732,
733, 739, 743, 743, 734, 740, 736, 747, 744, 745,
745, 746, 746, 748, 748, 750, 751, 751, 752, 755,
750, 753, 753, 754, 756, 755, 747, 756, 757, 757,
758, 758, 759, 760, 760, 761, 761, 752, 762, 763,
763, 754, 764, 765, 757, 766, 768, 767, 765, 769,
770, 759, 767, 773, 764, 776, 774, 778, 769, 770,
776, 768, 775, 775, 762, 774, 766, 780, 783, 778,
780, 781, 783, 773, 782, 782, 781, 784, 785, 786,
784, 787, 788, 789, 790, 791, 787, 788, 792, 789,
791, 793, 805, 793, 796, 796, 792, 805, 785, 786,
790, 799, 799, 801, 801, 803, 803, 806, 806, 807,
808, 809, 811, 811, 814, 815, 809, 815, 816, 814,
817, 817, 818, 816, 819, 807, 820, 821, 822, 823,
823, 825, 808, 826, 818, 824, 827, 832, 820, 821,
822, 828, 819, 829, 824, 834, 828, 835, 829, 827,
830, 830, 836, 826, 834, 832, 837, 825, 833, 833,
838, 839, 839, 840, 842, 835, 841, 843, 840, 847,
836, 848, 837, 850, 848, 849, 849, 851, 854, 838,
858, 841, 898, 842, 853, 853, 898, 843, 850, 847,
855, 855, 857, 857, 859, 851, 860, 854, 863, 861,
864, 860, 858, 859, 861, 864, 865, 866, 867, 867,
873, 865, 870, 863, 868, 868, 871, 870, 872, 873,
874, 872, 866, 875, 875, 876, 878, 879, 871, 874,
880, 880, 881, 883, 876, 882, 886, 890, 883, 885,
976, 881, 895, 882, 892, 878, 879, 892, 885, 886,
888, 888, 891, 891, 893, 893, 895, 890, 894, 894,
896, 897, 897, 901, 902, 896, 903, 904, 905, 906,
907, 908, 902, 905, 909, 911, 919, 912, 911, 974,
908, 915, 901, 904, 914, 903, 913, 913, 914, 906,
915, 917, 918, 923, 909, 912, 907, 922, 922, 926,
917, 919, 923, 925, 918, 927, 928, 928, 925, 929,
930, 931, 932, 933, 934, 935, 935, 932, 926, 931,
927, 936, 938, 938, 939, 929, 936, 940, 943, 930,
941, 941, 944, 934, 942, 942, 945, 945, 947, 933,
943, 946, 946, 949, 939, 950, 950, 972, 949, 940,
951, 951, 944, 952, 952, 953, 966, 947, 954, 954,
953, 956, 956, 958, 958, 959, 962, 962, 963, 977,
959, 967, 970, 963, 987, 967, 966, 971, 971, 973,
975, 975, 989, 973, 978, 978, 988, 977, 979, 979,
981, 981, 983, 983, 987, 988, 990, 989, 991, 992,
992, 969, 968, 965, 964, 961, 960, 957, 955, 948,
990, 937, 924, 921, 920, 916, 910, 991, 995, 995,
995, 995, 995, 995, 996, 996, 996, 996, 996, 996,
997, 997, 997, 997, 997, 997, 998, 998, 998, 998,
998, 998, 1000, 1000, 900, 1000, 1000, 1000, 1001, 1001,
899, 889, 887, 1001, 1002, 1002, 884, 877, 1002, 1004,
1004, 869, 862, 856, 1004, 1005, 1005, 852, 1005, 1005,
1005, 846, 845, 844, 831, 813, 812, 810, 804, 802,
800, 798, 797, 795, 794, 779, 777, 772, 749, 737,
724, 715, 683, 677, 676, 675, 672, 670, 642, 621,
600, 591, 577, 576, 554, 545, 534, 533, 532, 509,
489, 475, 442, 419, 396, 388, 378, 343, 312, 311,
309, 308, 303, 225, 219, 105, 104, 102, 100, 98,
56, 52, 48, 47, 43, 38, 12, 11, 994, 994,
994, 994, 994, 994, 994, 994, 994, 994, 994, 994,
994, 994, 994, 994, 994, 994, 994, 994, 994, 994,
994, 994, 994, 994, 994, 994, 994, 994, 994, 994,
994, 994, 994, 994, 994, 994, 994, 994
} ;
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;
}
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 88 "util/configlexer.lex"
#ifndef YY_NO_UNPUT
#define YY_NO_UNPUT 1
#endif
#ifndef YY_NO_INPUT
#define YY_NO_INPUT 1
#endif
#line 1330 "<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 107 "util/configlexer.lex"
#line 1516 "<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 >= 995 )
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] != 2039 );
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 108 "util/configlexer.lex"
{ LEXOUT(("SP ")); /* ignore */ }
YY_BREAK
case 2:
YY_RULE_SETUP
#line 109 "util/configlexer.lex"
{ LEXOUT(("comment(%s) ", yytext)); /* ignore */ }
YY_BREAK
case 3:
YY_RULE_SETUP
#line 110 "util/configlexer.lex"
{ YDOUT; return VAR_SERVER;}
YY_BREAK
case 4:
YY_RULE_SETUP
#line 111 "util/configlexer.lex"
{ YDOUT; return VAR_NUM_THREADS;}
YY_BREAK
case 5:
YY_RULE_SETUP
#line 112 "util/configlexer.lex"
{ YDOUT; return VAR_VERBOSITY;}
YY_BREAK
case 6:
YY_RULE_SETUP
#line 113 "util/configlexer.lex"
{ YDOUT; return VAR_PORT;}
YY_BREAK
case 7:
YY_RULE_SETUP
#line 114 "util/configlexer.lex"
{ YDOUT; return VAR_OUTGOING_RANGE;}
YY_BREAK
case 8:
YY_RULE_SETUP
#line 115 "util/configlexer.lex"
{ YDOUT; return VAR_OUTGOING_PORT_PERMIT;}
YY_BREAK
case 9:
YY_RULE_SETUP
#line 116 "util/configlexer.lex"
{ YDOUT; return VAR_OUTGOING_PORT_AVOID;}
YY_BREAK
case 10:
YY_RULE_SETUP
#line 117 "util/configlexer.lex"
{ YDOUT; return VAR_OUTGOING_NUM_TCP;}
YY_BREAK
case 11:
YY_RULE_SETUP
#line 118 "util/configlexer.lex"
{ YDOUT; return VAR_INCOMING_NUM_TCP;}
YY_BREAK
case 12:
YY_RULE_SETUP
#line 119 "util/configlexer.lex"
{ YDOUT; return VAR_DO_IP4;}
YY_BREAK
case 13:
YY_RULE_SETUP
#line 120 "util/configlexer.lex"
{ YDOUT; return VAR_DO_IP6;}
YY_BREAK
case 14:
YY_RULE_SETUP
#line 121 "util/configlexer.lex"
{ YDOUT; return VAR_DO_UDP;}
YY_BREAK
case 15:
YY_RULE_SETUP
#line 122 "util/configlexer.lex"
{ YDOUT; return VAR_DO_TCP;}
YY_BREAK
case 16:
YY_RULE_SETUP
#line 123 "util/configlexer.lex"
{ YDOUT; return VAR_DO_DAEMONIZE;}
YY_BREAK
case 17:
YY_RULE_SETUP
#line 124 "util/configlexer.lex"
{ YDOUT; return VAR_INTERFACE;}
YY_BREAK
case 18:
YY_RULE_SETUP
#line 125 "util/configlexer.lex"
{ YDOUT; return VAR_OUTGOING_INTERFACE;}
YY_BREAK
case 19:
YY_RULE_SETUP
#line 126 "util/configlexer.lex"
{ YDOUT; return VAR_INTERFACE_AUTOMATIC;}
YY_BREAK
case 20:
YY_RULE_SETUP
#line 127 "util/configlexer.lex"
{ YDOUT; return VAR_CHROOT;}
YY_BREAK
case 21:
YY_RULE_SETUP
#line 128 "util/configlexer.lex"
{ YDOUT; return VAR_USERNAME;}
YY_BREAK
case 22:
YY_RULE_SETUP
#line 129 "util/configlexer.lex"
{ YDOUT; return VAR_DIRECTORY;}
YY_BREAK
case 23:
YY_RULE_SETUP
#line 130 "util/configlexer.lex"
{ YDOUT; return VAR_LOGFILE;}
YY_BREAK
case 24:
YY_RULE_SETUP
#line 131 "util/configlexer.lex"
{ YDOUT; return VAR_PIDFILE;}
YY_BREAK
case 25:
YY_RULE_SETUP
#line 132 "util/configlexer.lex"
{ YDOUT; return VAR_ROOT_HINTS;}
YY_BREAK
case 26:
YY_RULE_SETUP
#line 133 "util/configlexer.lex"
{ YDOUT; return VAR_MSG_BUFFER_SIZE;}
YY_BREAK
case 27:
YY_RULE_SETUP
#line 134 "util/configlexer.lex"
{ YDOUT; return VAR_MSG_CACHE_SIZE;}
YY_BREAK
case 28:
YY_RULE_SETUP
#line 135 "util/configlexer.lex"
{ YDOUT; return VAR_MSG_CACHE_SLABS;}
YY_BREAK
case 29:
YY_RULE_SETUP
#line 136 "util/configlexer.lex"
{ YDOUT; return VAR_RRSET_CACHE_SIZE;}
YY_BREAK
case 30:
YY_RULE_SETUP
#line 137 "util/configlexer.lex"
{ YDOUT; return VAR_RRSET_CACHE_SLABS;}
YY_BREAK
case 31:
YY_RULE_SETUP
#line 138 "util/configlexer.lex"
{ YDOUT; return VAR_CACHE_MAX_TTL;}
YY_BREAK
case 32:
YY_RULE_SETUP
#line 139 "util/configlexer.lex"
{ YDOUT; return VAR_INFRA_HOST_TTL;}
YY_BREAK
case 33:
YY_RULE_SETUP
#line 140 "util/configlexer.lex"
{ YDOUT; return VAR_INFRA_LAME_TTL;}
YY_BREAK
case 34:
YY_RULE_SETUP
#line 141 "util/configlexer.lex"
{ YDOUT; return VAR_INFRA_CACHE_SLABS;}
YY_BREAK
case 35:
YY_RULE_SETUP
#line 142 "util/configlexer.lex"
{ YDOUT; return VAR_INFRA_CACHE_NUMHOSTS;}
YY_BREAK
case 36:
YY_RULE_SETUP
#line 143 "util/configlexer.lex"
{ YDOUT; return VAR_INFRA_CACHE_LAME_SIZE;}
YY_BREAK
case 37:
YY_RULE_SETUP
#line 144 "util/configlexer.lex"
{ YDOUT; return VAR_NUM_QUERIES_PER_THREAD;}
YY_BREAK
case 38:
YY_RULE_SETUP
#line 145 "util/configlexer.lex"
{ YDOUT; return VAR_JOSTLE_TIMEOUT;}
YY_BREAK
case 39:
YY_RULE_SETUP
#line 146 "util/configlexer.lex"
{ YDOUT; return VAR_TARGET_FETCH_POLICY;}
YY_BREAK
case 40:
YY_RULE_SETUP
#line 147 "util/configlexer.lex"
{ YDOUT; return VAR_HARDEN_SHORT_BUFSIZE;}
YY_BREAK
case 41:
YY_RULE_SETUP
#line 148 "util/configlexer.lex"
{ YDOUT; return VAR_HARDEN_LARGE_QUERIES;}
YY_BREAK
case 42:
YY_RULE_SETUP
#line 149 "util/configlexer.lex"
{ YDOUT; return VAR_HARDEN_GLUE;}
YY_BREAK
case 43:
YY_RULE_SETUP
#line 150 "util/configlexer.lex"
{ YDOUT; return VAR_HARDEN_DNNSEC_STRIPPED;}
YY_BREAK
case 44:
YY_RULE_SETUP
#line 151 "util/configlexer.lex"
{ YDOUT; return VAR_HARDEN_REFERRAL_PATH;}
YY_BREAK
case 45:
YY_RULE_SETUP
#line 152 "util/configlexer.lex"
{ YDOUT; return VAR_USE_CAPS_FOR_ID;}
YY_BREAK
case 46:
YY_RULE_SETUP
#line 153 "util/configlexer.lex"
{ YDOUT; return VAR_PRIVATE_ADDRESS;}
YY_BREAK
case 47:
YY_RULE_SETUP
#line 154 "util/configlexer.lex"
{ YDOUT; return VAR_PRIVATE_DOMAIN;}
YY_BREAK
case 48:
YY_RULE_SETUP
#line 155 "util/configlexer.lex"
{ YDOUT; return VAR_STUB_ZONE;}
YY_BREAK
case 49:
YY_RULE_SETUP
#line 156 "util/configlexer.lex"
{ YDOUT; return VAR_NAME;}
YY_BREAK
case 50:
YY_RULE_SETUP
#line 157 "util/configlexer.lex"
{ YDOUT; return VAR_STUB_ADDR;}
YY_BREAK
case 51:
YY_RULE_SETUP
#line 158 "util/configlexer.lex"
{ YDOUT; return VAR_STUB_HOST;}
YY_BREAK
case 52:
YY_RULE_SETUP
#line 159 "util/configlexer.lex"
{ YDOUT; return VAR_FORWARD_ZONE;}
YY_BREAK
case 53:
YY_RULE_SETUP
#line 160 "util/configlexer.lex"
{ YDOUT; return VAR_FORWARD_ADDR;}
YY_BREAK
case 54:
YY_RULE_SETUP
#line 161 "util/configlexer.lex"
{ YDOUT; return VAR_FORWARD_HOST;}
YY_BREAK
case 55:
YY_RULE_SETUP
#line 162 "util/configlexer.lex"
{ YDOUT; return VAR_DO_NOT_QUERY_ADDRESS;}
YY_BREAK
case 56:
YY_RULE_SETUP
#line 163 "util/configlexer.lex"
{ YDOUT; return VAR_DO_NOT_QUERY_LOCALHOST;}
YY_BREAK
case 57:
YY_RULE_SETUP
#line 164 "util/configlexer.lex"
{ YDOUT; return VAR_ACCESS_CONTROL;}
YY_BREAK
case 58:
YY_RULE_SETUP
#line 165 "util/configlexer.lex"
{ YDOUT; return VAR_HIDE_IDENTITY;}
YY_BREAK
case 59:
YY_RULE_SETUP
#line 166 "util/configlexer.lex"
{ YDOUT; return VAR_HIDE_VERSION;}
YY_BREAK
case 60:
YY_RULE_SETUP
#line 167 "util/configlexer.lex"
{ YDOUT; return VAR_IDENTITY;}
YY_BREAK
case 61:
YY_RULE_SETUP
#line 168 "util/configlexer.lex"
{ YDOUT; return VAR_VERSION;}
YY_BREAK
case 62:
YY_RULE_SETUP
#line 169 "util/configlexer.lex"
{ YDOUT; return VAR_MODULE_CONF;}
YY_BREAK
case 63:
YY_RULE_SETUP
#line 170 "util/configlexer.lex"
{ YDOUT; return VAR_DLV_ANCHOR;}
YY_BREAK
case 64:
YY_RULE_SETUP
#line 171 "util/configlexer.lex"
{ YDOUT; return VAR_DLV_ANCHOR_FILE;}
YY_BREAK
case 65:
YY_RULE_SETUP
#line 172 "util/configlexer.lex"
{ YDOUT; return VAR_TRUST_ANCHOR_FILE;}
YY_BREAK
case 66:
YY_RULE_SETUP
#line 173 "util/configlexer.lex"
{ YDOUT; return VAR_TRUSTED_KEYS_FILE;}
YY_BREAK
case 67:
YY_RULE_SETUP
#line 174 "util/configlexer.lex"
{ YDOUT; return VAR_TRUST_ANCHOR;}
YY_BREAK
case 68:
YY_RULE_SETUP
#line 175 "util/configlexer.lex"
{ YDOUT; return VAR_VAL_OVERRIDE_DATE;}
YY_BREAK
case 69:
YY_RULE_SETUP
#line 176 "util/configlexer.lex"
{ YDOUT; return VAR_BOGUS_TTL;}
YY_BREAK
case 70:
YY_RULE_SETUP
#line 177 "util/configlexer.lex"
{ YDOUT; return VAR_VAL_CLEAN_ADDITIONAL;}
YY_BREAK
case 71:
YY_RULE_SETUP
#line 178 "util/configlexer.lex"
{ YDOUT; return VAR_VAL_PERMISSIVE_MODE;}
YY_BREAK
case 72:
YY_RULE_SETUP
#line 179 "util/configlexer.lex"
{ YDOUT; return VAR_KEY_CACHE_SIZE;}
YY_BREAK
case 73:
YY_RULE_SETUP
#line 180 "util/configlexer.lex"
{ YDOUT; return VAR_KEY_CACHE_SLABS;}
YY_BREAK
case 74:
YY_RULE_SETUP
#line 181 "util/configlexer.lex"
{ YDOUT; return VAR_NEG_CACHE_SIZE;}
YY_BREAK
case 75:
YY_RULE_SETUP
#line 182 "util/configlexer.lex"
{ YDOUT; return VAR_VAL_NSEC3_KEYSIZE_ITERATIONS;}
YY_BREAK
case 76:
YY_RULE_SETUP
#line 183 "util/configlexer.lex"
{ YDOUT; return VAR_USE_SYSLOG;}
YY_BREAK
case 77:
YY_RULE_SETUP
#line 184 "util/configlexer.lex"
{ YDOUT; return VAR_LOCAL_ZONE;}
YY_BREAK
case 78:
YY_RULE_SETUP
#line 185 "util/configlexer.lex"
{ YDOUT; return VAR_LOCAL_DATA;}
YY_BREAK
case 79:
YY_RULE_SETUP
#line 186 "util/configlexer.lex"
{ YDOUT; return VAR_LOCAL_DATA_PTR;}
YY_BREAK
case 80:
YY_RULE_SETUP
#line 187 "util/configlexer.lex"
{ YDOUT; return VAR_STATISTICS_INTERVAL;}
YY_BREAK
case 81:
YY_RULE_SETUP
#line 188 "util/configlexer.lex"
{ YDOUT; return VAR_STATISTICS_CUMULATIVE;}
YY_BREAK
case 82:
YY_RULE_SETUP
#line 189 "util/configlexer.lex"
{ YDOUT; return VAR_EXTENDED_STATISTICS;}
YY_BREAK
case 83:
YY_RULE_SETUP
#line 190 "util/configlexer.lex"
{ YDOUT; return VAR_REMOTE_CONTROL; }
YY_BREAK
case 84:
YY_RULE_SETUP
#line 191 "util/configlexer.lex"
{ YDOUT; return VAR_CONTROL_ENABLE; }
YY_BREAK
case 85:
YY_RULE_SETUP
#line 192 "util/configlexer.lex"
{ YDOUT; return VAR_CONTROL_INTERFACE; }
YY_BREAK
case 86:
YY_RULE_SETUP
#line 193 "util/configlexer.lex"
{ YDOUT; return VAR_CONTROL_PORT; }
YY_BREAK
case 87:
YY_RULE_SETUP
#line 194 "util/configlexer.lex"
{ YDOUT; return VAR_SERVER_KEY_FILE; }
YY_BREAK
case 88:
YY_RULE_SETUP
#line 195 "util/configlexer.lex"
{ YDOUT; return VAR_SERVER_CERT_FILE; }
YY_BREAK
case 89:
YY_RULE_SETUP
#line 196 "util/configlexer.lex"
{ YDOUT; return VAR_CONTROL_KEY_FILE; }
YY_BREAK
case 90:
YY_RULE_SETUP
#line 197 "util/configlexer.lex"
{ YDOUT; return VAR_CONTROL_CERT_FILE; }
YY_BREAK
case 91:
/* rule 91 can match eol */
YY_RULE_SETUP
#line 198 "util/configlexer.lex"
{ LEXOUT(("NL\n")); cfg_parser->line++;}
YY_BREAK
/* Quoted strings. Strip leading and ending quotes */
case 92:
YY_RULE_SETUP
#line 201 "util/configlexer.lex"
{ BEGIN(quotedstring); LEXOUT(("QS ")); }
YY_BREAK
case YY_STATE_EOF(quotedstring):
#line 202 "util/configlexer.lex"
{
yyerror("EOF inside quoted string");
BEGIN(INITIAL);
}
YY_BREAK
case 93:
YY_RULE_SETUP
#line 206 "util/configlexer.lex"
{ LEXOUT(("STR(%s) ", yytext)); yymore(); }
YY_BREAK
case 94:
/* rule 94 can match eol */
YY_RULE_SETUP
#line 207 "util/configlexer.lex"
{ cfg_parser->line++; yymore(); }
YY_BREAK
case 95:
YY_RULE_SETUP
#line 208 "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 96:
YY_RULE_SETUP
#line 219 "util/configlexer.lex"
{ BEGIN(singlequotedstr); LEXOUT(("SQS ")); }
YY_BREAK
case YY_STATE_EOF(singlequotedstr):
#line 220 "util/configlexer.lex"
{
yyerror("EOF inside quoted string");
BEGIN(INITIAL);
}
YY_BREAK
case 97:
YY_RULE_SETUP
#line 224 "util/configlexer.lex"
{ LEXOUT(("STR(%s) ", yytext)); yymore(); }
YY_BREAK
case 98:
/* rule 98 can match eol */
YY_RULE_SETUP
#line 225 "util/configlexer.lex"
{ cfg_parser->line++; yymore(); }
YY_BREAK
case 99:
YY_RULE_SETUP
#line 226 "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 100:
YY_RULE_SETUP
#line 237 "util/configlexer.lex"
{ LEXOUT(("v(%s) ", yytext)); BEGIN(include); }
YY_BREAK
case YY_STATE_EOF(include):
#line 238 "util/configlexer.lex"
{
yyerror("EOF inside include directive");
BEGIN(INITIAL);
}
YY_BREAK
case 101:
YY_RULE_SETUP
#line 242 "util/configlexer.lex"
{ LEXOUT(("ISP ")); /* ignore */ }
YY_BREAK
case 102:
/* rule 102 can match eol */
YY_RULE_SETUP
#line 243 "util/configlexer.lex"
{ LEXOUT(("NL\n")); cfg_parser->line++;}
YY_BREAK
case 103:
YY_RULE_SETUP
#line 244 "util/configlexer.lex"
{ LEXOUT(("IQS ")); BEGIN(include_quoted); }
YY_BREAK
case 104:
YY_RULE_SETUP
#line 245 "util/configlexer.lex"
{
LEXOUT(("Iunquotedstr(%s) ", yytext));
config_start_include(yytext);
BEGIN(INITIAL);
}
YY_BREAK
case YY_STATE_EOF(include_quoted):
#line 250 "util/configlexer.lex"
{
yyerror("EOF inside quoted string");
BEGIN(INITIAL);
}
YY_BREAK
case 105:
YY_RULE_SETUP
#line 254 "util/configlexer.lex"
{ LEXOUT(("ISTR(%s) ", yytext)); yymore(); }
YY_BREAK
case 106:
/* rule 106 can match eol */
YY_RULE_SETUP
#line 255 "util/configlexer.lex"
{ cfg_parser->line++; yymore(); }
YY_BREAK
case 107:
YY_RULE_SETUP
#line 256 "util/configlexer.lex"
{
LEXOUT(("IQE "));
yytext[yyleng - 1] = '\0';
config_start_include(yytext);
BEGIN(INITIAL);
}
YY_BREAK
case YY_STATE_EOF(INITIAL):
#line 262 "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 108:
YY_RULE_SETUP
#line 272 "util/configlexer.lex"
{ LEXOUT(("unquotedstr(%s) ", yytext));
yylval.str = strdup(yytext); return STRING; }
YY_BREAK
case 109:
YY_RULE_SETUP
#line 275 "util/configlexer.lex"
ECHO;
YY_BREAK
#line 2224 "<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 >= 995 )
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 >= 995 )
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 == 994);
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 275 "util/configlexer.lex"