Coverage Report

Created: 2025-02-15 06:25

/work/build/wiretap/candump_scanner.c
Line
Count
Source (jump to first uncovered line)
1
#line 2 "/work/build/wiretap/candump_scanner.c"
2
/* Include this before everything else, for various large-file definitions */
3
#include "config.h"
4
#include <wireshark.h>
5
6
#line 7 "/work/build/wiretap/candump_scanner.c"
7
8
#define  YY_INT_ALIGNED short int
9
10
/* A lexical scanner generated by flex */
11
12
/* %not-for-header */
13
/* %if-c-only */
14
/* %if-not-reentrant */
15
/* %endif */
16
/* %endif */
17
/* %ok-for-header */
18
19
#define FLEX_SCANNER
20
#define YY_FLEX_MAJOR_VERSION 2
21
#define YY_FLEX_MINOR_VERSION 6
22
#define YY_FLEX_SUBMINOR_VERSION 4
23
#if YY_FLEX_SUBMINOR_VERSION > 0
24
#define FLEX_BETA
25
#endif
26
27
/* %if-c++-only */
28
/* %endif */
29
30
/* %if-c-only */
31
#ifdef yy_create_buffer
32
#define candump__create_buffer_ALREADY_DEFINED
33
#else
34
0
#define yy_create_buffer candump__create_buffer
35
#endif
36
37
#ifdef yy_delete_buffer
38
#define candump__delete_buffer_ALREADY_DEFINED
39
#else
40
0
#define yy_delete_buffer candump__delete_buffer
41
#endif
42
43
#ifdef yy_scan_buffer
44
#define candump__scan_buffer_ALREADY_DEFINED
45
#else
46
#define yy_scan_buffer candump__scan_buffer
47
#endif
48
49
#ifdef yy_scan_string
50
#define candump__scan_string_ALREADY_DEFINED
51
#else
52
#define yy_scan_string candump__scan_string
53
#endif
54
55
#ifdef yy_scan_bytes
56
#define candump__scan_bytes_ALREADY_DEFINED
57
#else
58
#define yy_scan_bytes candump__scan_bytes
59
#endif
60
61
#ifdef yy_init_buffer
62
#define candump__init_buffer_ALREADY_DEFINED
63
#else
64
0
#define yy_init_buffer candump__init_buffer
65
#endif
66
67
#ifdef yy_flush_buffer
68
#define candump__flush_buffer_ALREADY_DEFINED
69
#else
70
0
#define yy_flush_buffer candump__flush_buffer
71
#endif
72
73
#ifdef yy_load_buffer_state
74
#define candump__load_buffer_state_ALREADY_DEFINED
75
#else
76
0
#define yy_load_buffer_state candump__load_buffer_state
77
#endif
78
79
#ifdef yy_switch_to_buffer
80
#define candump__switch_to_buffer_ALREADY_DEFINED
81
#else
82
#define yy_switch_to_buffer candump__switch_to_buffer
83
#endif
84
85
#ifdef yypush_buffer_state
86
#define candump_push_buffer_state_ALREADY_DEFINED
87
#else
88
#define yypush_buffer_state candump_push_buffer_state
89
#endif
90
91
#ifdef yypop_buffer_state
92
#define candump_pop_buffer_state_ALREADY_DEFINED
93
#else
94
0
#define yypop_buffer_state candump_pop_buffer_state
95
#endif
96
97
#ifdef yyensure_buffer_stack
98
#define candump_ensure_buffer_stack_ALREADY_DEFINED
99
#else
100
0
#define yyensure_buffer_stack candump_ensure_buffer_stack
101
#endif
102
103
#ifdef yylex
104
#define candump_lex_ALREADY_DEFINED
105
#else
106
#define yylex candump_lex
107
#endif
108
109
#ifdef yyrestart
110
#define candump_restart_ALREADY_DEFINED
111
#else
112
0
#define yyrestart candump_restart
113
#endif
114
115
#ifdef yylex_init
116
#define candump_lex_init_ALREADY_DEFINED
117
#else
118
#define yylex_init candump_lex_init
119
#endif
120
121
#ifdef yylex_init_extra
122
#define candump_lex_init_extra_ALREADY_DEFINED
123
#else
124
#define yylex_init_extra candump_lex_init_extra
125
#endif
126
127
#ifdef yylex_destroy
128
#define candump_lex_destroy_ALREADY_DEFINED
129
#else
130
#define yylex_destroy candump_lex_destroy
131
#endif
132
133
#ifdef yyget_debug
134
#define candump_get_debug_ALREADY_DEFINED
135
#else
136
#define yyget_debug candump_get_debug
137
#endif
138
139
#ifdef yyset_debug
140
#define candump_set_debug_ALREADY_DEFINED
141
#else
142
#define yyset_debug candump_set_debug
143
#endif
144
145
#ifdef yyget_extra
146
#define candump_get_extra_ALREADY_DEFINED
147
#else
148
#define yyget_extra candump_get_extra
149
#endif
150
151
#ifdef yyset_extra
152
#define candump_set_extra_ALREADY_DEFINED
153
#else
154
0
#define yyset_extra candump_set_extra
155
#endif
156
157
#ifdef yyget_in
158
#define candump_get_in_ALREADY_DEFINED
159
#else
160
#define yyget_in candump_get_in
161
#endif
162
163
#ifdef yyset_in
164
#define candump_set_in_ALREADY_DEFINED
165
#else
166
#define yyset_in candump_set_in
167
#endif
168
169
#ifdef yyget_out
170
#define candump_get_out_ALREADY_DEFINED
171
#else
172
#define yyget_out candump_get_out
173
#endif
174
175
#ifdef yyset_out
176
#define candump_set_out_ALREADY_DEFINED
177
#else
178
#define yyset_out candump_set_out
179
#endif
180
181
#ifdef yyget_leng
182
#define candump_get_leng_ALREADY_DEFINED
183
#else
184
#define yyget_leng candump_get_leng
185
#endif
186
187
#ifdef yyget_text
188
#define candump_get_text_ALREADY_DEFINED
189
#else
190
#define yyget_text candump_get_text
191
#endif
192
193
#ifdef yyget_lineno
194
#define candump_get_lineno_ALREADY_DEFINED
195
#else
196
#define yyget_lineno candump_get_lineno
197
#endif
198
199
#ifdef yyset_lineno
200
#define candump_set_lineno_ALREADY_DEFINED
201
#else
202
#define yyset_lineno candump_set_lineno
203
#endif
204
205
#ifdef yyget_column
206
#define candump_get_column_ALREADY_DEFINED
207
#else
208
#define yyget_column candump_get_column
209
#endif
210
211
#ifdef yyset_column
212
#define candump_set_column_ALREADY_DEFINED
213
#else
214
#define yyset_column candump_set_column
215
#endif
216
217
#ifdef yywrap
218
#define candump_wrap_ALREADY_DEFINED
219
#else
220
0
#define yywrap candump_wrap
221
#endif
222
223
/* %endif */
224
225
#ifdef yyalloc
226
#define candump_alloc_ALREADY_DEFINED
227
#else
228
0
#define yyalloc candump_alloc
229
#endif
230
231
#ifdef yyrealloc
232
#define candump_realloc_ALREADY_DEFINED
233
#else
234
0
#define yyrealloc candump_realloc
235
#endif
236
237
#ifdef yyfree
238
#define candump_free_ALREADY_DEFINED
239
#else
240
0
#define yyfree candump_free
241
#endif
242
243
/* %if-c-only */
244
245
/* %endif */
246
247
/* First, we deal with  platform-specific or compiler-specific issues. */
248
249
/* begin standard C headers. */
250
/* %if-c-only */
251
#include <stdio.h>
252
#include <string.h>
253
#include <errno.h>
254
#include <stdlib.h>
255
/* %endif */
256
257
/* %if-tables-serialization */
258
/* %endif */
259
/* end standard C headers. */
260
261
/* %if-c-or-c++ */
262
/* flex integer type definitions */
263
264
#ifndef FLEXINT_H
265
#define FLEXINT_H
266
267
/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
268
269
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
270
271
/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
272
 * if you want the limit (max/min) macros for int types. 
273
 */
274
#ifndef __STDC_LIMIT_MACROS
275
#define __STDC_LIMIT_MACROS 1
276
#endif
277
278
#include <inttypes.h>
279
typedef int8_t flex_int8_t;
280
typedef uint8_t flex_uint8_t;
281
typedef int16_t flex_int16_t;
282
typedef uint16_t flex_uint16_t;
283
typedef int32_t flex_int32_t;
284
typedef uint32_t flex_uint32_t;
285
#else
286
typedef signed char flex_int8_t;
287
typedef short int flex_int16_t;
288
typedef int flex_int32_t;
289
typedef unsigned char flex_uint8_t; 
290
typedef unsigned short int flex_uint16_t;
291
typedef unsigned int flex_uint32_t;
292
293
/* Limits of integral types. */
294
#ifndef INT8_MIN
295
#define INT8_MIN               (-128)
296
#endif
297
#ifndef INT16_MIN
298
#define INT16_MIN              (-32767-1)
299
#endif
300
#ifndef INT32_MIN
301
#define INT32_MIN              (-2147483647-1)
302
#endif
303
#ifndef INT8_MAX
304
#define INT8_MAX               (127)
305
#endif
306
#ifndef INT16_MAX
307
#define INT16_MAX              (32767)
308
#endif
309
#ifndef INT32_MAX
310
#define INT32_MAX              (2147483647)
311
#endif
312
#ifndef UINT8_MAX
313
#define UINT8_MAX              (255U)
314
#endif
315
#ifndef UINT16_MAX
316
#define UINT16_MAX             (65535U)
317
#endif
318
#ifndef UINT32_MAX
319
#define UINT32_MAX             (4294967295U)
320
#endif
321
322
#ifndef SIZE_MAX
323
#define SIZE_MAX               (~(size_t)0)
324
#endif
325
326
#endif /* ! C99 */
327
328
#endif /* ! FLEXINT_H */
329
330
/* %endif */
331
332
/* begin standard C++ headers. */
333
/* %if-c++-only */
334
/* %endif */
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
/* %not-for-header */
346
/* Returned upon end-of-file. */
347
0
#define YY_NULL 0
348
/* %ok-for-header */
349
350
/* %not-for-header */
351
/* Promotes a possibly negative, possibly signed char to an
352
 *   integer in range [0..255] for use as an array index.
353
 */
354
0
#define YY_SC_TO_UI(c) ((YY_CHAR) (c))
355
/* %ok-for-header */
356
357
/* %if-reentrant */
358
359
/* An opaque pointer. */
360
#ifndef YY_TYPEDEF_YY_SCANNER_T
361
#define YY_TYPEDEF_YY_SCANNER_T
362
typedef void* yyscan_t;
363
#endif
364
365
/* For convenience, these vars (plus the bison vars far below)
366
   are macros in the reentrant scanner. */
