undns 0.4.0d → 0.4.0f

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,14 @@
1
- /* A Bison parser, made by GNU Bison 3.0.2. */
1
+ /* A Bison parser, made by GNU Bison 2.3. */
2
2
 
3
- /* Bison interface for Yacc-like parsers in C
3
+ /* Skeleton interface for Bison's Yacc-like parsers in C
4
4
 
5
- Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc.
5
+ Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
6
+ Free Software Foundation, Inc.
6
7
 
7
- This program is free software: you can redistribute it and/or modify
8
+ This program is free software; you can redistribute it and/or modify
8
9
  it under the terms of the GNU General Public License as published by
9
- the Free Software Foundation, either version 3 of the License, or
10
- (at your option) any later version.
10
+ the Free Software Foundation; either version 2, or (at your option)
11
+ any later version.
11
12
 
12
13
  This program is distributed in the hope that it will be useful,
13
14
  but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -15,7 +16,9 @@
15
16
  GNU General Public License for more details.
16
17
 
17
18
  You should have received a copy of the GNU General Public License
18
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
19
+ along with this program; if not, write to the Free Software
20
+ Foundation, Inc., 51 Franklin Street, Fifth Floor,
21
+ Boston, MA 02110-1301, USA. */
19
22
 
20
23
  /* As a special exception, you may create a larger work that contains
21
24
  part or all of the Bison parser skeleton and distribute that work
@@ -30,26 +33,17 @@
30
33
  This special exception was added by the Free Software Foundation in
31
34
  version 2.2 of Bison. */
32
35
 
33
- #ifndef YY_CONV_YY_CONVENTIONS_H_INCLUDED
34
- # define YY_CONV_YY_CONVENTIONS_H_INCLUDED
35
- /* Debug traces. */
36
- #ifndef YYDEBUG
37
- # define YYDEBUG 0
38
- #endif
39
- #if YYDEBUG
40
- extern int conv_yydebug;
41
- #endif
42
-
43
- /* Token type. */
36
+ /* Tokens. */
44
37
  #ifndef YYTOKENTYPE
45
38
  # define YYTOKENTYPE
46
- enum yytokentype
47
- {
48
- TOK_QID = 258,
49
- TOK_ID = 259,
50
- TOK_NUMBER = 260,
51
- TOK_REGEX = 261
52
- };
39
+ /* Put the tokens into the symbol table, so that GDB and other debuggers
40
+ know about them. */
41
+ enum yytokentype {
42
+ TOK_QID = 258,
43
+ TOK_ID = 259,
44
+ TOK_NUMBER = 260,
45
+ TOK_REGEX = 261
46
+ };
53
47
  #endif
54
48
  /* Tokens. */
55
49
  #define TOK_QID 258
@@ -57,13 +51,13 @@ extern int conv_yydebug;
57
51
  #define TOK_NUMBER 260
58
52
  #define TOK_REGEX 261
59
53
 
60
- /* Value type. */
54
+
55
+
56
+
61
57
  #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
62
- typedef union YYSTYPE YYSTYPE;
63
- union YYSTYPE
58
+ typedef union YYSTYPE
59
+ #line 27 "conventions.y"
64
60
  {
65
- #line 27 "conventions.y" /* yacc.c:1909 */
66
-
67
61
  struct asnc *asnc;
68
62
  int in;
69
63
  char *cp;
@@ -74,16 +68,14 @@ union YYSTYPE
74
68
  conv_queue cq;
75
69
  key_hashtable dict;
76
70
  boolean bool;
77
-
78
- #line 79 "conventions.h" /* yacc.c:1909 */
79
- };
80
- # define YYSTYPE_IS_TRIVIAL 1
71
+ }
72
+ /* Line 1529 of yacc.c. */
73
+ #line 74 "conventions.h"
74
+ YYSTYPE;
75
+ # define yystype YYSTYPE /* obsolescent; will be withdrawn */
81
76
  # define YYSTYPE_IS_DECLARED 1
77
+ # define YYSTYPE_IS_TRIVIAL 1
82
78
  #endif
83
79
 
84
-
85
80
  extern YYSTYPE conv_yylval;
86
81
 
87
- int conv_yyparse (void);
88
-
89
- #endif /* !YY_CONV_YY_CONVENTIONS_H_INCLUDED */
@@ -65,6 +65,7 @@ typedef int16_t flex_int16_t;
65
65
  typedef uint16_t flex_uint16_t;
