1 #ifndef parse_events_HEADER_H
2 #define parse_events_HEADER_H 1
3 #define parse_events_IN_HEADER 1
5 #line 6 "util/parse-events-flex.h"
7 #define YY_INT_ALIGNED short int
9 /* A lexical scanner generated by flex */
12 #define YY_FLEX_MAJOR_VERSION 2
13 #define YY_FLEX_MINOR_VERSION 5
14 #define YY_FLEX_SUBMINOR_VERSION 35
15 #if YY_FLEX_SUBMINOR_VERSION > 0
19 /* First, we deal with platform-specific or compiler-specific issues. */
21 /* begin standard C headers. */
27 /* end standard C headers. */
29 /* flex integer type definitions */
34 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
36 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
38 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
39 * if you want the limit (max/min) macros for int types.
41 #ifndef __STDC_LIMIT_MACROS
42 #define __STDC_LIMIT_MACROS 1
46 typedef int8_t flex_int8_t
;
47 typedef uint8_t flex_uint8_t
;
48 typedef int16_t flex_int16_t
;
49 typedef uint16_t flex_uint16_t
;
50 typedef int32_t flex_int32_t
;
51 typedef uint32_t flex_uint32_t
;
53 typedef signed char flex_int8_t
;
54 typedef short int flex_int16_t
;
55 typedef int flex_int32_t
;
56 typedef unsigned char flex_uint8_t
;
57 typedef unsigned short int flex_uint16_t
;
58 typedef unsigned int flex_uint32_t
;
61 /* Limits of integral types. */
63 #define INT8_MIN (-128)
66 #define INT16_MIN (-32767-1)
69 #define INT32_MIN (-2147483647-1)
72 #define INT8_MAX (127)
75 #define INT16_MAX (32767)
78 #define INT32_MAX (2147483647)
81 #define UINT8_MAX (255U)
84 #define UINT16_MAX (65535U)
87 #define UINT32_MAX (4294967295U)
90 #endif /* ! FLEXINT_H */
94 /* The "const" storage-class-modifier is valid. */
97 #else /* ! __cplusplus */
99 /* C99 requires __STDC__ to be defined as 1. */
100 #if defined (__STDC__)
104 #endif /* defined (__STDC__) */
105 #endif /* ! __cplusplus */
108 #define yyconst const
113 /* Size of default input buffer. */
115 #define YY_BUF_SIZE 16384
118 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
119 #define YY_TYPEDEF_YY_BUFFER_STATE
120 typedef struct yy_buffer_state
*YY_BUFFER_STATE
;
123 extern int parse_events_leng
;
125 extern FILE *parse_events_in
, *parse_events_out
;
127 #ifndef YY_TYPEDEF_YY_SIZE_T
128 #define YY_TYPEDEF_YY_SIZE_T
129 typedef size_t yy_size_t
;
132 #ifndef YY_STRUCT_YY_BUFFER_STATE
133 #define YY_STRUCT_YY_BUFFER_STATE
134 struct yy_buffer_state
138 char *yy_ch_buf
; /* input buffer */
139 char *yy_buf_pos
; /* current position in input buffer */
141 /* Size of input buffer in bytes, not including room for EOB
144 yy_size_t yy_buf_size
;
146 /* Number of characters read into yy_ch_buf, not including EOB
151 /* Whether we "own" the buffer - i.e., we know we created it,
152 * and can realloc() it to grow it, and should free() it to
155 int yy_is_our_buffer
;
157 /* Whether this is an "interactive" input source; if so, and
158 * if we're using stdio for input, then we want to use getc()
159 * instead of fread(), to make sure we stop fetching input after
162 int yy_is_interactive
;
164 /* Whether we're considered to be at the beginning of a line.
165 * If so, '^' rules will be active on the next match, otherwise
170 int yy_bs_lineno
; /**< The line count. */
171 int yy_bs_column
; /**< The column count. */
173 /* Whether to try to fill the input buffer when we reach the
178 int yy_buffer_status
;
181 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
183 void parse_events_restart (FILE *input_file
);
184 void parse_events__switch_to_buffer (YY_BUFFER_STATE new_buffer
);
185 YY_BUFFER_STATE
parse_events__create_buffer (FILE *file
,int size
);
186 void parse_events__delete_buffer (YY_BUFFER_STATE b
);
187 void parse_events__flush_buffer (YY_BUFFER_STATE b
);
188 void parse_events_push_buffer_state (YY_BUFFER_STATE new_buffer
);
189 void parse_events_pop_buffer_state (void );
191 YY_BUFFER_STATE
parse_events__scan_buffer (char *base
,yy_size_t size
);
192 YY_BUFFER_STATE
parse_events__scan_string (yyconst
char *yy_str
);
193 YY_BUFFER_STATE
parse_events__scan_bytes (yyconst
char *bytes
,int len
);
195 void *parse_events_alloc (yy_size_t
);
196 void *parse_events_realloc (void *,yy_size_t
);
197 void parse_events_free (void * );
199 /* Begin user sect3 */
201 extern int parse_events_lineno
;
203 extern char *parse_events_text
;
204 #define yytext_ptr parse_events_text
206 #ifdef YY_HEADER_EXPORT_START_CONDITIONS
211 #ifndef YY_NO_UNISTD_H
212 /* Special case for "unistd.h", since it is non-ANSI. We include it way
213 * down here because we want the user's section 1 to have been scanned first.
214 * The user has a chance to override it with an option.
219 #ifndef YY_EXTRA_TYPE
220 #define YY_EXTRA_TYPE void *
223 /* Accessor methods to globals.
224 These are made visible to non-reentrant scanners for convenience. */
226 int parse_events_lex_destroy (void );
228 int parse_events_get_debug (void );
230 void parse_events_set_debug (int debug_flag
);
232 YY_EXTRA_TYPE
parse_events_get_extra (void );
234 void parse_events_set_extra (YY_EXTRA_TYPE user_defined
);
236 FILE *parse_events_get_in (void );
238 void parse_events_set_in (FILE * in_str
);
240 FILE *parse_events_get_out (void );
242 void parse_events_set_out (FILE * out_str
);
244 int parse_events_get_leng (void );
246 char *parse_events_get_text (void );
248 int parse_events_get_lineno (void );
250 void parse_events_set_lineno (int line_number
);
252 /* Macros after this point can all be overridden by user definitions in
256 #ifndef YY_SKIP_YYWRAP
258 extern "C" int parse_events_wrap (void );
260 extern int parse_events_wrap (void );
265 static void yy_flex_strncpy (char *,yyconst
char *,int );
268 #ifdef YY_NEED_STRLEN
269 static int yy_flex_strlen (yyconst
char * );
276 /* Amount of stuff to slurp up with each read. */
277 #ifndef YY_READ_BUF_SIZE
278 #define YY_READ_BUF_SIZE 8192
281 /* Number of entries by which start-condition stack grows. */
282 #ifndef YY_START_STACK_INCR
283 #define YY_START_STACK_INCR 25
286 /* Default declaration of generated scanner - a define so the user can
287 * easily add parameters.
290 #define YY_DECL_IS_OURS 1
292 extern int parse_events_lex (void);
294 #define YY_DECL int parse_events_lex (void)
295 #endif /* !YY_DECL */
297 /* yy_get_previous_state - get the state just before the EOB char was reached */
300 #undef YY_FLUSH_BUFFER
303 #undef yy_set_interactive
304 #undef YY_DO_BEFORE_ACTION
306 #ifdef YY_DECL_IS_OURS
307 #undef YY_DECL_IS_OURS
311 #line 121 "util/parse-events.l"
314 #line 315 "util/parse-events-flex.h"
315 #undef parse_events_IN_HEADER
316 #endif /* parse_events_HEADER_H */