367
0
#define yyin yyg->yyin_r
368
0
#define yyout yyg->yyout_r
369
0
#define yyextra yyg->yyextra_r
370
0
#define yyleng yyg->yyleng_r
371
0
#define yytext yyg->yytext_r
372
0
#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
373
0
#define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
374
0
#define yy_flex_debug yyg->yy_flex_debug_r
375
376
/* %endif */
377
378
/* %if-not-reentrant */
379
/* %endif */
380
381
/* Enter a start condition.  This macro really ought to take a parameter,
382
 * but we do it the disgusting crufty way forced on us by the ()-less
383
 * definition of BEGIN.
384
 */
385
#define BEGIN yyg->yy_start = 1 + 2 *
386
/* Translate the current start state into a value that can be later handed
387
 * to BEGIN to return to the state.  The YYSTATE alias is for lex
388
 * compatibility.
389
 */
390
#define YY_START ((yyg->yy_start - 1) / 2)
391
#define YYSTATE YY_START
392
/* Action number for EOF rule of a given start state. */
393
0
#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
394
/* Special action meaning "start processing a new file". */
395
0
#define YY_NEW_FILE yyrestart( yyin , yyscanner )
396
0
#define YY_END_OF_BUFFER_CHAR 0
397
398
/* Size of default input buffer. */
399
#ifndef YY_BUF_SIZE
400
#ifdef __ia64__
401
/* On IA-64, the buffer size is 16k, not 8k.
402
 * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
403
 * Ditto for the __ia64__ case accordingly.
404
 */
405
#define YY_BUF_SIZE 32768
406
#else
407
0
#define YY_BUF_SIZE 16384
408
#endif /* __ia64__ */
409
#endif
410
411
/* The state buf must be large enough to hold one state per character in the main buffer.
412
 */
413
#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
414
415
#ifndef YY_TYPEDEF_YY_BUFFER_STATE
416
#define YY_TYPEDEF_YY_BUFFER_STATE
417
typedef struct yy_buffer_state *YY_BUFFER_STATE;
418
#endif
419
420
#ifndef YY_TYPEDEF_YY_SIZE_T
421
#define YY_TYPEDEF_YY_SIZE_T
422
typedef size_t yy_size_t;
423
#endif
424
425
/* %if-not-reentrant */
426
/* %endif */
427
428
/* %if-c-only */
429
/* %if-not-reentrant */
430
/* %endif */
431
/* %endif */
432
433
0
#define EOB_ACT_CONTINUE_SCAN 0
434
0
#define EOB_ACT_END_OF_FILE 1
435
0
#define EOB_ACT_LAST_MATCH 2
436
    
437
    /* Note: We specifically omit the test for yy_rule_can_match_eol because it requires
438
     *       access to the local variable yy_act. Since yyless() is a macro, it would break
439
     *       existing scanners that call yyless() from OUTSIDE yylex.
440
     *       One obvious solution it to make yy_act a global. I tried that, and saw
441
     *       a 5% performance hit in a non-yylineno scanner, because yy_act is
442
     *       normally declared as a register variable-- so it is not worth it.
443
     */
444
    #define  YY_LESS_LINENO(n) \
445
            do { \
446
                int yyl;\
447
                for ( yyl = n; yyl < yyleng; ++yyl )\
448
                    if ( yytext[yyl] == '\n' )\
449
                        --yylineno;\
450
            }while(0)
451
    #define YY_LINENO_REWIND_TO(dst) \
452
            do {\
453
                const char *p;\
454
                for ( p = yy_cp-1; p >= (dst); --p)\
455
                    if ( *p == '\n' )\
456
                        --yylineno;\
457
            }while(0)
458
    
459
/* Return all but the first "n" matched characters back to the input stream. */
460
#define yyless(n) \
461
  do \
462
    { \
463
    /* Undo effects of setting up yytext. */ \
464
        int yyless_macro_arg = (n); \
465
        YY_LESS_LINENO(yyless_macro_arg);\
466
    *yy_cp = yyg->yy_hold_char; \
467
    YY_RESTORE_YY_MORE_OFFSET \
468
    yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
469
    YY_DO_BEFORE_ACTION; /* set up yytext again */ \
470
    } \
471
  while ( 0 )
472
#define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner )
473
474
#ifndef YY_STRUCT_YY_BUFFER_STATE
475
#define YY_STRUCT_YY_BUFFER_STATE
476
struct yy_buffer_state
477
  {
478
/* %if-c-only */
479
  FILE *yy_input_file;
480
/* %endif */
481
482
/* %if-c++-only */
483
/* %endif */
484
485
  char *yy_ch_buf;    /* input buffer */
486
  char *yy_buf_pos;   /* current position in input buffer */
487
488
  /* Size of input buffer in bytes, not including room for EOB
489
   * characters.
490
   */
491
  int yy_buf_size;
492
493
  /* Number of characters read into yy_ch_buf, not including EOB
494
   * characters.
495
   */
496
  int yy_n_chars;
497
498
  /* Whether we "own" the buffer - i.e., we know we created it,
499
   * and can realloc() it to grow it, and should free() it to
500
   * delete it.
501
   */
502
  int yy_is_our_buffer;
503
504
  /* Whether this is an "interactive" input source; if so, and
505
   * if we're using stdio for input, then we want to use getc()
506
   * instead of fread(), to make sure we stop fetching input after
507
   * each newline.
508
   */
509
  int yy_is_interactive;
510
511
  /* Whether we're considered to be at the beginning of a line.
512
   * If so, '^' rules will be active on the next match, otherwise
513
   * not.
514
   */
515
  int yy_at_bol;
516
517
    int yy_bs_lineno; /**< The line count. */
518
    int yy_bs_column; /**< The column count. */
519
520
  /* Whether to try to fill the input buffer when we reach the
521
   * end of it.
522
   */
523
  int yy_fill_buffer;
524
525
  int yy_buffer_status;
526
527
0
#define YY_BUFFER_NEW 0
528
0
#define YY_BUFFER_NORMAL 1
529
  /* When an EOF's been seen but there's still some text to process
530
   * then we mark the buffer as YY_EOF_PENDING, to indicate that we
531
   * shouldn't try reading from the input source any more.  We might
532
   * still have a bunch of tokens to match, though, because of
533
   * possible backing-up.
534
   *
535
   * When we actually see the EOF, we change the status to "new"
536
   * (via yyrestart()), so that the user can continue scanning by
537
   * just pointing yyin at a new input file.
538
   */
539
0
#define YY_BUFFER_EOF_PENDING 2
540
541
  };
542
#endif /* !YY_STRUCT_YY_BUFFER_STATE */
543
544
/* %if-c-only Standard (non-C++) definition */
545
/* %not-for-header */
546
/* %if-not-reentrant */
547
/* %endif */
548
/* %ok-for-header */
549
550
/* %endif */
551
552
/* We provide macros for accessing buffer states in case in the
553
 * future we want to put the buffer states in a more general
554
 * "scanner state".
555
 *
556
 * Returns the top of the stack, or NULL.
557
 */
558
0
#define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \
559
0
                          ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
560
0
                          : NULL)
561
/* Same as previous macro, but useful when we know that the buffer stack is not
562
 * NULL or when we need an lvalue. For internal use only.
563
 */
564
0
#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
565
566
/* %if-c-only Standard (non-C++) definition */
567
568
/* %if-not-reentrant */
569
/* %not-for-header */
570
/* %ok-for-header */
571
572
/* %endif */
573
574
void yyrestart ( FILE *input_file , yyscan_t yyscanner );
575
void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer , yyscan_t yyscanner );
576
YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size , yyscan_t yyscanner );
577
void yy_delete_buffer ( YY_BUFFER_STATE b , yyscan_t yyscanner );
578
void yy_flush_buffer ( YY_BUFFER_STATE b , yyscan_t yyscanner );
579
void yypush_buffer_state ( YY_BUFFER_STATE new_buffer , yyscan_t yyscanner );
580
void yypop_buffer_state ( yyscan_t yyscanner );
581
582
static void yyensure_buffer_stack ( yyscan_t yyscanner );
583
static void yy_load_buffer_state ( yyscan_t yyscanner );
584
static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file , yyscan_t yyscanner );
585
#define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER , yyscanner)
586
587
YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size , yyscan_t yyscanner );
588
YY_BUFFER_STATE yy_scan_string ( const char *yy_str , yyscan_t yyscanner );
589
YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len , yyscan_t yyscanner );
590
591
/* %endif */
592
593
void *yyalloc ( yy_size_t , yyscan_t yyscanner );
594
void *yyrealloc ( void *, yy_size_t , yyscan_t yyscanner );
595
void yyfree ( void * , yyscan_t yyscanner );
596
597
#define yy_new_buffer yy_create_buffer
598
#define yy_set_interactive(is_interactive) \
599
  { \
600
  if ( ! YY_CURRENT_BUFFER ){ \
601
        yyensure_buffer_stack (yyscanner); \
602
    YY_CURRENT_BUFFER_LVALUE =    \
603
            yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); \
604
  } \
605
  YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
606
  }
607
#define yy_set_bol(at_bol) \
608
  { \
609
  if ( ! YY_CURRENT_BUFFER ){\
610
        yyensure_buffer_stack (yyscanner); \
611
    YY_CURRENT_BUFFER_LVALUE =    \
612
            yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); \
613
  } \
614
  YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
615
  }
616
#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
617
618
/* %% [1.0] yytext/yyin/yyout/yy_state_type/yylineno etc. def's & init go here */
619
/* Begin user sect3 */
620
621
0
#define candump_wrap(yyscanner) (/*CONSTCOND*/1)
622
#define YY_SKIP_YYWRAP
623
624
#define FLEX_DEBUG
625
typedef flex_uint8_t YY_CHAR;
626
627
typedef int yy_state_type;
628
629
0
#define yytext_ptr yytext_r
630
631
/* %% [1.5] DFA */
632
633
/* %if-c-only Standard (non-C++) definition */
634
635
static yy_state_type yy_get_previous_state ( yyscan_t yyscanner );
636
static yy_state_type yy_try_NUL_trans ( yy_state_type current_state  , yyscan_t yyscanner);
637
static int yy_get_next_buffer ( yyscan_t yyscanner );
638
static void yynoreturn yy_fatal_error ( const char* msg , yyscan_t yyscanner );
639
640
/* %endif */
641
642
/* Done after the current pattern has been matched and before the
643
 * corresponding action - sets up yytext.
644
 */
645
#define YY_DO_BEFORE_ACTION \
646
0
  yyg->yytext_ptr = yy_bp; \
647
0
/* %% [2.0] code to fiddle yytext and yyleng for yymore() goes here \ */\
648
0
  yyleng = (int) (yy_cp - yy_bp); \
649
0
  yyg->yy_hold_char = *yy_cp; \
650
0
  *yy_cp = '\0'; \
651
0
/* %% [3.0] code to copy yytext_ptr to yytext[] goes here, if %array \ */\
652
0
  yyg->yy_c_buf_p = yy_cp;
