~ubuntu-branches/ubuntu/oneiric/syslog-ng/oneiric

« back to all changes in this revision

Viewing changes to modules/dbparser/dbparser-grammar.h

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2011-05-16 22:02:46 UTC
  • mfrom: (26.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20110516220246-nknmeu831n49bx1z
Tags: 3.2.4-1
* New upstream release, fixing infinite loop via PCRE and global. No CVE
  number yet, Vigil@nce id is 10648.
* Remove all patches, they were applied upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/* A Bison parser, made by GNU Bison 2.4.1.  */
 
3
 
 
4
/* Skeleton interface for Bison's Yacc-like parsers in C
 
5
   
 
6
      Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
 
7
   Free Software Foundation, Inc.
 
8
   
 
9
   This program is free software: you can redistribute it and/or modify
 
10
   it under the terms of the GNU General Public License as published by
 
11
   the Free Software Foundation, either version 3 of the License, or
 
12
   (at your option) any later version.
 
13
   
 
14
   This program is distributed in the hope that it will be useful,
 
15
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17
   GNU General Public License for more details.
 
18
   
 
19
   You should have received a copy of the GNU General Public License
 
20
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
21
 
 
22
/* As a special exception, you may create a larger work that contains
 
23
   part or all of the Bison parser skeleton and distribute that work
 
24
   under terms of your choice, so long as that work isn't itself a
 
25
   parser generator using the skeleton or a modified version thereof
 
26
   as a parser skeleton.  Alternatively, if you modify or redistribute
 
27
   the parser skeleton itself, you may (at your option) remove this
 
28
   special exception, which will cause the skeleton and the resulting
 
29
   Bison output files to be licensed under the GNU General Public
 
30
   License without this special exception.
 
31
   
 
32
   This special exception was added by the Free Software Foundation in
 
33
   version 2.2 of Bison.  */
 
34
 
 
35
 
 
36
/* Tokens.  */
 
37
#ifndef YYTOKENTYPE
 
38
# define YYTOKENTYPE
 
39
   /* Put the tokens into the symbol table, so that GDB and other debuggers
 
40
      know about them.  */
 
41
   enum yytokentype {
 
42
     LL_CONTEXT_ROOT = 1,
 
43
     LL_CONTEXT_DESTINATION = 2,
 
44
     LL_CONTEXT_SOURCE = 3,
 
45
     LL_CONTEXT_PARSER = 4,
 
46
     LL_CONTEXT_REWRITE = 5,
 
47
     LL_CONTEXT_FILTER = 6,
 
48
     LL_CONTEXT_LOG = 7,
 
49
     LL_CONTEXT_BLOCK_DEF = 8,
 
50
     LL_CONTEXT_BLOCK_REF = 9,
 
51
     LL_CONTEXT_BLOCK_CONTENT = 10,
 
52
     LL_CONTEXT_PRAGMA = 11,
 
53
     LL_CONTEXT_FORMAT = 12,
 
54
     LL_CONTEXT_TEMPLATE_FUNC = 13,
 
55
     KW_SOURCE = 10000,
 
56
     KW_FILTER = 10001,
 
57
     KW_PARSER = 10002,
 
58
     KW_DESTINATION = 10003,
 
59
     KW_LOG = 10004,
 
60
     KW_OPTIONS = 10005,
 
61
     KW_INCLUDE = 10006,
 
62
     KW_BLOCK = 10007,
 
63
     KW_INTERNAL = 10010,
 
64
     KW_FILE = 10011,
 
65
     KW_SQL = 10030,
 
66
     KW_TYPE = 10031,
 
67
     KW_COLUMNS = 10032,
 
68
     KW_INDEXES = 10033,
 
69
     KW_VALUES = 10034,
 
70
     KW_PASSWORD = 10035,
 
71
     KW_DATABASE = 10036,
 
72
     KW_USERNAME = 10037,
 
73
     KW_TABLE = 10038,
 
74
     KW_ENCODING = 10039,
 
75
     KW_SESSION_STATEMENTS = 10040,
 
76
     KW_DELIMITERS = 10050,
 
77
     KW_QUOTES = 10051,
 
78
     KW_QUOTE_PAIRS = 10052,
 
79
     KW_NULL = 10053,
 
80
     KW_SYSLOG = 10060,
 
81
     KW_MARK_FREQ = 10071,
 
82
     KW_STATS_FREQ = 10072,
 
83
     KW_STATS_LEVEL = 10073,
 
84
     KW_FLUSH_LINES = 10074,
 
85
     KW_SUPPRESS = 10075,
 
86
     KW_FLUSH_TIMEOUT = 10076,
 
87
     KW_LOG_MSG_SIZE = 10077,
 
88
     KW_FILE_TEMPLATE = 10078,
 
89
     KW_PROTO_TEMPLATE = 10079,
 
90
     KW_CHAIN_HOSTNAMES = 10090,
 
91
     KW_NORMALIZE_HOSTNAMES = 10091,
 
92
     KW_KEEP_HOSTNAME = 10092,
 
93
     KW_CHECK_HOSTNAME = 10093,
 
94
     KW_BAD_HOSTNAME = 10094,
 
95
     KW_KEEP_TIMESTAMP = 10100,
 
96
     KW_USE_DNS = 10110,
 
97
     KW_USE_FQDN = 10111,
 
98
     KW_DNS_CACHE = 10120,
 
99
     KW_DNS_CACHE_SIZE = 10121,
 
100
     KW_DNS_CACHE_EXPIRE = 10130,
 
101
     KW_DNS_CACHE_EXPIRE_FAILED = 10131,
 
102
     KW_DNS_CACHE_HOSTS = 10132,
 
103
     KW_PERSIST_ONLY = 10140,
 
104
     KW_TZ_CONVERT = 10150,
 
105
     KW_TS_FORMAT = 10151,
 
106
     KW_FRAC_DIGITS = 10152,
 
107
     KW_LOG_FIFO_SIZE = 10160,
 
108
     KW_LOG_FETCH_LIMIT = 10162,
 
109
     KW_LOG_IW_SIZE = 10163,
 
110
     KW_LOG_PREFIX = 10164,
 
111
     KW_PROGRAM_OVERRIDE = 10165,
 
112
     KW_HOST_OVERRIDE = 10166,
 
113
     KW_THROTTLE = 10170,
 
114
     KW_FLAGS = 10190,
 
115
     KW_PAD_SIZE = 10200,
 
116
     KW_TIME_ZONE = 10201,
 
117
     KW_RECV_TIME_ZONE = 10202,
 
118
     KW_SEND_TIME_ZONE = 10203,
 
119
     KW_LOCAL_TIME_ZONE = 10204,
 
120
     KW_FORMAT = 10205,
 
121
     KW_TIME_REOPEN = 10210,
 
122
     KW_TIME_REAP = 10211,
 
123
     KW_TIME_SLEEP = 10212,
 
124
     KW_TMPL_ESCAPE = 10220,
 
125
     KW_OPTIONAL = 10230,
 
126
     KW_CREATE_DIRS = 10240,
 
127
     KW_OWNER = 10250,
 
128
     KW_GROUP = 10251,
 
129
     KW_PERM = 10252,
 
130
     KW_DIR_OWNER = 10260,
 
131
     KW_DIR_GROUP = 10261,
 
132
     KW_DIR_PERM = 10262,
 
133
     KW_TEMPLATE = 10270,
 
134
     KW_TEMPLATE_ESCAPE = 10271,
 
135
     KW_DEFAULT_FACILITY = 10300,
 
136
     KW_DEFAULT_LEVEL = 10301,
 
137
     KW_PORT = 10323,
 
138
     KW_USE_TIME_RECVD = 10340,
 
139
     KW_FACILITY = 10350,
 
140
     KW_LEVEL = 10351,
 
141
     KW_HOST = 10352,
 
142
     KW_MATCH = 10353,
 
143
     KW_MESSAGE = 10354,
 
144
     KW_NETMASK = 10355,
 
145
     KW_TAGS = 10356,
 
146
     KW_VALUE = 10361,
 
147
     KW_REWRITE = 10370,
 
148
     KW_SET = 10371,
 
149
     KW_SUBST = 10372,
 
150
     KW_YES = 10380,
 
151
     KW_NO = 10381,
 
152
     KW_IFDEF = 10410,
 
153
     KW_ENDIF = 10411,
 
154
     LL_DOTDOT = 10420,
 
155
     LL_IDENTIFIER = 10421,
 
156
     LL_NUMBER = 10422,
 
157
     LL_FLOAT = 10423,
 
158
     LL_STRING = 10424,
 
159
     LL_TOKEN = 10425,
 
160
     LL_BLOCK = 10426,
 
161
     LL_PRAGMA = 10427,
 
162
     LL_EOL = 10428,
 
163
     LL_ERROR = 10429,
 
164
     KW_DB_PARSER = 10431
 
165
   };
 
166
#endif
 
167
/* Tokens.  */
 
168
#define LL_CONTEXT_ROOT 1
 
169
#define LL_CONTEXT_DESTINATION 2
 
170
#define LL_CONTEXT_SOURCE 3
 
171
#define LL_CONTEXT_PARSER 4
 
172
#define LL_CONTEXT_REWRITE 5
 
173
#define LL_CONTEXT_FILTER 6
 
174
#define LL_CONTEXT_LOG 7
 
175
#define LL_CONTEXT_BLOCK_DEF 8
 
176
#define LL_CONTEXT_BLOCK_REF 9
 
177
#define LL_CONTEXT_BLOCK_CONTENT 10
 
178
#define LL_CONTEXT_PRAGMA 11
 
179
#define LL_CONTEXT_FORMAT 12
 
180
#define LL_CONTEXT_TEMPLATE_FUNC 13
 
181
#define KW_SOURCE 10000
 
182
#define KW_FILTER 10001
 
183
#define KW_PARSER 10002
 
184
#define KW_DESTINATION 10003
 
185
#define KW_LOG 10004
 
186
#define KW_OPTIONS 10005
 
187
#define KW_INCLUDE 10006
 
188
#define KW_BLOCK 10007
 
189
#define KW_INTERNAL 10010
 
190
#define KW_FILE 10011
 
191
#define KW_SQL 10030
 
192
#define KW_TYPE 10031
 
193
#define KW_COLUMNS 10032
 
194
#define KW_INDEXES 10033
 
195
#define KW_VALUES 10034
 
196
#define KW_PASSWORD 10035
 
197
#define KW_DATABASE 10036
 
198
#define KW_USERNAME 10037
 
199
#define KW_TABLE 10038
 
200
#define KW_ENCODING 10039
 
201
#define KW_SESSION_STATEMENTS 10040
 
202
#define KW_DELIMITERS 10050
 
203
#define KW_QUOTES 10051
 
204
#define KW_QUOTE_PAIRS 10052
 
205
#define KW_NULL 10053
 
206
#define KW_SYSLOG 10060
 
207
#define KW_MARK_FREQ 10071
 
208
#define KW_STATS_FREQ 10072
 
209
#define KW_STATS_LEVEL 10073
 
210
#define KW_FLUSH_LINES 10074
 
211
#define KW_SUPPRESS 10075
 
212
#define KW_FLUSH_TIMEOUT 10076
 
213
#define KW_LOG_MSG_SIZE 10077
 
214
#define KW_FILE_TEMPLATE 10078
 
215
#define KW_PROTO_TEMPLATE 10079
 
216
#define KW_CHAIN_HOSTNAMES 10090
 
217
#define KW_NORMALIZE_HOSTNAMES 10091
 
218
#define KW_KEEP_HOSTNAME 10092
 
219
#define KW_CHECK_HOSTNAME 10093
 
220
#define KW_BAD_HOSTNAME 10094
 
221
#define KW_KEEP_TIMESTAMP 10100
 
222
#define KW_USE_DNS 10110
 
223
#define KW_USE_FQDN 10111
 
224
#define KW_DNS_CACHE 10120
 
225
#define KW_DNS_CACHE_SIZE 10121
 
226
#define KW_DNS_CACHE_EXPIRE 10130
 
227
#define KW_DNS_CACHE_EXPIRE_FAILED 10131
 
228
#define KW_DNS_CACHE_HOSTS 10132
 
229
#define KW_PERSIST_ONLY 10140
 
230
#define KW_TZ_CONVERT 10150
 
231
#define KW_TS_FORMAT 10151
 
232
#define KW_FRAC_DIGITS 10152
 
233
#define KW_LOG_FIFO_SIZE 10160
 
234
#define KW_LOG_FETCH_LIMIT 10162
 
235
#define KW_LOG_IW_SIZE 10163
 
236
#define KW_LOG_PREFIX 10164
 
237
#define KW_PROGRAM_OVERRIDE 10165
 
238
#define KW_HOST_OVERRIDE 10166
 
239
#define KW_THROTTLE 10170
 
240
#define KW_FLAGS 10190
 
241
#define KW_PAD_SIZE 10200
 
242
#define KW_TIME_ZONE 10201
 
243
#define KW_RECV_TIME_ZONE 10202
 
244
#define KW_SEND_TIME_ZONE 10203
 
245
#define KW_LOCAL_TIME_ZONE 10204
 
246
#define KW_FORMAT 10205
 
247
#define KW_TIME_REOPEN 10210
 
248
#define KW_TIME_REAP 10211
 
249
#define KW_TIME_SLEEP 10212
 
250
#define KW_TMPL_ESCAPE 10220
 
251
#define KW_OPTIONAL 10230
 
252
#define KW_CREATE_DIRS 10240
 
253
#define KW_OWNER 10250
 
254
#define KW_GROUP 10251
 
255
#define KW_PERM 10252
 
256
#define KW_DIR_OWNER 10260
 
257
#define KW_DIR_GROUP 10261
 
258
#define KW_DIR_PERM 10262
 
259
#define KW_TEMPLATE 10270
 
260
#define KW_TEMPLATE_ESCAPE 10271
 
261
#define KW_DEFAULT_FACILITY 10300
 
262
#define KW_DEFAULT_LEVEL 10301
 
263
#define KW_PORT 10323
 
264
#define KW_USE_TIME_RECVD 10340
 
265
#define KW_FACILITY 10350
 
266
#define KW_LEVEL 10351
 
267
#define KW_HOST 10352
 
268
#define KW_MATCH 10353
 
269
#define KW_MESSAGE 10354
 
270
#define KW_NETMASK 10355
 
271
#define KW_TAGS 10356
 
272
#define KW_VALUE 10361
 
273
#define KW_REWRITE 10370
 
274
#define KW_SET 10371
 
275
#define KW_SUBST 10372
 
276
#define KW_YES 10380
 
277
#define KW_NO 10381
 
278
#define KW_IFDEF 10410
 
279
#define KW_ENDIF 10411
 
280
#define LL_DOTDOT 10420
 
281
#define LL_IDENTIFIER 10421
 
282
#define LL_NUMBER 10422
 
283
#define LL_FLOAT 10423
 
284
#define LL_STRING 10424
 
285
#define LL_TOKEN 10425
 
286
#define LL_BLOCK 10426
 
287
#define LL_PRAGMA 10427
 
288
#define LL_EOL 10428
 
289
#define LL_ERROR 10429
 
290
#define KW_DB_PARSER 10431
 
291
 
 
292
 
 
293
 
 
294
 
 
295
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
 
296
 
 
297
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
 
298
# define YYSTYPE_IS_DECLARED 1
 
299
#endif
 
300
 
 
301
 
 
302
 
 
303
#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
 
304
typedef struct YYLTYPE
 
305
{
 
306
  int first_line;
 
307
  int first_column;
 
308
  int last_line;
 
309
  int last_column;
 
310
} YYLTYPE;
 
311
# define yyltype YYLTYPE /* obsolescent; will be withdrawn */
 
312
# define YYLTYPE_IS_DECLARED 1
 
313
# define YYLTYPE_IS_TRIVIAL 1
 
314
#endif
 
315
 
 
316
 
 
317