Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
text2pcap-scanner_lex.h
1 #ifndef text2pcap_HEADER_H
2 #define text2pcap_HEADER_H 1
3 #define text2pcap_IN_HEADER 1
4 
5 #line 6 "/home/wireshark/builders/wireshark-master/ubuntu-16.04-x64/build/cmbuild/text2pcap-scanner_lex.h"
6 /* Include this before everything else, for various large-file definitions */
7 #include "config.h"
8 
9 #line 10 "/home/wireshark/builders/wireshark-master/ubuntu-16.04-x64/build/cmbuild/text2pcap-scanner_lex.h"
10 
11 #define YY_INT_ALIGNED short int
12 
13 /* A lexical scanner generated by flex */
14 
15 #define FLEX_SCANNER
16 #define YY_FLEX_MAJOR_VERSION 2
17 #define YY_FLEX_MINOR_VERSION 6
18 #define YY_FLEX_SUBMINOR_VERSION 0
19 #if YY_FLEX_SUBMINOR_VERSION > 0
20 #define FLEX_BETA
21 #endif
22 
23 /* First, we deal with platform-specific or compiler-specific issues. */
24 
25 /* begin standard C headers. */
26 #include <stdio.h>
27 #include <string.h>
28 #include <errno.h>
29 #include <stdlib.h>
30 
31 /* end standard C headers. */
32 
33 /* flex integer type definitions */
34 
35 #ifndef FLEXINT_H
36 #define FLEXINT_H
37 
38 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
39 
40 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
41 
42 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
43  * if you want the limit (max/min) macros for int types.
44  */
45 #ifndef __STDC_LIMIT_MACROS
46 #define __STDC_LIMIT_MACROS 1
47 #endif
48 
49 #include <inttypes.h>
50 typedef int8_t flex_int8_t;
51 typedef uint8_t flex_uint8_t;
52 typedef int16_t flex_int16_t;
53 typedef uint16_t flex_uint16_t;
54 typedef int32_t flex_int32_t;
55 typedef uint32_t flex_uint32_t;
56 #else
57 typedef signed char flex_int8_t;
58 typedef short int flex_int16_t;
59 typedef int flex_int32_t;
60 typedef unsigned char flex_uint8_t;
61 typedef unsigned short int flex_uint16_t;
62 typedef unsigned int flex_uint32_t;
63 
64 /* Limits of integral types. */
65 #ifndef INT8_MIN
66 #define INT8_MIN (-128)
67 #endif
68 #ifndef INT16_MIN
69 #define INT16_MIN (-32767-1)
70 #endif
71 #ifndef INT32_MIN
72 #define INT32_MIN (-2147483647-1)
73 #endif
74 #ifndef INT8_MAX
75 #define INT8_MAX (127)
76 #endif
77 #ifndef INT16_MAX
78 #define INT16_MAX (32767)
79 #endif
80 #ifndef INT32_MAX
81 #define INT32_MAX (2147483647)
82 #endif
83 #ifndef UINT8_MAX
84 #define UINT8_MAX (255U)
85 #endif
86 #ifndef UINT16_MAX
87 #define UINT16_MAX (65535U)
88 #endif
89 #ifndef UINT32_MAX
90 #define UINT32_MAX (4294967295U)
91 #endif
92 
93 #endif /* ! C99 */
94 
95 #endif /* ! FLEXINT_H */
96 
97 #ifdef __cplusplus
98 
99 /* The "const" storage-class-modifier is valid. */
100 #define YY_USE_CONST
101 
102 #else /* ! __cplusplus */
103 
104 /* C99 requires __STDC__ to be defined as 1. */
105 #if defined (__STDC__)
106 
107 #define YY_USE_CONST
108 
109 #endif /* defined (__STDC__) */
110 #endif /* ! __cplusplus */
111 
112 #ifdef YY_USE_CONST
113 #define yyconst const
114 #else
115 #define yyconst
116 #endif
117 
118 /* Size of default input buffer. */
119 #ifndef YY_BUF_SIZE
120 #ifdef __ia64__
121 /* On IA-64, the buffer size is 16k, not 8k.
122  * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
123  * Ditto for the __ia64__ case accordingly.
124  */
125 #define YY_BUF_SIZE 32768
126 #else
127 #define YY_BUF_SIZE 16384
128 #endif /* __ia64__ */
129 #endif
130 
131 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
132 #define YY_TYPEDEF_YY_BUFFER_STATE
133 typedef struct yy_buffer_state *YY_BUFFER_STATE;
134 #endif
135 
136 #ifndef YY_TYPEDEF_YY_SIZE_T
137 #define YY_TYPEDEF_YY_SIZE_T
138 typedef size_t yy_size_t;
139 #endif
140 
141 extern yy_size_t text2pcap_leng;
142 
143 extern FILE *text2pcap_in, *text2pcap_out;
144 
145 #ifndef YY_STRUCT_YY_BUFFER_STATE
146 #define YY_STRUCT_YY_BUFFER_STATE
147 struct yy_buffer_state
148  {
149  FILE *yy_input_file;
150 
151  char *yy_ch_buf; /* input buffer */
152  char *yy_buf_pos; /* current position in input buffer */
153 
154  /* Size of input buffer in bytes, not including room for EOB
155  * characters.
156  */
157  yy_size_t yy_buf_size;
158 
159  /* Number of characters read into yy_ch_buf, not including EOB
160  * characters.
161  */
162  int yy_n_chars;
163 
164  /* Whether we "own" the buffer - i.e., we know we created it,
165  * and can realloc() it to grow it, and should free() it to
166  * delete it.
167  */
168  int yy_is_our_buffer;
169 
170  /* Whether this is an "interactive" input source; if so, and
171  * if we're using stdio for input, then we want to use getc()
172  * instead of fread(), to make sure we stop fetching input after
173  * each newline.
174  */
175  int yy_is_interactive;
176 
177  /* Whether we're considered to be at the beginning of a line.
178  * If so, '^' rules will be active on the next match, otherwise
179  * not.
180  */
181  int yy_at_bol;
182 
183  int yy_bs_lineno;
184  int yy_bs_column;
186  /* Whether to try to fill the input buffer when we reach the
187  * end of it.
188  */
189  int yy_fill_buffer;
190 
191  int yy_buffer_status;
192 
193  };
194 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
195 
196 void text2pcap_restart (FILE *input_file );
197 void text2pcap__switch_to_buffer (YY_BUFFER_STATE new_buffer );
198 YY_BUFFER_STATE text2pcap__create_buffer (FILE *file,int size );
199 void text2pcap__delete_buffer (YY_BUFFER_STATE b );
200 void text2pcap__flush_buffer (YY_BUFFER_STATE b );
201 void text2pcap_push_buffer_state (YY_BUFFER_STATE new_buffer );
202 void text2pcap_pop_buffer_state (void );
203 
204 YY_BUFFER_STATE text2pcap__scan_buffer (char *base,yy_size_t size );
205 YY_BUFFER_STATE text2pcap__scan_string (yyconst char *yy_str );
206 YY_BUFFER_STATE text2pcap__scan_bytes (yyconst char *bytes,yy_size_t len );
207 
208 void *text2pcap_alloc (yy_size_t );
209 void *text2pcap_realloc (void *,yy_size_t );
210 void text2pcap_free (void * );
211 
212 /* Begin user sect3 */
213 
214 #define text2pcap_wrap() (/*CONSTCOND*/1)
215 #define YY_SKIP_YYWRAP
216 
217 extern int text2pcap_lineno;
218 
219 extern char *text2pcap_text;
220 #ifdef yytext_ptr
221 #undef yytext_ptr
222 #endif
223 #define yytext_ptr text2pcap_text
224 
225 #ifdef YY_HEADER_EXPORT_START_CONDITIONS
226 #define INITIAL 0
227 
228 #endif
229 
230 #ifndef YY_NO_UNISTD_H
231 /* Special case for "unistd.h", since it is non-ANSI. We include it way
232  * down here because we want the user's section 1 to have been scanned first.
233  * The user has a chance to override it with an option.
234  */
235 #include <unistd.h>
236 #endif
237 
238 #ifndef YY_EXTRA_TYPE
239 #define YY_EXTRA_TYPE void *
240 #endif
241 
242 /* Accessor methods to globals.
243  These are made visible to non-reentrant scanners for convenience. */
244 
245 int text2pcap_lex_destroy (void );
246 
247 int text2pcap_get_debug (void );
248 
249 void text2pcap_set_debug (int debug_flag );
250 
251 YY_EXTRA_TYPE text2pcap_get_extra (void );
252 
253 void text2pcap_set_extra (YY_EXTRA_TYPE user_defined );
254 
255 FILE *text2pcap_get_in (void );
256 
257 void text2pcap_set_in (FILE * _in_str );
258 
259 FILE *text2pcap_get_out (void );
260 
261 void text2pcap_set_out (FILE * _out_str );
262 
263 yy_size_t text2pcap_get_leng (void );
264 
265 char *text2pcap_get_text (void );
266 
267 int text2pcap_get_lineno (void );
268 
269 void text2pcap_set_lineno (int _line_number );
270 
271 /* Macros after this point can all be overridden by user definitions in
272  * section 1.
273  */
274 
275 #ifndef YY_SKIP_YYWRAP
276 #ifdef __cplusplus
277 extern "C" int text2pcap_wrap (void );
278 #else
279 extern int text2pcap_wrap (void );
280 #endif
281 #endif
282 
283 #ifndef yytext_ptr
284 static void yy_flex_strncpy (char *,yyconst char *,int );
285 #endif
286 
287 #ifdef YY_NEED_STRLEN
288 static int yy_flex_strlen (yyconst char * );
289 #endif
290 
291 #ifndef YY_NO_INPUT
292 
293 #endif
294 
295 /* Amount of stuff to slurp up with each read. */
296 #ifndef YY_READ_BUF_SIZE
297 #ifdef __ia64__
298 /* On IA-64, the buffer size is 16k, not 8k */
299 #define YY_READ_BUF_SIZE 16384
300 #else
301 #define YY_READ_BUF_SIZE 8192
302 #endif /* __ia64__ */
303 #endif
304 
305 /* Number of entries by which start-condition stack grows. */
306 #ifndef YY_START_STACK_INCR
307 #define YY_START_STACK_INCR 25
308 #endif
309 
310 /* Default declaration of generated scanner - a define so the user can
311  * easily add parameters.
312  */
313 #ifndef YY_DECL
314 #define YY_DECL_IS_OURS 1
315 
316 extern int text2pcap_lex (void);
317 
318 #define YY_DECL int text2pcap_lex (void)
319 #endif /* !YY_DECL */
320 
321 /* yy_get_previous_state - get the state just before the EOB char was reached */
322 
323 #undef YY_NEW_FILE
324 #undef YY_FLUSH_BUFFER
325 #undef yy_set_bol
326 #undef yy_new_buffer
327 #undef yy_set_interactive
328 #undef YY_DO_BEFORE_ACTION
329 
330 #ifdef YY_DECL_IS_OURS
331 #undef YY_DECL_IS_OURS
332 #undef YY_DECL
333 #endif
334 
335 #line 98 "/home/wireshark/builders/wireshark-master/ubuntu-16.04-x64/build/text2pcap-scanner.l"
336 
337 
338 #line 339 "/home/wireshark/builders/wireshark-master/ubuntu-16.04-x64/build/cmbuild/text2pcap-scanner_lex.h"
339 #undef text2pcap_IN_HEADER
340 #endif /* text2pcap_HEADER_H */
int yy_bs_lineno
Definition: scanner.c:250
int yy_bs_column
Definition: scanner.c:251
Definition: scanner.c:214