Debian Codegraph @

storage/innobase/include/fts0tlex.h

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