653
/* %% [4.0] data tables for the DFA and the user's section 1 definitions go here */
654
#define YY_NUM_RULES 11
655
0
#define YY_END_OF_BUFFER 12
656
/* This struct is not used in this scanner,
657
   but its presence is necessary. */
658
struct yy_trans_info
659
  {
660
  flex_int32_t yy_verify;
661
  flex_int32_t yy_nxt;
662
  };
663
static const flex_int16_t yy_accept[29] =
664
    {   0,
665
        0,    0,   12,   10,    1,    2,    2,   10,   10,   10,
666
        5,    2,    9,    0,    8,    4,    0,    0,    0,    7,
667
        0,    3,    0,    0,    0,    0,    6,    0
668
    } ;
669
670
static const YY_CHAR yy_ec[256] =
671
    {   0,
672
        1,    1,    1,    1,    1,    1,    1,    1,    2,    3,
673
        1,    1,    4,    1,    1,    1,    1,    1,    1,    1,
674
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
675
        1,    2,    1,    1,    5,    1,    1,    1,    1,    6,
676
        7,    1,    1,    1,    1,    8,    1,    9,    9,    9,
677
        9,    9,    9,    9,    9,    9,    9,    1,    1,    1,
678
        1,    1,    1,    1,   10,   10,   10,   10,   10,   10,
679
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
680
        1,   11,    1,    1,    1,    1,    1,    1,    1,    1,
681
        1,    1,    1,    1,    1,    1,   10,   10,   10,   10,
682
683
       10,   10,    1,    1,    1,    1,    1,    1,    1,    1,
684
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
685
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
686
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
687
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
688
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
689
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
690
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
691
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
692
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
693
694
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
695
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
696
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
697
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
698
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
699
        1,    1,    1,    1,    1
700
    } ;
701
702
static const YY_CHAR yy_meta[12] =
703
    {   0,
704
        1,    2,    2,    2,    3,    1,    1,    1,    4,    4,
705
        1
706
    } ;
707
708
static const flex_int16_t yy_base[38] =
709
    {   0,
710
        0,    0,   31,   32,   32,    0,    0,    0,   21,    0,
711
       20,    0,   32,    4,    0,   32,   19,   22,    7,   32,
712
        0,   32,    0,    0,    0,   21,   32,   32,   23,   20,
713
       19,   18,   14,   17,   16,   15,   11
714
    } ;
715
716
static const flex_int16_t yy_def[38] =
717
    {   0,
718
       28,    1,   28,   28,   28,   29,   29,   30,   28,   31,
719
       28,   29,   28,   28,   32,   28,   28,   33,   28,   28,
720
       34,   28,   35,   36,   37,   28,   28,    0,   28,   28,
721
       28,   28,   28,   28,   28,   28,   28
722
    } ;
723
724
static const flex_int16_t yy_nxt[44] =
725
    {   0,
726
        4,    5,    6,    7,    8,    9,    4,    4,   10,   10,
727
       11,   17,   14,   22,   26,   19,   21,   21,   25,   24,
728
       23,   18,   15,   13,   12,   27,   20,   19,   16,   14,
729
       28,    3,   28,   28,   28,   28,   28,   28,   28,   28,
730
       28,   28,   28
731
    } ;
732
733
static const flex_int16_t yy_chk[44] =
734
    {   0,
735
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
736
        1,   14,   14,   19,   37,   19,   33,   33,   36,   35,
737
       34,   32,   31,   30,   29,   26,   18,   17,   11,    9,
738
        3,   28,   28,   28,   28,   28,   28,   28,   28,   28,
739
       28,   28,   28
740
    } ;
741
742
/* Table of booleans, true if rule could match eol. */
743
static const flex_int32_t yy_rule_can_match_eol[12] =
744
    {   0,
745
0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,     };
746
747
static const flex_int16_t yy_rule_linenum[11] =
748
    {   0,
749
      101,  102,  104,  110,  115,  120,  125,  130,  135,  140
750
    } ;
751
752
/* The intent behind this definition is that it'll catch
753
 * any uses of REJECT which flex missed.
754
 */
755
#define REJECT reject_used_but_not_detected
756
#define yymore() yymore_used_but_not_detected
757
0
#define YY_MORE_ADJ 0
758
#define YY_RESTORE_YY_MORE_OFFSET
759
#line 1 "/src/wireshark/wiretap/candump_scanner.l"
760
/* candump_scanner.l
761
 *
762
 * Wiretap Library
763
 * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
764
 *
765
 * Support for candump log file format
766
 * Copyright (c) 2019 by Maksim Salau <maksim.salau@gmail.com>
767
 *
768
 * SPDX-License-Identifier: GPL-2.0-or-later
769
 */
770
771
#define YY_NO_INPUT 1
772
/*
773
 * We have to override the memory allocators so that we don't get
774
 * "unused argument" warnings from the yyscanner argument (which
775
 * we don't use, as we have a global memory allocator).
776
 *
777
 * We provide, as macros, our own versions of the routines generated by Flex,
778
 * which just call malloc()/realloc()/free() (as the Flex versions do),
779
 * discarding the extra argument.
780
 */
781
#line 47 "/src/wireshark/wiretap/candump_scanner.l"
782
783
#include <ws_diag_control.h>
784
#include <wiretap/file_wrappers.h>
785
#include "candump_parser.h"
786
#include "candump_priv.h"
787
788
#ifndef HAVE_UNISTD_H
789
#define YY_NO_UNISTD_H
790
#endif
791
792
static int candump_yyinput(void *buf, candump_state_t *state)
793
0
{
794
0
    int c = file_getc(state->fh);
795
796
0
    if (c == EOF)
797
0
    {
798
0
        state->err = file_error(state->fh, &state->err_info);
799
0
        return YY_NULL;
800
0
    }
801
802
0
    *(char *)buf = c;
803
804
0
    return 1;
805
0
}
806
807
#define YY_INPUT(buf, result, max_size) \
808
0
    do { (result) = candump_yyinput((buf), yyextra); } while (0)
809
810
/* Count bytes read. This is required in order to rewind the file
811
 * to the beginning of the next packet, since flex reads more bytes
812
 * before executing the action that does yyterminate(). */
813
0
#define YY_USER_ACTION do { yyextra->file_bytes_read += yyleng; } while (0);
814
815
/*
816
 * Sleazy hack to suppress compiler warnings in yy_fatal_error().
817
 */
818
0
#define YY_EXIT_FAILURE ((void)yyscanner, 2)
819
820
/*
821
 * Macros for the allocators, to discard the extra argument.
822
 */
823
0
#define candump_alloc(size, yyscanner)          (void *)malloc(size)
824
0
#define candump_realloc(ptr, size, yyscanner)   (void *)realloc((char *)(ptr), (size))
825
0
#define candump_free(ptr, yyscanner)            free((char *)(ptr))
826
827
DIAG_OFF_FLEX()
828
829
#line 830 "/work/build/wiretap/candump_scanner.c"
830
#line 831 "/work/build/wiretap/candump_scanner.c"
831
832
#define INITIAL 0
833
834
#ifndef YY_NO_UNISTD_H
835
/* Special case for "unistd.h", since it is non-ANSI. We include it way
836
 * down here because we want the user's section 1 to have been scanned first.
837
 * The user has a chance to override it with an option.
838
 */
839
/* %if-c-only */
840
#include <unistd.h>
841
/* %endif */
842
/* %if-c++-only */
843
/* %endif */
844
#endif
845
846
#define YY_EXTRA_TYPE candump_state_t *
847
848
/* %if-c-only Reentrant structure and macros (non-C++). */
849
/* %if-reentrant */
850
851
/* Holds the entire state of the reentrant scanner. */
852
struct yyguts_t
853
    {
854
855
    /* User-defined. Not touched by flex. */
856
    YY_EXTRA_TYPE yyextra_r;
857
858
    /* The rest are the same as the globals declared in the non-reentrant scanner. */
859
    FILE *yyin_r, *yyout_r;
860
    size_t yy_buffer_stack_top; /**< index of top of stack. */
861
    size_t yy_buffer_stack_max; /**< capacity of stack. */
862
    YY_BUFFER_STATE * yy_buffer_stack; /**< Stack as an array. */
863
    char yy_hold_char;
864
    int yy_n_chars;
865
    int yyleng_r;
866
    char *yy_c_buf_p;
867
    int yy_init;
868
    int yy_start;
869
    int yy_did_buffer_switch_on_eof;
870
    int yy_start_stack_ptr;
871
    int yy_start_stack_depth;
872
    int *yy_start_stack;
873
    yy_state_type yy_last_accepting_state;
874
    char* yy_last_accepting_cpos;
875
876
    int yylineno_r;
877
    int yy_flex_debug_r;
878
879
    char *yytext_r;
880
    int yy_more_flag;
881
    int yy_more_len;
882
883
    }; /* end struct yyguts_t */
884
885
/* %if-c-only */
886
887
static int yy_init_globals ( yyscan_t yyscanner );
888
889
/* %endif */
890
891
/* %if-reentrant */
892
893
int yylex_init (yyscan_t* scanner);
894
895
int yylex_init_extra ( YY_EXTRA_TYPE user_defined, yyscan_t* scanner);
896
897
/* %endif */
898
899
/* %endif End reentrant structures and macros. */
900
901
/* Accessor methods to globals.
902
   These are made visible to non-reentrant scanners for convenience. */
903
904
int yylex_destroy ( yyscan_t yyscanner );
905
906
int yyget_debug ( yyscan_t yyscanner );
907
908
void yyset_debug ( int debug_flag , yyscan_t yyscanner );
909
910
YY_EXTRA_TYPE yyget_extra ( yyscan_t yyscanner );
911
912
void yyset_extra ( YY_EXTRA_TYPE user_defined , yyscan_t yyscanner );
913
914
FILE *yyget_in ( yyscan_t yyscanner );
915
916
void yyset_in  ( FILE * _in_str , yyscan_t yyscanner );
917
918
FILE *yyget_out ( yyscan_t yyscanner );
919
920
void yyset_out  ( FILE * _out_str , yyscan_t yyscanner );
921
922
      int yyget_leng ( yyscan_t yyscanner );
923
924
char *yyget_text ( yyscan_t yyscanner );
925
926
int yyget_lineno ( yyscan_t yyscanner );
927
928
void yyset_lineno ( int _line_number , yyscan_t yyscanner );
929
930
int yyget_column  ( yyscan_t yyscanner );
931
932
void yyset_column ( int _column_no , yyscan_t yyscanner );
933
934
/* %if-bison-bridge */
935
/* %endif */
936
937
/* Macros after this point can all be overridden by user definitions in
938
 * section 1.
939
 */
940
941
#ifndef YY_SKIP_YYWRAP
942
#ifdef __cplusplus
943
extern "C" int yywrap ( yyscan_t yyscanner );
944
#else
945
extern int yywrap ( yyscan_t yyscanner );
946
#endif
947
#endif
948
949
/* %not-for-header */
950
#ifndef YY_NO_UNPUT
951
    
