Prevent reference XML reader segfault on nullptr error strings
[gromacs.git] / src / gromacs / selection / scanner_flex.h
blob14d3030508e30446a5df94834a9bda7f9531da50
1 #ifndef _gmx_sel_yyHEADER_H
2 #define _gmx_sel_yyHEADER_H 1
3 #define _gmx_sel_yyIN_HEADER 1
5 #line 6 "scanner_flex.h"
6 #line 50 "scanner.l"
7 #if !defined _gmx_sel_yyIN_HEADER
8 #include "gmxpre.h"
9 #endif
11 // Required before flex definitions, since it includes <stdint.h>.
12 // Otherwise, compilers not strictly C99 get macro redefinition errors,
13 // since flex defines INT32_MAX etc. in such cases.
14 #include "gromacs/utility/basedefinitions.h"
18 #line 19 "scanner_flex.h"
20 #define YY_INT_ALIGNED short int
22 /* A lexical scanner generated by flex */
24 #define FLEX_SCANNER
25 #define YY_FLEX_MAJOR_VERSION 2
26 #define YY_FLEX_MINOR_VERSION 6
27 #define YY_FLEX_SUBMINOR_VERSION 0
28 #if YY_FLEX_SUBMINOR_VERSION > 0
29 #define FLEX_BETA
30 #endif
32 /* First, we deal with platform-specific or compiler-specific issues. */
34 /* begin standard C headers. */
35 #include <stdio.h>
36 #include <string.h>
37 #include <errno.h>
38 #include <stdlib.h>
40 /* end standard C headers. */
42 /* flex integer type definitions */
44 #ifndef FLEXINT_H
45 #define FLEXINT_H
47 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
49 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
51 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
52 * if you want the limit (max/min) macros for int types.
54 #ifndef __STDC_LIMIT_MACROS
55 #define __STDC_LIMIT_MACROS 1
56 #endif
58 #include <inttypes.h>
59 typedef int8_t flex_int8_t;
60 typedef uint8_t flex_uint8_t;
61 typedef int16_t flex_int16_t;
62 typedef uint16_t flex_uint16_t;
63 typedef int32_t flex_int32_t;
64 typedef uint32_t flex_uint32_t;
65 #else
66 typedef signed char flex_int8_t;
67 typedef short int flex_int16_t;
68 typedef int flex_int32_t;
69 typedef unsigned char flex_uint8_t;
70 typedef unsigned short int flex_uint16_t;
71 typedef unsigned int flex_uint32_t;
73 /* Limits of integral types. */
74 #ifndef INT8_MIN
75 #define INT8_MIN (-128)
76 #endif
77 #ifndef INT16_MIN
78 #define INT16_MIN (-32767-1)
79 #endif
80 #ifndef INT32_MIN
81 #define INT32_MIN (-2147483647-1)
82 #endif
83 #ifndef INT8_MAX
84 #define INT8_MAX (127)
85 #endif
86 #ifndef INT16_MAX
87 #define INT16_MAX (32767)
88 #endif
89 #ifndef INT32_MAX
90 #define INT32_MAX (2147483647)
91 #endif
92 #ifndef UINT8_MAX
93 #define UINT8_MAX (255U)
94 #endif
95 #ifndef UINT16_MAX
96 #define UINT16_MAX (65535U)
97 #endif
98 #ifndef UINT32_MAX
99 #define UINT32_MAX (4294967295U)
100 #endif
102 #endif /* ! C99 */
104 #endif /* ! FLEXINT_H */
106 #ifdef __cplusplus
108 /* The "const" storage-class-modifier is valid. */
109 #define YY_USE_CONST
111 #else /* ! __cplusplus */
113 /* C99 requires __STDC__ to be defined as 1. */
114 #if defined (__STDC__)
116 #define YY_USE_CONST
118 #endif /* defined (__STDC__) */
119 #endif /* ! __cplusplus */
121 #ifdef YY_USE_CONST
122 #define yyconst const
123 #else
124 #define yyconst
125 #endif
127 /* An opaque pointer. */
128 #ifndef YY_TYPEDEF_YY_SCANNER_T
129 #define YY_TYPEDEF_YY_SCANNER_T
130 typedef void* yyscan_t;
131 #endif
133 /* For convenience, these vars (plus the bison vars far below)
134 are macros in the reentrant scanner. */
135 #define yyin yyg->yyin_r
136 #define yyout yyg->yyout_r
137 #define yyextra yyg->yyextra_r
138 #define yyleng yyg->yyleng_r
139 #define yytext yyg->yytext_r
140 #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
141 #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
142 #define yy_flex_debug yyg->yy_flex_debug_r
144 /* Size of default input buffer. */
145 #ifndef YY_BUF_SIZE
146 #ifdef __ia64__
147 /* On IA-64, the buffer size is 16k, not 8k.
148 * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
149 * Ditto for the __ia64__ case accordingly.
151 #define YY_BUF_SIZE 32768
152 #else
153 #define YY_BUF_SIZE 16384
154 #endif /* __ia64__ */
155 #endif
157 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
158 #define YY_TYPEDEF_YY_BUFFER_STATE
159 typedef struct yy_buffer_state *YY_BUFFER_STATE;
160 #endif
162 #ifndef YY_TYPEDEF_YY_SIZE_T
163 #define YY_TYPEDEF_YY_SIZE_T
164 typedef size_t yy_size_t;
165 #endif
167 #ifndef YY_STRUCT_YY_BUFFER_STATE
168 #define YY_STRUCT_YY_BUFFER_STATE
169 struct yy_buffer_state
171 FILE *yy_input_file;
173 char *yy_ch_buf; /* input buffer */
174 char *yy_buf_pos; /* current position in input buffer */
176 /* Size of input buffer in bytes, not including room for EOB
177 * characters.
179 yy_size_t yy_buf_size;
181 /* Number of characters read into yy_ch_buf, not including EOB
182 * characters.
184 yy_size_t yy_n_chars;
186 /* Whether we "own" the buffer - i.e., we know we created it,
187 * and can realloc() it to grow it, and should free() it to
188 * delete it.
190 int yy_is_our_buffer;
192 /* Whether this is an "interactive" input source; if so, and
193 * if we're using stdio for input, then we want to use getc()
194 * instead of fread(), to make sure we stop fetching input after
195 * each newline.
197 int yy_is_interactive;
199 /* Whether we're considered to be at the beginning of a line.
200 * If so, '^' rules will be active on the next match, otherwise
201 * not.
203 int yy_at_bol;
205 int yy_bs_lineno; /**< The line count. */
206 int yy_bs_column; /**< The column count. */
208 /* Whether to try to fill the input buffer when we reach the
209 * end of it.
211 int yy_fill_buffer;
213 int yy_buffer_status;
216 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
218 void _gmx_sel_yyrestart (FILE *input_file ,yyscan_t yyscanner );
219 void _gmx_sel_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
220 YY_BUFFER_STATE _gmx_sel_yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner );
221 void _gmx_sel_yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
222 void _gmx_sel_yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
223 void _gmx_sel_yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
224 void _gmx_sel_yypop_buffer_state (yyscan_t yyscanner );
226 YY_BUFFER_STATE _gmx_sel_yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
227 YY_BUFFER_STATE _gmx_sel_yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
228 YY_BUFFER_STATE _gmx_sel_yy_scan_bytes (yyconst char *bytes,yy_size_t len ,yyscan_t yyscanner );
230 void *_gmx_sel_yyalloc (yy_size_t ,yyscan_t yyscanner );
231 void *_gmx_sel_yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
232 void _gmx_sel_yyfree (void * ,yyscan_t yyscanner );
234 #define _gmx_sel_yywrap(yyscanner) (/*CONSTCOND*/1)
235 #define YY_SKIP_YYWRAP
237 #define yytext_ptr yytext_r
239 #ifdef YY_HEADER_EXPORT_START_CONDITIONS
240 #define INITIAL 0
241 #define matchof 1
242 #define matchbool 2
243 #define cmdstart 3
245 #endif
247 #ifndef YY_NO_UNISTD_H
248 /* Special case for "unistd.h", since it is non-ANSI. We include it way
249 * down here because we want the user's section 1 to have been scanned first.
250 * The user has a chance to override it with an option.
252 #include <unistd.h>
253 #endif
255 #ifndef YY_EXTRA_TYPE
256 #define YY_EXTRA_TYPE void *
257 #endif
259 int _gmx_sel_yylex_init (yyscan_t* scanner);
261 int _gmx_sel_yylex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner);
263 /* Accessor methods to globals.
264 These are made visible to non-reentrant scanners for convenience. */
266 int _gmx_sel_yylex_destroy (yyscan_t yyscanner );
268 int _gmx_sel_yyget_debug (yyscan_t yyscanner );
270 void _gmx_sel_yyset_debug (int debug_flag ,yyscan_t yyscanner );
272 YY_EXTRA_TYPE _gmx_sel_yyget_extra (yyscan_t yyscanner );
274 void _gmx_sel_yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
276 FILE *_gmx_sel_yyget_in (yyscan_t yyscanner );
278 void _gmx_sel_yyset_in (FILE * _in_str ,yyscan_t yyscanner );
280 FILE *_gmx_sel_yyget_out (yyscan_t yyscanner );
282 void _gmx_sel_yyset_out (FILE * _out_str ,yyscan_t yyscanner );
284 yy_size_t _gmx_sel_yyget_leng (yyscan_t yyscanner );
286 char *_gmx_sel_yyget_text (yyscan_t yyscanner );
288 int _gmx_sel_yyget_lineno (yyscan_t yyscanner );
290 void _gmx_sel_yyset_lineno (int _line_number ,yyscan_t yyscanner );
292 int _gmx_sel_yyget_column (yyscan_t yyscanner );
294 void _gmx_sel_yyset_column (int _column_no ,yyscan_t yyscanner );
296 /* Macros after this point can all be overridden by user definitions in
297 * section 1.
300 #ifndef YY_SKIP_YYWRAP
301 #ifdef __cplusplus
302 extern "C" int _gmx_sel_yywrap (yyscan_t yyscanner );
303 #else
304 extern int _gmx_sel_yywrap (yyscan_t yyscanner );
305 #endif
306 #endif
308 #ifndef yytext_ptr
309 static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
310 #endif
312 #ifdef YY_NEED_STRLEN
313 static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
314 #endif
316 #ifndef YY_NO_INPUT
318 #endif
320 /* Amount of stuff to slurp up with each read. */
321 #ifndef YY_READ_BUF_SIZE
322 #ifdef __ia64__
323 /* On IA-64, the buffer size is 16k, not 8k */
324 #define YY_READ_BUF_SIZE 16384
325 #else
326 #define YY_READ_BUF_SIZE 8192
327 #endif /* __ia64__ */
328 #endif
330 /* Number of entries by which start-condition stack grows. */
331 #ifndef YY_START_STACK_INCR
332 #define YY_START_STACK_INCR 25
333 #endif
335 /* Default declaration of generated scanner - a define so the user can
336 * easily add parameters.
338 #ifndef YY_DECL
339 #define YY_DECL_IS_OURS 1
341 extern int _gmx_sel_yylex (yyscan_t yyscanner);
343 #define YY_DECL int _gmx_sel_yylex (yyscan_t yyscanner)
344 #endif /* !YY_DECL */
346 /* yy_get_previous_state - get the state just before the EOB char was reached */
348 #undef YY_NEW_FILE
349 #undef YY_FLUSH_BUFFER
350 #undef yy_set_bol
351 #undef yy_new_buffer
352 #undef yy_set_interactive
353 #undef YY_DO_BEFORE_ACTION
355 #ifdef YY_DECL_IS_OURS
356 #undef YY_DECL_IS_OURS
357 #undef YY_DECL
358 #endif
360 #line 178 "scanner.l"
362 #line 363 "scanner_flex.h"
363 #undef _gmx_sel_yyIN_HEADER
364 #endif /* _gmx_sel_yyHEADER_H */