66
66
  typedef int32_t flex_int32_t;
67
67
  typedef uint32_t flex_uint32_t;
68
+ typedef uint64_t flex_uint64_t;
68
69
  #else
69
70
  typedef signed char flex_int8_t;
70
71
  typedef short int flex_int16_t;
@@ -72,6 +73,7 @@ typedef int flex_int32_t;
72
73
  typedef unsigned char flex_uint8_t;
73
74
  typedef unsigned short int flex_uint16_t;
74
75
  typedef unsigned int flex_uint32_t;
76
+ #endif /* ! C99 */
75
77
 
76
78
  /* Limits of integral types. */
77
79
  #ifndef INT8_MIN
@@ -102,8 +104,6 @@ typedef unsigned int flex_uint32_t;
102
104
  #define UINT32_MAX (4294967295U)
103
105
  #endif
104
106
 
105
- #endif /* ! C99 */
106
-
107
107
  #endif /* ! FLEXINT_H */
108
108
 
109
109
  #ifdef __cplusplus
@@ -160,15 +160,7 @@ typedef unsigned int flex_uint32_t;
160
160
 
161
161
  /* Size of default input buffer. */
162
162
  #ifndef YY_BUF_SIZE
163
- #ifdef __ia64__
164
- /* On IA-64, the buffer size is 16k, not 8k.
165
- * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
166
- * Ditto for the __ia64__ case accordingly.
167
- */
168
- #define YY_BUF_SIZE 32768
169
- #else
170
163
  #define YY_BUF_SIZE 16384
171
- #endif /* __ia64__ */
172
164
  #endif
173
165
 
174
166
  /* The state buf must be large enough to hold one state per character in the main buffer.
@@ -180,7 +172,12 @@ typedef unsigned int flex_uint32_t;
180
172
  typedef struct yy_buffer_state *YY_BUFFER_STATE;
181
173
  #endif
182
174
 
183
- extern int conv_yyleng;
175
+ #ifndef YY_TYPEDEF_YY_SIZE_T
176
+ #define YY_TYPEDEF_YY_SIZE_T
177
+ typedef size_t yy_size_t;
178
+ #endif
179
+
180
+ extern yy_size_t conv_yyleng;
184
181
 
185
182
  extern FILE *conv_yyin, *conv_yyout;
186
183
 
@@ -206,11 +203,6 @@ extern FILE *conv_yyin, *conv_yyout;
206
203
 
207
204
  #define unput(c) yyunput( c, (yytext_ptr) )
208
205
 
209
- #ifndef YY_TYPEDEF_YY_SIZE_T
210
- #define YY_TYPEDEF_YY_SIZE_T
211
- typedef size_t yy_size_t;
212
- #endif
213
-
214
206
  #ifndef YY_STRUCT_YY_BUFFER_STATE
215
207
  #define YY_STRUCT_YY_BUFFER_STATE
216
208
  struct yy_buffer_state
@@ -228,7 +220,7 @@ struct yy_buffer_state
228
220
  /* Number of characters read into yy_ch_buf, not including EOB
229
221
  * characters.
230
222
  */
231
- int yy_n_chars;
223
+ yy_size_t yy_n_chars;
232
224
 
233
225
  /* Whether we "own" the buffer - i.e., we know we created it,
234
226
  * and can realloc() it to grow it, and should free() it to
@@ -298,8 +290,8 @@ static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
298
290
 
299
291
  /* yy_hold_char holds the character lost when conv_yytext is formed. */
300
292
  static char yy_hold_char;
301
- static int yy_n_chars; /* number of characters read into yy_ch_buf */
302
- int conv_yyleng;
293
+ static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */
294
+ yy_size_t conv_yyleng;
303
295
 
304
296
  /* Points to current character in buffer. */
305
297
  static char *yy_c_buf_p = (char *) 0;
@@ -327,7 +319,7 @@ static void conv_yy_init_buffer (YY_BUFFER_STATE b,FILE *file );
327
319
 
328
320
  YY_BUFFER_STATE conv_yy_scan_buffer (char *base,yy_size_t size );
329
321
  YY_BUFFER_STATE conv_yy_scan_string (yyconst char *yy_str );
