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
Sebastian Schrader
Kea
Commits
39031919
Commit
39031919
authored
Feb 01, 2017
by
Francis Dupont
Browse files
[master] regen flex/bison files using flex 2.6.3
parent
7e1ef0b2
Changes
8
Show whitespace changes
Inline
Side-by-side
src/bin/dhcp4/dhcp4_lexer.cc
View file @
39031919
#line
2
"dhcp4_lexer.cc"
#line
1
"dhcp4_lexer.cc"
#line
4
"dhcp4_lexer.cc"
#line
3
"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
...
...
@@ -36,7 +35,7 @@
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 6
#define YY_FLEX_SUBMINOR_VERSION
1
#define YY_FLEX_SUBMINOR_VERSION
3
#if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA
#endif
...
...
@@ -45,11 +44,88 @@
/* %endif */
/* %if-c-only */
#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_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 yylex parser4_lex
#define yyrestart parser4_restart
#define yylex_init parser4_lex_init
#define yylex_init_extra parser4_lex_init_extra
#define yylex_destroy parser4_lex_destroy
#define yyget_debug parser4_get_debug
#define yyset_debug parser4_set_debug
#define yyget_extra parser4_get_extra
#define yyset_extra parser4_set_extra
#define yyget_in parser4_get_in
#define yyset_in parser4_set_in
#define yyget_out parser4_get_out
#define yyset_out parser4_set_out
#define yyget_leng parser4_get_leng
#define yyget_text parser4_get_text
#define yyget_lineno parser4_get_lineno
#define yyset_lineno parser4_set_lineno
#define yywrap parser4_wrap
/* %endif */
#define yyalloc parser4_alloc
#define yyrealloc parser4_realloc
#define yyfree parser4_free
/* %if-c-only */
#define yytext parser4_text
#define yyleng parser4_leng
#define yyin parser4_in
#define yyout parser4_out
#define yy_flex_debug parser4__flex_debug
#define yylineno parser4_lineno
/* %endif */
/* First, we deal with platform-specific or compiler-specific issues. */
...
...
@@ -146,19 +222,15 @@ 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 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.
/* Promotes a possibly negative, possibly signed char to an
* integer in range [0..255] for use as an array index.
*/
#define YY_SC_TO_UI(c) ((
unsigned int) (unsigned char) c
)
#define YY_SC_TO_UI(c) ((
YY_CHAR) (c)
)
/* %ok-for-header */
/* %if-reentrant */
...
...
@@ -173,20 +245,16 @@ 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 parser4_restart(parser4_in )
#define YY_END_OF_BUFFER_CHAR 0
/* Size of default input buffer. */
...
...
@@ -246,7 +314,6 @@ extern FILE *parser4_in, *parser4_out;
YY_DO_BEFORE_ACTION;
/* set up parser4_text again */
\
} \
while ( 0 )
#define unput(c) yyunput( c, (yytext_ptr) )
#ifndef YY_STRUCT_YY_BUFFER_STATE
...
...
@@ -321,7 +388,6 @@ struct yy_buffer_state
/* %if-c-only Standard (non-C++) definition */
/* %not-for-header */
/* %if-not-reentrant */
/* Stack of input buffers. */
...
...
@@ -342,7 +408,6 @@ 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.
*/
...
...
@@ -352,7 +417,6 @@ 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 parser4_text is formed. */
static
char
yy_hold_char
;
static
int
yy_n_chars
;
/* number of characters read into yy_ch_buf */
...
...
@@ -371,32 +435,30 @@ static int yy_did_buffer_switch_on_eof;
/* %endif */
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
);
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
);
#define YY_FLUSH_BUFFER parser4__flush_buffer(YY_CURRENT_BUFFER )
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
);
YY_BUFFER_STATE
parser4__scan_buffer
(
char
*
base
,
yy_size_t
size
);
YY_BUFFER_STATE
parser4__scan_string
(
const
char
*
yy_str
);
YY_BUFFER_STATE
parser4__scan_bytes
(
const
char
*
bytes
,
int
len
);
/* %endif */
void
*
parser4_alloc
(
yy_size_t
);
void
*
parser4_realloc
(
void
*
,
yy_size_t
);
void
parser4_free
(
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_set_interactive(is_interactive) \
{ \
if ( ! YY_CURRENT_BUFFER ){ \
...
...
@@ -406,7 +468,6 @@ void parser4_free (void * );
} \
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
}
#define yy_set_bol(at_bol) \
{ \
if ( ! YY_CURRENT_BUFFER ){\
...
...
@@ -416,7 +477,6 @@ void parser4_free (void * );
} \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
}
#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
/* %% [1.0] parser4_text/parser4_in/parser4_out/yy_state_type/parser4_lineno etc. def's & init go here */
...
...
@@ -426,15 +486,13 @@ void parser4_free (void * );
#define YY_SKIP_YYWRAP
#define FLEX_DEBUG
typedef
unsigned
char
YY_CHAR
;
typedef
flex_uint8_t
YY_CHAR
;
FILE
*
parser4_in
=
NULL
,
*
parser4_out
=
NULL
;
typedef
int
yy_state_type
;
extern
int
parser4_lineno
;
int
parser4_lineno
=
1
;
extern
char
*
parser4_text
;
...
...
@@ -447,10 +505,10 @@ extern char *parser4_text;
/* %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
(
yy
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
(
const
char
*
msg
);
/* %endif */
...
...
@@ -465,7 +523,6 @@ static void yynoreturn yy_fatal_error (yyconst char* msg );
*yy_cp = '\0'; \
/* %% [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 141
#define YY_END_OF_BUFFER 142
...
...
@@ -476,7 +533,7 @@ struct yy_trans_info
flex_int32_t
yy_verify
;
flex_int32_t
yy_nxt
;
};
static
yy
const
flex_int16_t
yy_accept
[
1161
]
=
static
const
flex_int16_t
yy_accept
[
1161
]
=
{
0
,
134
,
134
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
142
,
140
,
10
,
11
,
140
,
1
,
134
,
131
,
134
,
134
,
...
...
@@ -607,7 +664,7 @@ static yyconst flex_int16_t yy_accept[1161] =
0
,
0
,
0
,
0
,
0
,
51
,
0
,
0
,
79
,
0
}
;
static
yy
const
YY_CHAR
yy_ec
[
256
]
=
static
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
,
...
...
@@ -639,7 +696,7 @@ static yyconst YY_CHAR yy_ec[256] =
5
,
5
,
5
,
5
,
5
}
;
static
yy
const
YY_CHAR
yy_meta
[
72
]
=
static
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
,
...
...
@@ -651,7 +708,7 @@ static yyconst YY_CHAR yy_meta[72] =
3
}
;
static
yy
const
flex_
u
int16_t
yy_base
[
1173
]
=
static
const
flex_int16_t
yy_base
[
1173
]
=
{
0
,
0
,
70
,
19
,
29
,
41
,
49
,
52
,
58
,
87
,
95
,
1523
,
1524
,
32
,
1519
,
141
,
0
,
201
,
1524
,
206
,
88
,
...
...
@@ -784,7 +841,7 @@ static yyconst flex_uint16_t yy_base[1173] =
1000
,
1013
}
;
static
yy
const
flex_int16_t
yy_def
[
1173
]
=
static
const
flex_int16_t
yy_def
[
1173
]
=
{
0
,
1161
,
1161
,
1162
,
1162
,
1161
,
1161
,
1161
,
1161
,
1161
,
1161
,
1160
,
1160
,
1160
,
1160
,
1160
,
1163
,
1160
,
1160
,
1160
,
1160
,
...
...
@@ -917,7 +974,7 @@ static yyconst flex_int16_t yy_def[1173] =
1160
,
1160
}
;
static
yy
const
flex_
u
int16_t
yy_nxt
[
1596
]
=
static
const
flex_int16_t
yy_nxt
[
1596
]
=
{
0
,
1160
,
13
,
14
,
13
,
1160
,
15
,
16
,
1160
,
17
,
18
,
19
,
20
,
21
,
22
,
22
,
22
,
23
,
24
,
84
,
589
,
...
...
@@ -1097,7 +1154,7 @@ static yyconst flex_uint16_t yy_nxt[1596] =
}
;
static
yy
const
flex_int16_t
yy_chk
[
1596
]
=
static
const
flex_int16_t
yy_chk
[
1596
]
=
{
0
,
0
,
1
,
1
,
1
,
0
,
1
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
21
,
518
,
...
...
@@ -1283,23 +1340,23 @@ static char *yy_last_accepting_cpos;
extern
int
parser4__flex_debug
;
int
parser4__flex_debug
=
1
;
static
yy
const
flex_int16_t
yy_rule_linenum
[
141
]
=
static
const
flex_int16_t
yy_rule_linenum
[
141
]
=
{
0
,
13
0
,
132
,
13
4
,
13
9
,
140
,
14
5
,
146
,
147
,
1
59
,
16
2
,
16
7
,
17
4
,
18
3
,
19
2
,
20
1
,
21
0
,
22
0
,
2
29
,
23
8
,
24
7
,
25
6
,
26
7
,
27
6
,
28
5
,
29
4
,
30
3
,
31
3
,
32
3
,
33
3
,
34
3
,
35
3
,
36
3
,
37
3
,
38
3
,
39
3
,
40
2
,
41
1
,
42
0
,
43
4
,
4
49
,
45
8
,
46
7
,
47
6
,
48
5
,
49
4
,
50
3
,
51
2
,
52
1
,
53
0
,
5
39
,
5
49
,
55
8
,
56
7
,
57
6
,
58
5
,
59
4
,
60
3
,
61
2
,
62
2
,
63
2
,
64
2
,
65
1
,
66
1
,
67
1
,
68
1
,
69
1
,
70
0
,
71
0
,
7
19
,
72
8
,
73
7
,
74
6
,
75
5
,
76
5
,
77
5
,
78
4
,
79
3
,
80
2
,
81
1
,
82
0
,
8
29
,
83
8
,
84
7
,
85
6
,
86
5
,
87
4
,
88
3
,
89
2
,
90
1
,
91
0
,
9
19
,
92
8
,
93
7
,
94
6
,
95
5
,
96
4
,
97
3
,
98
2
,
99
1
,
100
0
,
100
9
,
101
8
,
102
7
,
103
6
,
104
6
,
105
6
,
106
6
,
107
6
,
108
6
,
109
6
,
110
6
,
111
6
,
112
6
,
113
5
,
114
4
,
115
3
,
116
2
,
117
1
,
118
1
,
119
1
,
120
3
,
121
4
,
122
7
,
132
5
,
133
0
,
133
5
,
1340
,
1341
,
1342
,
1343
,
134
4
,
134
5
,
134
7
,
136
5
,
137
8
,
138
3
,
138
7
,
13
8
9
,
139
1
,
139
3
13
1
,
13
3
,
13
5
,
140
,
14
1
,
146
,
147
,
1
48
,
16
0
,
163
,
16
8
,
17
5
,
18
4
,
19
3
,
20
2
,
21
1
,
22
1
,
2
30
,
23
9
,
24
8
,
25
7
,
26
8
,
27
7
,
28
6
,
29
5
,
30
4
,
31
4
,
32
4
,
33
4
,
34
4
,
35
4
,
36
4
,
37
4
,
38
4
,
39
4
,
40
3
,
41
2
,
42
1
,
43
5
,
4
50
,
45
9
,
46
8
,
47
7
,
48
6
,
49
5
,
50
4
,
51
3
,
52
2
,
53
1
,
5
40
,
5
50
,
55
9
,
56
8
,
57
7
,
58
6
,
59
5
,
60
4
,
61
3
,
62
3
,
63
3
,
64
3
,
65
2
,
66
2
,
67
2
,
68
2
,
69
2
,
70
1
,
71
1
,
7
20
,
72
9
,
73
8
,
74
7
,
75
6
,
76
6
,
77
6
,
78
5
,
79
4
,
80
3
,
81
2
,
82
1
,
8
30
,
83
9
,
84
8
,
85
7
,
86
6
,
87
5
,
88
4
,
89
3
,
90
2
,
91
1
,
9
20
,
92
9
,
93
8
,
94
7
,
95
6
,
96
5
,
97
4
,
98
3
,
99
2
,
100
1
,
10
1
0
,
101
9
,
102
8
,
103
7
,
104
7
,
105
7
,
106
7
,
107
7
,
108
7
,
109
7
,
110
7
,
111
7
,
112
7
,
113
6
,
114
5
,
115
4
,
116
3
,
117
2
,
118
2
,
119
2
,
120
4
,
121
5
,
122
8
,
132
6
,
133
1
,
133
6
,
1341
,
1342
,
1343
,
1344
,
134
5
,
134
6
,
134
8
,
136
6
,
137
9
,
138
4
,
138
8
,
139
0
,
139
2
,
139
4
}
;
/* The intent behind this definition is that it'll catch
...
...
@@ -1330,8 +1387,8 @@ char *parser4_text;
// 2.5.31 through 2.5.33): it generates code that does
// not conform to C89. See Debian bug 333231
// <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=333231>.
# undef
parser4_
wrap
# define
parser4_
wrap() 1
# undef
yy
wrap
# define
yy
wrap() 1
namespace
{
...
...
@@ -1344,9 +1401,10 @@ unsigned int comment_start_line = 0;
// To avoid the call to exit... oops!
#define YY_FATAL_ERROR(msg) isc::dhcp::Parser4Context::fatal(msg)
#line 1404 "dhcp4_lexer.cc"
/* noyywrap disables automatic rewinding for the next file to parse. Since we
always parse only a single string, there's no need to do any wraps. And
using
parser4_
wrap requires linking with -lfl, which provides the default
parser4_
wrap
using
yy
wrap requires linking with -lfl, which provides the default
yy
wrap
implementation that always returns 1 anyway. */
/* nounput simplifies the lexer, by removing support for putting a character
back into the input stream. We never use such capability anyway. */
...
...
@@ -1354,23 +1412,23 @@ unsigned int comment_start_line = 0;
/* avoid to get static global variables to remain with C++. */
/* in last resort %option reentrant */
/* Enables debug mode. To see the debug messages, one needs to also set
parser4_
_flex_debug to 1, then the debug messages will be printed on stderr. */
yy
_flex_debug to 1, then the debug messages will be printed on stderr. */
/* I have no idea what this option does, except it was specified in the bison
examples and Postgres folks added it to remove gcc 4.3 warnings. Let's
be on the safe side and keep it. */
#define YY_NO_INPUT 1
/* These are not token expressions yet, just convenience expressions that
can be used during actual token definitions. Note some can match
incorrect inputs (e.g., IP addresses) which must be checked. */
/* for errors */
#line 86 "dhcp4_lexer.ll"
// This code run each time a pattern is matched. It updates the location
// by moving it ahead by
parser4_
leng bytes.
parser4_
leng specifies the length of the
// by moving it ahead by
yy
leng bytes.
yy
leng specifies the length of the
// currently matched token.
#define YY_USER_ACTION driver.loc_.columns(parser4_leng);
#line 1374 "dhcp4_lexer.cc"
#define YY_USER_ACTION driver.loc_.columns(yyleng);
#line 1430 "dhcp4_lexer.cc"
#line 1431 "dhcp4_lexer.cc"
#define INITIAL 0
#define COMMENT 1
...
...
@@ -1398,7 +1456,7 @@ unsigned int comment_start_line = 0;
/* %if-reentrant */
/* %if-c-only */
static
int
yy_init_globals
(
void
);
static
int
yy_init_globals
(
void
);
/* %endif */
/* %if-reentrant */
...
...
@@ -1408,31 +1466,31 @@ static int yy_init_globals (void );
/* Accessor methods to globals.
These are made visible to non-reentrant scanners for convenience. */
int
parser4_lex_destroy
(
void
);
int
parser4_lex_destroy
(
void
);
int
parser4_get_debug
(
void
);
int
parser4_get_debug
(
void
);
void
parser4_set_debug
(
int
debug_flag
);
void
parser4_set_debug
(
int
debug_flag
);
YY_EXTRA_TYPE
parser4_get_extra
(
void
);
YY_EXTRA_TYPE
parser4_get_extra
(
void
);
void
parser4_set_extra
(
YY_EXTRA_TYPE
user_defined
);
void
parser4_set_extra
(
YY_EXTRA_TYPE
user_defined
);
FILE
*
parser4_get_in
(
void
);
FILE
*
parser4_get_in
(
void
);
void
parser4_set_in
(
FILE
*
_in_str
);
void
parser4_set_in
(
FILE
*
_in_str
);
FILE
*
parser4_get_out
(
void
);
FILE
*
parser4_get_out
(
void
);
void
parser4_set_out
(
FILE
*
_out_str
);
void
parser4_set_out
(
FILE
*
_out_str
);
int
parser4_get_leng
(
void
);
int
parser4_get_leng
(
void
);
char
*
parser4_get_text
(
void
);
char
*
parser4_get_text
(
void
);
int
parser4_get_lineno
(
void
);
int
parser4_get_lineno
(
void
);
void
parser4_set_lineno
(
int
_line_number
);
void
parser4_set_lineno
(
int
_line_number
);
/* %if-bison-bridge */
/* %endif */
...
...
@@ -1443,14 +1501,13 @@ void parser4_set_lineno (int _line_number );
#ifndef YY_SKIP_YYWRAP
#ifdef __cplusplus
extern
"C"
int
parser4_wrap
(
void
);
extern
"C"
int
parser4_wrap
(
void
);
#else
extern
int
parser4_wrap
(
void
);
extern
int
parser4_wrap
(
void
);
#endif
#endif
/* %not-for-header */
#ifndef YY_NO_UNPUT
#endif
...
...
@@ -1459,21 +1516,20 @@ extern int parser4_wrap (void );
/* %endif */
#ifndef yytext_ptr
static
void
yy_flex_strncpy
(
char
*
,
yy
const
char
*
,
int
);
static
void
yy_flex_strncpy
(
char
*
,
const
char
*
,
int
);
#endif
#ifdef YY_NEED_STRLEN
static
int
yy_flex_strlen
(
yy
const
char
*
);
static
int
yy_flex_strlen
(
const
char
*
);
#endif
#ifndef YY_NO_INPUT
/* %if-c-only Standard (non-C++) definition */
/* %not-for-header */
#ifdef __cplusplus
static
int
yyinput
(
void
);
static
int
yyinput
(
void
);
#else
static
int
input
(
void
);
static
int
input
(
void
);
#endif
/* %ok-for-header */
...
...
@@ -1515,7 +1571,7 @@ static int input (void );
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
{ \
int c = '*'; \
size_
t n; \
in
t n; \
for ( n = 0; n < max_size && \
(c = getc( parser4_in )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \
...
...
@@ -1528,7 +1584,7 @@ static int input (void );
else \
{ \
errno=0; \
while ( (result = (int) fread(buf, 1, max_size, parser4_in))==0 && ferror(parser4_in)) \
while ( (result = (int) fread(buf, 1,
(yy_size_t)
max_size, parser4_in))
==
0 && ferror(parser4_in)) \
{ \
if( errno != EINTR) \
{ \
...
...
@@ -1569,11 +1625,9 @@ static int input (void );
/* %if-tables-serialization structures and prototypes */
/* %not-for-header */
/* %ok-for-header */
/* %not-for-header */
/* %tables-yydmap generated elements */
/* %endif */
/* end tables serialization structures and prototypes */
...
...
@@ -1612,7 +1666,6 @@ extern int parser4_lex (void);
YY_USER_ACTION
/* %not-for-header */
/** The main scanner function which does all the work.
*/
YY_DECL
...
...
@@ -1661,11 +1714,12 @@ YY_DECL
#line 96 "dhcp4_lexer.ll"
// This part of the code is copied over to the verbatim to the top
// of the generated
parser4_
lex function. Explanation:
// of the generated
yy
lex function. Explanation:
// http://www.gnu.org/software/bison/manual/html_node/Multiple-start_002dsymbols.html
// Code run each time
parser4_
lex is called.
// Code run each time
yy
lex is called.
driver
.
loc_
.
step
();
if
(
start_token_flag
)
{
...
...
@@ -1696,7 +1750,7 @@ YY_DECL
}
#line 17
00
"dhcp4_lexer.cc"
#line 17
53
"dhcp4_lexer.cc"
while
(
/*CONSTCOND*/
1
)
/* loops until end-of-file is reached */
{
...
...
@@ -1726,9 +1780,9 @@ yy_match:
{
yy_current_state
=
(
int
)
yy_def
[
yy_current_state
];
if
(
yy_current_state
>=
1161
)
yy_c
=
yy_meta
[
(
unsigned
int
)
yy_c
];
yy_c
=
yy_meta
[
yy_c
];
}
yy_current_state
=
yy_nxt
[
yy_base
[
yy_current_state
]
+
(
flex_int16_t
)
yy_c
];
yy_current_state
=
yy_nxt
[
yy_base
[
yy_current_state
]
+
yy_c
];
++
yy_cp
;
}
while
(
yy_current_state
!=
1160
);
...
...
@@ -1774,17 +1828,17 @@ do_action: /* This label is used only to access EOF actions. */
case
1
:
YY_RULE_SETUP
#line 13
0
"dhcp4_lexer.ll"
#line 13
1
"dhcp4_lexer.ll"
;
YY_BREAK
case
2
:
YY_RULE_SETUP
#line 13
2
"dhcp4_lexer.ll"
#line 13
3
"dhcp4_lexer.ll"
;
YY_BREAK
case
3
:
YY_RULE_SETUP
#line 13
4
"dhcp4_lexer.ll"
#line 13
5
"dhcp4_lexer.ll"
{
BEGIN
(
COMMENT
);
comment_start_line
=
driver
.
loc_
.
end
.
line
;;
...
...
@@ -1792,38 +1846,38 @@ YY_RULE_SETUP
YY_BREAK
case
4
:
YY_RULE_SETUP
#line 1
39
"dhcp4_lexer.ll"