Debian Codegraph @

storage/innobase/include/fts0blex.h

raw
1 #ifndef fts0bHEADER_H
2 #define fts0bHEADER_H 1
3 #define fts0bIN_HEADER 1
4
5 #line 6 "../include/fts0blex.h"
6 #line 2 "fts0blex.l"
7 /*****************************************************************************
8
9 Copyright (c) 2007, 2026, Oracle and/or its affiliates.
10
11 This program is free software; you can redistribute it and/or modify it under
12 the terms of the GNU General Public License, version 2.0, as published by the
13 Free Software Foundation.
14
15 This program is designed to work with certain software (including
16 but not limited to OpenSSL) that is licensed under separate terms,
17 as designated in a particular file or component or in included license
18 documentation. The authors of MySQL hereby grant you an additional
19 permission to link the program and your derivative works with the
20 separately licensed software that they have either included with
21 the program or referenced in the documentation.
22
23 This program is distributed in the hope that it will be useful, but WITHOUT
24 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
25 FOR A PARTICULAR PURPOSE. See the GNU General Public License, version 2.0,
26 for more details.
27
28 You should have received a copy of the GNU General Public License along with
29 this program; if not, write to the Free Software Foundation, Inc.,
30 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
31
32 *****************************************************************************/
33
34 /**
35 * @file fts/fts0blex.l
36 * FTS parser lexical analyzer
37 *
38 * Created 2007/5/9 Sunny Bains
39 */
40
41 #include "univ.i"
42
43
44
45 #line 37 "../include/fts0blex.h"
46
47 #define YY_INT_ALIGNED short int
48
49 /* A lexical scanner generated by flex */
50
51 #define FLEX_SCANNER
52 #define YY_FLEX_MAJOR_VERSION 2
53 #define YY_FLEX_MINOR_VERSION 5
54 #define YY_FLEX_SUBMINOR_VERSION 39
55 #if YY_FLEX_SUBMINOR_VERSION > 0
56 #define FLEX_BETA
57 #endif
58
59 /* First, we deal with platform-specific or compiler-specific issues. */
60
61 /* begin standard C headers. */
62 #include <stdio.h>
63 #include <string.h>
64 #include <errno.h>
65 #include <stdlib.h>
66
67 /* end standard C headers. */
68
69 /* flex integer type definitions */
70
71 #ifndef FLEXINT_H
72 #define FLEXINT_H
73
74 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
75
76 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
77
78 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
79 * if you want the limit (max/min) macros for int types.
80 */
81 #ifndef __STDC_LIMIT_MACROS
82 #define __STDC_LIMIT_MACROS 1
83 #endif
84
85 #include <inttypes.h>
86 typedef int8_t flex_int8_t;
87 typedef uint8_t flex_uint8_t;
88 typedef int16_t flex_int16_t;
89 typedef uint16_t flex_uint16_t;
90 typedef int32_t flex_int32_t;
91 typedef uint32_t flex_uint32_t;
92 #else
93 typedef signed char flex_int8_t;
94 typedef short int flex_int16_t;
95 typedef int flex_int32_t;
96 typedef unsigned char flex_uint8_t;
97 typedef unsigned short int flex_uint16_t;
98 typedef unsigned int flex_uint32_t;
99
100 /* Limits of integral types. */
101 #ifndef INT8_MIN
102 #define INT8_MIN (-128)
103 #endif
104 #ifndef INT16_MIN
105 #define INT16_MIN (-32767-1)
106 #endif
107 #ifndef INT32_MIN
108 #define INT32_MIN (-2147483647-1)
109 #endif
110 #ifndef INT8_MAX
111 #define INT8_MAX (127)
112 #endif
113 #ifndef INT16_MAX
114 #define INT16_MAX (32767)
115 #endif
116 #ifndef INT32_MAX
117 #define INT32_MAX (2147483647)
118 #endif
119 #ifndef UINT8_MAX
120 #define UINT8_MAX (255U)
121 #endif
122 #ifndef UINT16_MAX
123 #define UINT16_MAX (65535U)
124 #endif
125 #ifndef UINT32_MAX
126 #define UINT32_MAX (4294967295U)
127 #endif
128
129 #endif /* ! C99 */
130
131 #endif /* ! FLEXINT_H */
132
133 #ifdef __cplusplus
134
135 /* The "const" storage-class-modifier is valid. */
136 #define YY_USE_CONST
137
138 #else /* ! __cplusplus */
139
140 /* C99 requires __STDC__ to be defined as 1. */
141 #if defined (__STDC__)
142
143 #define YY_USE_CONST
144
145 #endif /* defined (__STDC__) */
146 #endif /* ! __cplusplus */
147
148 #ifdef YY_USE_CONST
149 #define yyconst const
150 #else
151 #define yyconst
152 #endif
153
154 /* An opaque pointer. */
155 #ifndef YY_TYPEDEF_YY_SCANNER_T
156 #define YY_TYPEDEF_YY_SCANNER_T
157 typedef void* yyscan_t;
158 #endif
159
160 /* For convenience, these vars (plus the bison vars far below)
161 are macros in the reentrant scanner. */
162 #define yyin yyg->yyin_r
163 #define yyout yyg->yyout_r
164 #define yyextra yyg->yyextra_r
165 #define yyleng yyg->yyleng_r
166 #define yytext yyg->yytext_r
167 #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
168 #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
169 #define yy_flex_debug yyg->yy_flex_debug_r
170
171 /* Size of default input buffer. */
172 #ifndef YY_BUF_SIZE
173 #ifdef __ia64__
174 /* On IA-64, the buffer size is 16k, not 8k.
175 * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
176 * Ditto for the __ia64__ case accordingly.
177 */
178 #define YY_BUF_SIZE 32768
179 #else
180 #define YY_BUF_SIZE 16384
181 #endif /* __ia64__ */
182 #endif
183
184 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
185 #define YY_TYPEDEF_YY_BUFFER_STATE
186 typedef struct yy_buffer_state *YY_BUFFER_STATE;
187 #endif
188
189 #ifndef YY_TYPEDEF_YY_SIZE_T
190 #define YY_TYPEDEF_YY_SIZE_T
191 typedef size_t yy_size_t;
192 #endif
193
194 #ifndef YY_STRUCT_YY_BUFFER_STATE
195 #define YY_STRUCT_YY_BUFFER_STATE
196 struct yy_buffer_state
197 {
198 FILE *yy_input_file;
199
200 char *yy_ch_buf; /* input buffer */
201 char *yy_buf_pos; /* current position in input buffer */
202
203 /* Size of input buffer in bytes, not including room for EOB
204 * characters.
205 */
206 yy_size_t yy_buf_size;
207
208 /* Number of characters read into yy_ch_buf, not including EOB
209 * characters.
210 */
211 yy_size_t yy_n_chars;
212
213 /* Whether we "own" the buffer - i.e., we know we created it,
214 * and can realloc() it to grow it, and should free() it to
215 * delete it.
216 */
217 int yy_is_our_buffer;
218
219 /* Whether this is an "interactive" input source; if so, and
220 * if we're using stdio for input, then we want to use getc()
221 * instead of fread(), to make sure we stop fetching input after
222 * each newline.
223 */
224 int yy_is_interactive;
225
226 /* Whether we're considered to be at the beginning of a line.
227 * If so, '^' rules will be active on the next match, otherwise
228 * not.
229 */
230 int yy_at_bol;
231
232 int yy_bs_lineno; /**< The line count. */
233 int yy_bs_column; /**< The column count. */
234
235 /* Whether to try to fill the input buffer when we reach the
236 * end of it.
237 */
238 int yy_fill_buffer;
239
240 int yy_buffer_status;
241
242 };
243 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
244
245 void fts0brestart (FILE *input_file ,yyscan_t yyscanner );
246 void fts0b_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
247 YY_BUFFER_STATE fts0b_create_buffer (FILE *file,int size ,yyscan_t yyscanner );
248 void fts0b_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
249 void fts0b_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
250 void fts0bpush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
251 void fts0bpop_buffer_state (yyscan_t yyscanner );
252
253 YY_BUFFER_STATE fts0b_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
254 YY_BUFFER_STATE fts0b_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
255 YY_BUFFER_STATE fts0b_scan_bytes (yyconst char *bytes,yy_size_t len ,yyscan_t yyscanner );
256
257 void *fts0balloc (yy_size_t ,yyscan_t yyscanner );
258 void *fts0brealloc (void *,yy_size_t ,yyscan_t yyscanner );
259 void fts0bfree (void * ,yyscan_t yyscanner );
260
261 /* Begin user sect3 */
262
263 #define fts0bwrap(yyscanner) 1
264 #define YY_SKIP_YYWRAP
265
266 #define yytext_ptr yytext_r
267
268 #ifdef YY_HEADER_EXPORT_START_CONDITIONS
269 #define INITIAL 0
270
271 #endif
272
273 #ifndef YY_NO_UNISTD_H
274 /* Special case for "unistd.h", since it is non-ANSI. We include it way
275 * down here because we want the user's section 1 to have been scanned first.
276 * The user has a chance to override it with an option.
277 */
278 #include <unistd.h>
279 #endif
280
281 #ifndef YY_EXTRA_TYPE
282 #define YY_EXTRA_TYPE void *
283 #endif
284
285 int fts0blex_init (yyscan_t* scanner);
286
287 int fts0blex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner);
288
289 /* Accessor methods to globals.
290 These are made visible to non-reentrant scanners for convenience. */
291
292 int fts0blex_destroy (yyscan_t yyscanner );
293
294 int fts0bget_debug (yyscan_t yyscanner );
295
296 void fts0bset_debug (int debug_flag ,yyscan_t yyscanner );
297
298 YY_EXTRA_TYPE fts0bget_extra (yyscan_t yyscanner );
299
300 void fts0bset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
301
302 FILE *fts0bget_in (yyscan_t yyscanner );
303
304 void fts0bset_in (FILE * in_str ,yyscan_t yyscanner );
305
306 FILE *fts0bget_out (yyscan_t yyscanner );
307
308 void fts0bset_out (FILE * out_str ,yyscan_t yyscanner );
309
310 yy_size_t fts0bget_leng (yyscan_t yyscanner );
311
312 char *fts0bget_text (yyscan_t yyscanner );
313
314 int fts0bget_lineno (yyscan_t yyscanner );
315
316 void fts0bset_lineno (int line_number ,yyscan_t yyscanner );
317
318 int fts0bget_column (yyscan_t yyscanner );
319
320 void fts0bset_column (int column_no ,yyscan_t yyscanner );
321
322 /* Macros after this point can all be overridden by user definitions in
323 * section 1.
324 */
325
326 #ifndef YY_SKIP_YYWRAP
327 #ifdef __cplusplus
328 extern "C" int fts0bwrap (yyscan_t yyscanner );
329 #else
330 extern int fts0bwrap (yyscan_t yyscanner );
331 #endif
332 #endif
333
334 #ifndef yytext_ptr
335 static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
336 #endif
337
338 #ifdef YY_NEED_STRLEN
339 static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
340 #endif
341
342 #ifndef YY_NO_INPUT
343
344 #endif
345
346 /* Amount of stuff to slurp up with each read. */
347 #ifndef YY_READ_BUF_SIZE
348 #ifdef __ia64__
349 /* On IA-64, the buffer size is 16k, not 8k */
350 #define YY_READ_BUF_SIZE 16384
351 #else
352 #define YY_READ_BUF_SIZE 8192
353 #endif /* __ia64__ */
354 #endif
355
356 /* Number of entries by which start-condition stack grows. */
357 #ifndef YY_START_STACK_INCR
358 #define YY_START_STACK_INCR 25
359 #endif
360
361 /* Default declaration of generated scanner - a define so the user can
362 * easily add parameters.
363 */
364 #ifndef YY_DECL
365 #define YY_DECL_IS_OURS 1
366
367 extern int fts0blex (yyscan_t yyscanner);
368
369 #define YY_DECL int fts0blex (yyscan_t yyscanner)
370 #endif /* !YY_DECL */
371
372 /* yy_get_previous_state - get the state just before the EOB char was reached */
373
374 #undef YY_NEW_FILE
375 #undef YY_FLUSH_BUFFER
376 #undef yy_set_bol
377 #undef yy_new_buffer
378 #undef yy_set_interactive
379 #undef YY_DO_BEFORE_ACTION
380
381 #ifdef YY_DECL_IS_OURS
382 #undef YY_DECL_IS_OURS
383 #undef YY_DECL
384 #endif
385
386 #line 76 "fts0blex.l"
387
388
389 #line 381 "../include/fts0blex.h"
390 #undef fts0bIN_HEADER
391 #endif /* fts0bHEADER_H */