952
#endif
953
/* %ok-for-header */
954
955
/* %endif */
956
957
#ifndef yytext_ptr
958
static void yy_flex_strncpy ( char *, const char *, int , yyscan_t yyscanner);
959
#endif
960
961
#ifdef YY_NEED_STRLEN
962
static int yy_flex_strlen ( const char * , yyscan_t yyscanner);
963
#endif
964
965
#ifndef YY_NO_INPUT
966
/* %if-c-only Standard (non-C++) definition */
967
/* %not-for-header */
968
#ifdef __cplusplus
969
static int yyinput ( yyscan_t yyscanner );
970
#else
971
static int input ( yyscan_t yyscanner );
972
#endif
973
/* %ok-for-header */
974
975
/* %endif */
976
#endif
977
978
/* %if-c-only */
979
980
/* %endif */
981
982
/* Amount of stuff to slurp up with each read. */
983
#ifndef YY_READ_BUF_SIZE
984
#ifdef __ia64__
985
/* On IA-64, the buffer size is 16k, not 8k */
986
#define YY_READ_BUF_SIZE 16384
987
#else
988
0
#define YY_READ_BUF_SIZE 8192
989
#endif /* __ia64__ */
990
#endif
991
992
/* Copy whatever the last rule matched to the standard output. */
993
#ifndef ECHO
994
/* %if-c-only Standard (non-C++) definition */
995
/* This used to be an fputs(), but since the string might contain NUL's,
996
 * we now use fwrite().
997
 */
998
#define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
999
/* %endif */
1000
/* %if-c++-only C++ definition */
1001
/* %endif */
1002
#endif
1003
1004
/* Gets input and stuffs it into "buf".  number of characters read, or YY_NULL,
1005
 * is returned in "result".
1006
 */
1007
#ifndef YY_INPUT
1008
#define YY_INPUT(buf,result,max_size) \
1009
/* %% [5.0] fread()/read() definition of YY_INPUT goes here unless we're doing C++ \ */\
1010
  if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
1011
    { \
1012
    int c = '*'; \
1013
    int n; \
1014
    for ( n = 0; n < max_size && \
1015
           (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
1016
      buf[n] = (char) c; \
1017
    if ( c == '\n' ) \
1018
      buf[n++] = (char) c; \
1019
    if ( c == EOF && ferror( yyin ) ) \
1020
      YY_FATAL_ERROR( "input in flex scanner failed" ); \
1021
    result = n; \
1022
    } \
1023
  else \
1024
    { \
1025
    errno=0; \
1026
    while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
1027
      { \
1028
      if( errno != EINTR) \
1029
        { \
1030
        YY_FATAL_ERROR( "input in flex scanner failed" ); \
1031
        break; \
1032
        } \
1033
      errno=0; \
1034
      clearerr(yyin); \
1035
      } \
1036
    }\
1037
\
1038
/* %if-c++-only C++ definition \ */\
1039
/* %endif */
1040
1041
#endif
1042
1043
/* No semi-colon after return; correct usage is to write "yyterminate();" -
1044
 * we don't want an extra ';' after the "return" because that will cause
1045
 * some compilers to complain about unreachable statements.
1046
 */
1047
#ifndef yyterminate
1048
0
#define yyterminate() return YY_NULL
1049
#endif
1050
1051
/* Number of entries by which start-condition stack grows. */
1052
#ifndef YY_START_STACK_INCR
1053
#define YY_START_STACK_INCR 25
1054
#endif
1055
1056
/* Report a fatal error. */
1057
#ifndef YY_FATAL_ERROR
1058
/* %if-c-only */
1059
0
#define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner)
1060
/* %endif */
1061
/* %if-c++-only */
1062
/* %endif */
1063
#endif
1064
1065
/* %if-tables-serialization structures and prototypes */
1066
/* %not-for-header */
1067
/* %ok-for-header */
1068
1069
/* %not-for-header */
1070
/* %tables-yydmap generated elements */
1071
/* %endif */
1072
/* end tables serialization structures and prototypes */
1073
1074
/* %ok-for-header */
1075
1076
/* Default declaration of generated scanner - a define so the user can
1077
 * easily add parameters.
1078
 */
1079
#ifndef YY_DECL
1080
#define YY_DECL_IS_OURS 1
1081
/* %if-c-only Standard (non-C++) definition */
1082
1083
extern int yylex (yyscan_t yyscanner);
1084
1085
#define YY_DECL int yylex (yyscan_t yyscanner)
1086
/* %endif */
1087
/* %if-c++-only C++ definition */
1088
/* %endif */
1089
#endif /* !YY_DECL */
1090
1091
/* Code executed at the beginning of each rule, after yytext and yyleng
1092
 * have been set up.
1093
 */
1094
#ifndef YY_USER_ACTION
1095
#define YY_USER_ACTION
1096
#endif
1097
1098
/* Code executed at the end of each rule. */
1099
#ifndef YY_BREAK
1100
0
#define YY_BREAK /*LINTED*/break;
1101
#endif
1102
1103
/* %% [6.0] YY_RULE_SETUP definition goes here */
1104
#define YY_RULE_SETUP \
1105
0
  YY_USER_ACTION
1106
1107
/* %not-for-header */
1108
/** The main scanner function which does all the work.
1109
 */
1110
YY_DECL
1111
0
{
1112
0
  yy_state_type yy_current_state;
1113
0
  char *yy_cp, *yy_bp;
1114
0
  int yy_act;
1115
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1116
1117
0
  if ( !yyg->yy_init )
1118
0
    {
1119
0
    yyg->yy_init = 1;
1120
1121
#ifdef YY_USER_INIT
1122
    YY_USER_INIT;
1123
#endif
1124
1125
0
    if ( ! yyg->yy_start )
1126
0
      yyg->yy_start = 1; /* first start state */
1127
1128
0
    if ( ! yyin )
1129
/* %if-c-only */
1130
0
      yyin = stdin;
1131
/* %endif */
1132
/* %if-c++-only */
1133
/* %endif */
1134
1135
0
    if ( ! yyout )
1136
/* %if-c-only */
1137
0
      yyout = stdout;
1138
/* %endif */
1139
/* %if-c++-only */
1140
/* %endif */
1141
1142
0
    if ( ! YY_CURRENT_BUFFER ) {
1143
0
      yyensure_buffer_stack (yyscanner);
1144
0
      YY_CURRENT_BUFFER_LVALUE =
1145
0
        yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner);
1146
0
    }
1147
1148
0
    yy_load_buffer_state( yyscanner );
1149
0
    }
1150
1151
0
  {
1152
/* %% [7.0] user's declarations go here */
1153
0
#line 99 "/src/wireshark/wiretap/candump_scanner.l"
1154
1155
1156
0
#line 1157 "/work/build/wiretap/candump_scanner.c"
1157
1158
0
  while ( /*CONSTCOND*/1 )    /* loops until end-of-file is reached */
1159
0
    {
1160
/* %% [8.0] yymore()-related code goes here */
1161
0
    yy_cp = yyg->yy_c_buf_p;
1162
1163
    /* Support of yytext. */
1164
0
    *yy_cp = yyg->yy_hold_char;
1165
1166
    /* yy_bp points to the position in yy_ch_buf of the start of
1167
     * the current run.
1168
     */
1169
0
    yy_bp = yy_cp;
1170
1171
/* %% [9.0] code to set up and find next match goes here */
1172
0
    yy_current_state = yyg->yy_start;
1173
0
yy_match:
1174
0
    do
1175
0
      {
1176
0
      YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
1177
0
      if ( yy_accept[yy_current_state] )
1178
0
        {
1179
0
        yyg->yy_last_accepting_state = yy_current_state;
1180
0
        yyg->yy_last_accepting_cpos = yy_cp;
1181
0
        }
1182
0
      while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1183
0
        {
1184
0
        yy_current_state = (int) yy_def[yy_current_state];
1185
0
        if ( yy_current_state >= 29 )
1186
0
          yy_c = yy_meta[yy_c];
1187
0
        }
1188
0
      yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
1189
0
      ++yy_cp;
1190
0
      }
1191
0
    while ( yy_current_state != 28 );
1192
0
    yy_cp = yyg->yy_last_accepting_cpos;
1193
0
    yy_current_state = yyg->yy_last_accepting_state;
1194
1195
0
yy_find_action:
1196
/* %% [10.0] code to find the action number goes here */
1197
0
    yy_act = yy_accept[yy_current_state];
1198
1199
0
    YY_DO_BEFORE_ACTION;
1200
1201
/* %% [11.0] code for yylineno update goes here */
1202
1203
0
    if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] )
1204
0
      {
1205
0
      int yyl;
1206
0
      for ( yyl = 0; yyl < yyleng; ++yyl )
1207
0
        if ( yytext[yyl] == '\n' )
1208
          
1209
0
    do{ yylineno++;
1210
0
        yycolumn=0;
1211
0
    }while(0)
1212
0
;
1213
0
      }
1214
1215
0
do_action:  /* This label is used only to access EOF actions. */
1216
1217
/* %% [12.0] debug code goes here */
1218
0
    if ( yy_flex_debug )
1219
0
      {
1220
0
      if ( yy_act == 0 )
1221
0
        fprintf( stderr, "--scanner backing up\n" );
1222
0
      else if ( yy_act < 11 )
1223
0
        fprintf( stderr, "--accepting rule at line %ld (\"%s\")\n",
1224
0
                 (long)yy_rule_linenum[yy_act], yytext );
1225
0
      else if ( yy_act == 11 )
1226
0
        fprintf( stderr, "--accepting default rule (\"%s\")\n",
1227
0
                 yytext );
1228
0
      else if ( yy_act == 12 )
1229
0
        fprintf( stderr, "--(end of buffer or a NUL)\n" );
1230
0
      else
1231
0
        fprintf( stderr, "--EOF (start condition %d)\n", YY_START );
1232
0
      }
1233
1234
0
    switch ( yy_act )
1235
0
  { /* beginning of action switch */
1236
/* %% [13.0] actions go here */
1237
0
      case 0: /* must back up */
1238
      /* undo the effects of YY_DO_BEFORE_ACTION */
1239
0
      *yy_cp = yyg->yy_hold_char;
1240
0
      yy_cp = yyg->yy_last_accepting_cpos;
1241
0
      yy_current_state = yyg->yy_last_accepting_state;
1242
0
      goto yy_find_action;
1243
1244
0
case 1:
1245
0
YY_RULE_SETUP
1246
0
#line 101 "/src/wireshark/wiretap/candump_scanner.l"
1247
0
{ return TOKEN_SPACE; };
1248
0
  YY_BREAK
1249
0
case 2:
1250
/* rule 2 can match eol */
1251
0
YY_RULE_SETUP
1252
0
#line 102 "/src/wireshark/wiretap/candump_scanner.l"
1253
0
{ yyterminate(); }
1254
0
  YY_BREAK
1255
0
case 3:
1256
0
YY_RULE_SETUP
1257
0
#line 104 "/src/wireshark/wiretap/candump_scanner.l"
1258
0
{
1259
0
                            yyextra->token.v0 = strtoul(yytext + 1, NULL, 10);
1260
0
                            yyextra->token.v1 = strtoul(strchr(yytext, '.') + 1, NULL, 10);
1261
0
                            return TOKEN_TIMESTAMP;
1262
0
                        }
1263
0
  YY_BREAK
1264
0
case 4:
1265
0
YY_RULE_SETUP
1266
0
#line 110 "/src/wireshark/wiretap/candump_scanner.l"
1267
0
{
1268
0
                            yyextra->token.v0 = strtoul(yytext + 1, NULL, 10);
1269
0
                            return TOKEN_RTR;
1270
0
                        }
1271
0
  YY_BREAK
1272
0
case 5:
1273
0
YY_RULE_SETUP
1274
0
#line 115 "/src/wireshark/wiretap/candump_scanner.l"
1275
0
{
1276
0
                            yyextra->token.v0 = 0;
1277
0
                            return TOKEN_RTR;
1278
0
                        }
1279
0
  YY_BREAK
1280
0
case 6:
1281
0
YY_RULE_SETUP
1282
0
#line 120 "/src/wireshark/wiretap/candump_scanner.l"
1283
0
{
1284
0
                            yyextra->token.v0 = strtoul(yytext, NULL, 16);
1285
0
                            return TOKEN_EXT_ID;
1286
0
                        }
1287
0
  YY_BREAK
1288
0
case 7:
1289
0
YY_RULE_SETUP
1290
0
#line 125 "/src/wireshark/wiretap/candump_scanner.l"
1291
0
{
1292
0
                            yyextra->token.v0 = strtoul(yytext, NULL, 16);
1293
0
                            return TOKEN_STD_ID;
1294
0
                        }
1295
0
  YY_BREAK
1296
0
case 8:
1297
0
YY_RULE_SETUP
1298
0
#line 130 "/src/wireshark/wiretap/candump_scanner.l"
1299
0
{
1300
0
                            yyextra->token.v0 = strtoul(yytext, NULL, 16);
1301
0
                            return TOKEN_BYTE;
1302
0
                        }
1303
0
  YY_BREAK
1304
0
case 9:
1305
0
YY_RULE_SETUP
1306
0
#line 135 "/src/wireshark/wiretap/candump_scanner.l"
1307
0
{
1308
0
                            yyextra->token.v0 = strtoul(yytext + 1, NULL, 16);
1309
0
                            return TOKEN_FLAGS;
1310
0
                        }
1311
0
  YY_BREAK
1312
0
case 10:
1313
0
YY_RULE_SETUP
1314
0
#line 140 "/src/wireshark/wiretap/candump_scanner.l"
1315
0
{ return TOKEN_UNKNOWN; }
1316
0
  YY_BREAK
1317
0
case 11:
1318
0
YY_RULE_SETUP
1319
0
#line 142 "/src/wireshark/wiretap/candump_scanner.l"
1320
0
YY_FATAL_ERROR( "flex scanner jammed" );
1321
0
  YY_BREAK
1322
0
#line 1323 "/work/build/wiretap/candump_scanner.c"
1323
0
case YY_STATE_EOF(INITIAL):
1324
0
  yyterminate();
1325
1326
0
  case YY_END_OF_BUFFER:
1327
0
    {
1328
    /* Amount of text matched not including the EOB char. */
1329
0
    int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr) - 1;
1330
1331
    /* Undo the effects of YY_DO_BEFORE_ACTION. */
1332
0
    *yy_cp = yyg->yy_hold_char;
1333
0
    YY_RESTORE_YY_MORE_OFFSET
1334
1335
0
    if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
1336
0
      {
1337
      /* We're scanning a new file or input source.  It's
1338
       * possible that this happened because the user
1339
       * just pointed yyin at a new source and called
1340
       * yylex().  If so, then we have to assure
1341
       * consistency between YY_CURRENT_BUFFER and our
1342
       * globals.  Here is the right place to do so, because
1343
       * this is the first action (other than possibly a
1344
       * back-up) that will match for the new input source.
1345
       */
1346
0
      yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1347
/* %if-c-only */
1348
0
      YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
1349
/* %endif */
1350
/* %if-c++-only */
1351
/* %endif */
1352
0
      YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
1353
0
      }
1354
1355
    /* Note that here we test for yy_c_buf_p "<=" to the position
1356
     * of the first EOB in the buffer, since yy_c_buf_p will
1357
     * already have been incremented past the NUL character
1358
     * (since all states make transitions on EOB to the
1359
     * end-of-buffer state).  Contrast this with the test
1360
     * in input().
1361
     */
1362
0
    if ( yyg->yy_c_buf_p <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
1363
0
      { /* This was really a NUL. */
1364
0
      yy_state_type yy_next_state;
1365
1366
0
      yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text;
1367
1368
0
      yy_current_state = yy_get_previous_state( yyscanner );
1369
1370
      /* Okay, we're now positioned to make the NUL
1371
       * transition.  We couldn't have
1372
       * yy_get_previous_state() go ahead and do it
1373
       * for us because it doesn't know how to deal
1374
       * with the possibility of jamming (and we don't
1375
       * want to build jamming into it because then it
1376
       * will run more slowly).
1377
       */
1378
1379
0
      yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner);
1380
1381
0
      yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
1382
1383
0
      if ( yy_next_state )
1384
0
        {
1385
        /* Consume the NUL. */
1386
0
        yy_cp = ++yyg->yy_c_buf_p;
1387
0
        yy_current_state = yy_next_state;
1388
0
        goto yy_match;
1389
0
        }
1390
1391
0
      else
1392
0
        {
1393
/* %% [14.0] code to do back-up for compressed tables and set up yy_cp goes here */
1394
0
        yy_cp = yyg->yy_last_accepting_cpos;
1395
0
        yy_current_state = yyg->yy_last_accepting_state;
1396
0
        goto yy_find_action;
1397
0
        }
1398
0
      }
1399
1400
0
    else switch ( yy_get_next_buffer( yyscanner ) )
1401
0
      {
1402
0
      case EOB_ACT_END_OF_FILE:
1403
0
        {
1404
0
        yyg->yy_did_buffer_switch_on_eof = 0;
1405
1406
0
        if ( yywrap( yyscanner ) )
1407
0
          {
1408
          /* Note: because we've taken care in
1409
           * yy_get_next_buffer() to have set up
1410
           * yytext, we can now set up
1411
           * yy_c_buf_p so that if some total
1412
           * hoser (like flex itself) wants to
1413
           * call the scanner after we return the
1414
           * YY_NULL, it'll still work - another
1415
           * YY_NULL will get returned.
1416
           */
1417
0
          yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ;
1418
1419
0
          yy_act = YY_STATE_EOF(YY_START);
1420
0
          goto do_action;
1421
0
          }
1422
1423
0
        else
1424
0
          {
1425
0
          if ( ! yyg->yy_did_buffer_switch_on_eof )
1426
0
            YY_NEW_FILE;
1427
0
          }
1428
0
        break;
1429
0
        }
1430
1431
0
      case EOB_ACT_CONTINUE_SCAN:
1432
0
        yyg->yy_c_buf_p =
1433
0
          yyg->yytext_ptr + yy_amount_of_matched_text;
1434
1435
0
        yy_current_state = yy_get_previous_state( yyscanner );
1436
1437
0
        yy_cp = yyg->yy_c_buf_p;
1438
0
        yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
1439
0
        goto yy_match;
1440
1441
0
      case EOB_ACT_LAST_MATCH:
1442
0
        yyg->yy_c_buf_p =
1443
0
        &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars];
1444
1445
0
        yy_current_state = yy_get_previous_state( yyscanner );
1446
1447
0
        yy_cp = yyg->yy_c_buf_p;
1448
0
        yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
1449
0
        goto yy_find_action;
1450
0
      }
1451
0
    break;
1452
0
    }
1453
1454
0
  default:
1455
0
    YY_FATAL_ERROR(
1456
0
      "fatal flex scanner internal error--no action found" );
1457
0
  } /* end of action switch */
