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