Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
502e6483
Commit
502e6483
authored
Sep 04, 2017
by
Tomek Mrugalski
🛰
Browse files
[5350] Parsers regenerated.
parent
eb57dac1
Changes
12
Hide whitespace changes
Inline
Side-by-side
src/bin/dhcp4/dhcp4_lexer.cc
View file @
502e6483
#line
1
"dhcp4_lexer.cc"
#line
2
"dhcp4_lexer.cc"
#line
3
"dhcp4_lexer.cc"
#line
4
"dhcp4_lexer.cc"
#define YY_INT_ALIGNED short int
/* A lexical scanner generated by flex */
/* %not-for-header */
/* %if-c-only */
/* %if-not-reentrant */
#define yy_create_buffer parser4__create_buffer
#define yy_delete_buffer parser4__delete_buffer
#define yy_scan_buffer parser4__scan_buffer
#define yy_scan_string parser4__scan_string
#define yy_scan_bytes parser4__scan_bytes
#define yy_flex_debug parser4__flex_debug
#define yy_init_buffer parser4__init_buffer
#define yy_flush_buffer parser4__flush_buffer
#define yy_load_buffer_state parser4__load_buffer_state
#define yy_switch_to_buffer parser4__switch_to_buffer
#define yypush_buffer_state parser4_push_buffer_state
#define yypop_buffer_state parser4_pop_buffer_state
#define yyensure_buffer_stack parser4_ensure_buffer_stack
#define yy_flex_debug parser4__flex_debug
#define yyin parser4_in
#define yyleng parser4_leng
#define yylex parser4_lex
...
...
@@ -41,7 +36,7 @@
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 6
#define YY_FLEX_SUBMINOR_VERSION
4
#define YY_FLEX_SUBMINOR_VERSION
1
#if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA
#endif
...
...
@@ -50,244 +45,11 @@
/* %endif */
/* %if-c-only */
#ifdef yy_create_buffer
#define parser4__create_buffer_ALREADY_DEFINED
#else
#define yy_create_buffer parser4__create_buffer
#endif
#ifdef yy_delete_buffer
#define parser4__delete_buffer_ALREADY_DEFINED
#else
#define yy_delete_buffer parser4__delete_buffer
#endif
#ifdef yy_scan_buffer
#define parser4__scan_buffer_ALREADY_DEFINED
#else
#define yy_scan_buffer parser4__scan_buffer
#endif
#ifdef yy_scan_string
#define parser4__scan_string_ALREADY_DEFINED
#else
#define yy_scan_string parser4__scan_string
#endif
#ifdef yy_scan_bytes
#define parser4__scan_bytes_ALREADY_DEFINED
#else
#define yy_scan_bytes parser4__scan_bytes
#endif
#ifdef yy_init_buffer
#define parser4__init_buffer_ALREADY_DEFINED
#else
#define yy_init_buffer parser4__init_buffer
#endif
#ifdef yy_flush_buffer
#define parser4__flush_buffer_ALREADY_DEFINED
#else
#define yy_flush_buffer parser4__flush_buffer
#endif
#ifdef yy_load_buffer_state
#define parser4__load_buffer_state_ALREADY_DEFINED
#else
#define yy_load_buffer_state parser4__load_buffer_state
#endif
#ifdef yy_switch_to_buffer
#define parser4__switch_to_buffer_ALREADY_DEFINED
#else
#define yy_switch_to_buffer parser4__switch_to_buffer
#endif
#ifdef yypush_buffer_state
#define parser4_push_buffer_state_ALREADY_DEFINED
#else
#define yypush_buffer_state parser4_push_buffer_state
#endif
#ifdef yypop_buffer_state
#define parser4_pop_buffer_state_ALREADY_DEFINED
#else
#define yypop_buffer_state parser4_pop_buffer_state
#endif
#ifdef yyensure_buffer_stack
#define parser4_ensure_buffer_stack_ALREADY_DEFINED
#else
#define yyensure_buffer_stack parser4_ensure_buffer_stack
#endif
#ifdef yylex
#define parser4_lex_ALREADY_DEFINED
#else
#define yylex parser4_lex
#endif
#ifdef yyrestart
#define parser4_restart_ALREADY_DEFINED
#else
#define yyrestart parser4_restart
#endif
#ifdef yylex_init
#define parser4_lex_init_ALREADY_DEFINED
#else
#define yylex_init parser4_lex_init
#endif
#ifdef yylex_init_extra
#define parser4_lex_init_extra_ALREADY_DEFINED
#else
#define yylex_init_extra parser4_lex_init_extra
#endif
#ifdef yylex_destroy
#define parser4_lex_destroy_ALREADY_DEFINED
#else
#define yylex_destroy parser4_lex_destroy
#endif
#ifdef yyget_debug
#define parser4_get_debug_ALREADY_DEFINED
#else
#define yyget_debug parser4_get_debug
#endif
#ifdef yyset_debug
#define parser4_set_debug_ALREADY_DEFINED
#else
#define yyset_debug parser4_set_debug
#endif
#ifdef yyget_extra
#define parser4_get_extra_ALREADY_DEFINED
#else
#define yyget_extra parser4_get_extra
#endif
#ifdef yyset_extra
#define parser4_set_extra_ALREADY_DEFINED
#else
#define yyset_extra parser4_set_extra
#endif
#ifdef yyget_in
#define parser4_get_in_ALREADY_DEFINED
#else
#define yyget_in parser4_get_in
#endif
#ifdef yyset_in
#define parser4_set_in_ALREADY_DEFINED
#else
#define yyset_in parser4_set_in
#endif
#ifdef yyget_out
#define parser4_get_out_ALREADY_DEFINED
#else
#define yyget_out parser4_get_out
#endif
#ifdef yyset_out
#define parser4_set_out_ALREADY_DEFINED
#else
#define yyset_out parser4_set_out
#endif
#ifdef yyget_leng
#define parser4_get_leng_ALREADY_DEFINED
#else
#define yyget_leng parser4_get_leng
#endif
#ifdef yyget_text
#define parser4_get_text_ALREADY_DEFINED
#else
#define yyget_text parser4_get_text
#endif
#ifdef yyget_lineno
#define parser4_get_lineno_ALREADY_DEFINED
#else
#define yyget_lineno parser4_get_lineno
#endif
#ifdef yyset_lineno
#define parser4_set_lineno_ALREADY_DEFINED
#else
#define yyset_lineno parser4_set_lineno
#endif
#ifdef yywrap
#define parser4_wrap_ALREADY_DEFINED
#else
#define yywrap parser4_wrap
#endif
/* %endif */
#ifdef yyalloc
#define parser4_alloc_ALREADY_DEFINED
#else
#define yyalloc parser4_alloc
#endif
#ifdef yyrealloc
#define parser4_realloc_ALREADY_DEFINED
#else
#define yyrealloc parser4_realloc
#endif
#ifdef yyfree
#define parser4_free_ALREADY_DEFINED
#else
#define yyfree parser4_free
#endif
/* %if-c-only */
#ifdef yytext
#define parser4_text_ALREADY_DEFINED
#else
#define yytext parser4_text
#endif
#ifdef yyleng
#define parser4_leng_ALREADY_DEFINED
#else
#define yyleng parser4_leng
#endif
#ifdef yyin
#define parser4_in_ALREADY_DEFINED
#else
#define yyin parser4_in
#endif
#ifdef yyout
#define parser4_out_ALREADY_DEFINED
#else
#define yyout parser4_out
#endif
#ifdef yy_flex_debug
#define parser4__flex_debug_ALREADY_DEFINED
#else
#define yy_flex_debug parser4__flex_debug
#endif
#ifdef yylineno
#define parser4_lineno_ALREADY_DEFINED
#else
#define yylineno parser4_lineno
#endif
/* %endif */
/* First, we deal with platform-specific or compiler-specific issues. */
...
...
@@ -365,17 +127,12 @@ typedef unsigned int flex_uint32_t;
#define UINT32_MAX (4294967295U)
#endif
#ifndef SIZE_MAX
#define SIZE_MAX (~(size_t)0)
#endif
#endif
/* ! C99 */
#endif
/* ! FLEXINT_H */
/* %endif */
/* begin standard C++ headers. */
/* %if-c++-only */
/* %endif */
...
...
@@ -389,15 +146,19 @@ typedef unsigned int flex_uint32_t;
#endif
/* %not-for-header */
/* Returned upon end-of-file. */
#define YY_NULL 0
/* %ok-for-header */
/* %not-for-header */
/* Promotes a possibly negative, possibly signed char to an
* integer in range [0..255] for use as an array index.
/* 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) ((
YY_CHAR) (c)
)
#define YY_SC_TO_UI(c) ((
unsigned int) (unsigned char) c
)
/* %ok-for-header */
/* %if-reentrant */
...
...
@@ -412,16 +173,20 @@ typedef unsigned int flex_uint32_t;
* 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_NEW_FILE parser4_restart(parser4_in )
#define YY_END_OF_BUFFER_CHAR 0
/* Size of default input buffer. */
...
...
@@ -452,19 +217,19 @@ typedef size_t yy_size_t;
#endif
/* %if-not-reentrant */
extern
int
yy
leng
;
extern
int
parser4_
leng
;
/* %endif */
/* %if-c-only */
/* %if-not-reentrant */
extern
FILE
*
yyin
,
*
yy
out
;
extern
FILE
*
parser4_in
,
*
parser4_
out
;
/* %endif */
/* %endif */
#define EOB_ACT_CONTINUE_SCAN 0
#define EOB_ACT_END_OF_FILE 1
#define EOB_ACT_LAST_MATCH 2
#define YY_LESS_LINENO(n)
#define YY_LINENO_REWIND_TO(ptr)
...
...
@@ -472,15 +237,16 @@ extern FILE *yyin, *yyout;
#define yyless(n) \
do \
{ \
/* Undo effects of setting up
yy
text. */
\
/* Undo effects of setting up
parser4_
text. */
\
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
yy
text again */
\
YY_DO_BEFORE_ACTION;
/* set up
parser4_
text again */
\
} \
while ( 0 )
#define unput(c) yyunput( c, (yytext_ptr) )
#ifndef YY_STRUCT_YY_BUFFER_STATE
...
...
@@ -545,8 +311,8 @@ struct yy_buffer_state
* possible backing-up.
*
* When we actually see the EOF, we change the status to "new"
* (via
yy
restart()), so that the user can continue scanning by
* just pointing
yy
in at a new input file.
* (via
parser4_
restart()), so that the user can continue scanning by
* just pointing
parser4_
in at a new input file.
*/
#define YY_BUFFER_EOF_PENDING 2
...
...
@@ -555,6 +321,7 @@ struct yy_buffer_state
/* %if-c-only Standard (non-C++) definition */
/* %not-for-header */
/* %if-not-reentrant */
/* Stack of input buffers. */
...
...
@@ -575,6 +342,7 @@ static YY_BUFFER_STATE * yy_buffer_stack = NULL; /**< Stack as an array. */
#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.
*/
...
...
@@ -584,112 +352,120 @@ static YY_BUFFER_STATE * yy_buffer_stack = NULL; /**< Stack as an array. */
/* %if-not-reentrant */
/* %not-for-header */
/* yy_hold_char holds the character lost when yytext is formed. */
/* yy_hold_char holds the character lost when parser4_text is formed. */
static
char
yy_hold_char
;
static
int
yy_n_chars
;
/* number of characters read into yy_ch_buf */
int
yy
leng
;
int
parser4_
leng
;
/* Points to current character in buffer. */
static
char
*
yy_c_buf_p
=
NULL
;
static
int
yy_init
=
0
;
/* whether we need to initialize */
static
int
yy_start
=
0
;
/* start state number */
/* Flag which is used to allow
yy
wrap()'s to do buffer switches
* instead of setting up a fresh
yy
in. A bit of a hack ...
/* Flag which is used to allow
parser4_
wrap()'s to do buffer switches
* instead of setting up a fresh
parser4_
in. A bit of a hack ...
*/
static
int
yy_did_buffer_switch_on_eof
;
/* %ok-for-header */
/* %endif */
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
);
void
parser4_restart
(
FILE
*
input_file
);
void
parser4__switch_to_buffer
(
YY_BUFFER_STATE
new_buffer
);
YY_BUFFER_STATE
parser4__create_buffer
(
FILE
*
file
,
int
size
);
void
parser4__delete_buffer
(
YY_BUFFER_STATE
b
);
void
parser4__flush_buffer
(
YY_BUFFER_STATE
b
);
void
parser4_push_buffer_state
(
YY_BUFFER_STATE
new_buffer
);
void
parser4_pop_buffer_state
(
void
);
static
void
parser4_ensure_buffer_stack
(
void
);
static
void
parser4__load_buffer_state
(
void
);
static
void
parser4__init_buffer
(
YY_BUFFER_STATE
b
,
FILE
*
file
);
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 )
#define YY_FLUSH_BUFFER parser4__flush_buffer(YY_CURRENT_BUFFER )
YY_BUFFER_STATE
yy
_scan_buffer
(
char
*
base
,
yy_size_t
size
);
YY_BUFFER_STATE
yy
_scan_string
(
const
char
*
yy_str
);
YY_BUFFER_STATE
yy
_scan_bytes
(
const
char
*
bytes
,
int
len
);
YY_BUFFER_STATE
parser4_
_scan_buffer
(
char
*
base
,
yy_size_t
size
);
YY_BUFFER_STATE
parser4_
_scan_string
(
yy
const
char
*
yy_str
);
YY_BUFFER_STATE
parser4_
_scan_bytes
(
yy
const
char
*
bytes
,
int
len
);
/* %endif */
void
*
yyalloc
(
yy_size_t
);
void
*
yyrealloc
(
void
*
,
yy_size_t
);
void
yyfree
(
void
*
);
void
*
parser4_alloc
(
yy_size_t
);
void
*
parser4_realloc
(
void
*
,
yy_size_t
);
void
parser4_free
(
void
*
);
#define yy_new_buffer parser4__create_buffer
#define yy_new_buffer yy_create_buffer
#define yy_set_interactive(is_interactive) \
{ \
if ( ! YY_CURRENT_BUFFER ){ \
yy
ensure_buffer_stack (); \
parser4_
ensure_buffer_stack (); \
YY_CURRENT_BUFFER_LVALUE = \
yy
_create_buffer(
yy
in,
YY_BUF_SIZE ); \
parser4_
_create_buffer(
parser4_
in,YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
}
#define yy_set_bol(at_bol) \
{ \
if ( ! YY_CURRENT_BUFFER ){\
yy
ensure_buffer_stack (); \
parser4_
ensure_buffer_stack (); \
YY_CURRENT_BUFFER_LVALUE = \
yy
_create_buffer(
yy
in,
YY_BUF_SIZE ); \
parser4_
_create_buffer(
parser4_
in,YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
}
#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
/* %% [1.0]
yytext/yyin/yy
out/yy_state_type/
yy
lineno etc. def's & init go here */
/* %% [1.0]
parser4_text/parser4_in/parser4_
out/yy_state_type/
parser4_
lineno etc. def's & init go here */
/* Begin user sect3 */
#define parser4_wrap() (
/*CONSTCOND*/
1)
#define YY_SKIP_YYWRAP
#define FLEX_DEBUG
typedef
flex_uint8_t
YY_CHAR
;
FILE
*
yyin
=
NULL
,
*
yyout
=
NULL
;
typedef
unsigned
char
YY_CHAR
;
FILE
*
parser4_in
=
NULL
,
*
parser4_out
=
NULL
;
typedef
int
yy_state_type
;
extern
int
yylineno
;
int
yylineno
=
1
;
extern
int
parser4_lineno
;
int
parser4_lineno
=
1
;
extern
char
*
yy
text
;
extern
char
*
parser4_
text
;
#ifdef yytext_ptr
#undef yytext_ptr
#endif
#define yytext_ptr
yy
text
#define yytext_ptr
parser4_
text
/* %% [1.5] DFA */
/* %if-c-only Standard (non-C++) definition */
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
yynoreturn
yy_fatal_error
(
const
char
*
msg
);
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
yynoreturn
yy_fatal_error
(
yy
const
char
*
msg
);
/* %endif */
/* Done after the current pattern has been matched and before the
* corresponding action - sets up
yy
text.
* corresponding action - sets up
parser4_
text.
*/
#define YY_DO_BEFORE_ACTION \
(yytext_ptr) = yy_bp; \
/* %% [2.0] code to fiddle
yy
text and
yy
leng for yymore() goes here \ */
\
yy
leng = (int) (yy_cp - yy_bp); \
/* %% [2.0] code to fiddle
parser4_
text and
parser4_
leng for yymore() goes here \ */
\
parser4_
leng = (int) (yy_cp - yy_bp); \
(yy_hold_char) = *yy_cp; \
*yy_cp = '\0'; \
/* %% [3.0] code to copy yytext_ptr to
yy
text[] goes here, if %array \ */
\
/* %% [3.0] code to copy yytext_ptr to
parser4_
text[] goes here, if %array \ */
\
(yy_c_buf_p) = yy_cp;
/* %% [4.0] data tables for the DFA and the user's section 1 definitions go here */
#define YY_NUM_RULES 154
#define YY_END_OF_BUFFER 155
...
...
@@ -700,7 +476,7 @@ struct yy_trans_info
flex_int32_t
yy_verify
;
flex_int32_t
yy_nxt
;
};
static
const
flex_int16_t
yy_accept
[
1231
]
=
static
yy
const
flex_int16_t
yy_accept
[
1231
]
=
{
0
,
147
,
147
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
155
,
153
,
10
,
11
,
153
,
1
,
147
,
144
,
147
,
147
,
...
...
@@ -839,7 +615,7 @@ static const flex_int16_t yy_accept[1231] =
0
,
0
,
0
,
0
,
0
,
60
,
0
,
0
,
92
,
0
}
;
static
const
YY_CHAR
yy_ec
[
256
]
=
static
yy
const
YY_CHAR
yy_ec
[
256
]
=
{
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
2
,
3
,
1
,
1
,
2
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
...
...
@@ -871,7 +647,7 @@ static const YY_CHAR yy_ec[256] =
5
,
5
,
5
,
5
,
5
}
;
static
const
YY_CHAR
yy_meta
[
72
]
=
static
yy
const
YY_CHAR
yy_meta
[
72
]
=
{
0
,
1
,
1
,
2
,
3
,
3
,
4
,
3
,
3
,
3
,
3
,
3
,
3
,
3
,
5
,
5
,
5
,
3
,
3
,
3
,
3
,
...
...
@@ -883,7 +659,7 @@ static const YY_CHAR yy_meta[72] =
3
}
;
static
const
flex_int16_t
yy_base
[
1243
]
=
static
yy
const
flex_
u
int16_t
yy_base
[
1243
]
=
{
0
,
0
,
70
,
19
,
29
,
41
,
49
,
52
,
58
,
87
,
95
,
1593
,
1594
,
32
,
1589
,
141
,
0
,
201
,
1594
,
206
,
88
,
...
...
@@ -1024,7 +800,7 @@ static const flex_int16_t yy_base[1243] =
1070
,
1083
}
;
static
const
flex_int16_t
yy_def
[
1243
]
=
static
yy
const
flex_int16_t
yy_def
[
1243
]
=
{
0
,
1231
,
1231
,
1232
,
1232
,
1231
,
1231
,
1231
,
1231
,
1231
,
1231
,
1230
,
1230
,
1230
,
1230
,
1230
,
1233
,
1230
,
1230
,
1230
,
1230
,
...
...
@@ -1165,7 +941,7 @@ static const flex_int16_t yy_def[1243] =
1230
,
1230
}
;
static
const
flex_int16_t
yy_nxt
[
1666
]
=
static
yy
const
flex_
u
int16_t
yy_nxt
[
1666
]
=
{
0
,
1230
,
13
,
14
,
13
,
1230
,
15
,
16
,
1230
,
17
,
18
,
19
,
20
,
21
,
22
,
22
,
22
,
23
,
24
,
86
,
340
,
...
...
@@ -1352,7 +1128,7 @@ static const flex_int16_t yy_nxt[1666] =
1230
,
1230
,
1230
,
1230
,
1230
}
;
static
const
flex_int16_t
yy_chk
[
1666
]
=
static
yy
const
flex_int16_t
yy_chk
[
1666
]
=
{
0
,
0
,
1
,
1
,
1
,
0
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
21
,
242
,
...
...
@@ -1542,16 +1318,16 @@ static const flex_int16_t yy_chk[1666] =
static
yy_state_type
yy_last_accepting_state
;
static
char
*
yy_last_accepting_cpos
;
extern
int
yy
_flex_debug
;
int
yy
_flex_debug
=
1
;
extern
int
parser4_
_flex_debug
;
int
parser4_
_flex_debug
=
1
;