330
- YY_BUFFER_STATE conv_yy_scan_bytes (yyconst char *bytes,int len );
322
+ YY_BUFFER_STATE conv_yy_scan_bytes (yyconst char *bytes,yy_size_t len );
331
323
 
332
324
  void *conv_yyalloc (yy_size_t );
333
325
  void *conv_yyrealloc (void *,yy_size_t );
@@ -1253,7 +1245,7 @@ static void yy_fatal_error (yyconst char msg[] );
1253
1245
  */
1254
1246
  #define YY_DO_BEFORE_ACTION \
1255
1247
  (yytext_ptr) = yy_bp; \
1256
- conv_yyleng = (size_t) (yy_cp - yy_bp); \
1248
+ conv_yyleng = (yy_size_t) (yy_cp - yy_bp); \
1257
1249
  (yy_hold_char) = *yy_cp; \
1258
1250
  *yy_cp = '\0'; \
1259
1251
  (yy_c_buf_p) = yy_cp;
@@ -1349,7 +1341,7 @@ YY_BUFFER_STATE include_stack[MAX_INCLUDE_DEPTH];
1349
1341
  char *include_filename_stack[MAX_INCLUDE_DEPTH];
1350
1342
  int include_linenum_stack[MAX_INCLUDE_DEPTH];
1351
1343
  int include_stack_ptr = 0;
1352
- #line 1353 "conventlex.c"
1344
+ #line 1345 "conventlex.c"
1353
1345
 
1354
1346
  #define INITIAL 0
1355
1347
  #define incl 1
@@ -1390,7 +1382,7 @@ FILE *conv_yyget_out (void );
1390
1382
 
1391
1383
  void conv_yyset_out (FILE * out_str );
1392
1384
 
1393
- int conv_yyget_leng (void );
1385
+ yy_size_t conv_yyget_leng (void );
1394
1386
 
1395
1387
  char *conv_yyget_text (void );
1396
1388
 
@@ -1432,12 +1424,7 @@ static int input (void );
1432
1424
 
1433
1425
  /* Amount of stuff to slurp up with each read. */
1434
1426
  #ifndef YY_READ_BUF_SIZE
1435
- #ifdef __ia64__
1436
- /* On IA-64, the buffer size is 16k, not 8k */
1437
- #define YY_READ_BUF_SIZE 16384
1438
- #else
1439
1427
  #define YY_READ_BUF_SIZE 8192
1440
- #endif /* __ia64__ */
1441
1428
  #endif
1442
1429
 
1443
1430
  /* Copy whatever the last rule matched to the standard output. */
@@ -1445,7 +1432,7 @@ static int input (void );
1445
1432
  /* This used to be an fputs(), but since the string might contain NUL's,
1446
1433
  * we now use fwrite().
1447
1434
  */
1448
- #define ECHO do { if (fwrite( conv_yytext, conv_yyleng, 1, conv_yyout )) {} } while (0)
1435
+ #define ECHO fwrite( conv_yytext, conv_yyleng, 1, conv_yyout )
1449
1436
  #endif
1450
1437
 
1451
1438
  /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
@@ -1456,7 +1443,7 @@ static int input (void );
1456
1443
  if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