1458
0
    } /* end of scanning one token */
1459
0
  } /* end of user's declarations */
1460
0
} /* end of yylex */
1461
/* %ok-for-header */
1462
1463
/* %if-c++-only */
1464
/* %not-for-header */
1465
/* %ok-for-header */
1466
1467
/* %endif */
1468
1469
/* yy_get_next_buffer - try to read in a new buffer
1470
 *
1471
 * Returns a code representing an action:
1472
 *  EOB_ACT_LAST_MATCH -
1473
 *  EOB_ACT_CONTINUE_SCAN - continue scanning from current position
1474
 *  EOB_ACT_END_OF_FILE - end of file
1475
 */
1476
/* %if-c-only */
1477
static int yy_get_next_buffer (yyscan_t yyscanner)
1478
/* %endif */
1479
/* %if-c++-only */
1480
/* %endif */
1481
0
{
1482
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1483
0
  char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
1484
0
  char *source = yyg->yytext_ptr;
1485
0
  int number_to_move, i;
1486
0
  int ret_val;
1487
1488
0
  if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] )
1489
0
    YY_FATAL_ERROR(
1490
0
    "fatal flex scanner internal error--end of buffer missed" );
1491
1492
0
  if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
1493
0
    { /* Don't try to fill the buffer, so this is an EOF. */
1494
0
    if ( yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1 )
1495
0
      {
1496
      /* We matched a single character, the EOB, so
1497
       * treat this as a final EOF.
1498
       */
1499
0
      return EOB_ACT_END_OF_FILE;
1500
0
      }
1501
1502
0
    else
1503
0
      {
1504
      /* We matched some text prior to the EOB, first
1505
       * process it.
1506
       */
1507
0
      return EOB_ACT_LAST_MATCH;
1508
0
      }
1509
0
    }
1510
1511
  /* Try to read more data. */
1512
1513
  /* First move last chars to start of buffer. */
1514
0
  number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr - 1);
1515
1516
0
  for ( i = 0; i < number_to_move; ++i )
1517
0
    *(dest++) = *(source++);
1518
1519
0
  if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1520
    /* don't do the read, it's not guaranteed to return an EOF,
1521
     * just force an EOF
1522
     */
1523
0
    YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars = 0;
1524
1525
0
  else
