unbound/util/configlexer.c

3167 lines
101 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 108
#define YY_END_OF_BUFFER 109
/* 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[980] =
{ 0,
1, 1, 92, 92, 96, 96, 100, 100, 104, 104,
109, 107, 1, 90, 91, 2, 95, 108, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 92, 93, 108, 94,
108, 96, 97, 98, 108, 103, 100, 101, 102, 108,
104, 105, 106, 108, 107, 0, 1, 2, 2, 2,
2, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 92, 0, 96, 0, 103,
0, 100, 104, 0, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 48, 107, 107, 107, 107, 107, 6,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 20, 107, 107, 107,
107, 12, 13, 107, 15, 14, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 3, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
99, 107, 107, 107, 107, 107, 107, 107, 107, 23,
107, 107, 107, 107, 107, 107, 107, 24, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
60, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 59, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 21, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 22,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 17,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 49, 50, 47, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 5, 107, 107, 107, 107, 107,
107, 107, 107, 62, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 77, 76, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 25,
107, 107, 107, 107, 107, 107, 107, 107, 75, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 41,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 4,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 85, 107, 16,
107, 107, 52, 53, 51, 107, 107, 107, 107, 107,
58, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 66, 107, 107, 107, 107, 107, 107, 107, 107,
31, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 57, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 61, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 68, 107, 107,
107, 107, 56, 107, 83, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 32,
33, 107, 71, 107, 78, 107, 27, 107, 73, 107,
107, 107, 107, 107, 7, 107, 46, 82, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 107, 107, 107, 63, 107, 107, 107, 107,
107, 107, 107, 107, 107, 107, 107, 107, 72, 26,
28, 107, 107, 107, 107, 107, 45, 107, 107, 107,
86, 107, 107, 107, 107, 107, 44, 107, 107, 107,
107, 107, 107, 88, 107, 107, 107, 107, 107, 107,
107, 11, 107, 107, 107, 107, 107, 107, 10, 107,
107, 29, 107, 87, 107, 107, 107, 107, 107, 107,
107, 107, 107, 89, 84, 107, 107, 107, 107, 107,
107, 107, 107, 107, 34, 107, 107, 107, 107, 107,
30, 107, 107, 107, 64, 65, 107, 107, 67, 107,
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
107, 18, 107, 107, 107, 107, 107, 107, 107, 107,
107, 107, 81, 107, 107, 107, 107, 107, 107, 19,
107, 9, 107, 107, 79, 38, 107, 107, 70, 54,
107, 107, 40, 43, 39, 107, 35, 107, 8, 107,
69, 107, 107, 107, 36, 107, 80, 107, 55, 42,
37, 107, 107, 107, 107, 107, 107, 74, 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, 1, 23, 24, 25, 26,
27, 28, 29, 30, 31, 32, 33, 34, 35, 36,
37, 38, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 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[39] =
{ 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
} ;
static yyconst flex_int16_t yy_base[991] =
{ 0,
0, 0, 36, 39, 43, 50, 62, 74, 55, 67,
2008, 1994, 49, 2009, 2009, 81, 2009, 88, 32, 83,
76, 48, 78, 60, 89, 94, 86, 95, 103, 96,
98, 105, 101, 117, 111, 125, 1993, 2009, 2009, 2009,
136, 1992, 2009, 2009, 130, 1991, 2001, 2009, 2009, 144,
1989, 2009, 2009, 140, 1988, 148, 152, 0, 155, 0,
0, 148, 150, 143, 152, 154, 156, 162, 159, 158,
163, 164, 161, 167, 169, 176, 181, 182, 172, 187,
188, 190, 191, 196, 192, 198, 197, 199, 202, 203,
205, 206, 207, 214, 215, 1987, 229, 1986, 233, 1985,
239, 1995, 1983, 243, 236, 208, 229, 218, 239, 245,
246, 242, 238, 248, 249, 251, 256, 257, 253, 268,
261, 269, 271, 277, 273, 281, 284, 280, 282, 283,
285, 286, 289, 290, 292, 293, 294, 297, 298, 310,
314, 299, 303, 315, 311, 307, 319, 328, 330, 318,
323, 332, 334, 326, 340, 342, 348, 336, 344, 345,
349, 346, 351, 356, 352, 358, 368, 360, 362, 366,
372, 374, 376, 377, 373, 384, 380, 388, 381, 394,
391, 387, 395, 397, 414, 401, 400, 402, 408, 404,
405, 407, 411, 425, 434, 418, 421, 433, 435, 438,
440, 441, 442, 443, 445, 449, 446, 456, 463, 459,
460, 461, 466, 1982, 468, 464, 471, 473, 472, 1981,
474, 475, 477, 491, 478, 476, 488, 487, 497, 498,
490, 500, 503, 504, 505, 507, 511, 508, 510, 525,
509, 519, 522, 527, 529, 530, 535, 537, 543, 540,
545, 546, 548, 554, 553, 550, 512, 556, 547, 559,
563, 565, 569, 566, 577, 574, 575, 576, 581, 582,
583, 584, 585, 592, 588, 595, 605, 591, 602, 593,
601, 608, 611, 609, 614, 616, 618, 617, 620, 621,
622, 619, 623, 628, 635, 639, 1980, 642, 631, 643,
633, 1979, 1978, 644, 1977, 1976, 645, 655, 661, 652,
646, 653, 659, 662, 666, 656, 673, 680, 676, 681,
671, 687, 688, 689, 690, 692, 693, 694, 696, 702,
709, 705, 706, 711, 713, 1975, 715, 714, 707, 717,
720, 721, 727, 728, 664, 731, 729, 732, 735, 737,
739, 740, 742, 743, 744, 768, 745, 747, 750, 752,
753, 774, 766, 765, 755, 780, 762, 781, 784, 787,
1974, 793, 789, 790, 791, 795, 796, 797, 798, 1973,
804, 805, 807, 809, 806, 819, 822, 1972, 823, 821,
813, 825, 826, 829, 830, 836, 837, 838, 839, 842,
412, 846, 840, 848, 849, 850, 764, 851, 852, 855,
1971, 857, 864, 860, 858, 862, 869, 866, 873, 876,
877, 878, 881, 884, 882, 887, 885, 889, 890, 891,
892, 894, 895, 1970, 898, 900, 902, 905, 917, 919,
922, 915, 918, 924, 930, 932, 928, 934, 935, 936,
929, 926, 937, 945, 942, 946, 947, 957, 961, 963,
949, 958, 964, 967, 971, 1969, 977, 979, 980, 976,
981, 983, 984, 986, 987, 988, 990, 991, 993, 1968,
997, 994, 995, 998, 1002, 1000, 1001, 1007, 1008, 1016,
1021, 1011, 1020, 1022, 1024, 1027, 1035, 1038, 1039, 1967,
1031, 1042, 1046, 1047, 1048, 1034, 1050, 1051, 1054, 1057,
1055, 1059, 1060, 1058, 1064, 1063, 1066, 1074, 1067, 1083,
1085, 1966, 1965, 1964, 951, 1077, 1071, 1084, 1088, 1081,
1089, 1092, 1093, 1094, 1963, 1096, 1099, 1101, 1103, 1104,
1111, 1107, 1108, 1962, 1110, 1116, 1121, 1117, 1119, 1123,
1124, 1131, 1127, 1125, 1133, 1135, 1136, 1139, 1146, 1137,
1143, 1144, 1148, 1145, 1961, 1960, 1158, 1147, 1161, 1166,
1155, 1169, 1163, 1171, 1173, 1174, 1176, 1177, 1179, 1959,
1185, 1186, 1188, 1189, 1191, 1184, 1195, 1197, 1958, 1200,
1202, 1203, 1204, 1207, 1210, 1211, 1217, 1215, 1218, 1221,
1229, 1223, 1231, 1225, 1233, 1237, 1239, 1241, 1242, 1957,
1248, 1234, 1249, 1246, 1254, 1255, 1247, 1256, 1257, 1259,
1261, 1262, 1264, 1266, 1268, 1267, 1271, 1269, 1274, 1956,
1279, 1285, 1281, 1288, 1282, 1290, 1291, 1293, 1296, 1297,
1298, 1301, 1308, 1317, 1309, 1315, 1313, 1319, 1307, 1325,
1321, 1322, 1327, 1328, 1330, 1332, 1336, 1955, 1329, 1954,
1343, 1337, 1953, 1952, 1951, 1352, 1339, 1348, 1351, 1357,
1950, 1341, 1358, 1350, 1361, 1362, 1363, 1364, 1366, 1365,
1368, 1376, 1369, 1377, 1379, 1383, 1384, 1380, 1386, 1392,
1390, 1391, 1393, 1396, 1399, 1402, 1401, 1403, 1398, 1404,
1414, 1949, 1416, 1418, 1424, 1421, 1413, 1425, 1428, 1435,
1948, 1432, 1437, 1438, 1440, 1442, 1444, 1443, 1445, 1446,
1449, 1450, 1452, 1947, 1453, 1454, 1455, 1458, 1471, 1474,
1465, 1476, 1460, 1480, 1946, 1481, 1483, 1484, 1488, 1468,
1489, 1490, 1491, 1497, 1494, 1499, 1501, 1503, 1504, 1507,
1508, 1509, 1510, 1511, 1514, 1517, 1516, 1945, 1519, 1521,
1531, 1527, 1944, 1524, 1943, 1533, 1534, 1541, 1542, 1544,
1537, 1543, 1545, 1553, 1549, 1551, 1552, 1559, 1558, 1942,
1941, 1563, 1940, 1569, 1939, 1571, 1938, 1573, 1937, 1579,
1575, 1565, 1561, 1578, 1936, 1585, 1935, 1934, 1581, 1587,
1588, 1591, 1592, 1577, 1595, 1596, 1597, 1599, 1600, 1601,
1602, 1604, 1605, 1612, 1614, 1933, 1611, 1618, 1615, 1620,
1622, 1623, 1625, 1630, 1632, 1631, 1633, 1634, 1932, 1931,
1930, 1635, 1641, 1647, 1636, 1640, 1926, 1649, 1642, 1656,
1922, 1658, 1652, 1661, 1662, 1663, 1921, 1664, 1666, 1669,
1665, 1676, 1681, 1920, 1672, 1682, 1683, 1685, 1687, 1688,
1690, 1916, 1684, 1691, 1698, 1692, 1695, 1700, 1915, 1704,
1706, 1911, 1708, 1910, 1710, 1711, 1714, 1716, 1720, 1721,
1727, 1724, 1726, 1909, 1903, 1725, 1728, 1731, 1732, 1733,
1735, 1737, 1739, 1740, 1875, 1741, 1746, 1751, 1752, 1755,
1874, 1757, 1742, 1745, 1873, 1869, 1760, 1758, 1868, 1765,
1768, 1771, 1773, 1774, 1775, 1776, 1777, 1778, 1779, 1781,
1783, 1867, 1791, 1787, 1792, 1795, 1799, 1796, 1800, 1802,
1805, 1808, 1866, 1809, 1811, 1816, 1818, 1820, 1822, 1864,
1823, 1863, 1828, 1829, 1862, 1812, 1831, 1832, 1554, 1462,
1833, 1835, 1426, 1400, 1205, 1841, 1153, 1838, 1056, 1844,
758, 1836, 1846, 1848, 697, 1850, 654, 1854, 558, 353,
174, 1851, 1856, 1857, 1859, 1858, 1861, 114, 2009, 1889,
1895, 1901, 1907, 100, 1913, 1919, 1925, 61, 1930, 1936
} ;
static yyconst flex_int16_t yy_def[991] =
{ 0,
979, 1, 980, 980, 981, 981, 982, 982, 983, 983,
979, 984, 979, 979, 979, 985, 979, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 986, 979, 979, 979,
986, 987, 979, 979, 987, 988, 979, 979, 979, 988,
989, 979, 979, 989, 984, 984, 979, 990, 985, 990,
985, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 986, 986, 987, 987, 988,
988, 979, 989, 989, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 984, 984,
984, 984, 984, 984, 984, 984, 984, 984, 0, 979,
979, 979, 979, 979, 979, 979, 979, 979, 979, 979
} ;
static yyconst flex_int16_t yy_nxt[2048] =
{ 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, 12, 32,
33, 34, 35, 36, 12, 12, 12, 12, 38, 39,
40, 38, 39, 40, 56, 43, 39, 62, 41, 44,
57, 41, 43, 39, 58, 45, 44, 52, 52, 53,
56, 100, 45, 47, 48, 48, 49, 54, 39, 52,
52, 53, 56, 71, 50, 47, 48, 48, 49, 54,
39, 72, 60, 69, 60, 60, 50, 60, 56, 55,
56, 55, 55, 61, 55, 56, 63, 66, 56, 67,
55, 56, 68, 64, 70, 73, 56, 56, 56, 65,
56, 75, 76, 56, 74, 56, 79, 56, 89, 83,
80, 77, 86, 56, 84, 78, 56, 85, 82, 56,
91, 87, 90, 98, 88, 81, 98, 56, 94, 96,
96, 93, 95, 103, 103, 100, 92, 100, 100, 55,
100, 55, 55, 57, 55, 56, 60, 58, 60, 60,
56, 60, 56, 105, 56, 106, 56, 61, 56, 111,
56, 56, 107, 56, 56, 56, 56, 108, 116, 56,
115, 56, 117, 109, 56, 118, 56, 113, 56, 110,
112, 121, 114, 56, 56, 122, 125, 123, 119, 56,
56, 124, 56, 56, 56, 120, 126, 129, 56, 56,
56, 56, 127, 131, 56, 56, 136, 56, 56, 56,
56, 128, 132, 133, 140, 130, 56, 56, 144, 134,
56, 135, 96, 96, 138, 137, 98, 141, 139, 98,
100, 56, 100, 100, 142, 100, 103, 103, 56, 146,
56, 56, 148, 143, 56, 145, 147, 56, 56, 154,
56, 56, 149, 56, 156, 56, 157, 150, 56, 56,
162, 151, 155, 56, 164, 163, 158, 152, 153, 159,
56, 56, 160, 56, 167, 56, 161, 165, 169, 56,
168, 170, 56, 56, 56, 56, 56, 56, 56, 171,
172, 56, 56, 166, 56, 56, 56, 177, 180, 56,
56, 56, 175, 186, 173, 56, 181, 183, 174, 56,
176, 185, 56, 56, 179, 178, 56, 56, 182, 187,
56, 56, 189, 188, 192, 56, 191, 190, 56, 184,
56, 193, 56, 194, 56, 195, 56, 197, 56, 196,
198, 199, 56, 200, 56, 202, 56, 56, 56, 201,
56, 56, 206, 56, 56, 56, 208, 203, 56, 205,
56, 214, 56, 210, 56, 207, 204, 215, 56, 209,
56, 211, 212, 213, 56, 56, 56, 220, 56, 56,
221, 223, 56, 56, 216, 219, 56, 217, 218, 56,
56, 227, 226, 56, 222, 225, 56, 56, 228, 56,
230, 224, 56, 56, 56, 241, 56, 56, 229, 56,
56, 239, 232, 56, 56, 231, 56, 238, 233, 234,
56, 243, 240, 56, 463, 242, 245, 56, 244, 235,
236, 237, 246, 247, 248, 56, 56, 56, 250, 249,
56, 252, 56, 56, 56, 56, 260, 56, 56, 258,
251, 56, 255, 257, 261, 254, 259, 253, 56, 262,
263, 56, 56, 56, 256, 56, 56, 265, 56, 267,
56, 268, 264, 56, 56, 56, 56, 56, 56, 56,
56, 270, 274, 266, 271, 272, 269, 275, 276, 56,
56, 279, 56, 56, 283, 273, 278, 277, 280, 56,
56, 285, 56, 287, 284, 56, 56, 56, 282, 56,
56, 56, 56, 56, 56, 281, 286, 289, 292, 288,
297, 56, 295, 296, 56, 290, 294, 56, 293, 56,
291, 56, 56, 312, 300, 298, 302, 56, 303, 56,
304, 305, 56, 299, 301, 56, 306, 56, 56, 56,
56, 309, 56, 307, 308, 56, 56, 311, 56, 310,
56, 56, 314, 313, 315, 56, 318, 56, 56, 316,
319, 56, 317, 322, 323, 320, 56, 56, 56, 56,
325, 326, 324, 56, 56, 56, 56, 56, 327, 332,
56, 330, 331, 56, 56, 56, 321, 56, 329, 333,
334, 328, 335, 56, 56, 341, 336, 56, 338, 339,
56, 56, 337, 56, 342, 343, 56, 340, 56, 56,
56, 56, 56, 56, 56, 56, 347, 348, 349, 350,
56, 344, 346, 56, 352, 56, 345, 56, 351, 356,
354, 56, 355, 353, 56, 56, 56, 56, 56, 359,
357, 361, 362, 358, 56, 56, 56, 56, 56, 368,
371, 56, 360, 56, 56, 369, 56, 363, 56, 373,
364, 372, 374, 56, 365, 56, 375, 403, 56, 370,
366, 367, 56, 56, 378, 376, 377, 379, 380, 56,
56, 56, 56, 381, 56, 56, 56, 382, 56, 56,
383, 386, 384, 388, 56, 387, 389, 56, 56, 56,
390, 56, 385, 56, 392, 56, 56, 56, 393, 56,
396, 391, 56, 56, 401, 394, 395, 397, 399, 56,
56, 56, 398, 56, 56, 406, 400, 56, 404, 56,
407, 56, 56, 411, 56, 56, 56, 56, 402, 56,
423, 405, 56, 409, 56, 56, 408, 56, 429, 412,
56, 410, 469, 420, 56, 421, 56, 56, 56, 413,
56, 419, 431, 414, 422, 415, 56, 424, 428, 416,
417, 427, 56, 56, 425, 418, 56, 430, 434, 56,
435, 56, 56, 56, 436, 56, 432, 56, 56, 56,
56, 426, 439, 440, 433, 438, 56, 56, 56, 56,
437, 56, 444, 442, 445, 56, 446, 447, 441, 449,
443, 56, 448, 56, 56, 56, 450, 56, 56, 451,
454, 56, 56, 455, 453, 457, 456, 452, 56, 56,
56, 56, 56, 464, 56, 460, 461, 462, 56, 466,
56, 56, 56, 56, 56, 458, 465, 56, 459, 56,
56, 474, 56, 471, 56, 468, 56, 475, 56, 467,
470, 56, 473, 476, 480, 56, 478, 477, 56, 56,
56, 472, 479, 56, 56, 483, 56, 56, 482, 56,
485, 56, 56, 56, 56, 481, 56, 56, 486, 491,
56, 484, 56, 487, 56, 488, 494, 56, 492, 490,
496, 489, 498, 495, 499, 493, 501, 56, 500, 56,
56, 56, 503, 497, 56, 502, 56, 506, 56, 507,
56, 56, 56, 504, 56, 508, 56, 56, 56, 56,
509, 516, 514, 505, 56, 515, 510, 56, 56, 56,
511, 56, 512, 56, 513, 518, 585, 517, 522, 56,
56, 519, 523, 56, 524, 56, 56, 521, 526, 56,
525, 527, 520, 56, 530, 528, 531, 532, 56, 56,
529, 56, 56, 56, 535, 56, 56, 533, 56, 56,
56, 539, 56, 56, 543, 56, 56, 56, 544, 56,
56, 534, 56, 56, 56, 536, 538, 537, 548, 56,
56, 540, 542, 56, 546, 552, 550, 541, 56, 547,
549, 545, 56, 56, 56, 553, 56, 551, 554, 56,
555, 556, 560, 56, 559, 561, 56, 56, 557, 564,
56, 56, 562, 565, 56, 568, 558, 566, 56, 56,
56, 563, 56, 56, 569, 567, 56, 56, 56, 56,
56, 56, 56, 576, 577, 56, 56, 580, 56, 56,
570, 571, 573, 56, 572, 575, 56, 574, 578, 56,
583, 581, 584, 56, 579, 56, 56, 56, 582, 589,
56, 56, 591, 586, 56, 56, 56, 587, 56, 593,
588, 56, 590, 56, 592, 56, 56, 598, 600, 56,
56, 599, 56, 56, 594, 595, 602, 603, 56, 56,
596, 56, 597, 56, 605, 56, 56, 56, 601, 56,
608, 609, 610, 56, 611, 56, 606, 56, 56, 56,
607, 56, 604, 617, 612, 56, 56, 56, 56, 56,
56, 615, 629, 616, 613, 56, 614, 56, 618, 621,
56, 622, 623, 56, 619, 56, 620, 625, 56, 624,
630, 56, 626, 56, 627, 56, 56, 628, 56, 56,
636, 56, 638, 639, 631, 632, 56, 56, 56, 634,
56, 56, 633, 56, 641, 635, 640, 56, 637, 56,
642, 643, 56, 644, 56, 56, 56, 56, 648, 56,
649, 650, 56, 56, 654, 645, 646, 56, 651, 56,
56, 647, 661, 56, 653, 56, 652, 56, 655, 657,
658, 56, 660, 56, 659, 56, 56, 656, 663, 56,
664, 56, 665, 56, 56, 667, 669, 666, 56, 56,
56, 56, 672, 668, 662, 671, 56, 56, 56, 56,
673, 56, 674, 56, 56, 680, 56, 675, 56, 56,
56, 56, 670, 56, 685, 682, 56, 676, 677, 683,
678, 56, 689, 56, 56, 681, 688, 56, 679, 692,
56, 687, 56, 56, 684, 56, 686, 691, 56, 56,
56, 693, 690, 56, 696, 700, 703, 694, 697, 56,
56, 56, 704, 695, 701, 56, 699, 56, 702, 56,
698, 56, 708, 56, 56, 706, 705, 56, 711, 56,
56, 56, 56, 707, 56, 710, 712, 713, 56, 56,
714, 56, 716, 56, 709, 56, 717, 715, 719, 720,
56, 722, 56, 56, 56, 723, 718, 721, 724, 56,
56, 726, 725, 56, 56, 56, 56, 56, 56, 733,
56, 56, 727, 732, 728, 729, 730, 735, 56, 56,
731, 56, 56, 738, 737, 56, 56, 734, 56, 743,
739, 740, 56, 56, 56, 56, 736, 744, 56, 741,
56, 56, 56, 56, 56, 56, 56, 742, 746, 747,
748, 745, 749, 750, 751, 56, 56, 752, 56, 753,
56, 754, 755, 56, 756, 758, 56, 56, 56, 757,
56, 761, 759, 760, 56, 762, 763, 56, 765, 56,
56, 766, 56, 764, 56, 56, 56, 56, 56, 768,
769, 56, 56, 767, 56, 56, 56, 56, 776, 770,
56, 779, 56, 774, 56, 771, 772, 56, 777, 778,
56, 773, 780, 56, 775, 781, 56, 783, 56, 782,
784, 785, 56, 56, 787, 56, 56, 790, 786, 789,
56, 56, 56, 56, 793, 792, 56, 791, 795, 56,
797, 56, 798, 56, 788, 56, 56, 800, 794, 56,
56, 56, 56, 56, 796, 802, 56, 804, 56, 56,
801, 56, 808, 56, 812, 806, 56, 805, 807, 56,
799, 803, 810, 56, 811, 56, 56, 813, 814, 56,
809, 815, 816, 56, 56, 56, 56, 56, 817, 818,
822, 56, 821, 56, 56, 56, 56, 823, 819, 825,
56, 56, 827, 56, 820, 56, 828, 56, 824, 826,
829, 56, 830, 56, 831, 56, 832, 56, 833, 56,
56, 56, 834, 56, 835, 836, 837, 56, 838, 56,
56, 839, 841, 56, 56, 840, 843, 56, 56, 56,
847, 56, 56, 56, 56, 842, 56, 56, 844, 845,
846, 848, 852, 56, 56, 854, 56, 56, 851, 853,
56, 856, 56, 850, 56, 56, 857, 56, 849, 863,
855, 862, 56, 56, 56, 56, 56, 56, 56, 858,
860, 859, 56, 56, 56, 861, 868, 864, 869, 56,
872, 56, 870, 865, 56, 866, 867, 874, 56, 871,
56, 875, 873, 56, 56, 56, 56, 56, 56, 878,
879, 56, 877, 881, 56, 876, 882, 884, 56, 886,
880, 883, 885, 56, 56, 56, 56, 56, 888, 56,
56, 891, 56, 56, 56, 887, 889, 56, 890, 895,
56, 892, 56, 896, 893, 897, 56, 898, 56, 901,
56, 894, 56, 56, 903, 899, 56, 905, 56, 904,
900, 906, 56, 56, 908, 909, 56, 56, 56, 56,
56, 902, 910, 56, 56, 56, 907, 56, 912, 56,
915, 56, 56, 56, 56, 911, 920, 56, 56, 914,
918, 913, 922, 56, 56, 926, 916, 56, 923, 56,
56, 919, 56, 928, 917, 921, 924, 56, 925, 929,
56, 927, 930, 56, 933, 56, 56, 56, 56, 56,
56, 56, 940, 56, 937, 56, 936, 932, 931, 56,
941, 934, 942, 56, 56, 935, 945, 56, 56, 939,
946, 56, 56, 949, 56, 938, 950, 56, 943, 947,
56, 56, 953, 56, 56, 944, 952, 954, 56, 955,
56, 948, 56, 957, 56, 56, 958, 956, 951, 959,
56, 56, 961, 56, 56, 56, 960, 56, 56, 962,
56, 964, 965, 56, 966, 967, 56, 969, 56, 970,
56, 971, 56, 56, 963, 968, 56, 972, 56, 56,
56, 56, 978, 56, 56, 56, 56, 974, 56, 56,
56, 56, 973, 975, 976, 56, 56, 56, 977, 37,
37, 37, 37, 37, 37, 42, 42, 42, 42, 42,
42, 46, 46, 46, 46, 46, 46, 51, 51, 51,
51, 51, 51, 59, 59, 56, 59, 59, 59, 96,
96, 56, 56, 56, 96, 98, 98, 56, 56, 98,
103, 103, 56, 56, 56, 103, 60, 60, 56, 60,
60, 60, 56, 56, 56, 56, 56, 56, 56, 56,
56, 56, 56, 56, 56, 56, 56, 56, 56, 56,
56, 56, 56, 56, 56, 56, 56, 56, 56, 56,
56, 56, 56, 56, 56, 56, 56, 56, 56, 56,
56, 56, 56, 56, 56, 56, 56, 56, 56, 56,
56, 56, 56, 56, 56, 104, 102, 101, 99, 97,
56, 104, 102, 101, 99, 97, 56, 979, 11, 979,
979, 979, 979, 979, 979, 979, 979, 979, 979, 979,
979, 979, 979, 979, 979, 979, 979, 979, 979, 979,
979, 979, 979, 979, 979, 979, 979, 979, 979, 979,
979, 979, 979, 979, 979, 979, 979
} ;
static yyconst flex_int16_t yy_chk[2048] =
{ 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, 3, 3,
3, 4, 4, 4, 19, 5, 5, 19, 3, 5,
13, 4, 6, 6, 13, 5, 6, 9, 9, 9,
22, 988, 6, 7, 7, 7, 7, 9, 7, 10,
10, 10, 24, 24, 7, 8, 8, 8, 8, 10,
8, 24, 16, 22, 16, 16, 8, 16, 21, 18,
23, 18, 18, 16, 18, 20, 20, 21, 27, 21,
984, 25, 21, 20, 23, 25, 26, 28, 30, 20,
31, 26, 27, 33, 25, 29, 29, 32, 33, 31,
29, 28, 32, 35, 31, 28, 978, 31, 30, 34,
34, 32, 33, 45, 32, 29, 45, 36, 36, 41,
41, 35, 36, 54, 54, 50, 34, 50, 50, 56,
50, 56, 56, 57, 56, 64, 59, 57, 59, 59,
62, 59, 63, 62, 65, 63, 66, 59, 67, 68,
70, 69, 64, 73, 68, 71, 72, 65, 73, 74,
72, 75, 74, 66, 79, 74, 971, 70, 76, 67,
69, 76, 71, 77, 78, 76, 79, 77, 74, 80,
81, 78, 82, 83, 85, 75, 80, 83, 84, 87,
86, 88, 81, 85, 89, 90, 90, 91, 92, 93,
106, 82, 86, 87, 93, 84, 94, 95, 106, 88,
108, 89, 97, 97, 91, 90, 99, 94, 92, 99,
101, 107, 101, 101, 95, 101, 104, 104, 105, 108,
113, 109, 110, 105, 112, 107, 109, 110, 111, 112,
114, 115, 111, 116, 114, 119, 115, 111, 117, 118,
119, 111, 113, 121, 121, 120, 116, 111, 111, 117,
120, 122, 117, 123, 124, 125, 118, 122, 126, 124,
125, 127, 128, 126, 129, 130, 127, 131, 132, 128,
129, 133, 134, 123, 135, 136, 137, 134, 137, 138,
139, 142, 132, 142, 130, 143, 138, 140, 131, 146,
133, 141, 140, 145, 136, 135, 141, 144, 139, 142,
150, 147, 144, 143, 147, 151, 146, 145, 154, 140,
148, 148, 149, 149, 152, 150, 153, 152, 158, 151,
153, 154, 155, 155, 156, 157, 159, 160, 162, 156,
157, 161, 161, 163, 165, 970, 163, 158, 164, 160,
166, 168, 168, 165, 169, 162, 159, 169, 170, 164,
167, 166, 167, 167, 171, 175, 172, 173, 173, 174,
174, 176, 177, 179, 170, 172, 176, 170, 171, 182,
178, 180, 179, 181, 175, 178, 180, 183, 181, 184,
183, 177, 187, 186, 188, 189, 190, 191, 182, 192,
189, 187, 184, 193, 401, 183, 185, 186, 185, 185,
196, 191, 188, 197, 401, 190, 193, 194, 192, 185,
185, 185, 194, 195, 195, 198, 195, 199, 197, 196,
200, 199, 201, 202, 203, 204, 206, 205, 207, 204,
198, 206, 202, 203, 207, 201, 205, 200, 208, 208,
209, 210, 211, 212, 202, 209, 216, 211, 213, 213,
215, 215, 210, 217, 219, 218, 221, 222, 226, 223,
225, 217, 222, 212, 218, 219, 216, 223, 224, 228,
227, 227, 231, 224, 229, 221, 226, 225, 227, 229,
230, 230, 232, 232, 229, 233, 234, 235, 228, 236,
238, 241, 239, 237, 257, 227, 231, 234, 237, 233,
242, 242, 240, 241, 243, 235, 239, 240, 238, 244,
236, 245, 246, 257, 245, 243, 247, 247, 248, 248,
249, 250, 250, 244, 246, 249, 251, 251, 252, 259,
253, 254, 256, 252, 253, 255, 254, 256, 258, 255,
969, 260, 259, 258, 260, 261, 261, 262, 264, 260,
262, 263, 260, 264, 265, 263, 266, 267, 268, 265,
267, 268, 266, 269, 270, 271, 272, 273, 269, 274,
275, 272, 273, 278, 274, 280, 263, 276, 271, 275,
276, 270, 277, 281, 279, 282, 277, 277, 279, 280,
282, 284, 278, 283, 283, 284, 285, 281, 286, 288,
287, 292, 289, 290, 291, 293, 288, 289, 290, 291,
294, 285, 287, 299, 293, 301, 286, 295, 292, 298,
295, 296, 296, 294, 298, 300, 304, 307, 311, 301,
299, 307, 308, 300, 310, 312, 967, 308, 316, 310,
313, 313, 304, 309, 314, 311, 345, 309, 315, 315,
309, 314, 316, 321, 309, 317, 317, 345, 319, 312,
309, 309, 318, 320, 320, 318, 319, 321, 322, 322,
323, 324, 325, 323, 326, 327, 328, 324, 329, 965,
325, 328, 326, 330, 330, 329, 331, 332, 333, 339,
332, 331, 327, 334, 334, 335, 338, 337, 335, 340,
338, 333, 341, 342, 343, 335, 337, 339, 341, 343,
344, 347, 340, 346, 348, 348, 342, 349, 346, 350,
349, 351, 352, 353, 353, 354, 355, 357, 344, 358,
361, 347, 359, 351, 360, 361, 350, 365, 365, 354,
961, 352, 407, 358, 367, 359, 407, 364, 363, 355,
356, 357, 367, 356, 360, 356, 362, 362, 364, 356,
356, 363, 366, 368, 362, 356, 369, 366, 370, 370,
372, 373, 374, 375, 373, 372, 368, 376, 377, 378,
379, 362, 376, 377, 369, 375, 381, 382, 385, 383,
374, 384, 382, 379, 383, 391, 384, 385, 378, 387,
381, 386, 386, 390, 387, 389, 389, 392, 393, 389,
392, 394, 395, 393, 391, 395, 394, 390, 396, 397,
398, 399, 403, 402, 400, 398, 399, 400, 402, 404,
404, 405, 406, 408, 409, 396, 403, 410, 397, 412,
415, 413, 414, 409, 416, 406, 413, 414, 418, 405,
408, 417, 412, 415, 419, 419, 417, 416, 420, 421,
422, 410, 418, 423, 425, 422, 424, 427, 421, 426,
424, 428, 429, 430, 431, 420, 432, 433, 425, 430,
435, 423, 436, 426, 437, 427, 433, 438, 431, 429,
436, 428, 438, 435, 439, 432, 440, 442, 439, 439,
443, 440, 442, 437, 441, 441, 444, 445, 452, 446,
447, 451, 445, 443, 446, 447, 448, 449, 450, 453,
448, 452, 450, 444, 455, 451, 449, 454, 456, 457,
449, 461, 449, 525, 449, 454, 525, 453, 458, 458,
462, 455, 459, 459, 460, 460, 463, 457, 462, 464,
461, 463, 456, 465, 467, 464, 468, 469, 470, 467,
465, 468, 469, 471, 472, 472, 473, 470, 474, 475,
476, 476, 477, 478, 481, 479, 482, 483, 481, 481,
484, 471, 486, 487, 485, 473, 475, 474, 485, 488,
489, 477, 479, 492, 483, 489, 487, 478, 490, 484,
486, 482, 493, 491, 494, 490, 495, 488, 491, 496,
492, 493, 497, 501, 496, 498, 506, 497, 494, 502,
498, 499, 499, 502, 502, 505, 495, 503, 503, 504,
505, 501, 507, 508, 506, 504, 509, 511, 959, 510,
514, 512, 513, 513, 514, 516, 515, 517, 517, 519,
507, 508, 510, 527, 509, 512, 518, 511, 515, 526,
520, 518, 521, 530, 516, 520, 528, 521, 519, 529,
529, 531, 531, 526, 532, 533, 534, 527, 536, 533,
528, 537, 530, 538, 532, 539, 540, 539, 541, 542,
543, 540, 545, 541, 534, 536, 543, 545, 546, 548,
537, 549, 538, 547, 547, 550, 551, 554, 542, 553,
550, 551, 552, 552, 553, 555, 548, 556, 557, 560,
549, 558, 546, 559, 554, 561, 562, 564, 559, 568,
563, 557, 571, 558, 555, 957, 556, 571, 560, 563,
567, 563, 564, 569, 561, 573, 562, 568, 570, 567,
572, 572, 569, 574, 569, 575, 576, 570, 577, 578,
578, 579, 581, 582, 573, 574, 586, 581, 582, 576,
583, 584, 575, 585, 584, 577, 583, 587, 579, 588,
584, 585, 590, 586, 591, 592, 593, 955, 591, 594,
592, 593, 595, 596, 597, 587, 588, 598, 594, 597,
599, 590, 604, 600, 596, 602, 595, 604, 598, 600,
601, 601, 603, 603, 602, 605, 612, 599, 606, 606,
607, 607, 608, 608, 609, 611, 613, 609, 614, 617,
611, 613, 616, 612, 605, 615, 615, 616, 618, 619,
617, 620, 617, 621, 622, 622, 623, 617, 624, 626,
625, 628, 614, 627, 627, 624, 629, 618, 619, 625,
620, 631, 632, 633, 635, 623, 631, 632, 621, 635,
634, 629, 636, 637, 626, 638, 628, 634, 639, 640,
641, 636, 633, 642, 639, 643, 645, 637, 640, 649,
643, 645, 646, 638, 644, 647, 642, 646, 644, 644,
641, 648, 650, 651, 652, 648, 647, 650, 653, 653,
654, 659, 655, 649, 656, 652, 654, 655, 657, 662,
656, 667, 659, 672, 651, 661, 661, 657, 662, 666,
668, 668, 674, 669, 666, 669, 661, 667, 670, 670,
673, 673, 672, 675, 676, 677, 678, 680, 679, 680,
681, 683, 674, 679, 675, 676, 677, 682, 682, 684,
678, 685, 688, 685, 684, 686, 687, 681, 689, 690,
686, 687, 691, 692, 690, 693, 683, 691, 694, 688,
699, 695, 954, 697, 696, 698, 700, 689, 693, 694,
695, 692, 695, 696, 697, 707, 701, 698, 703, 699,
704, 700, 701, 706, 703, 705, 705, 708, 953, 704,
709, 708, 706, 707, 712, 709, 710, 710, 713, 713,
714, 714, 715, 712, 716, 718, 717, 719, 720, 716,
717, 721, 722, 715, 723, 725, 726, 727, 725, 718,
728, 728, 733, 722, 950, 719, 720, 731, 726, 727,
740, 721, 729, 729, 723, 730, 730, 732, 732, 731,
733, 734, 734, 736, 737, 737, 738, 740, 736, 739,
739, 741, 742, 743, 743, 742, 745, 741, 744, 744,
746, 746, 747, 747, 738, 748, 749, 749, 743, 750,
751, 752, 753, 754, 745, 751, 755, 753, 757, 756,
750, 759, 757, 760, 762, 755, 764, 754, 756, 762,
748, 752, 760, 761, 761, 766, 767, 764, 766, 771,
759, 767, 768, 768, 769, 772, 770, 773, 769, 770,
774, 775, 773, 776, 777, 774, 949, 775, 771, 777,
779, 778, 779, 793, 772, 782, 782, 792, 776, 778,
784, 784, 786, 786, 788, 788, 790, 791, 791, 804,
794, 790, 792, 799, 793, 794, 796, 796, 799, 800,
801, 800, 802, 802, 803, 801, 804, 805, 806, 807,
808, 808, 809, 810, 811, 803, 812, 813, 805, 806,
807, 809, 813, 817, 814, 815, 815, 819, 812, 814,
818, 818, 820, 811, 821, 822, 819, 823, 810, 825,
817, 824, 824, 826, 825, 827, 828, 832, 835, 820,
822, 821, 836, 833, 839, 823, 833, 826, 834, 834,
838, 838, 835, 827, 843, 828, 832, 840, 840, 836,
842, 842, 839, 844, 845, 846, 848, 851, 849, 845,
846, 850, 844, 849, 855, 843, 850, 852, 852, 855,
848, 851, 853, 853, 856, 857, 863, 858, 857, 859,
860, 860, 861, 864, 866, 856, 858, 867, 859, 865,
865, 861, 868, 866, 863, 867, 870, 868, 871, 873,
873, 864, 875, 876, 876, 870, 877, 878, 878, 877,
871, 879, 879, 880, 881, 882, 882, 886, 883, 881,
887, 875, 883, 888, 889, 890, 880, 891, 887, 892,
890, 893, 894, 896, 903, 886, 896, 904, 897, 889,
893, 888, 898, 898, 899, 903, 891, 900, 899, 902,
908, 894, 907, 907, 892, 897, 900, 910, 902, 908,
911, 904, 910, 912, 913, 913, 914, 915, 916, 917,
918, 919, 920, 920, 917, 921, 916, 912, 911, 924,
921, 914, 923, 923, 925, 915, 926, 926, 928, 919,
927, 927, 929, 930, 930, 918, 931, 931, 924, 928,
932, 934, 935, 935, 946, 925, 934, 936, 936, 937,
937, 929, 938, 939, 939, 941, 941, 938, 932, 943,
943, 944, 947, 947, 948, 951, 944, 952, 962, 948,
958, 952, 956, 956, 958, 960, 960, 963, 963, 964,
964, 966, 966, 972, 951, 962, 968, 968, 973, 974,
976, 975, 977, 977, 945, 942, 940, 973, 933, 922,
909, 906, 972, 974, 975, 905, 901, 895, 976, 980,
980, 980, 980, 980, 980, 981, 981, 981, 981, 981,
981, 982, 982, 982, 982, 982, 982, 983, 983, 983,
983, 983, 983, 985, 985, 885, 985, 985, 985, 986,
986, 884, 874, 872, 986, 987, 987, 869, 862, 987,
989, 989, 854, 847, 841, 989, 990, 990, 837, 990,
990, 990, 831, 830, 829, 816, 798, 797, 795, 789,
787, 785, 783, 781, 780, 765, 763, 758, 735, 724,
711, 702, 671, 665, 664, 663, 660, 658, 630, 610,
589, 580, 566, 565, 544, 535, 524, 523, 522, 500,
480, 466, 434, 411, 388, 380, 371, 336, 306, 305,
303, 302, 297, 220, 214, 103, 102, 100, 98, 96,
55, 51, 47, 46, 42, 37, 12, 11, 979, 979,
979, 979, 979, 979, 979, 979, 979, 979, 979, 979,
979, 979, 979, 979, 979, 979, 979, 979, 979, 979,
979, 979, 979, 979, 979, 979, 979, 979, 979, 979,
979, 979, 979, 979, 979, 979, 979
} ;
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 1315 "<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 1501 "<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 >= 980 )
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] != 2009 );
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_TARGET_FETCH_POLICY;}
YY_BREAK
case 39:
YY_RULE_SETUP
#line 146 "util/configlexer.lex"
{ YDOUT; return VAR_HARDEN_SHORT_BUFSIZE;}
YY_BREAK
case 40:
YY_RULE_SETUP
#line 147 "util/configlexer.lex"
{ YDOUT; return VAR_HARDEN_LARGE_QUERIES;}
YY_BREAK
case 41:
YY_RULE_SETUP
#line 148 "util/configlexer.lex"
{ YDOUT; return VAR_HARDEN_GLUE;}
YY_BREAK
case 42:
YY_RULE_SETUP
#line 149 "util/configlexer.lex"
{ YDOUT; return VAR_HARDEN_DNNSEC_STRIPPED;}
YY_BREAK
case 43:
YY_RULE_SETUP
#line 150 "util/configlexer.lex"
{ YDOUT; return VAR_HARDEN_REFERRAL_PATH;}
YY_BREAK
case 44:
YY_RULE_SETUP
#line 151 "util/configlexer.lex"
{ YDOUT; return VAR_USE_CAPS_FOR_ID;}
YY_BREAK
case 45:
YY_RULE_SETUP
#line 152 "util/configlexer.lex"
{ YDOUT; return VAR_PRIVATE_ADDRESS;}
YY_BREAK
case 46:
YY_RULE_SETUP
#line 153 "util/configlexer.lex"
{ YDOUT; return VAR_PRIVATE_DOMAIN;}
YY_BREAK
case 47:
YY_RULE_SETUP
#line 154 "util/configlexer.lex"
{ YDOUT; return VAR_STUB_ZONE;}
YY_BREAK
case 48:
YY_RULE_SETUP
#line 155 "util/configlexer.lex"
{ YDOUT; return VAR_NAME;}
YY_BREAK
case 49:
YY_RULE_SETUP
#line 156 "util/configlexer.lex"
{ YDOUT; return VAR_STUB_ADDR;}
YY_BREAK
case 50:
YY_RULE_SETUP
#line 157 "util/configlexer.lex"
{ YDOUT; return VAR_STUB_HOST;}
YY_BREAK
case 51:
YY_RULE_SETUP
#line 158 "util/configlexer.lex"
{ YDOUT; return VAR_FORWARD_ZONE;}
YY_BREAK
case 52:
YY_RULE_SETUP
#line 159 "util/configlexer.lex"
{ YDOUT; return VAR_FORWARD_ADDR;}
YY_BREAK
case 53:
YY_RULE_SETUP
#line 160 "util/configlexer.lex"
{ YDOUT; return VAR_FORWARD_HOST;}
YY_BREAK
case 54:
YY_RULE_SETUP
#line 161 "util/configlexer.lex"
{ YDOUT; return VAR_DO_NOT_QUERY_ADDRESS;}
YY_BREAK
case 55:
YY_RULE_SETUP
#line 162 "util/configlexer.lex"
{ YDOUT; return VAR_DO_NOT_QUERY_LOCALHOST;}
YY_BREAK
case 56:
YY_RULE_SETUP
#line 163 "util/configlexer.lex"
{ YDOUT; return VAR_ACCESS_CONTROL;}
YY_BREAK
case 57:
YY_RULE_SETUP
#line 164 "util/configlexer.lex"
{ YDOUT; return VAR_HIDE_IDENTITY;}
YY_BREAK
case 58:
YY_RULE_SETUP
#line 165 "util/configlexer.lex"
{ YDOUT; return VAR_HIDE_VERSION;}
YY_BREAK
case 59:
YY_RULE_SETUP
#line 166 "util/configlexer.lex"
{ YDOUT; return VAR_IDENTITY;}
YY_BREAK
case 60:
YY_RULE_SETUP
#line 167 "util/configlexer.lex"
{ YDOUT; return VAR_VERSION;}
YY_BREAK
case 61:
YY_RULE_SETUP
#line 168 "util/configlexer.lex"
{ YDOUT; return VAR_MODULE_CONF;}
YY_BREAK
case 62:
YY_RULE_SETUP
#line 169 "util/configlexer.lex"
{ YDOUT; return VAR_DLV_ANCHOR;}
YY_BREAK
case 63:
YY_RULE_SETUP
#line 170 "util/configlexer.lex"
{ YDOUT; return VAR_DLV_ANCHOR_FILE;}
YY_BREAK
case 64:
YY_RULE_SETUP
#line 171 "util/configlexer.lex"
{ YDOUT; return VAR_TRUST_ANCHOR_FILE;}
YY_BREAK
case 65:
YY_RULE_SETUP
#line 172 "util/configlexer.lex"
{ YDOUT; return VAR_TRUSTED_KEYS_FILE;}
YY_BREAK
case 66:
YY_RULE_SETUP
#line 173 "util/configlexer.lex"
{ YDOUT; return VAR_TRUST_ANCHOR;}
YY_BREAK
case 67:
YY_RULE_SETUP
#line 174 "util/configlexer.lex"
{ YDOUT; return VAR_VAL_OVERRIDE_DATE;}
YY_BREAK
case 68:
YY_RULE_SETUP
#line 175 "util/configlexer.lex"
{ YDOUT; return VAR_BOGUS_TTL;}
YY_BREAK
case 69:
YY_RULE_SETUP
#line 176 "util/configlexer.lex"
{ YDOUT; return VAR_VAL_CLEAN_ADDITIONAL;}
YY_BREAK
case 70:
YY_RULE_SETUP
#line 177 "util/configlexer.lex"
{ YDOUT; return VAR_VAL_PERMISSIVE_MODE;}
YY_BREAK
case 71:
YY_RULE_SETUP
#line 178 "util/configlexer.lex"
{ YDOUT; return VAR_KEY_CACHE_SIZE;}
YY_BREAK
case 72:
YY_RULE_SETUP
#line 179 "util/configlexer.lex"
{ YDOUT; return VAR_KEY_CACHE_SLABS;}
YY_BREAK
case 73:
YY_RULE_SETUP
#line 180 "util/configlexer.lex"
{ YDOUT; return VAR_NEG_CACHE_SIZE;}
YY_BREAK
case 74:
YY_RULE_SETUP
#line 181 "util/configlexer.lex"
{ YDOUT; return VAR_VAL_NSEC3_KEYSIZE_ITERATIONS;}
YY_BREAK
case 75:
YY_RULE_SETUP
#line 182 "util/configlexer.lex"
{ YDOUT; return VAR_USE_SYSLOG;}
YY_BREAK
case 76:
YY_RULE_SETUP
#line 183 "util/configlexer.lex"
{ YDOUT; return VAR_LOCAL_ZONE;}
YY_BREAK
case 77:
YY_RULE_SETUP
#line 184 "util/configlexer.lex"
{ YDOUT; return VAR_LOCAL_DATA;}
YY_BREAK
case 78:
YY_RULE_SETUP
#line 185 "util/configlexer.lex"
{ YDOUT; return VAR_LOCAL_DATA_PTR;}
YY_BREAK
case 79:
YY_RULE_SETUP
#line 186 "util/configlexer.lex"
{ YDOUT; return VAR_STATISTICS_INTERVAL;}
YY_BREAK
case 80:
YY_RULE_SETUP
#line 187 "util/configlexer.lex"
{ YDOUT; return VAR_STATISTICS_CUMULATIVE;}
YY_BREAK
case 81:
YY_RULE_SETUP
#line 188 "util/configlexer.lex"
{ YDOUT; return VAR_EXTENDED_STATISTICS;}
YY_BREAK
case 82:
YY_RULE_SETUP
#line 189 "util/configlexer.lex"
{ YDOUT; return VAR_REMOTE_CONTROL; }
YY_BREAK
case 83:
YY_RULE_SETUP
#line 190 "util/configlexer.lex"
{ YDOUT; return VAR_CONTROL_ENABLE; }
YY_BREAK
case 84:
YY_RULE_SETUP
#line 191 "util/configlexer.lex"
{ YDOUT; return VAR_CONTROL_INTERFACE; }
YY_BREAK
case 85:
YY_RULE_SETUP
#line 192 "util/configlexer.lex"
{ YDOUT; return VAR_CONTROL_PORT; }
YY_BREAK
case 86:
YY_RULE_SETUP
#line 193 "util/configlexer.lex"
{ YDOUT; return VAR_SERVER_KEY_FILE; }
YY_BREAK
case 87:
YY_RULE_SETUP
#line 194 "util/configlexer.lex"
{ YDOUT; return VAR_SERVER_CERT_FILE; }
YY_BREAK
case 88:
YY_RULE_SETUP
#line 195 "util/configlexer.lex"
{ YDOUT; return VAR_CONTROL_KEY_FILE; }
YY_BREAK
case 89:
YY_RULE_SETUP
#line 196 "util/configlexer.lex"
{ YDOUT; return VAR_CONTROL_CERT_FILE; }
YY_BREAK
case 90:
/* rule 90 can match eol */
YY_RULE_SETUP
#line 197 "util/configlexer.lex"
{ LEXOUT(("NL\n")); cfg_parser->line++;}
YY_BREAK
/* Quoted strings. Strip leading and ending quotes */
case 91:
YY_RULE_SETUP
#line 200 "util/configlexer.lex"
{ BEGIN(quotedstring); LEXOUT(("QS ")); }
YY_BREAK
case YY_STATE_EOF(quotedstring):
#line 201 "util/configlexer.lex"
{
yyerror("EOF inside quoted string");
BEGIN(INITIAL);
}
YY_BREAK
case 92:
YY_RULE_SETUP
#line 205 "util/configlexer.lex"
{ LEXOUT(("STR(%s) ", yytext)); yymore(); }
YY_BREAK
case 93:
/* rule 93 can match eol */
YY_RULE_SETUP
#line 206 "util/configlexer.lex"
{ cfg_parser->line++; yymore(); }
YY_BREAK
case 94:
YY_RULE_SETUP
#line 207 "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 95:
YY_RULE_SETUP
#line 218 "util/configlexer.lex"
{ BEGIN(singlequotedstr); LEXOUT(("SQS ")); }
YY_BREAK
case YY_STATE_EOF(singlequotedstr):
#line 219 "util/configlexer.lex"
{
yyerror("EOF inside quoted string");
BEGIN(INITIAL);
}
YY_BREAK
case 96:
YY_RULE_SETUP
#line 223 "util/configlexer.lex"
{ LEXOUT(("STR(%s) ", yytext)); yymore(); }
YY_BREAK
case 97:
/* rule 97 can match eol */
YY_RULE_SETUP
#line 224 "util/configlexer.lex"
{ cfg_parser->line++; yymore(); }
YY_BREAK
case 98:
YY_RULE_SETUP
#line 225 "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 99:
YY_RULE_SETUP
#line 236 "util/configlexer.lex"
{ LEXOUT(("v(%s) ", yytext)); BEGIN(include); }
YY_BREAK
case YY_STATE_EOF(include):
#line 237 "util/configlexer.lex"
{
yyerror("EOF inside include directive");
BEGIN(INITIAL);
}
YY_BREAK
case 100:
YY_RULE_SETUP
#line 241 "util/configlexer.lex"
{ LEXOUT(("ISP ")); /* ignore */ }
YY_BREAK
case 101:
/* rule 101 can match eol */
YY_RULE_SETUP
#line 242 "util/configlexer.lex"
{ LEXOUT(("NL\n")); cfg_parser->line++;}
YY_BREAK
case 102:
YY_RULE_SETUP
#line 243 "util/configlexer.lex"
{ LEXOUT(("IQS ")); BEGIN(include_quoted); }
YY_BREAK
case 103:
YY_RULE_SETUP
#line 244 "util/configlexer.lex"
{
LEXOUT(("Iunquotedstr(%s) ", yytext));
config_start_include(yytext);
BEGIN(INITIAL);
}
YY_BREAK
case YY_STATE_EOF(include_quoted):
#line 249 "util/configlexer.lex"
{
yyerror("EOF inside quoted string");
BEGIN(INITIAL);
}
YY_BREAK
case 104:
YY_RULE_SETUP
#line 253 "util/configlexer.lex"
{ LEXOUT(("ISTR(%s) ", yytext)); yymore(); }
YY_BREAK
case 105:
/* rule 105 can match eol */
YY_RULE_SETUP
#line 254 "util/configlexer.lex"
{ cfg_parser->line++; yymore(); }
YY_BREAK
case 106:
YY_RULE_SETUP
#line 255 "util/configlexer.lex"
{
LEXOUT(("IQE "));
yytext[yyleng - 1] = '\0';
config_start_include(yytext);
BEGIN(INITIAL);
}
YY_BREAK
case YY_STATE_EOF(INITIAL):
#line 261 "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 107:
YY_RULE_SETUP
#line 271 "util/configlexer.lex"
{ LEXOUT(("unquotedstr(%s) ", yytext));
yylval.str = strdup(yytext); return STRING; }
YY_BREAK
case 108:
YY_RULE_SETUP
#line 274 "util/configlexer.lex"
ECHO;
YY_BREAK
#line 2204 "<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 >= 980 )
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 >= 980 )
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 == 979);
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 274 "util/configlexer.lex"