1457
1444
  { \
1458
1445
  int c = '*'; \
1459
- size_t n; \
1446
+ yy_size_t n; \
1460
1447
  for ( n = 0; n < max_size && \
1461
1448
  (c = getc( conv_yyin )) != EOF && c != '\n'; ++n ) \
1462
1449
  buf[n] = (char) c; \
@@ -1546,7 +1533,7 @@ YY_DECL
1546
1533
  #endif
1547
1534
 
1548
1535
 
1549
- #line 1550 "conventlex.c"
1536
+ #line 1537 "conventlex.c"
1550
1537
 
1551
1538
  if ( !(yy_init) )
1552
1539
  {
@@ -1689,14 +1676,15 @@ YY_RULE_SETUP
1689
1676
  exit( 1 );
1690
1677
  }
1691
1678
 
1692
- inclfile = fopen_path_r( filename );
1679
+ const char *found;
1680
+ inclfile = fopen_path_r( filename, &found );
1693
1681
  if ( inclfile == NULL ) {
1694
1682
  char buf[512];
1695
1683
  sprintf(buf, "unable to open '%s' %s\n", filename, strerror(errno));
1696
1684
  conv_yyerror( buf );
1697
1685
  } else {
1698
1686
  conv_yyin = inclfile;
1699
- include_filename_stack[include_stack_ptr] = searchPath(ruleset_path, filename);
1687
+ include_filename_stack[include_stack_ptr] = found;
1700
1688
  include_linenum_stack[include_stack_ptr] = linenum;
1701
1689
  include_stack[include_stack_ptr] = YY_CURRENT_BUFFER;
1702
1690
  include_stack_ptr++;
@@ -1713,7 +1701,7 @@ YY_RULE_SETUP
1713
1701
  case YY_STATE_EOF(INITIAL):
1714
1702
  case YY_STATE_EOF(incl):
1715
1703
  case YY_STATE_EOF(comment):
1716
- #line 127 "conventlex.l"
1704
+ #line 128 "conventlex.l"
1717
1705
  {
1718
1706
  if ( --include_stack_ptr < 0 ) {
1719
1707
  yyterminate();
@@ -1730,35 +1718,35 @@ case YY_STATE_EOF(comment):
1730
1718
  YY_BREAK
1731
1719
  case 11:
1732
1720
  YY_RULE_SETUP
1733
- #line 141 "conventlex.l"
1721
+ #line 142 "conventlex.l"
1734
1722
 
1735
1723
  YY_BREAK
1736
1724
  case 12:
1737
1725
  /* rule 12 can match eol */
1738
1726
  YY_RULE_SETUP
1739
- #line 142 "conventlex.l"
1727
+ #line 143 "conventlex.l"
1740
1728
  ++linenum;
1741
1729
  YY_BREAK
1742
1730
  case 13:
1743
1731
  YY_RULE_SETUP
1744
- #line 143 "conventlex.l"
1732
+ #line 144 "conventlex.l"
1745
1733
 
1746
1734
  YY_BREAK
1747
1735
  case 14:
1748
1736
  /* rule 14 can match eol */
1749
1737
  YY_RULE_SETUP
1750
- #line 144 "conventlex.l"
1738
+ #line 145 "conventlex.l"
1751
1739
  ++linenum;
1752
1740
  YY_BREAK
1753
1741
  case 15:
1754
1742
  YY_RULE_SETUP
1755
- #line 145 "conventlex.l"
1743
+ #line 146 "conventlex.l"
1756
1744
  BEGIN(INITIAL);
1757
1745
  YY_BREAK
1758
1746
  case 16:
1759
1747
  /* rule 16 can match eol */
1760
1748
  YY_RULE_SETUP
1761
- #line 147 "conventlex.l"
1749
+ #line 148 "conventlex.l"
1762
1750
  {
1763
1751
  linechars=0;
1764
1752
  linenum++;
@@ -1767,7 +1755,7 @@ YY_RULE_SETUP
1767
1755
  case 17:
1768
1756
  /* rule 17 can match eol */
1769
1757
  YY_RULE_SETUP
1770
- #line 151 "conventlex.l"
1758
+ #line 152 "conventlex.l"
1771
1759
  {
1772
1760
  linechars=0;
1773
1761
  linenum++;
@@ -1775,15 +1763,15 @@ YY_RULE_SETUP
1775
1763
  YY_BREAK
1776
1764
  case 18:
1777
1765
  YY_RULE_SETUP
1778
- #line 155 "conventlex.l"
1766
+ #line 156 "conventlex.l"
1779
1767
 
1780
1768
  YY_BREAK
1781
1769
  case 19:
1782
1770
  YY_RULE_SETUP
1783
- #line 157 "conventlex.l"
1771
+ #line 158 "conventlex.l"
1784
1772
  ECHO;
1785
1773
  YY_BREAK
1786
- #line 1787 "conventlex.c"
1774
+ #line 1775 "conventlex.c"
1787
1775
 
1788
1776
  case YY_END_OF_BUFFER:
1789
1777
  {
@@ -1967,7 +1955,7 @@ static int yy_get_next_buffer (void)
1967
1955
 
1968
1956
  else
1969
1957
  {
1970
- int num_to_read =
1958
+ yy_size_t num_to_read =
1971
1959
  YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
1972
1960
 
1973
1961
  while ( num_to_read <= 0 )
@@ -1981,7 +1969,7 @@ static int yy_get_next_buffer (void)
1981
1969
 
1982
1970
  if ( b->yy_is_our_buffer )
1983
1971
  {
1984
- int new_size = b->yy_buf_size * 2;
1972
+ yy_size_t new_size = b->yy_buf_size * 2;
1985
1973
 
1986
1974
  if ( new_size <= 0 )
1987
1975
  b->yy_buf_size += b->yy_buf_size / 8;
@@ -2012,7 +2000,7 @@ static int yy_get_next_buffer (void)
2012
2000
 
2013
2001
  /* Read in more data. */
2014
2002
  YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
2015
- (yy_n_chars), (size_t) num_to_read );
2003
+ (yy_n_chars), num_to_read );
2016
2004
 
2017
2005
  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
2018
2006
  }
@@ -2117,7 +2105,7 @@ static int yy_get_next_buffer (void)
2117
2105
  if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
2118
2106
  { /* need to shift things up to make room */
2119
2107
  /* +2 for EOB chars. */
2120
- register int number_to_move = (yy_n_chars) + 2;
2108
+ register yy_size_t number_to_move = (yy_n_chars) + 2;
2121
2109
  register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
2122
2110
  YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
2123
2111
  register char *source =
@@ -2166,7 +2154,7 @@ static int yy_get_next_buffer (void)
2166
2154
 
2167
2155
  else
2168
2156
  { /* need more input */
2169
- int offset = (yy_c_buf_p) - (yytext_ptr);
2157
+ yy_size_t offset = (yy_c_buf_p) - (yytext_ptr);
2170
2158
  ++(yy_c_buf_p);
2171
2159
 
2172
2160
  switch ( yy_get_next_buffer( ) )
@@ -2190,7 +2178,7 @@ static int yy_get_next_buffer (void)
2190
2178
  case EOB_ACT_END_OF_FILE:
2191
2179
  {
2192
2180
  if ( conv_yywrap( ) )
2193
- return EOF;
2181
+ return 0;
2194
2182
 
2195
2183
  if ( ! (yy_did_buffer_switch_on_eof) )
2196
2184
  YY_NEW_FILE;
@@ -2442,7 +2430,7 @@ void conv_yypop_buffer_state (void)
2442
2430
  */
2443
2431
  static void conv_yyensure_buffer_stack (void)
2444
2432
  {
2445
- int num_to_alloc;
2433
+ yy_size_t num_to_alloc;
2446
2434
 
2447
2435
  if (!(yy_buffer_stack)) {
2448
2436
 
@@ -2534,17 +2522,16 @@ YY_BUFFER_STATE conv_yy_scan_string (yyconst char * yystr )
2534
2522
 
2535
2523
  /** Setup the input buffer state to scan the given bytes. The next call to conv_yylex() will
2536
2524
  * scan from a @e copy of @a bytes.
2537
- * @param yybytes the byte buffer to scan
2538
- * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
2525
+ * @param bytes the byte buffer to scan
2526
+ * @param len the number of bytes in the buffer pointed to by @a bytes.
2539
2527
  *
2540
2528
  * @return the newly allocated buffer state object.
2541
2529
  */
2542
- YY_BUFFER_STATE conv_yy_scan_bytes (yyconst char * yybytes, int _yybytes_len )
2530
+ YY_BUFFER_STATE conv_yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len )
2543
2531
  {
2544
2532
  YY_BUFFER_STATE b;
2545
2533
  char *buf;
2546
- yy_size_t n;
2547
- int i;
2534
+ yy_size_t n, i;
2548
2535
 
2549
2536
  /* Get memory for full buffer, including space for trailing EOB's. */
2550
2537
  n = _yybytes_len + 2;
@@ -2626,7 +2613,7 @@ FILE *conv_yyget_out (void)
2626
2613
  /** Get the length of the current token.
2627
2614
  *
2628
2615
  */
2629
- int conv_yyget_leng (void)
2616
+ yy_size_t conv_yyget_leng (void)
2630
2617
  {
2631
2618
  return conv_yyleng;
2632
2619
  }
@@ -2774,7 +2761,7 @@ void conv_yyfree (void * ptr )
2774
2761
 
2775
2762
  #define YYTABLES_NAME "yytables"
2776
2763
 
2777
- #line 157 "conventlex.l"
2764
+ #line 158 "conventlex.l"
2778
2765
 
2779
2766
 
2780
2767
  const char *currentfilename(void) {