1526
0
    {
1527
0
      int num_to_read =
1528
0
      YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
1529
1530
0
    while ( num_to_read <= 0 )
1531
0
      { /* Not enough room in the buffer - grow it. */
1532
1533
      /* just a shorter name for the current buffer */
1534
0
      YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
1535
1536
0
      int yy_c_buf_p_offset =
1537
0
        (int) (yyg->yy_c_buf_p - b->yy_ch_buf);
1538
1539
0
      if ( b->yy_is_our_buffer )
1540
0
        {
1541
0
        int new_size = b->yy_buf_size * 2;
1542
1543
0
        if ( new_size <= 0 )
1544
0
          b->yy_buf_size += b->yy_buf_size / 8;
1545
0
        else
1546
0
          b->yy_buf_size *= 2;
1547
1548
0
        b->yy_ch_buf = (char *)
1549
          /* Include room in for 2 EOB chars. */
1550
0
          yyrealloc( (void *) b->yy_ch_buf,
1551
0
               (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
1552
0
        }
1553
0
      else
1554
        /* Can't grow it, we don't own it. */
1555
0
        b->yy_ch_buf = NULL;
1556
1557
0
      if ( ! b->yy_ch_buf )
1558
0
        YY_FATAL_ERROR(
1559
0
        "fatal error - scanner input buffer overflow" );
1560
1561
0
      yyg->yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
1562
1563
0
      num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
1564
0
            number_to_move - 1;
1565
1566
0
      }
1567
1568
0
    if ( num_to_read > YY_READ_BUF_SIZE )
1569
0
      num_to_read = YY_READ_BUF_SIZE;
1570
1571
    /* Read in more data. */
1572
0
    YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
1573
0
      yyg->yy_n_chars, num_to_read );
1574
1575
0
    YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
1576
0
    }
1577
1578
0
  if ( yyg->yy_n_chars == 0 )
1579
0
    {
1580
0
    if ( number_to_move == YY_MORE_ADJ )
1581
0
      {
1582
0
      ret_val = EOB_ACT_END_OF_FILE;
1583
0
      yyrestart( yyin  , yyscanner);
1584
0
      }
1585
1586
0
    else
1587
0
      {
1588
0
      ret_val = EOB_ACT_LAST_MATCH;
1589
0
      YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
1590
0
        YY_BUFFER_EOF_PENDING;
1591
0
      }
1592
0
    }
1593
1594
0
  else
1595
0
    ret_val = EOB_ACT_CONTINUE_SCAN;
1596
1597
0
  if ((yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
1598
    /* Extend the array by 50%, plus the number we really need. */
1599
0
    int new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1);
1600
0
    YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
1601
0
      (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size , yyscanner );
1602
0
    if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1603
0
      YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
1604
    /* "- 2" to take care of EOB's */
1605
0
    YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
1606
0
  }
1607
1608
0
  yyg->yy_n_chars += number_to_move;
1609
0
  YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR;
1610
0
  YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
1611
1612
0
  yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
1613
1614
0
  return ret_val;
1615
0
}
1616
1617
/* yy_get_previous_state - get the state just before the EOB char was reached */
1618
1619
/* %if-c-only */
1620
/* %not-for-header */
1621
    static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
1622
/* %endif */
1623
/* %if-c++-only */
1624
/* %endif */
1625
0
{
1626
0
  yy_state_type yy_current_state;
1627
0
  char *yy_cp;
1628
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1629
1630
/* %% [15.0] code to get the start state into yy_current_state goes here */
1631
0
  yy_current_state = yyg->yy_start;
1632
1633
0
  for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
1634
0
    {
1635
/* %% [16.0] code to find the next state goes here */
1636
0
    YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1637
0
    if ( yy_accept[yy_current_state] )
1638
0
      {
1639
0
      yyg->yy_last_accepting_state = yy_current_state;
1640
0
      yyg->yy_last_accepting_cpos = yy_cp;
1641
0
      }
1642
0
    while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1643
0
      {
1644
0
      yy_current_state = (int) yy_def[yy_current_state];
1645
0
      if ( yy_current_state >= 29 )
1646
0
        yy_c = yy_meta[yy_c];
1647
0
      }
1648
0
    yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
1649
0
    }
1650
1651
0
  return yy_current_state;
1652
0
}
1653
1654
/* yy_try_NUL_trans - try to make a transition on the NUL character
1655
 *
1656
 * synopsis
1657
 *  next_state = yy_try_NUL_trans( current_state );
1658
 */
1659
/* %if-c-only */
1660
    static yy_state_type yy_try_NUL_trans  (yy_state_type yy_current_state , yyscan_t yyscanner)
1661
/* %endif */
1662
/* %if-c++-only */
1663
/* %endif */
1664
0
{
1665
0
  int yy_is_jam;
1666
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */
1667
/* %% [17.0] code to find the next state, and perhaps do backing up, goes here */
1668
0
  char *yy_cp = yyg->yy_c_buf_p;
1669
1670
0
  YY_CHAR yy_c = 1;
1671
0
  if ( yy_accept[yy_current_state] )
1672
0
    {
1673
0
    yyg->yy_last_accepting_state = yy_current_state;
1674
0
    yyg->yy_last_accepting_cpos = yy_cp;
1675
0
    }
1676
0
  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1677
0
    {
1678
0
    yy_current_state = (int) yy_def[yy_current_state];
1679
0
    if ( yy_current_state >= 29 )
1680
0
      yy_c = yy_meta[yy_c];
1681
0
    }
1682
0
  yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
1683
0
  yy_is_jam = (yy_current_state == 28);
1684
1685
0
  (void)yyg;
1686
0
  return yy_is_jam ? 0 : yy_current_state;
1687
0
}
1688
1689
#ifndef YY_NO_UNPUT
1690
/* %if-c-only */
1691
1692
/* %endif */
1693
#endif
1694
1695
/* %if-c-only */
1696
#ifndef YY_NO_INPUT
1697
#ifdef __cplusplus
1698
    static int yyinput (yyscan_t yyscanner)
1699
#else
1700
    static int input  (yyscan_t yyscanner)
1701
#endif
1702
1703
/* %endif */
1704
/* %if-c++-only */
1705
/* %endif */
1706
{
1707
  int c;
1708
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1709
1710
  *yyg->yy_c_buf_p = yyg->yy_hold_char;
1711
1712
  if ( *yyg->yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
1713
    {
1714
    /* yy_c_buf_p now points to the character we want to return.
1715
     * If this occurs *before* the EOB characters, then it's a
1716
     * valid NUL; if not, then we've hit the end of the buffer.
1717
     */
1718
    if ( yyg->yy_c_buf_p < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
1719
      /* This was really a NUL. */
1720
      *yyg->yy_c_buf_p = '\0';
1721
1722
    else
1723
      { /* need more input */
1724
      int offset = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr);
1725
      ++yyg->yy_c_buf_p;
1726
1727
      switch ( yy_get_next_buffer( yyscanner ) )
1728
        {
1729
        case EOB_ACT_LAST_MATCH:
1730
          /* This happens because yy_g_n_b()
1731
           * sees that we've accumulated a
1732
           * token and flags that we need to
1733
           * try matching the token before
1734
           * proceeding.  But for input(),
1735
           * there's no matching to consider.
1736
           * So convert the EOB_ACT_LAST_MATCH
1737
           * to EOB_ACT_END_OF_FILE.
1738
           */
1739
1740
          /* Reset buffer status. */
1741
          yyrestart( yyin , yyscanner);
1742
1743
          /*FALLTHROUGH*/
1744
1745
        case EOB_ACT_END_OF_FILE:
1746
          {
1747
          if ( yywrap( yyscanner ) )
1748
            return 0;
1749
1750
          if ( ! yyg->yy_did_buffer_switch_on_eof )
1751
            YY_NEW_FILE;
1752
#ifdef __cplusplus
1753
          return yyinput(yyscanner);
1754
#else
1755
          return input(yyscanner);
1756
#endif
1757
          }
1758
1759
        case EOB_ACT_CONTINUE_SCAN:
1760
          yyg->yy_c_buf_p = yyg->yytext_ptr + offset;
1761
          break;
1762
        }
1763
      }
1764
    }
1765
1766
  c = *(unsigned char *) yyg->yy_c_buf_p; /* cast for 8-bit char's */
1767
  *yyg->yy_c_buf_p = '\0';  /* preserve yytext */
1768
  yyg->yy_hold_char = *++yyg->yy_c_buf_p;
1769
1770
/* %% [19.0] update BOL and yylineno */
1771
  if ( c == '\n' )
1772
    
1773
    do{ yylineno++;
1774
        yycolumn=0;
1775
    }while(0)
1776
;
1777
1778
  return c;
1779
}
1780
/* %if-c-only */
1781
#endif  /* ifndef YY_NO_INPUT */
1782
/* %endif */
1783
1784
/** Immediately switch to a different input stream.
1785
 * @param input_file A readable stream.
1786
 * @param yyscanner The scanner object.
1787
 * @note This function does not reset the start condition to @c INITIAL .
1788
 */
1789
/* %if-c-only */
1790
    void yyrestart  (FILE * input_file , yyscan_t yyscanner)
1791
/* %endif */
1792
/* %if-c++-only */
1793
/* %endif */
1794
0
{
1795
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1796
1797
0
  if ( ! YY_CURRENT_BUFFER ){
1798
0
        yyensure_buffer_stack (yyscanner);
1799
0
    YY_CURRENT_BUFFER_LVALUE =
1800
0
            yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner);
1801
0
  }
1802
1803
0
  yy_init_buffer( YY_CURRENT_BUFFER, input_file , yyscanner);
1804
0
  yy_load_buffer_state( yyscanner );
1805
0
}
1806
1807
/* %if-c++-only */
1808
/* %endif */
1809
1810
/** Switch to a different input buffer.
1811
 * @param new_buffer The new input buffer.
1812
 * @param yyscanner The scanner object.
1813
 */
1814
/* %if-c-only */
1815
    void yy_switch_to_buffer  (YY_BUFFER_STATE  new_buffer , yyscan_t yyscanner)
1816
/* %endif */
1817
/* %if-c++-only */
1818
/* %endif */
1819
0
{
1820
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1821
1822
  /* TODO. We should be able to replace this entire function body
1823
   * with
1824
   *    yypop_buffer_state();
1825
   *    yypush_buffer_state(new_buffer);
1826
     */
1827
0
  yyensure_buffer_stack (yyscanner);
1828
0
  if ( YY_CURRENT_BUFFER == new_buffer )
1829
0
    return;
1830
1831
0
  if ( YY_CURRENT_BUFFER )
1832
0
    {
1833
    /* Flush out information for old buffer. */
1834
0
    *yyg->yy_c_buf_p = yyg->yy_hold_char;
1835
0
    YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
1836
0
    YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
1837
0
    }
1838
1839
0
  YY_CURRENT_BUFFER_LVALUE = new_buffer;
1840
0
  yy_load_buffer_state( yyscanner );
1841
1842
  /* We don't actually know whether we did this switch during
1843
   * EOF (yywrap()) processing, but the only time this flag
1844
   * is looked at is after yywrap() is called, so it's safe
1845
   * to go ahead and always set it.
1846
   */
1847
0
  yyg->yy_did_buffer_switch_on_eof = 1;
1848
0
}
1849
1850
/* %if-c-only */
1851
static void yy_load_buffer_state  (yyscan_t yyscanner)
1852
/* %endif */
1853
/* %if-c++-only */
1854
/* %endif */
1855
0
{
1856
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1857
0
  yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1858
0
  yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
1859
/* %if-c-only */
1860
0
  yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
1861
/* %endif */
1862
/* %if-c++-only */
1863
/* %endif */
1864
0
  yyg->yy_hold_char = *yyg->yy_c_buf_p;
1865
0
}
1866
1867
/** Allocate and initialize an input buffer state.
1868
 * @param file A readable stream.
1869
 * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
1870
 * @param yyscanner The scanner object.
1871
 * @return the allocated buffer state.
1872
 */
