"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "zlexer.c" between
nsd-4.3.5.tar.gz and nsd-4.3.6.tar.gz

About: NSD is an authoritative only, high performance, simple name server daemon.

zlexer.c  (nsd-4.3.5):zlexer.c  (nsd-4.3.6)
skipping to change at line 356 skipping to change at line 356
/* Done after the current pattern has been matched and before the /* Done after the current pattern has been matched and before the
* corresponding action - sets up yytext. * corresponding action - sets up yytext.
*/ */
#define YY_DO_BEFORE_ACTION \ #define YY_DO_BEFORE_ACTION \
(yytext_ptr) = yy_bp; \ (yytext_ptr) = yy_bp; \
(yytext_ptr) -= (yy_more_len); \ (yytext_ptr) -= (yy_more_len); \
yyleng = (int) (yy_cp - (yytext_ptr)); \ yyleng = (int) (yy_cp - (yytext_ptr)); \
(yy_hold_char) = *yy_cp; \ (yy_hold_char) = *yy_cp; \
*yy_cp = '\0'; \ *yy_cp = '\0'; \
(yy_c_buf_p) = yy_cp; (yy_c_buf_p) = yy_cp;
#define YY_NUM_RULES 26 #define YY_NUM_RULES 25
#define YY_END_OF_BUFFER 27 #define YY_END_OF_BUFFER 26
/* This struct is not used in this scanner, /* This struct is not used in this scanner,
but its presence is necessary. */ but its presence is necessary. */
struct yy_trans_info struct yy_trans_info
{ {
flex_int32_t yy_verify; flex_int32_t yy_verify;
flex_int32_t yy_nxt; flex_int32_t yy_nxt;
}; };
static const flex_int16_t yy_accept[74] = static const flex_int16_t yy_accept[70] =
{ 0, { 0,
0, 0, 0, 0, 16, 16, 20, 20, 27, 24, 0, 0, 0, 0, 16, 16, 20, 20, 26, 23,
14, 11, 11, 19, 25, 12, 13, 8, 1, 9, 14, 11, 11, 19, 24, 12, 13, 8, 1, 9,
24, 25, 6, 5, 16, 17, 16, 18, 20, 21, 23, 24, 6, 5, 16, 17, 16, 18, 20, 21,
23, 26, 24, 24, 14, 1, 1, 24, 24, 10, 22, 25, 23, 23, 14, 1, 1, 23, 23, 10,
15, 24, 7, 7, 7, 7, 6, 16, 16, 16, 15, 23, 7, 7, 7, 7, 6, 16, 16, 16,
16, 20, 0, 22, 0, 24, 24, 7, 7, 7, 16, 20, 0, 23, 23, 7, 7, 7, 7, 7,
22, 0, 7, 7, 2, 7, 7, 7, 7, 7, 2, 7, 7, 7, 7, 7, 3, 4, 0
3, 4, 0
} ; } ;
static const YY_CHAR yy_ec[256] = static const YY_CHAR yy_ec[256] =
{ 0, { 0,
1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
1, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 2, 1, 5, 6, 7, 1, 1, 1, 8, 1, 2, 1, 5, 6, 7, 1, 1, 1, 8,
9, 1, 1, 1, 1, 10, 1, 1, 1, 1, 9, 1, 1, 1, 1, 10, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 1,
skipping to change at line 411 skipping to change at line 410
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 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 const YY_CHAR yy_meta[39] = static const YY_CHAR yy_meta[39] =
{ 0, { 0,
1, 2, 3, 4, 5, 1, 1, 4, 4, 4, 1, 2, 3, 2, 4, 1, 1, 2, 2, 2,
4, 1, 6, 6, 6, 6, 6, 6, 6, 6, 2, 1, 5, 5, 5, 5, 5, 5, 5, 5,
6, 6, 6, 6, 1, 1, 7, 6, 6, 6, 5, 5, 5, 5, 1, 1, 6, 5, 5, 5,
6, 6, 6, 6, 6, 6, 6, 6 5, 5, 5, 5, 5, 5, 5, 5
} ; } ;
static const flex_int16_t yy_base[89] = static const flex_int16_t yy_base[83] =
{ 0, { 0,
0, 25, 124, 123, 12, 14, 16, 17, 125, 94, 0, 25, 115, 114, 12, 14, 16, 17, 116, 89,
12, 244, 244, 244, 244, 244, 244, 244, 0, 93, 12, 218, 218, 218, 218, 218, 218, 218, 0, 88,
50, 59, 0, 244, 92, 244, 18, 244, 91, 244, 50, 59, 0, 218, 87, 218, 18, 218, 86, 218,
87, 107, 85, 95, 14, 0, 0, 84, 82, 81, 218, 106, 84, 95, 14, 0, 0, 82, 81, 76,
66, 120, 0, 28, 27, 27, 0, 64, 20, 63, 75, 120, 0, 28, 27, 27, 0, 64, 20, 63,
39, 59, 79, 57, 65, 42, 0, 41, 39, 53, 39, 59, 63, 5, 0, 43, 49, 50, 51, 55,
5, 76, 54, 57, 0, 55, 77, 85, 81, 86, 0, 49, 56, 63, 59, 79, 0, 0, 218, 146,
0, 0, 244, 146, 153, 160, 167, 174, 181, 188, 152, 158, 164, 170, 176, 182, 1, 188, 194, 199,
0, 195, 202, 208, 215, 222, 229, 236 205, 211
} ; } ;
static const flex_int16_t yy_def[89] = static const flex_int16_t yy_def[83] =
{ 0, { 0,
74, 74, 75, 75, 76, 76, 77, 77, 73, 78, 70, 70, 71, 71, 72, 72, 73, 73, 69, 74,
73, 73, 73, 73, 73, 73, 73, 73, 79, 78, 69, 69, 69, 69, 69, 69, 69, 69, 75, 74,
80, 81, 82, 73, 83, 73, 84, 73, 85, 73, 76, 77, 78, 69, 79, 69, 80, 69, 81, 69,
86, 85, 78, 87, 73, 79, 79, 78, 78, 78, 69, 81, 74, 82, 69, 75, 75, 74, 74, 74,
78, 87, 81, 81, 81, 81, 82, 83, 84, 83, 74, 82, 77, 77, 77, 77, 78, 79, 80, 79,
84, 85, 85, 88, 86, 78, 42, 81, 81, 81, 80, 81, 81, 74, 42, 77, 77, 77, 77, 77,
88, 88, 81, 81, 81, 81, 81, 81, 81, 81, 77, 77, 77, 77, 77, 77, 77, 77, 0, 69,
81, 81, 0, 73, 73, 73, 73, 73, 73, 73, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69,
73, 73, 73, 73, 73, 73, 73, 73 69, 69
} ; } ;
static const flex_int16_t yy_nxt[283] = static const flex_int16_t yy_nxt[257] =
{ 0, { 0,
73, 11, 12, 13, 14, 43, 15, 16, 17, 18, 69, 11, 12, 13, 14, 43, 15, 16, 17, 18,
19, 20, 73, 35, 26, 35, 26, 73, 30, 30, 19, 20, 69, 35, 26, 35, 26, 69, 30, 30,
31, 31, 36, 73, 36, 21, 11, 12, 13, 14, 31, 31, 36, 69, 36, 21, 11, 12, 13, 14,
62, 22, 16, 17, 18, 19, 20, 27, 28, 27, 34, 22, 16, 17, 18, 19, 20, 27, 28, 27,
28, 32, 32, 51, 48, 51, 48, 58, 59, 60, 28, 32, 32, 51, 48, 51, 48, 56, 57, 58,
21, 39, 39, 39, 63, 40, 64, 39, 39, 39, 21, 39, 39, 39, 39, 40, 59, 39, 39, 39,
39, 58, 59, 60, 51, 48, 54, 34, 63, 54, 39, 56, 57, 58, 51, 48, 60, 52, 61, 62,
64, 65, 66, 67, 41, 42, 44, 61, 68, 45, 59, 63, 64, 65, 41, 42, 44, 66, 67, 45,
61, 46, 62, 52, 53, 65, 66, 67, 49, 49, 60, 46, 61, 62, 53, 63, 64, 65, 49, 49,
44, 34, 68, 45, 69, 46, 33, 33, 33, 70, 44, 66, 67, 45, 68, 46, 33, 33, 33, 33,
71, 72, 33, 33, 33, 33, 34, 34, 69, 34, 34, 34, 33, 33, 33, 33, 34, 34, 68, 34,
34, 52, 55, 70, 71, 72, 53, 49, 34, 34, 52, 53, 49, 34, 34, 69, 24, 24, 69, 69,
57, 33, 33, 33, 73, 24, 24, 33, 33, 33, 55, 33, 33, 33, 33, 69, 69, 33, 33, 33,
33, 73, 73, 73, 73, 73, 73, 73, 73, 73, 33, 69, 69, 69, 69, 69, 69, 69, 69, 69,
73, 73, 73, 73, 73, 57, 10, 10, 10, 10, 69, 69, 69, 69, 69, 55, 10, 10, 10, 10,
10, 10, 10, 23, 23, 23, 23, 23, 23, 23, 10, 10, 23, 23, 23, 23, 23, 23, 25, 25,
25, 25, 25, 25, 25, 25, 25, 29, 29, 29, 25, 25, 25, 25, 29, 29, 29, 29, 29, 29,
29, 29, 29, 29, 33, 73, 73, 73, 33, 33, 33, 69, 69, 69, 33, 33, 37, 37, 69, 37,
33, 37, 37, 73, 37, 37, 37, 37, 38, 38, 37, 37, 38, 38, 38, 38, 38, 38, 47, 47,
38, 38, 38, 38, 38, 47, 47, 73, 47, 47, 69, 47, 47, 47, 48, 48, 69, 48, 48, 50,
47, 47, 48, 48, 73, 48, 48, 48, 50, 50, 50, 69, 50, 50, 50, 52, 52, 69, 69, 52,
73, 50, 50, 50, 50, 52, 52, 73, 52, 73, 52, 54, 54, 54, 54, 54, 54, 9, 69, 69,
52, 52, 54, 73, 73, 54, 73, 54, 54, 56, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69,
56, 56, 56, 56, 56, 56, 61, 73, 73, 61, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69,
73, 61, 61, 9, 73, 73, 73, 73, 73, 73, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69,
73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 69, 69, 69, 69, 69, 69
73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
73, 73
} ; } ;
static const flex_int16_t yy_chk[283] = static const flex_int16_t yy_chk[257] =
{ 0, { 0,
0, 1, 1, 1, 1, 81, 1, 1, 1, 1, 0, 1, 1, 1, 1, 77, 1, 1, 1, 1,
1, 1, 0, 11, 5, 35, 6, 0, 7, 8, 1, 1, 0, 11, 5, 35, 6, 0, 7, 8,
7, 8, 11, 0, 35, 1, 2, 2, 2, 2, 7, 8, 11, 0, 35, 1, 2, 2, 2, 2,
61, 2, 2, 2, 2, 2, 2, 5, 5, 6, 54, 2, 2, 2, 2, 2, 2, 5, 5, 6,
6, 7, 8, 27, 27, 49, 49, 44, 45, 46, 6, 7, 8, 27, 27, 49, 49, 44, 45, 46,
2, 21, 21, 21, 58, 21, 59, 21, 21, 21, 2, 21, 21, 21, 21, 21, 56, 21, 21, 21,
21, 44, 45, 46, 51, 51, 55, 56, 58, 55, 21, 44, 45, 46, 51, 51, 57, 53, 58, 59,
59, 60, 63, 64, 21, 21, 22, 62, 66, 22, 56, 60, 62, 63, 21, 21, 22, 64, 65, 22,
62, 22, 54, 53, 52, 60, 63, 64, 50, 48, 57, 22, 58, 59, 52, 60, 62, 63, 50, 48,
22, 41, 66, 22, 67, 22, 34, 34, 34, 68, 22, 64, 65, 22, 66, 22, 34, 34, 34, 34,
69, 70, 34, 34, 34, 34, 40, 39, 67, 38, 41, 40, 34, 34, 34, 34, 39, 38, 66, 33,
33, 32, 31, 68, 69, 70, 29, 25, 20, 10, 32, 29, 25, 20, 10, 9, 4, 3, 0, 0,
34, 42, 42, 42, 9, 4, 3, 42, 42, 42, 34, 42, 42, 42, 42, 0, 0, 42, 42, 42,
42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 42, 74, 74, 74, 74, 0, 0, 0, 0, 0, 42, 70, 70, 70, 70,
74, 74, 74, 75, 75, 75, 75, 75, 75, 75, 70, 70, 71, 71, 71, 71, 71, 71, 72, 72,
76, 76, 76, 76, 76, 76, 76, 77, 77, 77, 72, 72, 72, 72, 73, 73, 73, 73, 73, 73,
77, 77, 77, 77, 78, 0, 0, 0, 78, 78, 74, 0, 0, 0, 74, 74, 75, 75, 0, 75,
78, 79, 79, 0, 79, 79, 79, 79, 80, 80, 75, 75, 76, 76, 76, 76, 76, 76, 78, 78,
80, 80, 80, 80, 80, 82, 82, 0, 82, 82, 0, 78, 78, 78, 79, 79, 0, 79, 79, 80,
82, 82, 83, 83, 0, 83, 83, 83, 84, 84, 80, 0, 80, 80, 80, 81, 81, 0, 0, 81,
0, 84, 84, 84, 84, 85, 85, 0, 85, 0, 81, 82, 82, 82, 82, 82, 82, 69, 69, 69,
85, 85, 86, 0, 0, 86, 0, 86, 86, 87, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69,
87, 87, 87, 87, 87, 87, 88, 0, 0, 88, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69,
0, 88, 88, 73, 73, 73, 73, 73, 73, 73, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69,
73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 69, 69, 69, 69, 69, 69
73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
73, 73
} ; } ;
static yy_state_type yy_last_accepting_state; static yy_state_type yy_last_accepting_state;
static char *yy_last_accepting_cpos; static char *yy_last_accepting_cpos;
extern int yy_flex_debug; extern int yy_flex_debug;
int yy_flex_debug = 0; int yy_flex_debug = 0;
/* The intent behind this definition is that it'll catch /* The intent behind this definition is that it'll catch
* any uses of REJECT which flex missed. * any uses of REJECT which flex missed.
skipping to change at line 646 skipping to change at line 639
#ifndef yy_set_bol /* compat definition, for flex 2.4.6 */ #ifndef yy_set_bol /* compat definition, for flex 2.4.6 */
#define yy_set_bol(at_bol) \ #define yy_set_bol(at_bol) \
{ \ { \
if ( ! yy_current_buffer ) \ if ( ! yy_current_buffer ) \
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ) ; \ yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ) ; \
yy_current_buffer->yy_ch_buf[0] = ((at_bol)?'\n':' '); \ yy_current_buffer->yy_ch_buf[0] = ((at_bol)?'\n':' '); \
} }
#endif #endif
#line 645 "<stdout>" #line 638 "<stdout>"
#define YY_NO_INPUT 1 #define YY_NO_INPUT 1
#line 121 "zlexer.lex" #line 121 "zlexer.lex"
#ifndef YY_NO_UNPUT #ifndef YY_NO_UNPUT
#define YY_NO_UNPUT 1 #define YY_NO_UNPUT 1
#endif #endif
#ifndef YY_NO_INPUT #ifndef YY_NO_INPUT
#define YY_NO_INPUT 1 #define YY_NO_INPUT 1
#endif #endif
#line 654 "<stdout>" #line 647 "<stdout>"
#line 656 "<stdout>" #line 649 "<stdout>"
#define INITIAL 0 #define INITIAL 0
#define incl 1 #define incl 1
#define bitlabel 2 #define bitlabel 2
#define quotedstring 3 #define quotedstring 3
#ifndef YY_NO_UNISTD_H #ifndef YY_NO_UNISTD_H
/* Special case for "unistd.h", since it is non-ANSI. We include it way /* 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. * 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. * The user has a chance to override it with an option.
skipping to change at line 878 skipping to change at line 871
if ( ! YY_CURRENT_BUFFER ) { if ( ! YY_CURRENT_BUFFER ) {
yyensure_buffer_stack (); yyensure_buffer_stack ();
YY_CURRENT_BUFFER_LVALUE = YY_CURRENT_BUFFER_LVALUE =
yy_create_buffer( yyin, YY_BUF_SIZE ); yy_create_buffer( yyin, YY_BUF_SIZE );
} }
yy_load_buffer_state( ); yy_load_buffer_state( );
} }
{ {
#line 144 "zlexer.lex" #line 143 "zlexer.lex"
#line 879 "<stdout>" #line 872 "<stdout>"
while ( /*CONSTCOND*/1 ) /* loops until end-of-file is rea ched */ while ( /*CONSTCOND*/1 ) /* loops until end-of-file is rea ched */
{ {
(yy_more_len) = 0; (yy_more_len) = 0;
if ( (yy_more_flag) ) if ( (yy_more_flag) )
{ {
(yy_more_len) = (int) ((yy_c_buf_p) - (yytext_ptr)); (yy_more_len) = (int) ((yy_c_buf_p) - (yytext_ptr));
(yy_more_flag) = 0; (yy_more_flag) = 0;
} }
yy_cp = (yy_c_buf_p); yy_cp = (yy_c_buf_p);
skipping to change at line 914 skipping to change at line 907
{ {
YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ; YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
if ( yy_accept[yy_current_state] ) if ( yy_accept[yy_current_state] )
{ {
(yy_last_accepting_state) = yy_current_state; (yy_last_accepting_state) = yy_current_state;
(yy_last_accepting_cpos) = yy_cp; (yy_last_accepting_cpos) = yy_cp;
} }
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_cu rrent_state ) while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_cu rrent_state )
{ {
yy_current_state = (int) yy_def[yy_current_state] ; yy_current_state = (int) yy_def[yy_current_state] ;
if ( yy_current_state >= 74 ) if ( yy_current_state >= 70 )
yy_c = yy_meta[yy_c]; yy_c = yy_meta[yy_c];
} }
yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_ c]; yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_ c];
++yy_cp; ++yy_cp;
} }
while ( yy_base[yy_current_state] != 244 ); while ( yy_base[yy_current_state] != 218 );
yy_find_action: yy_find_action:
yy_act = yy_accept[yy_current_state]; yy_act = yy_accept[yy_current_state];
if ( yy_act == 0 ) if ( yy_act == 0 )
{ /* have to back up */ { /* have to back up */
yy_cp = (yy_last_accepting_cpos); yy_cp = (yy_last_accepting_cpos);
yy_current_state = (yy_last_accepting_state); yy_current_state = (yy_last_accepting_state);
yy_act = yy_accept[yy_current_state]; yy_act = yy_accept[yy_current_state];
} }
skipping to change at line 946 skipping to change at line 939
{ /* beginning of action switch */ { /* beginning of action switch */
case 0: /* must back up */ case 0: /* must back up */
/* undo the effects of YY_DO_BEFORE_ACTION */ /* undo the effects of YY_DO_BEFORE_ACTION */
*yy_cp = (yy_hold_char); *yy_cp = (yy_hold_char);
yy_cp = (yy_last_accepting_cpos); yy_cp = (yy_last_accepting_cpos);
yy_current_state = (yy_last_accepting_state); yy_current_state = (yy_last_accepting_state);
goto yy_find_action; goto yy_find_action;
case 1: case 1:
YY_RULE_SETUP YY_RULE_SETUP
#line 145 "zlexer.lex" #line 144 "zlexer.lex"
/* ignore */ /* ignore */
YY_BREAK YY_BREAK
case 2: case 2:
YY_RULE_SETUP YY_RULE_SETUP
#line 146 "zlexer.lex" #line 145 "zlexer.lex"
{ lexer_state = PARSING_RDATA; return DOLLAR_TTL; } { lexer_state = PARSING_RDATA; return DOLLAR_TTL; }
YY_BREAK YY_BREAK
case 3: case 3:
YY_RULE_SETUP YY_RULE_SETUP
#line 147 "zlexer.lex" #line 146 "zlexer.lex"
{ lexer_state = PARSING_RDATA; return DOLLAR_ORIGIN; } { lexer_state = PARSING_RDATA; return DOLLAR_ORIGIN; }
YY_BREAK YY_BREAK
/* /*
* Handle $INCLUDE directives. See * Handle $INCLUDE directives. See
* http://dinosaur.compilertools.net/flex/flex_12.html#SEC12. * http://dinosaur.compilertools.net/flex/flex_12.html#SEC12.
*/ */
case 4: case 4:
YY_RULE_SETUP YY_RULE_SETUP
#line 153 "zlexer.lex" #line 152 "zlexer.lex"
{ {
BEGIN(incl); BEGIN(incl);
/* ignore case statement fallthrough on incl<EOF> flex rule */ /* ignore case statement fallthrough on incl<EOF> flex rule */
} }
YY_BREAK YY_BREAK
case 5: case 5:
/* rule 5 can match eol */ /* rule 5 can match eol */
#line 158 "zlexer.lex" #line 157 "zlexer.lex"
YY_RULE_SETUP YY_RULE_SETUP
case YY_STATE_EOF(incl): case YY_STATE_EOF(incl):
#line 158 "zlexer.lex" #line 157 "zlexer.lex"
{ {
int error_occurred = parser->error_occurred; int error_occurred = parser->error_occurred;
BEGIN(INITIAL); BEGIN(INITIAL);
zc_error("missing file name in $INCLUDE directive"); zc_error("missing file name in $INCLUDE directive");
yy_set_bol(1); /* Set beginning of line, so "^" rules match. */ yy_set_bol(1); /* Set beginning of line, so "^" rules match. */
++parser->line; ++parser->line;
parser->error_occurred = error_occurred; parser->error_occurred = error_occurred;
} }
YY_BREAK YY_BREAK
case 6: case 6:
YY_RULE_SETUP YY_RULE_SETUP
#line 166 "zlexer.lex" #line 165 "zlexer.lex"
{ {
char *tmp; char *tmp;
domain_type *origin = parser->origin; domain_type *origin = parser->origin;
int error_occurred = parser->error_occurred; int error_occurred = parser->error_occurred;
BEGIN(INITIAL); BEGIN(INITIAL);
if (include_stack_ptr >= MAXINCLUDES ) { if (include_stack_ptr >= MAXINCLUDES ) {
zc_error("includes nested too deeply, skipped (>%d)", zc_error("includes nested too deeply, skipped (>%d)",
MAXINCLUDES); MAXINCLUDES);
} else { } else {
skipping to change at line 1052 skipping to change at line 1045
parser->line = 1; parser->line = 1;
parser->origin = origin; parser->origin = origin;
lexer_state = EXPECT_OWNER; lexer_state = EXPECT_OWNER;
} }
} }
parser->error_occurred = error_occurred; parser->error_occurred = error_occurred;
} }
YY_BREAK YY_BREAK
case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(INITIAL):
#line 227 "zlexer.lex" #line 226 "zlexer.lex"
{ {
yy_set_bol(1); /* Set beginning of line, so "^" rules match. */ yy_set_bol(1); /* Set beginning of line, so "^" rules match. */
if (include_stack_ptr == 0) { if (include_stack_ptr == 0) {
yyterminate(); yyterminate();
} else { } else {
fclose(yyin); fclose(yyin);
pop_parser_state(); pop_parser_state();
} }
} }
YY_BREAK YY_BREAK
case 7: case 7:
YY_RULE_SETUP YY_RULE_SETUP
#line 236 "zlexer.lex" #line 235 "zlexer.lex"
{ zc_warning("Unknown directive: %s", yytext); } { zc_warning("Unknown directive: %s", yytext); }
YY_BREAK YY_BREAK
case 8: case 8:
YY_RULE_SETUP YY_RULE_SETUP
#line 237 "zlexer.lex" #line 236 "zlexer.lex"
{ {
LEXOUT((". ")); LEXOUT((". "));
return parse_token('.', yytext, &lexer_state); return parse_token('.', yytext, &lexer_state);
} }
YY_BREAK YY_BREAK
case 9: case 9:
YY_RULE_SETUP YY_RULE_SETUP
#line 241 "zlexer.lex" #line 240 "zlexer.lex"
{ {
LEXOUT(("@ ")); LEXOUT(("@ "));
return parse_token('@', yytext, &lexer_state); return parse_token('@', yytext, &lexer_state);
} }
YY_BREAK YY_BREAK
case 10: case 10:
YY_RULE_SETUP YY_RULE_SETUP
#line 245 "zlexer.lex" #line 244 "zlexer.lex"
{ {
LEXOUT(("\\# ")); LEXOUT(("\\# "));
return parse_token(URR, yytext, &lexer_state); return parse_token(URR, yytext, &lexer_state);
} }
YY_BREAK YY_BREAK
case 11: case 11:
/* rule 11 can match eol */ /* rule 11 can match eol */
YY_RULE_SETUP YY_RULE_SETUP
#line 249 "zlexer.lex" #line 248 "zlexer.lex"
{ {
++parser->line; ++parser->line;
if (!paren_open) { if (!paren_open) {
lexer_state = EXPECT_OWNER; lexer_state = EXPECT_OWNER;
LEXOUT(("NL\n")); LEXOUT(("NL\n"));
return NL; return NL;
} else { } else {
LEXOUT(("SP ")); LEXOUT(("SP "));
return SP; return SP;
} }
} }
YY_BREAK YY_BREAK
case 12: case 12:
YY_RULE_SETUP YY_RULE_SETUP
#line 260 "zlexer.lex" #line 259 "zlexer.lex"
{ {
if (paren_open) { if (paren_open) {
zc_error("nested parentheses"); zc_error("nested parentheses");
yyterminate(); yyterminate();
} }
LEXOUT(("( ")); LEXOUT(("( "));
paren_open = 1; paren_open = 1;
return SP; return SP;
} }
YY_BREAK YY_BREAK
case 13: case 13:
YY_RULE_SETUP YY_RULE_SETUP
#line 269 "zlexer.lex" #line 268 "zlexer.lex"
{ {
if (!paren_open) { if (!paren_open) {
zc_error("closing parentheses without opening parentheses"); zc_error("closing parentheses without opening parentheses");
yyterminate(); yyterminate();
} }
LEXOUT((") ")); LEXOUT((") "));
paren_open = 0; paren_open = 0;
return SP; return SP;
} }
YY_BREAK YY_BREAK
case 14: case 14:
YY_RULE_SETUP YY_RULE_SETUP
#line 278 "zlexer.lex" #line 277 "zlexer.lex"
{ {
if (!paren_open && lexer_state == EXPECT_OWNER) { if (!paren_open && lexer_state == EXPECT_OWNER) {
lexer_state = PARSING_TTL_CLASS_TYPE; lexer_state = PARSING_TTL_CLASS_TYPE;
LEXOUT(("PREV ")); LEXOUT(("PREV "));
return PREV; return PREV;
} }
if (lexer_state == PARSING_OWNER) { if (lexer_state == PARSING_OWNER) {
lexer_state = PARSING_TTL_CLASS_TYPE; lexer_state = PARSING_TTL_CLASS_TYPE;
} }
LEXOUT(("SP ")); LEXOUT(("SP "));
return SP; return SP;
} }
YY_BREAK YY_BREAK
/* Bitlabels. Strip leading and ending brackets. */ /* Bitlabels. Strip leading and ending brackets. */
case 15: case 15:
YY_RULE_SETUP YY_RULE_SETUP
#line 292 "zlexer.lex" #line 291 "zlexer.lex"
{ BEGIN(bitlabel); } { BEGIN(bitlabel); }
YY_BREAK YY_BREAK
case YY_STATE_EOF(bitlabel): case YY_STATE_EOF(bitlabel):
#line 293 "zlexer.lex" #line 292 "zlexer.lex"
{ {
zc_error("EOF inside bitlabel"); zc_error("EOF inside bitlabel");
BEGIN(INITIAL); BEGIN(INITIAL);
yyrestart(yyin); /* this is so that lex does not give an internal err */ yyrestart(yyin); /* this is so that lex does not give an internal err */
yyterminate(); yyterminate();
} }
YY_BREAK YY_BREAK
case 16: case 16:
YY_RULE_SETUP YY_RULE_SETUP
#line 299 "zlexer.lex" #line 298 "zlexer.lex"
{ yymore(); } { yymore(); }
YY_BREAK YY_BREAK
case 17: case 17:
/* rule 17 can match eol */ /* rule 17 can match eol */
YY_RULE_SETUP YY_RULE_SETUP
#line 300 "zlexer.lex" #line 299 "zlexer.lex"
{ ++parser->line; yymore(); } { ++parser->line; yymore(); }
YY_BREAK YY_BREAK
case 18: case 18:
YY_RULE_SETUP YY_RULE_SETUP
#line 301 "zlexer.lex" #line 300 "zlexer.lex"
{ {
BEGIN(INITIAL); BEGIN(INITIAL);
yytext[yyleng - 1] = '\0'; yytext[yyleng - 1] = '\0';
return parse_token(BITLAB, yytext, &lexer_state); return parse_token(BITLAB, yytext, &lexer_state);
} }
YY_BREAK YY_BREAK
/* Quoted strings. Strip leading and ending quotes. */ /* Quoted strings. Strip leading and ending quotes. */
case 19: case 19:
YY_RULE_SETUP YY_RULE_SETUP
#line 308 "zlexer.lex" #line 307 "zlexer.lex"
{ BEGIN(quotedstring); LEXOUT(("\" ")); } { BEGIN(quotedstring); LEXOUT(("\" ")); }
YY_BREAK YY_BREAK
case YY_STATE_EOF(quotedstring): case YY_STATE_EOF(quotedstring):
#line 309 "zlexer.lex" #line 308 "zlexer.lex"
{ {
zc_error("EOF inside quoted string"); zc_error("EOF inside quoted string");
BEGIN(INITIAL); BEGIN(INITIAL);
yyrestart(yyin); /* this is so that lex does not give an internal err */ yyrestart(yyin); /* this is so that lex does not give an internal err */
yyterminate(); yyterminate();
} }
YY_BREAK YY_BREAK
case 20: case 20:
YY_RULE_SETUP YY_RULE_SETUP
#line 315 "zlexer.lex" #line 314 "zlexer.lex"
{ LEXOUT(("STR ")); yymore(); } { LEXOUT(("QSTR ")); yymore(); }
YY_BREAK YY_BREAK
case 21: case 21:
/* rule 21 can match eol */ /* rule 21 can match eol */
YY_RULE_SETUP YY_RULE_SETUP
#line 316 "zlexer.lex" #line 315 "zlexer.lex"
{ ++parser->line; yymore(); } { ++parser->line; yymore(); }
YY_BREAK YY_BREAK
case 22: case 22:
YY_RULE_SETUP YY_RULE_SETUP
#line 317 "zlexer.lex" #line 316 "zlexer.lex"
{ {
/* for strings like "abc"def */
char* qt;
LEXOUT(("\" ")); LEXOUT(("\" "));
BEGIN(INITIAL); BEGIN(INITIAL);
for(qt=yytext; *qt!=0; qt++) {
if(qt[0]=='"') {
/* (unescaped) character is quote */
break;
}
if(qt[0] == '\\' && qt[1] == '\\') {
/* escaped backslash, skip that backslash */
qt+=1;
continue;
}
if(qt[0] == '\\' && qt[1] == '"') {
/* escaped quote, skip that quote */
qt+=1;
continue;
}
}
assert(qt);
assert(*qt=='"');
/* remove middle quote */
if(qt[1] != 0)
memmove(qt, qt+1, strlen(qt+1));
yytext[yyleng - 1] = '\0'; yytext[yyleng - 1] = '\0';
return parse_token(STR, yytext, &lexer_state); return parse_token(QSTR, yytext, &lexer_state);
} }
YY_BREAK YY_BREAK
case 23: case 23:
/* rule 23 can match eol */
YY_RULE_SETUP YY_RULE_SETUP
#line 346 "zlexer.lex" #line 323 "zlexer.lex"
{
LEXOUT(("\" "));
BEGIN(INITIAL);
yytext[yyleng - 1] = '\0';
return parse_token(STR, yytext, &lexer_state);
}
YY_BREAK
case 24:
/* rule 24 can match eol */
YY_RULE_SETUP
#line 353 "zlexer.lex"
{ {
/* Any allowed word. */ /* Any allowed word. */
return parse_token(STR, yytext, &lexer_state); return parse_token(STR, yytext, &lexer_state);
} }
YY_BREAK YY_BREAK
case 25: case 24:
YY_RULE_SETUP YY_RULE_SETUP
#line 357 "zlexer.lex" #line 327 "zlexer.lex"
{ {
zc_error("unknown character '%c' (\\%03d) seen - is this a zonefile?", zc_error("unknown character '%c' (\\%03d) seen - is this a zonefile?",
(int) yytext[0], (int) yytext[0]); (int) yytext[0], (int) yytext[0]);
} }
YY_BREAK YY_BREAK
case 26: case 25:
YY_RULE_SETUP YY_RULE_SETUP
#line 361 "zlexer.lex" #line 331 "zlexer.lex"
ECHO; ECHO;
YY_BREAK YY_BREAK
#line 1275 "<stdout>" #line 1235 "<stdout>"
case YY_END_OF_BUFFER: case YY_END_OF_BUFFER:
{ {
/* Amount of text matched not including the EOB char. */ /* Amount of text matched not including the EOB char. */
int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1; int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
/* Undo the effects of YY_DO_BEFORE_ACTION. */ /* Undo the effects of YY_DO_BEFORE_ACTION. */
*yy_cp = (yy_hold_char); *yy_cp = (yy_hold_char);
YY_RESTORE_YY_MORE_OFFSET YY_RESTORE_YY_MORE_OFFSET
skipping to change at line 1572 skipping to change at line 1532
{ {
YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
if ( yy_accept[yy_current_state] ) if ( yy_accept[yy_current_state] )
{ {
(yy_last_accepting_state) = yy_current_state; (yy_last_accepting_state) = yy_current_state;
(yy_last_accepting_cpos) = yy_cp; (yy_last_accepting_cpos) = yy_cp;
} }
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_st ate ) while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_st ate )
{ {
yy_current_state = (int) yy_def[yy_current_state]; yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 74 ) if ( yy_current_state >= 70 )
yy_c = yy_meta[yy_c]; yy_c = yy_meta[yy_c];
} }
yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
} }
return yy_current_state; return yy_current_state;
} }
/* yy_try_NUL_trans - try to make a transition on the NUL character /* yy_try_NUL_trans - try to make a transition on the NUL character
* *
skipping to change at line 1600 skipping to change at line 1560
YY_CHAR yy_c = 1; YY_CHAR yy_c = 1;
if ( yy_accept[yy_current_state] ) if ( yy_accept[yy_current_state] )
{ {
(yy_last_accepting_state) = yy_current_state; (yy_last_accepting_state) = yy_current_state;
(yy_last_accepting_cpos) = yy_cp; (yy_last_accepting_cpos) = yy_cp;
} }
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{ {
yy_current_state = (int) yy_def[yy_current_state]; yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 74 ) if ( yy_current_state >= 70 )
yy_c = yy_meta[yy_c]; yy_c = yy_meta[yy_c];
} }
yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
yy_is_jam = (yy_current_state == 73); yy_is_jam = (yy_current_state == 69);
return yy_is_jam ? 0 : yy_current_state; return yy_is_jam ? 0 : yy_current_state;
} }
#ifndef YY_NO_UNPUT #ifndef YY_NO_UNPUT
#endif #endif
#ifndef YY_NO_INPUT #ifndef YY_NO_INPUT
#ifdef __cplusplus #ifdef __cplusplus
skipping to change at line 2245 skipping to change at line 2205
return realloc(ptr, size); return realloc(ptr, size);
} }
void yyfree (void * ptr ) void yyfree (void * ptr )
{ {
free( (char *) ptr ); /* see yyrealloc() for (char *) c ast */ free( (char *) ptr ); /* see yyrealloc() for (char *) c ast */
} }
#define YYTABLES_NAME "yytables" #define YYTABLES_NAME "yytables"
#line 361 "zlexer.lex" #line 331 "zlexer.lex"
/* /*
* Analyze "word" to see if it matches an RR type, possibly by using * Analyze "word" to see if it matches an RR type, possibly by using
* the "TYPExxx" notation. If it matches, the corresponding token is * the "TYPExxx" notation. If it matches, the corresponding token is
* returned and the TYPE parameter is set to the RR type value. * returned and the TYPE parameter is set to the RR type value.
*/ */
static int static int
rrtype_to_token(const char *word, uint16_t *type) rrtype_to_token(const char *word, uint16_t *type)
{ {
uint16_t t = rrtype_from_string(word); uint16_t t = rrtype_from_string(word);
 End of changes. 62 change blocks. 
174 lines changed or deleted 134 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)