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