1873
/* %if-c-only */
1874
    YY_BUFFER_STATE yy_create_buffer  (FILE * file, int  size , yyscan_t yyscanner)
1875
/* %endif */
1876
/* %if-c++-only */
1877
/* %endif */
1878
0
{
1879
0
  YY_BUFFER_STATE b;
1880
    
1881
0
  b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) , yyscanner );
1882
0
  if ( ! b )
1883
0
    YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1884
1885
0
  b->yy_buf_size = size;
1886
1887
  /* yy_ch_buf has to be 2 characters longer than the size given because
1888
   * we need to put in 2 end-of-buffer characters.
1889
   */
1890
0
  b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
1891
0
  if ( ! b->yy_ch_buf )
1892
0
    YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1893
1894
0
  b->yy_is_our_buffer = 1;
1895
1896
0
  yy_init_buffer( b, file , yyscanner);
1897
1898
0
  return b;
1899
0
}
1900
1901
/* %if-c++-only */
1902
/* %endif */
1903
1904
/** Destroy the buffer.
1905
 * @param b a buffer created with yy_create_buffer()
1906
 * @param yyscanner The scanner object.
1907
 */
1908
/* %if-c-only */
1909
    void yy_delete_buffer (YY_BUFFER_STATE  b , yyscan_t yyscanner)
1910
/* %endif */
1911
/* %if-c++-only */
1912
/* %endif */
1913
0
{
1914
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1915
1916
0
  if ( ! b )
1917
0
    return;
1918
1919
0
  if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
1920
0
    YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
1921
1922
0
  if ( b->yy_is_our_buffer )
1923
0
    yyfree( (void *) b->yy_ch_buf , yyscanner );
1924
1925
0
  yyfree( (void *) b , yyscanner );
1926
0
}
1927
1928
/* Initializes or reinitializes a buffer.
1929
 * This function is sometimes called more than once on the same buffer,
1930
 * such as during a yyrestart() or at EOF.
1931
 */
1932
/* %if-c-only */
1933
    static void yy_init_buffer  (YY_BUFFER_STATE  b, FILE * file , yyscan_t yyscanner)
1934
/* %endif */
1935
/* %if-c++-only */
1936
/* %endif */
1937
1938
0
{
1939
0
  int oerrno = errno;
1940
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1941
1942
0
  yy_flush_buffer( b , yyscanner);
1943
1944
/* %if-c-only */
1945
0
  b->yy_input_file = file;
1946
/* %endif */
1947
/* %if-c++-only */
1948
/* %endif */
1949
0
  b->yy_fill_buffer = 1;
1950
1951
    /* If b is the current buffer, then yy_init_buffer was _probably_
1952
     * called from yyrestart() or through yy_get_next_buffer.
1953
     * In that case, we don't want to reset the lineno or column.
1954
     */
1955
0
    if (b != YY_CURRENT_BUFFER){
1956
0
        b->yy_bs_lineno = 1;
1957
0
        b->yy_bs_column = 0;
1958
0
    }
1959
1960
/* %if-c-only */
1961
1962
0
        b->yy_is_interactive = 0;
1963
    
1964
/* %endif */
1965
/* %if-c++-only */
1966
/* %endif */
1967
0
  errno = oerrno;
1968
0
}
1969
1970
/** Discard all buffered characters. On the next scan, YY_INPUT will be called.
1971
 * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
1972
 * @param yyscanner The scanner object.
1973
 */
1974
/* %if-c-only */
1975
    void yy_flush_buffer (YY_BUFFER_STATE  b , yyscan_t yyscanner)
1976
/* %endif */
1977
/* %if-c++-only */
1978
/* %endif */
1979
0
{
1980
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1981
0
  if ( ! b )
1982
0
    return;
1983
1984
0
  b->yy_n_chars = 0;
1985
1986
  /* We always need two end-of-buffer characters.  The first causes
1987
   * a transition to the end-of-buffer state.  The second causes
1988
   * a jam in that state.
1989
   */
1990
0
  b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
1991
0
  b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
1992
1993
0
  b->yy_buf_pos = &b->yy_ch_buf[0];
1994
1995
0
  b->yy_at_bol = 1;
1996
0
  b->yy_buffer_status = YY_BUFFER_NEW;
1997
1998
0
  if ( b == YY_CURRENT_BUFFER )
1999
0
    yy_load_buffer_state( yyscanner );
2000
0
}
2001
2002
/* %if-c-or-c++ */
2003
/** Pushes the new state onto the stack. The new state becomes
2004
 *  the current state. This function will allocate the stack
2005
 *  if necessary.
2006
 *  @param new_buffer The new state.
2007
 *  @param yyscanner The scanner object.
2008
 */
2009
/* %if-c-only */
2010
void yypush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
2011
/* %endif */
2012
/* %if-c++-only */
2013
/* %endif */
2014
0
{
2015
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2016
0
  if (new_buffer == NULL)
2017
0
    return;
2018
2019
0
  yyensure_buffer_stack(yyscanner);
2020
2021
  /* This block is copied from yy_switch_to_buffer. */
2022
0
  if ( YY_CURRENT_BUFFER )
2023
0
    {
2024
    /* Flush out information for old buffer. */
2025
0
    *yyg->yy_c_buf_p = yyg->yy_hold_char;
2026
0
    YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
2027
0
    YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
2028
0
    }
2029
2030
  /* Only push if top exists. Otherwise, replace top. */
2031
0
  if (YY_CURRENT_BUFFER)
2032
0
    yyg->yy_buffer_stack_top++;
2033
0
  YY_CURRENT_BUFFER_LVALUE = new_buffer;
2034
2035
  /* copied from yy_switch_to_buffer. */
2036
0
  yy_load_buffer_state( yyscanner );
2037
0
  yyg->yy_did_buffer_switch_on_eof = 1;
2038
0
}
2039
/* %endif */
2040
2041
/* %if-c-or-c++ */
2042
/** Removes and deletes the top of the stack, if present.
2043
 *  The next element becomes the new top.
2044
 *  @param yyscanner The scanner object.
2045
 */
2046
/* %if-c-only */
2047
void yypop_buffer_state (yyscan_t yyscanner)
2048
/* %endif */
2049
/* %if-c++-only */
2050
/* %endif */
2051
0
{
2052
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2053
0
  if (!YY_CURRENT_BUFFER)
2054
0
    return;
2055
2056
0
  yy_delete_buffer(YY_CURRENT_BUFFER , yyscanner);
2057
0
  YY_CURRENT_BUFFER_LVALUE = NULL;
2058
0
  if (yyg->yy_buffer_stack_top > 0)
2059
0
    --yyg->yy_buffer_stack_top;
2060
2061
0
  if (YY_CURRENT_BUFFER) {
2062
0
    yy_load_buffer_state( yyscanner );
2063
0
    yyg->yy_did_buffer_switch_on_eof = 1;
2064
0
  }
2065
0
}
2066
/* %endif */
2067
2068
/* %if-c-or-c++ */
2069
/* Allocates the stack if it does not exist.
2070
 *  Guarantees space for at least one push.
2071
 */
2072
/* %if-c-only */
2073
static void yyensure_buffer_stack (yyscan_t yyscanner)
2074
/* %endif */
2075
/* %if-c++-only */
2076
/* %endif */
2077
0
{
2078
0
  yy_size_t num_to_alloc;
2079
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2080
2081
0
  if (!yyg->yy_buffer_stack) {
2082
2083
    /* First allocation is just for 2 elements, since we don't know if this
2084
     * scanner will even need a stack. We use 2 instead of 1 to avoid an
2085
     * immediate realloc on the next call.
2086
         */
2087
0
      num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
2088
0
    yyg->yy_buffer_stack = (struct yy_buffer_state**)yyalloc
2089
0
                (num_to_alloc * sizeof(struct yy_buffer_state*)
2090
0
                , yyscanner);
2091
0
    if ( ! yyg->yy_buffer_stack )
2092
0
      YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
2093
2094
0
    memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state*));
2095
2096
0
    yyg->yy_buffer_stack_max = num_to_alloc;
2097
0
    yyg->yy_buffer_stack_top = 0;
2098
0
    return;
2099
0
  }
2100
2101
0
  if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1){
2102
2103
    /* Increase the buffer to prepare for a possible push. */
2104
0
    yy_size_t grow_size = 8 /* arbitrary grow size */;
2105
2106
0
    num_to_alloc = yyg->yy_buffer_stack_max + grow_size;
2107
0
    yyg->yy_buffer_stack = (struct yy_buffer_state**)yyrealloc
2108
0
                (yyg->yy_buffer_stack,
2109
0
                num_to_alloc * sizeof(struct yy_buffer_state*)
2110
0
                , yyscanner);
2111
0
    if ( ! yyg->yy_buffer_stack )
2112
0
      YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
2113
2114
    /* zero only the new slots.*/
2115
0
    memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size * sizeof(struct yy_buffer_state*));
2116
0
    yyg->yy_buffer_stack_max = num_to_alloc;
2117
0
  }
2118
0
}
2119
/* %endif */
2120
2121
#ifndef YY_EXIT_FAILURE
2122
#define YY_EXIT_FAILURE 2
2123
#endif
2124
2125
/* %if-c-only */
2126
static void yynoreturn yy_fatal_error (const char* msg , yyscan_t yyscanner)
2127
0
{
2128
0
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2129
0
  (void)yyg;
2130
0
  fprintf( stderr, "%s\n", msg );
2131
0
  exit( YY_EXIT_FAILURE );
2132
0
}
2133
/* %endif */
2134
/* %if-c++-only */
2135
/* %endif */
2136
2137
/* Redefine yyless() so it works in section 3 code. */
2138
2139
#undef yyless
2140
#define yyless(n) \
2141
  do \
2142
    { \
2143
    /* Undo effects of setting up yytext. */ \
2144
        int yyless_macro_arg = (n); \
2145
        YY_LESS_LINENO(yyless_macro_arg);\
2146
    yytext[yyleng] = yyg->yy_hold_char; \
2147
    yyg->yy_c_buf_p = yytext + yyless_macro_arg; \
2148
    yyg->yy_hold_char = *yyg->yy_c_buf_p; \
2149
    *yyg->yy_c_buf_p = '\0'; \
2150
    yyleng = yyless_macro_arg; \
2151
    } \
2152
  while ( 0 )
