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