Coverage Report

Created: 2026-08-14 06:45

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