libnl 3.9.0
ematch_grammar.h
1#ifndef ematch_HEADER_H
2#define ematch_HEADER_H 1
3#define ematch_IN_HEADER 1
4
5#line 5 "lib/route/cls/ematch_grammar.h"
6
7#line 7 "lib/route/cls/ematch_grammar.h"
8
9#define YY_INT_ALIGNED short int
10
11/* A lexical scanner generated by flex */
12
13#define FLEX_SCANNER
14#define YY_FLEX_MAJOR_VERSION 2
15#define YY_FLEX_MINOR_VERSION 6
16#define YY_FLEX_SUBMINOR_VERSION 4
17#if YY_FLEX_SUBMINOR_VERSION > 0
18#define FLEX_BETA
19#endif
20
21#ifdef yy_create_buffer
22#define ematch__create_buffer_ALREADY_DEFINED
23#else
24#define yy_create_buffer ematch__create_buffer
25#endif
26
27#ifdef yy_delete_buffer
28#define ematch__delete_buffer_ALREADY_DEFINED
29#else
30#define yy_delete_buffer ematch__delete_buffer
31#endif
32
33#ifdef yy_scan_buffer
34#define ematch__scan_buffer_ALREADY_DEFINED
35#else
36#define yy_scan_buffer ematch__scan_buffer
37#endif
38
39#ifdef yy_scan_string
40#define ematch__scan_string_ALREADY_DEFINED
41#else
42#define yy_scan_string ematch__scan_string
43#endif
44
45#ifdef yy_scan_bytes
46#define ematch__scan_bytes_ALREADY_DEFINED
47#else
48#define yy_scan_bytes ematch__scan_bytes
49#endif
50
51#ifdef yy_init_buffer
52#define ematch__init_buffer_ALREADY_DEFINED
53#else
54#define yy_init_buffer ematch__init_buffer
55#endif
56
57#ifdef yy_flush_buffer
58#define ematch__flush_buffer_ALREADY_DEFINED
59#else
60#define yy_flush_buffer ematch__flush_buffer
61#endif
62
63#ifdef yy_load_buffer_state
64#define ematch__load_buffer_state_ALREADY_DEFINED
65#else
66#define yy_load_buffer_state ematch__load_buffer_state
67#endif
68
69#ifdef yy_switch_to_buffer
70#define ematch__switch_to_buffer_ALREADY_DEFINED
71#else
72#define yy_switch_to_buffer ematch__switch_to_buffer
73#endif
74
75#ifdef yypush_buffer_state
76#define ematch_push_buffer_state_ALREADY_DEFINED
77#else
78#define yypush_buffer_state ematch_push_buffer_state
79#endif
80
81#ifdef yypop_buffer_state
82#define ematch_pop_buffer_state_ALREADY_DEFINED
83#else
84#define yypop_buffer_state ematch_pop_buffer_state
85#endif
86
87#ifdef yyensure_buffer_stack
88#define ematch_ensure_buffer_stack_ALREADY_DEFINED
89#else
90#define yyensure_buffer_stack ematch_ensure_buffer_stack
91#endif
92
93#ifdef yylex
94#define ematch_lex_ALREADY_DEFINED
95#else
96#define yylex ematch_lex
97#endif
98
99#ifdef yyrestart
100#define ematch_restart_ALREADY_DEFINED
101#else
102#define yyrestart ematch_restart
103#endif
104
105#ifdef yylex_init
106#define ematch_lex_init_ALREADY_DEFINED
107#else
108#define yylex_init ematch_lex_init
109#endif
110
111#ifdef yylex_init_extra
112#define ematch_lex_init_extra_ALREADY_DEFINED
113#else
114#define yylex_init_extra ematch_lex_init_extra
115#endif
116
117#ifdef yylex_destroy
118#define ematch_lex_destroy_ALREADY_DEFINED
119#else
120#define yylex_destroy ematch_lex_destroy
121#endif
122
123#ifdef yyget_debug
124#define ematch_get_debug_ALREADY_DEFINED
125#else
126#define yyget_debug ematch_get_debug
127#endif
128
129#ifdef yyset_debug
130#define ematch_set_debug_ALREADY_DEFINED
131#else
132#define yyset_debug ematch_set_debug
133#endif
134
135#ifdef yyget_extra
136#define ematch_get_extra_ALREADY_DEFINED
137#else
138#define yyget_extra ematch_get_extra
139#endif
140
141#ifdef yyset_extra
142#define ematch_set_extra_ALREADY_DEFINED
143#else
144#define yyset_extra ematch_set_extra
145#endif
146
147#ifdef yyget_in
148#define ematch_get_in_ALREADY_DEFINED
149#else
150#define yyget_in ematch_get_in
151#endif
152
153#ifdef yyset_in
154#define ematch_set_in_ALREADY_DEFINED
155#else
156#define yyset_in ematch_set_in
157#endif
158
159#ifdef yyget_out
160#define ematch_get_out_ALREADY_DEFINED
161#else
162#define yyget_out ematch_get_out
163#endif
164
165#ifdef yyset_out
166#define ematch_set_out_ALREADY_DEFINED
167#else
168#define yyset_out ematch_set_out
169#endif
170
171#ifdef yyget_leng
172#define ematch_get_leng_ALREADY_DEFINED
173#else
174#define yyget_leng ematch_get_leng
175#endif
176
177#ifdef yyget_text
178#define ematch_get_text_ALREADY_DEFINED
179#else
180#define yyget_text ematch_get_text
181#endif
182
183#ifdef yyget_lineno
184#define ematch_get_lineno_ALREADY_DEFINED
185#else
186#define yyget_lineno ematch_get_lineno
187#endif
188
189#ifdef yyset_lineno
190#define ematch_set_lineno_ALREADY_DEFINED
191#else
192#define yyset_lineno ematch_set_lineno
193#endif
194
195#ifdef yyget_column
196#define ematch_get_column_ALREADY_DEFINED
197#else
198#define yyget_column ematch_get_column
199#endif
200
201#ifdef yyset_column
202#define ematch_set_column_ALREADY_DEFINED
203#else
204#define yyset_column ematch_set_column
205#endif
206
207#ifdef yywrap
208#define ematch_wrap_ALREADY_DEFINED
209#else
210#define yywrap ematch_wrap
211#endif
212
213#ifdef yyget_lval
214#define ematch_get_lval_ALREADY_DEFINED
215#else
216#define yyget_lval ematch_get_lval
217#endif
218
219#ifdef yyset_lval
220#define ematch_set_lval_ALREADY_DEFINED
221#else
222#define yyset_lval ematch_set_lval
223#endif
224
225#ifdef yyalloc
226#define ematch_alloc_ALREADY_DEFINED
227#else
228#define yyalloc ematch_alloc
229#endif
230
231#ifdef yyrealloc
232#define ematch_realloc_ALREADY_DEFINED
233#else
234#define yyrealloc ematch_realloc
235#endif
236
237#ifdef yyfree
238#define ematch_free_ALREADY_DEFINED
239#else
240#define yyfree ematch_free
241#endif
242
243/* First, we deal with platform-specific or compiler-specific issues. */
244
245/* begin standard C headers. */
246#include <stdio.h>
247#include <string.h>
248#include <errno.h>
249#include <stdlib.h>
250
251/* end standard C headers. */
252
253/* flex integer type definitions */
254
255#ifndef FLEXINT_H
256#define FLEXINT_H
257
258/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
259
260#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
261
262/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
263 * if you want the limit (max/min) macros for int types.
264 */
265#ifndef __STDC_LIMIT_MACROS
266#define __STDC_LIMIT_MACROS 1
267#endif
268
269#include <inttypes.h>
270typedef int8_t flex_int8_t;
271typedef uint8_t flex_uint8_t;
272typedef int16_t flex_int16_t;
273typedef uint16_t flex_uint16_t;
274typedef int32_t flex_int32_t;
275typedef uint32_t flex_uint32_t;
276#else
277typedef signed char flex_int8_t;
278typedef short int flex_int16_t;
279typedef int flex_int32_t;
280typedef unsigned char flex_uint8_t;
281typedef unsigned short int flex_uint16_t;
282typedef unsigned int flex_uint32_t;
283
284/* Limits of integral types. */
285#ifndef INT8_MIN
286#define INT8_MIN (-128)
287#endif
288#ifndef INT16_MIN
289#define INT16_MIN (-32767-1)
290#endif
291#ifndef INT32_MIN
292#define INT32_MIN (-2147483647-1)
293#endif
294#ifndef INT8_MAX
295#define INT8_MAX (127)
296#endif
297#ifndef INT16_MAX
298#define INT16_MAX (32767)
299#endif
300#ifndef INT32_MAX
301#define INT32_MAX (2147483647)
302#endif
303#ifndef UINT8_MAX
304#define UINT8_MAX (255U)
305#endif
306#ifndef UINT16_MAX
307#define UINT16_MAX (65535U)
308#endif
309#ifndef UINT32_MAX
310#define UINT32_MAX (4294967295U)
311#endif
312
313#ifndef SIZE_MAX
314#define SIZE_MAX (~(size_t)0)
315#endif
316
317#endif /* ! C99 */
318
319#endif /* ! FLEXINT_H */
320
321/* begin standard C++ headers. */
322
323/* TODO: this is always defined, so inline it */
324#define yyconst const
325
326#if defined(__GNUC__) && __GNUC__ >= 3
327#define yynoreturn __attribute__((__noreturn__))
328#else
329#define yynoreturn
330#endif
331
332/* An opaque pointer. */
333#ifndef YY_TYPEDEF_YY_SCANNER_T
334#define YY_TYPEDEF_YY_SCANNER_T
335typedef void* yyscan_t;
336#endif
337
338/* For convenience, these vars (plus the bison vars far below)
339 are macros in the reentrant scanner. */
340#define yyin yyg->yyin_r
341#define yyout yyg->yyout_r
342#define yyextra yyg->yyextra_r
343#define yyleng yyg->yyleng_r
344#define yytext yyg->yytext_r
345#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
346#define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
347#define yy_flex_debug yyg->yy_flex_debug_r
348
349/* Size of default input buffer. */
350#ifndef YY_BUF_SIZE
351#ifdef __ia64__
352/* On IA-64, the buffer size is 16k, not 8k.
353 * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
354 * Ditto for the __ia64__ case accordingly.
355 */
356#define YY_BUF_SIZE 32768
357#else
358#define YY_BUF_SIZE 16384
359#endif /* __ia64__ */
360#endif
361
362#ifndef YY_TYPEDEF_YY_BUFFER_STATE
363#define YY_TYPEDEF_YY_BUFFER_STATE
364typedef struct yy_buffer_state *YY_BUFFER_STATE;
365#endif
366
367#ifndef YY_TYPEDEF_YY_SIZE_T
368#define YY_TYPEDEF_YY_SIZE_T
369typedef size_t yy_size_t;
370#endif
371
372#ifndef YY_STRUCT_YY_BUFFER_STATE
373#define YY_STRUCT_YY_BUFFER_STATE
374struct yy_buffer_state
375 {
376 FILE *yy_input_file;
377
378 char *yy_ch_buf; /* input buffer */
379 char *yy_buf_pos; /* current position in input buffer */
380
381 /* Size of input buffer in bytes, not including room for EOB
382 * characters.
383 */
384 int yy_buf_size;
385
386 /* Number of characters read into yy_ch_buf, not including EOB
387 * characters.
388 */
389 int yy_n_chars;
390
391 /* Whether we "own" the buffer - i.e., we know we created it,
392 * and can realloc() it to grow it, and should free() it to
393 * delete it.
394 */
395 int yy_is_our_buffer;
396
397 /* Whether this is an "interactive" input source; if so, and
398 * if we're using stdio for input, then we want to use getc()
399 * instead of fread(), to make sure we stop fetching input after
400 * each newline.
401 */
402 int yy_is_interactive;
403
404 /* Whether we're considered to be at the beginning of a line.
405 * If so, '^' rules will be active on the next match, otherwise
406 * not.
407 */
408 int yy_at_bol;
409
410 int yy_bs_lineno; /**< The line count. */
411 int yy_bs_column; /**< The column count. */
412
413 /* Whether to try to fill the input buffer when we reach the
414 * end of it.
415 */
416 int yy_fill_buffer;
417
418 int yy_buffer_status;
419
420 };
421#endif /* !YY_STRUCT_YY_BUFFER_STATE */
422
423void yyrestart ( FILE *input_file , yyscan_t yyscanner );
424void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer , yyscan_t yyscanner );
425YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size , yyscan_t yyscanner );
426void yy_delete_buffer ( YY_BUFFER_STATE b , yyscan_t yyscanner );
427void yy_flush_buffer ( YY_BUFFER_STATE b , yyscan_t yyscanner );
428void yypush_buffer_state ( YY_BUFFER_STATE new_buffer , yyscan_t yyscanner );
429void yypop_buffer_state ( yyscan_t yyscanner );
430
431YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size , yyscan_t yyscanner );
432YY_BUFFER_STATE yy_scan_string ( const char *yy_str , yyscan_t yyscanner );
433YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len , yyscan_t yyscanner );
434
435void *yyalloc ( yy_size_t , yyscan_t yyscanner );
436void *yyrealloc ( void *, yy_size_t , yyscan_t yyscanner );
437void yyfree ( void * , yyscan_t yyscanner );
438
439#define ematch_wrap(yyscanner) (/*CONSTCOND*/1)
440#define YY_SKIP_YYWRAP
441
442#define yytext_ptr yytext_r
443
444#ifdef YY_HEADER_EXPORT_START_CONDITIONS
445#define INITIAL 0
446#define QUOTE 1
447
448#endif
449
450#ifndef YY_NO_UNISTD_H
451/* Special case for "unistd.h", since it is non-ANSI. We include it way
452 * down here because we want the user's section 1 to have been scanned first.
453 * The user has a chance to override it with an option.
454 */
455#include <unistd.h>
456#endif
457
458#ifndef YY_EXTRA_TYPE
459#define YY_EXTRA_TYPE void *
460#endif
461
462int yylex_init (yyscan_t* scanner);
463
464int yylex_init_extra ( YY_EXTRA_TYPE user_defined, yyscan_t* scanner);
465
466/* Accessor methods to globals.
467 These are made visible to non-reentrant scanners for convenience. */
468
469int yylex_destroy ( yyscan_t yyscanner );
470
471int yyget_debug ( yyscan_t yyscanner );
472
473void yyset_debug ( int debug_flag , yyscan_t yyscanner );
474
475YY_EXTRA_TYPE yyget_extra ( yyscan_t yyscanner );
476
477void yyset_extra ( YY_EXTRA_TYPE user_defined , yyscan_t yyscanner );
478
479FILE *yyget_in ( yyscan_t yyscanner );
480
481void yyset_in ( FILE * _in_str , yyscan_t yyscanner );
482
483FILE *yyget_out ( yyscan_t yyscanner );
484
485void yyset_out ( FILE * _out_str , yyscan_t yyscanner );
486
487 int yyget_leng ( yyscan_t yyscanner );
488
489char *yyget_text ( yyscan_t yyscanner );
490
491int yyget_lineno ( yyscan_t yyscanner );
492
493void yyset_lineno ( int _line_number , yyscan_t yyscanner );
494
495int yyget_column ( yyscan_t yyscanner );
496
497void yyset_column ( int _column_no , yyscan_t yyscanner );
498
499YYSTYPE * yyget_lval ( yyscan_t yyscanner );
500
501void yyset_lval ( YYSTYPE * yylval_param , yyscan_t yyscanner );
502
503/* Macros after this point can all be overridden by user definitions in
504 * section 1.
505 */
506
507#ifndef YY_SKIP_YYWRAP
508#ifdef __cplusplus
509extern "C" int yywrap ( yyscan_t yyscanner );
510#else
511extern int yywrap ( yyscan_t yyscanner );
512#endif
513#endif
514
515#ifndef yytext_ptr
516static void yy_flex_strncpy ( char *, const char *, int , yyscan_t yyscanner);
517#endif
518
519#ifdef YY_NEED_STRLEN
520static int yy_flex_strlen ( const char * , yyscan_t yyscanner);
521#endif
522
523#ifndef YY_NO_INPUT
524
525#endif
526
527/* Amount of stuff to slurp up with each read. */
528#ifndef YY_READ_BUF_SIZE
529#ifdef __ia64__
530/* On IA-64, the buffer size is 16k, not 8k */
531#define YY_READ_BUF_SIZE 16384
532#else
533#define YY_READ_BUF_SIZE 8192
534#endif /* __ia64__ */
535#endif
536
537/* Number of entries by which start-condition stack grows. */
538#ifndef YY_START_STACK_INCR
539#define YY_START_STACK_INCR 25
540#endif
541
542/* Default declaration of generated scanner - a define so the user can
543 * easily add parameters.
544 */
545#ifndef YY_DECL
546#define YY_DECL_IS_OURS 1
547
548extern int yylex \
549 (YYSTYPE * yylval_param , yyscan_t yyscanner);
550
551#define YY_DECL int yylex \
552 (YYSTYPE * yylval_param , yyscan_t yyscanner)
553#endif /* !YY_DECL */
554
555/* yy_get_previous_state - get the state just before the EOB char was reached */
556
557#undef YY_NEW_FILE
558#undef YY_FLUSH_BUFFER
559#undef yy_set_bol
560#undef yy_new_buffer
561#undef yy_set_interactive
562#undef YY_DO_BEFORE_ACTION
563
564#ifdef YY_DECL_IS_OURS
565#undef YY_DECL_IS_OURS
566#undef YY_DECL
567#endif
568
569#ifndef ematch__create_buffer_ALREADY_DEFINED
570#undef yy_create_buffer
571#endif
572#ifndef ematch__delete_buffer_ALREADY_DEFINED
573#undef yy_delete_buffer
574#endif
575#ifndef ematch__scan_buffer_ALREADY_DEFINED
576#undef yy_scan_buffer
577#endif
578#ifndef ematch__scan_string_ALREADY_DEFINED
579#undef yy_scan_string
580#endif
581#ifndef ematch__scan_bytes_ALREADY_DEFINED
582#undef yy_scan_bytes
583#endif
584#ifndef ematch__init_buffer_ALREADY_DEFINED
585#undef yy_init_buffer
586#endif
587#ifndef ematch__flush_buffer_ALREADY_DEFINED
588#undef yy_flush_buffer
589#endif
590#ifndef ematch__load_buffer_state_ALREADY_DEFINED
591#undef yy_load_buffer_state
592#endif
593#ifndef ematch__switch_to_buffer_ALREADY_DEFINED
594#undef yy_switch_to_buffer
595#endif
596#ifndef ematch_push_buffer_state_ALREADY_DEFINED
597#undef yypush_buffer_state
598#endif
599#ifndef ematch_pop_buffer_state_ALREADY_DEFINED
600#undef yypop_buffer_state
601#endif
602#ifndef ematch_ensure_buffer_stack_ALREADY_DEFINED
603#undef yyensure_buffer_stack
604#endif
605#ifndef ematch_lex_ALREADY_DEFINED
606#undef yylex
607#endif
608#ifndef ematch_restart_ALREADY_DEFINED
609#undef yyrestart
610#endif
611#ifndef ematch_lex_init_ALREADY_DEFINED
612#undef yylex_init
613#endif
614#ifndef ematch_lex_init_extra_ALREADY_DEFINED
615#undef yylex_init_extra
616#endif
617#ifndef ematch_lex_destroy_ALREADY_DEFINED
618#undef yylex_destroy
619#endif
620#ifndef ematch_get_debug_ALREADY_DEFINED
621#undef yyget_debug
622#endif
623#ifndef ematch_set_debug_ALREADY_DEFINED
624#undef yyset_debug
625#endif
626#ifndef ematch_get_extra_ALREADY_DEFINED
627#undef yyget_extra
628#endif
629#ifndef ematch_set_extra_ALREADY_DEFINED
630#undef yyset_extra
631#endif
632#ifndef ematch_get_in_ALREADY_DEFINED
633#undef yyget_in
634#endif
635#ifndef ematch_set_in_ALREADY_DEFINED
636#undef yyset_in
637#endif
638#ifndef ematch_get_out_ALREADY_DEFINED
639#undef yyget_out
640#endif
641#ifndef ematch_set_out_ALREADY_DEFINED
642#undef yyset_out
643#endif
644#ifndef ematch_get_leng_ALREADY_DEFINED
645#undef yyget_leng
646#endif
647#ifndef ematch_get_text_ALREADY_DEFINED
648#undef yyget_text
649#endif
650#ifndef ematch_get_lineno_ALREADY_DEFINED
651#undef yyget_lineno
652#endif
653#ifndef ematch_set_lineno_ALREADY_DEFINED
654#undef yyset_lineno
655#endif
656#ifndef ematch_get_column_ALREADY_DEFINED
657#undef yyget_column
658#endif
659#ifndef ematch_set_column_ALREADY_DEFINED
660#undef yyset_column
661#endif
662#ifndef ematch_wrap_ALREADY_DEFINED
663#undef yywrap
664#endif
665#ifndef ematch_get_lval_ALREADY_DEFINED
666#undef yyget_lval
667#endif
668#ifndef ematch_set_lval_ALREADY_DEFINED
669#undef yyset_lval
670#endif
671#ifndef ematch_get_lloc_ALREADY_DEFINED
672#undef yyget_lloc
673#endif
674#ifndef ematch_set_lloc_ALREADY_DEFINED
675#undef yyset_lloc
676#endif
677#ifndef ematch_alloc_ALREADY_DEFINED
678#undef yyalloc
679#endif
680#ifndef ematch_realloc_ALREADY_DEFINED
681#undef yyrealloc
682#endif
683#ifndef ematch_free_ALREADY_DEFINED
684#undef yyfree
685#endif
686#ifndef ematch_text_ALREADY_DEFINED
687#undef yytext
688#endif
689#ifndef ematch_leng_ALREADY_DEFINED
690#undef yyleng
691#endif
692#ifndef ematch_in_ALREADY_DEFINED
693#undef yyin
694#endif
695#ifndef ematch_out_ALREADY_DEFINED
696#undef yyout
697#endif
698#ifndef ematch__flex_debug_ALREADY_DEFINED
699#undef yy_flex_debug
700#endif
701#ifndef ematch_lineno_ALREADY_DEFINED
702#undef yylineno
703#endif
704#ifndef ematch_tables_fload_ALREADY_DEFINED
705#undef yytables_fload
706#endif
707#ifndef ematch_tables_destroy_ALREADY_DEFINED
708#undef yytables_destroy
709#endif
710#ifndef ematch_TABLES_NAME_ALREADY_DEFINED
711#undef yyTABLES_NAME
712#endif
713
714#line 163 "lib/route/cls/ematch_grammar.l"
715
716#line 716 "lib/route/cls/ematch_grammar.h"
717#undef ematch_IN_HEADER
718#endif /* ematch_HEADER_H */
int yy_bs_column
The column count.
int yy_bs_lineno
The line count.