2153
2154
/* Accessor  methods (get/set functions) to struct members. */
2155
2156
/* %if-c-only */
2157
/* %if-reentrant */
2158
2159
/** Get the user-defined data for this scanner.
2160
 * @param yyscanner The scanner object.
2161
 */
2162
YY_EXTRA_TYPE yyget_extra  (yyscan_t yyscanner)
2163
0
{
2164
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2165
0
    return yyextra;
2166
0
}
2167
2168
/* %endif */
2169
2170
/** Get the current line number.
2171
 * @param yyscanner The scanner object.
2172
 */
2173
int yyget_lineno  (yyscan_t yyscanner)
2174
0
{
2175
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2176
2177
0
        if (! YY_CURRENT_BUFFER)
2178
0
            return 0;
2179
    
2180
0
    return yylineno;
2181
0
}
2182
2183
/** Get the current column number.
2184
 * @param yyscanner The scanner object.
2185
 */
2186
int yyget_column  (yyscan_t yyscanner)
2187
0
{
2188
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2189
2190
0
        if (! YY_CURRENT_BUFFER)
2191
0
            return 0;
2192
    
2193
0
    return yycolumn;
2194
0
}
2195
2196
/** Get the input stream.
2197
 * @param yyscanner The scanner object.
2198
 */
2199
FILE *yyget_in  (yyscan_t yyscanner)
2200
0
{
2201
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2202
0
    return yyin;
2203
0
}
2204
2205
/** Get the output stream.
2206
 * @param yyscanner The scanner object.
2207
 */
2208
FILE *yyget_out  (yyscan_t yyscanner)
2209
0
{
2210
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2211
0
    return yyout;
2212
0
}
2213
2214
/** Get the length of the current token.
2215
 * @param yyscanner The scanner object.
2216
 */
2217
int yyget_leng  (yyscan_t yyscanner)
2218
0
{
2219
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2220
0
    return yyleng;
2221
0
}
2222
2223
/** Get the current token.
2224
 * @param yyscanner The scanner object.
2225
 */
2226
2227
char *yyget_text  (yyscan_t yyscanner)
2228
0
{
2229
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2230
0
    return yytext;
2231
0
}
2232
2233
/* %if-reentrant */
2234
2235
/** Set the user-defined data. This data is never touched by the scanner.
2236
 * @param user_defined The data to be associated with this scanner.
2237
 * @param yyscanner The scanner object.
2238
 */
2239
void yyset_extra (YY_EXTRA_TYPE  user_defined , yyscan_t yyscanner)
2240
0
{
2241
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2242
0
    yyextra = user_defined ;
2243
0
}
2244
2245
/* %endif */
2246
2247
/** Set the current line number.
2248
 * @param _line_number line number
2249
 * @param yyscanner The scanner object.
2250
 */
2251
void yyset_lineno (int  _line_number , yyscan_t yyscanner)
2252
0
{
2253
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2254
2255
        /* lineno is only valid if an input buffer exists. */
2256
0
        if (! YY_CURRENT_BUFFER )
2257
0
           YY_FATAL_ERROR( "yyset_lineno called with no buffer" );
2258
    
2259
0
    yylineno = _line_number;
2260
0
}
2261
2262
/** Set the current column.
2263
 * @param _column_no column number
2264
 * @param yyscanner The scanner object.
2265
 */
2266
void yyset_column (int  _column_no , yyscan_t yyscanner)
2267
0
{
2268
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2269
2270
        /* column is only valid if an input buffer exists. */
2271
0
        if (! YY_CURRENT_BUFFER )
2272
0
           YY_FATAL_ERROR( "yyset_column called with no buffer" );
2273
    
2274
0
    yycolumn = _column_no;
2275
0
}
2276
2277
/** Set the input stream. This does not discard the current
2278
 * input buffer.
2279
 * @param _in_str A readable stream.
2280
 * @param yyscanner The scanner object.
2281
 * @see yy_switch_to_buffer
2282
 */
2283
void yyset_in (FILE *  _in_str , yyscan_t yyscanner)
2284
0
{
2285
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2286
0
    yyin = _in_str ;
2287
0
}
2288
2289
void yyset_out (FILE *  _out_str , yyscan_t yyscanner)
2290
0
{
2291
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2292
0
    yyout = _out_str ;
2293
0
}
2294
2295
int yyget_debug  (yyscan_t yyscanner)
2296
0
{
2297
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2298
0
    return yy_flex_debug;
2299
0
}
2300
2301
void yyset_debug (int  _bdebug , yyscan_t yyscanner)
2302
0
{
2303
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2304
0
    yy_flex_debug = _bdebug ;
2305
0
}
2306
2307
/* %endif */
2308
2309
/* %if-reentrant */
2310
/* Accessor methods for yylval and yylloc */
2311
2312
/* %if-bison-bridge */
2313
/* %endif */
2314
2315
/* User-visible API */
2316
2317
/* yylex_init is special because it creates the scanner itself, so it is
2318
 * the ONLY reentrant function that doesn't take the scanner as the last argument.
2319
 * That's why we explicitly handle the declaration, instead of using our macros.
2320
 */
2321
int yylex_init(yyscan_t* ptr_yy_globals)
2322
0
{
2323
0
    if (ptr_yy_globals == NULL){
2324
0
        errno = EINVAL;
2325
0
        return 1;
2326
0
    }
2327
2328
0
    *ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), NULL );
2329
2330
0
    if (*ptr_yy_globals == NULL){
2331
0
        errno = ENOMEM;
2332
0
        return 1;
2333
0
    }
2334
2335
    /* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for releases. */
2336
0
    memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));
2337
2338
0
    return yy_init_globals ( *ptr_yy_globals );
2339
0
}
2340
2341
/* yylex_init_extra has the same functionality as yylex_init, but follows the
2342
 * convention of taking the scanner as the last argument. Note however, that
2343
 * this is a *pointer* to a scanner, as it will be allocated by this call (and
2344
 * is the reason, too, why this function also must handle its own declaration).
2345
 * The user defined value in the first argument will be available to yyalloc in
2346
 * the yyextra field.
2347
 */
2348
int yylex_init_extra( YY_EXTRA_TYPE yy_user_defined, yyscan_t* ptr_yy_globals )
2349
0
{
2350
0
    struct yyguts_t dummy_yyguts;
2351
2352
0
    yyset_extra (yy_user_defined, &dummy_yyguts);
2353
2354
0
    if (ptr_yy_globals == NULL){
2355
0
        errno = EINVAL;
2356
0
        return 1;
2357
0
    }
2358
2359
0
    *ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), &dummy_yyguts );
2360
2361
0
    if (*ptr_yy_globals == NULL){
2362
0
        errno = ENOMEM;
2363
0
        return 1;
2364
0
    }
2365
2366
    /* By setting to 0xAA, we expose bugs in
2367
    yy_init_globals. Leave at 0x00 for releases. */
2368
0
    memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));
2369
2370
0
    yyset_extra (yy_user_defined, *ptr_yy_globals);
2371
2372
0
    return yy_init_globals ( *ptr_yy_globals );
2373
0
}
2374
2375
/* %endif if-c-only */
2376
2377
/* %if-c-only */
2378
static int yy_init_globals (yyscan_t yyscanner)
2379
0
{
2380
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2381
    /* Initialization is the same as for the non-reentrant scanner.
2382
     * This function is called from yylex_destroy(), so don't allocate here.
2383
     */
2384
2385
0
    yyg->yy_buffer_stack = NULL;
2386
0
    yyg->yy_buffer_stack_top = 0;
2387
0
    yyg->yy_buffer_stack_max = 0;
2388
0
    yyg->yy_c_buf_p = NULL;
2389
0
    yyg->yy_init = 0;
2390
0
    yyg->yy_start = 0;
2391
2392
0
    yyg->yy_start_stack_ptr = 0;
2393
0
    yyg->yy_start_stack_depth = 0;
2394
0
    yyg->yy_start_stack =  NULL;
2395
2396
/* Defined in main.c */
2397
#ifdef YY_STDINIT
2398
    yyin = stdin;
2399
    yyout = stdout;
2400
#else
2401
0
    yyin = NULL;
2402
0
    yyout = NULL;
2403
0
#endif
2404
2405
    /* For future reference: Set errno on error, since we are called by
2406
     * yylex_init()
2407
     */
2408
0
    return 0;
2409
0
}
2410
/* %endif */
2411
2412
/* %if-c-only SNIP! this currently causes conflicts with the c++ scanner */
2413
/* yylex_destroy is for both reentrant and non-reentrant scanners. */
2414
int yylex_destroy  (yyscan_t yyscanner)
2415
0
{
2416
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2417
2418
    /* Pop the buffer stack, destroying each element. */
2419
0
  while(YY_CURRENT_BUFFER){
2420
0
    yy_delete_buffer( YY_CURRENT_BUFFER , yyscanner );
2421
0
    YY_CURRENT_BUFFER_LVALUE = NULL;
2422
0
    yypop_buffer_state(yyscanner);
2423
0
  }
2424
2425
  /* Destroy the stack itself. */
2426
0
  yyfree(yyg->yy_buffer_stack , yyscanner);
2427
0
  yyg->yy_buffer_stack = NULL;
2428
2429
    /* Destroy the start condition stack. */
2430
0
        yyfree( yyg->yy_start_stack , yyscanner );
2431
0
        yyg->yy_start_stack = NULL;
2432
2433
    /* Reset the globals. This is important in a non-reentrant scanner so the next time
2434
     * yylex() is called, initialization will occur. */
2435
0
    yy_init_globals( yyscanner);
2436
2437
/* %if-reentrant */
2438
    /* Destroy the main struct (reentrant only). */
2439
0
    yyfree ( yyscanner , yyscanner );
2440
0
    yyscanner = NULL;
2441
/* %endif */
2442
0
    return 0;
2443
0
}
2444
/* %endif */
2445
2446
/*
2447
 * Internal utility routines.
2448
 */
2449
2450
#ifndef yytext_ptr
2451
static void yy_flex_strncpy (char* s1, const char * s2, int n , yyscan_t yyscanner)
2452
{
2453
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2454
  (void)yyg;
2455
2456
  int i;
2457
  for ( i = 0; i < n; ++i )
2458
    s1[i] = s2[i];
2459
}
2460
#endif
2461
2462
#ifdef YY_NEED_STRLEN
2463
static int yy_flex_strlen (const char * s , yyscan_t yyscanner)
2464
{
2465
  int n;
2466
  for ( n = 0; s[n]; ++n )
2467
    ;
2468
2469
  return n;
2470
}
2471
#endif
2472
2473
/* %if-tables-serialization definitions */
2474
/* %define-yytables   The name for this specific scanner's tables. */
2475
#define YYTABLES_NAME "yytables"
2476
/* %endif */
2477
2478
/* %ok-for-header */
2479
2480
#line 142 "/src/wireshark/wiretap/candump_scanner.l"
2481
2482
2483
DIAG_ON_FLEX()
2484