Coverage Report

Created: 2025-02-15 06:25

/work/build/wiretap/busmaster_scanner.c
Line
Count
Source (jump to first uncovered line)
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,  107,  108,  109,  110,  111,  112,  113,
1027
      114,  115,  116,  117,  118,  119,  120,  121,  122,  123,
1028
      124,  125,  127,  128,  129,  131,  132,  133,  134,  136,
1029
      137,  138,  140,  166,  182,  183,  184,  185,  186,  187,
1030
      188,  189,  191,  195
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
{ YY_FATAL_ERROR("Unterminated header statement"); }
1532
0
  YY_BREAK
1533
0
case 4:
1534
0
YY_RULE_SETUP
1535
0
#line 107 "/src/wireshark/wiretap/busmaster_scanner.l"
1536
0
{ BEGIN(HEADER); }
1537
0
  YY_BREAK
1538
0
case 5:
1539
/* rule 5 can match eol */
1540
0
YY_RULE_SETUP
1541
0
#line 108 "/src/wireshark/wiretap/busmaster_scanner.l"
1542
0
{ BEGIN(HEADER); return TOKEN_ENDL; }
1543
0
  YY_BREAK
1544
0
case 6:
1545
/* rule 6 can match eol */
1546
0
YY_RULE_SETUP
1547
0
#line 109 "/src/wireshark/wiretap/busmaster_scanner.l"
1548
0
{ BEGIN(INITIAL); yyterminate(); }
1549
0
  YY_BREAK
1550
0
case 7:
1551
0
YY_RULE_SETUP
1552
0
#line 110 "/src/wireshark/wiretap/busmaster_scanner.l"
1553
0
{ return TOKEN_HEADER_VER; }
1554
0
  YY_BREAK
1555
0
case 8:
1556
0
YY_RULE_SETUP
1557
0
#line 111 "/src/wireshark/wiretap/busmaster_scanner.l"
1558
0
{ yyextra->token.v0 = PROTOCOL_CAN;   return TOKEN_PROTOCOL_TYPE; }
1559
0
  YY_BREAK
1560
0
case 9:
1561
0
YY_RULE_SETUP
1562
0
#line 112 "/src/wireshark/wiretap/busmaster_scanner.l"
1563
0
{ yyextra->token.v0 = PROTOCOL_J1939; return TOKEN_PROTOCOL_TYPE; }
1564
0
  YY_BREAK
1565
0
case 10:
1566
0
YY_RULE_SETUP
1567
0
#line 113 "/src/wireshark/wiretap/busmaster_scanner.l"
1568
0
{ yyextra->token.v0 = PROTOCOL_LIN;   return TOKEN_PROTOCOL_TYPE; }
1569
0
  YY_BREAK
1570
0
case 11:
1571
0
YY_RULE_SETUP
1572
0
#line 114 "/src/wireshark/wiretap/busmaster_scanner.l"
1573
0
{ BEGIN(TIME); return TOKEN_START_TIME; }
1574
0
  YY_BREAK
1575
0
case 12:
1576
0
YY_RULE_SETUP
1577
0
#line 115 "/src/wireshark/wiretap/busmaster_scanner.l"
1578
0
{ BEGIN(TIME); return TOKEN_END_TIME; }
1579
0
  YY_BREAK
1580
0
case 13:
1581
0
YY_RULE_SETUP
1582
0
#line 116 "/src/wireshark/wiretap/busmaster_scanner.l"
1583
0
{ yyextra->token.v0 = DATA_MODE_DEC; return TOKEN_DATA_MODE; }
1584
0
  YY_BREAK
1585
0
case 14:
1586
0
YY_RULE_SETUP
1587
0
#line 117 "/src/wireshark/wiretap/busmaster_scanner.l"
1588
0
{ yyextra->token.v0 = DATA_MODE_HEX; return TOKEN_DATA_MODE; }
1589
0
  YY_BREAK
1590
0
case 15:
1591
0
YY_RULE_SETUP
1592
0
#line 118 "/src/wireshark/wiretap/busmaster_scanner.l"
1593
0
{ yyextra->token.v0 = TIME_MODE_ABSOLUTE; return TOKEN_TIME_MODE; }
1594
0
  YY_BREAK
1595
0
case 16:
1596
0
YY_RULE_SETUP
1597
0
#line 119 "/src/wireshark/wiretap/busmaster_scanner.l"
1598
0
{ yyextra->token.v0 = TIME_MODE_SYSTEM;   return TOKEN_TIME_MODE; }
1599
0
  YY_BREAK
1600
0
case 17:
1601
0
YY_RULE_SETUP
1602
0
#line 120 "/src/wireshark/wiretap/busmaster_scanner.l"
1603
0
{ yyextra->token.v0 = TIME_MODE_RELATIVE; return TOKEN_TIME_MODE; }
1604
0
  YY_BREAK
1605
0
case 18:
1606
0
YY_RULE_SETUP
1607
0
#line 121 "/src/wireshark/wiretap/busmaster_scanner.l"
1608
0
{ return TOKEN_START_SESSION; }
1609
0
  YY_BREAK
1610
0
case 19:
1611
0
YY_RULE_SETUP
1612
0
#line 122 "/src/wireshark/wiretap/busmaster_scanner.l"
1613
0
{ return TOKEN_STOP_SESSION; }
1614
0
  YY_BREAK
1615
0
case 20:
1616
0
YY_RULE_SETUP
1617
0
#line 123 "/src/wireshark/wiretap/busmaster_scanner.l"
1618
0
{ BEGIN(HEADER_CHANNELS); }
1619
0
  YY_BREAK
1620
0
case 21:
1621
0
YY_RULE_SETUP
1622
0
#line 124 "/src/wireshark/wiretap/busmaster_scanner.l"
1623
0
{ BEGIN(HEADER_DB_FILES); }
1624
0
  YY_BREAK
1625
0
case 22:
1626
0
YY_RULE_SETUP
1627
0
#line 125 "/src/wireshark/wiretap/busmaster_scanner.l"
1628
0
{ return TOKEN_HEADER_CHAR; }
1629
0
  YY_BREAK
1630
0
case 23:
1631
/* rule 23 can match eol */
1632
0
YY_RULE_SETUP
1633
0
#line 127 "/src/wireshark/wiretap/busmaster_scanner.l"
1634
0
{ BEGIN(HEADER); }
1635
0
  YY_BREAK
1636
0
case 24:
1637
0
YY_RULE_SETUP
1638
0
#line 128 "/src/wireshark/wiretap/busmaster_scanner.l"
1639
0
;
1640
0
  YY_BREAK
1641
0
case 25:
1642
/* rule 25 can match eol */
1643
0
YY_RULE_SETUP
1644
0
#line 129 "/src/wireshark/wiretap/busmaster_scanner.l"
1645
0
;
1646
0
  YY_BREAK
1647
0
case 26:
1648
/* rule 26 can match eol */
1649
0
YY_RULE_SETUP
1650
0
#line 131 "/src/wireshark/wiretap/busmaster_scanner.l"
1651
0
{ BEGIN(HEADER); }
1652
0
  YY_BREAK
1653
0
case 27:
1654
/* rule 27 can match eol */
1655
0
YY_RULE_SETUP
1656
0
#line 132 "/src/wireshark/wiretap/busmaster_scanner.l"
1657
0
{ BEGIN(HEADER); }
1658
0
  YY_BREAK
1659
0
case 28:
1660
0
YY_RULE_SETUP
1661
0
#line 133 "/src/wireshark/wiretap/busmaster_scanner.l"
1662
0
;
1663
0
  YY_BREAK
1664
0
case 29:
1665
/* rule 29 can match eol */
1666
0
YY_RULE_SETUP
1667
0
#line 134 "/src/wireshark/wiretap/busmaster_scanner.l"
1668
0
;
1669
0
  YY_BREAK
1670
0
case 30:
1671
0
YY_RULE_SETUP
1672
0
#line 136 "/src/wireshark/wiretap/busmaster_scanner.l"
1673
0
{ yyextra->token.v0 = strtoul(yytext, NULL, 10); return TOKEN_INT; }
1674
0
  YY_BREAK
1675
0
case 31:
1676
0
YY_RULE_SETUP
1677
0
#line 137 "/src/wireshark/wiretap/busmaster_scanner.l"
1678
0
{ return TOKEN_COLON; }
1679
0
  YY_BREAK
1680
0
case 32:
1681
0
YY_RULE_SETUP
1682
0
#line 138 "/src/wireshark/wiretap/busmaster_scanner.l"
1683
0
{ return TOKEN_INVALID_CHAR; }
1684
0
  YY_BREAK
1685
0
case 33:
1686
0
YY_RULE_SETUP
1687
0
#line 140 "/src/wireshark/wiretap/busmaster_scanner.l"
1688
0
{
1689
0
                    char *endp;
1690
0
                    char *strp;
1691
1692
0
                    yyextra->token.v0 = strtoul(yytext, &endp, 10);
1693
0
                    if (*endp != ':' || endp == yytext)
1694
0
                        return TOKEN_INVALID_NUMBER;
1695
1696
0
                    strp = endp + 1;
1697
0
                    yyextra->token.v1 = strtoul(strp, &endp, 10);
1698
0
                    if (*endp != ':' || endp == strp)
1699
0
                        return TOKEN_INVALID_NUMBER;
1700
1701
0
                    strp = endp + 1;
1702
0
                    yyextra->token.v2 = strtoul(strp, &endp, 10);
1703
0
                    if (*endp != ':' || endp == strp)
1704
0
                        return TOKEN_INVALID_NUMBER;
1705
1706
0
                    strp = endp + 1;
1707
0
                    yyextra->token.v3 = strtoul(strp, &endp, 10);
1708
0
                    if (*endp != '\0' || endp == strp)
1709
0
                        return TOKEN_INVALID_NUMBER;
1710
1711
0
                    return TOKEN_MSG_TIME;
1712
0
                }
1713
0
  YY_BREAK
1714
0
case 34:
1715
0
YY_RULE_SETUP
1716
0
#line 166 "/src/wireshark/wiretap/busmaster_scanner.l"
1717
0
{
1718
0
                    char *endp;
1719
1720
0
                    if (yyextra->header.data_mode == DATA_MODE_HEX)
1721
0
                        yyextra->token.v0 = strtoul(yytext, &endp, 16);
1722
0
                    else if (yyextra->header.data_mode == DATA_MODE_DEC)
1723
0
                        yyextra->token.v0 = strtoul(yytext, &endp, 10);
1724
0
                    else
1725
0
                        return TOKEN_INVALID_NUMBER;
1726
1727
0
                    if (*endp != '\0' || endp == yytext)
1728
0
                        return TOKEN_INVALID_NUMBER;
1729
1730
0
                    return TOKEN_INT;
1731
0
                }
1732
0
  YY_BREAK
1733
0
case 35:
1734
0
YY_RULE_SETUP
1735
0
#line 182 "/src/wireshark/wiretap/busmaster_scanner.l"
1736
0
{ return TOKEN_MSG_DIR; }
1737
0
  YY_BREAK
1738
0
case 36:
1739
0
YY_RULE_SETUP
1740
0
#line 183 "/src/wireshark/wiretap/busmaster_scanner.l"
1741
0
{ yyextra->token.v0 = MSG_TYPE_STD;     return TOKEN_MSG_TYPE; }
1742
0
  YY_BREAK
1743
0
case 37:
1744
0
YY_RULE_SETUP
1745
0
#line 184 "/src/wireshark/wiretap/busmaster_scanner.l"
1746
0
{ yyextra->token.v0 = MSG_TYPE_STD_RTR; return TOKEN_MSG_TYPE; }
1747
0
  YY_BREAK
1748
0
case 38:
1749
0
YY_RULE_SETUP
1750
0
#line 185 "/src/wireshark/wiretap/busmaster_scanner.l"
1751
0
{ yyextra->token.v0 = MSG_TYPE_EXT;     return TOKEN_MSG_TYPE; }
1752
0
  YY_BREAK
1753
0
case 39:
1754
0
YY_RULE_SETUP
1755
0
#line 186 "/src/wireshark/wiretap/busmaster_scanner.l"
1756
0
{ yyextra->token.v0 = MSG_TYPE_EXT_RTR; return TOKEN_MSG_TYPE; }
1757
0
  YY_BREAK
1758
0
case 40:
1759
0
YY_RULE_SETUP
1760
0
#line 187 "/src/wireshark/wiretap/busmaster_scanner.l"
1761
0
{ yyextra->token.v0 = MSG_TYPE_STD_FD;  return TOKEN_MSG_TYPE; }
1762
0
  YY_BREAK
1763
0
case 41:
1764
0
YY_RULE_SETUP
1765
0
#line 188 "/src/wireshark/wiretap/busmaster_scanner.l"
1766
0
{ yyextra->token.v0 = MSG_TYPE_EXT_FD;  return TOKEN_MSG_TYPE; }
1767
0
  YY_BREAK
1768
0
case 42:
1769
0
YY_RULE_SETUP
1770
0
#line 189 "/src/wireshark/wiretap/busmaster_scanner.l"
1771
0
{ yyextra->token.v0 = MSG_TYPE_ERR;     return TOKEN_ERR_MSG_TYPE; }
1772
0
  YY_BREAK
1773
0
case 43:
1774
0
YY_RULE_SETUP
1775
0
#line 191 "/src/wireshark/wiretap/busmaster_scanner.l"
1776
0
{
1777
0
    return TOKEN_J1939_MSG_TYPE;
1778
0
}
1779
0
  YY_BREAK
1780
0
case 44:
1781
0
YY_RULE_SETUP
1782
0
#line 195 "/src/wireshark/wiretap/busmaster_scanner.l"
1783
0
{ return TOKEN_INVALID_CHAR; }
1784
0
  YY_BREAK
1785
0
case 45:
1786
0
YY_RULE_SETUP
1787
0
#line 197 "/src/wireshark/wiretap/busmaster_scanner.l"
1788
0
YY_FATAL_ERROR( "flex scanner jammed" );
1789
0
  YY_BREAK
1790
0
#line 1791 "/work/build/wiretap/busmaster_scanner.c"
1791
0
case YY_STATE_EOF(INITIAL):
1792
0
case YY_STATE_EOF(HEADER):
1793
0
case YY_STATE_EOF(TIME):
1794
0
case YY_STATE_EOF(HEADER_CHANNELS):
1795
0
case YY_STATE_EOF(HEADER_DB_FILES):
1796
0
  yyterminate();
1797
1798
0
  case YY_END_OF_BUFFER:
1799
0
    {
1800
    /* Amount of text matched not including the EOB char. */
1801
0
    int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr) - 1;
1802
1803
    /* Undo the effects of YY_DO_BEFORE_ACTION. */
1804
0
    *yy_cp = yyg->yy_hold_char;
1805
0
    YY_RESTORE_YY_MORE_OFFSET
1806
1807
0
    if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
1808
0
      {
1809
      /* We're scanning a new file or input source.  It's
1810
       * possible that this happened because the user
1811
       * just pointed yyin at a new source and called
1812
       * yylex().  If so, then we have to assure
1813
       * consistency between YY_CURRENT_BUFFER and our
1814
       * globals.  Here is the right place to do so, because
1815
       * this is the first action (other than possibly a
1816
       * back-up) that will match for the new input source.
1817
       */
1818
0
      yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1819
/* %if-c-only */
1820
0
      YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
1821
/* %endif */
1822
/* %if-c++-only */
1823
/* %endif */
1824
0
      YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
1825
0
      }
1826
1827
    /* Note that here we test for yy_c_buf_p "<=" to the position
1828
     * of the first EOB in the buffer, since yy_c_buf_p will
1829
     * already have been incremented past the NUL character
1830
     * (since all states make transitions on EOB to the
1831
     * end-of-buffer state).  Contrast this with the test
1832
     * in input().
1833
     */
1834
0
    if ( yyg->yy_c_buf_p <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
1835
0
      { /* This was really a NUL. */
1836
0
      yy_state_type yy_next_state;
1837
1838
0
      yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text;
1839
1840
0
      yy_current_state = yy_get_previous_state( yyscanner );
1841
1842
      /* Okay, we're now positioned to make the NUL
1843
       * transition.  We couldn't have
1844
       * yy_get_previous_state() go ahead and do it
1845
       * for us because it doesn't know how to deal
1846
       * with the possibility of jamming (and we don't
1847
       * want to build jamming into it because then it
1848
       * will run more slowly).
1849
       */
1850
1851
0
      yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner);
1852
1853
0
      yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
1854
1855
0
      if ( yy_next_state )
1856
0
        {
1857
        /* Consume the NUL. */
1858
0
        yy_cp = ++yyg->yy_c_buf_p;
1859
0
        yy_current_state = yy_next_state;
1860
0
        goto yy_match;
1861
0
        }
1862
1863
0
      else
1864
0
        {
1865
/* %% [14.0] code to do back-up for compressed tables and set up yy_cp goes here */
1866
0
        yy_cp = yyg->yy_last_accepting_cpos;
1867
0
        yy_current_state = yyg->yy_last_accepting_state;
1868
0
        goto yy_find_action;
1869
0
        }
1870
0
      }
1871
1872
0
    else switch ( yy_get_next_buffer( yyscanner ) )
1873
0
      {
1874
0
      case EOB_ACT_END_OF_FILE:
1875
0
        {
1876
0
        yyg->yy_did_buffer_switch_on_eof = 0;
1877
1878
0
        if ( yywrap( yyscanner ) )
1879
0
          {
1880
          /* Note: because we've taken care in
1881
           * yy_get_next_buffer() to have set up
1882
           * yytext, we can now set up
1883
           * yy_c_buf_p so that if some total
1884
           * hoser (like flex itself) wants to
1885
           * call the scanner after we return the
1886
           * YY_NULL, it'll still work - another
1887
           * YY_NULL will get returned.
1888
           */
1889
0
          yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ;
1890
1891
0
          yy_act = YY_STATE_EOF(YY_START);
1892
0
          goto do_action;
1893
0
          }
1894
1895
0
        else
1896
0
          {
1897
0
          if ( ! yyg->yy_did_buffer_switch_on_eof )
1898
0
            YY_NEW_FILE;
1899
0
          }
1900
0
        break;
1901
0
        }
1902
1903
0
      case EOB_ACT_CONTINUE_SCAN:
1904
0
        yyg->yy_c_buf_p =
1905
0
          yyg->yytext_ptr + yy_amount_of_matched_text;
1906
1907
0
        yy_current_state = yy_get_previous_state( yyscanner );
1908
1909
0
        yy_cp = yyg->yy_c_buf_p;
1910
0
        yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
1911
0
        goto yy_match;
1912
1913
0
      case EOB_ACT_LAST_MATCH:
1914
0
        yyg->yy_c_buf_p =
1915
0
        &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars];
1916
1917
0
        yy_current_state = yy_get_previous_state( yyscanner );
1918
1919
0
        yy_cp = yyg->yy_c_buf_p;
1920
0
        yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
1921
0
        goto yy_find_action;
1922
0
      }
1923
0
    break;
1924
0
    }
1925
1926
0
  default:
1927
0
    YY_FATAL_ERROR(
1928
0
      "fatal flex scanner internal error--no action found" );
1929
0
  } /* end of action switch */
1930
0
    } /* end of scanning one token */
1931
0
  } /* end of user's declarations */
1932
0
} /* end of yylex */
1933
/* %ok-for-header */
1934
1935
/* %if-c++-only */
1936
/* %not-for-header */
1937
/* %ok-for-header */
1938
1939
/* %endif */
1940
1941
/* yy_get_next_buffer - try to read in a new buffer
1942
 *
1943
 * Returns a code representing an action:
1944
 *  EOB_ACT_LAST_MATCH -
1945
 *  EOB_ACT_CONTINUE_SCAN - continue scanning from current position
1946
 *  EOB_ACT_END_OF_FILE - end of file
1947
 */
1948
/* %if-c-only */
1949
static int yy_get_next_buffer (yyscan_t yyscanner)
1950
/* %endif */
1951
/* %if-c++-only */
1952
/* %endif */
1953
0
{
1954
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1955
0
  char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
1956
0
  char *source = yyg->yytext_ptr;
1957
0
  int number_to_move, i;
1958
0
  int ret_val;
1959
1960
0
  if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] )
1961
0
    YY_FATAL_ERROR(
1962
0
    "fatal flex scanner internal error--end of buffer missed" );
1963
1964
0
  if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
1965
0
    { /* Don't try to fill the buffer, so this is an EOF. */
1966
0
    if ( yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1 )
1967
0
      {
1968
      /* We matched a single character, the EOB, so
1969
       * treat this as a final EOF.
1970
       */
1971
0
      return EOB_ACT_END_OF_FILE;
1972
0
      }
1973
1974
0
    else
1975
0
      {
1976
      /* We matched some text prior to the EOB, first
1977
       * process it.
1978
       */
1979
0
      return EOB_ACT_LAST_MATCH;
1980
0
      }
1981
0
    }
1982
1983
  /* Try to read more data. */
1984
1985
  /* First move last chars to start of buffer. */
1986
0
  number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr - 1);
1987
1988
0
  for ( i = 0; i < number_to_move; ++i )
1989
0
    *(dest++) = *(source++);
1990
1991
0
  if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1992
    /* don't do the read, it's not guaranteed to return an EOF,
1993
     * just force an EOF
1994
     */
1995
0
    YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars = 0;
1996
1997
0
  else
1998
0
    {
1999
0
      int num_to_read =
2000
0
      YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
2001
2002
0
    while ( num_to_read <= 0 )
2003
0
      { /* Not enough room in the buffer - grow it. */
2004
2005
      /* just a shorter name for the current buffer */
2006
0
      YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
2007
2008
0
      int yy_c_buf_p_offset =
2009
0
        (int) (yyg->yy_c_buf_p - b->yy_ch_buf);
2010
2011
0
      if ( b->yy_is_our_buffer )
2012
0
        {
2013
0
        int new_size = b->yy_buf_size * 2;
2014
2015
0
        if ( new_size <= 0 )
2016
0
          b->yy_buf_size += b->yy_buf_size / 8;
2017
0
        else
2018
0
          b->yy_buf_size *= 2;
2019
2020
0
        b->yy_ch_buf = (char *)
2021
          /* Include room in for 2 EOB chars. */
2022
0
          yyrealloc( (void *) b->yy_ch_buf,
2023
0
               (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
2024
0
        }
2025
0
      else
2026
        /* Can't grow it, we don't own it. */
2027
0
        b->yy_ch_buf = NULL;
2028
2029
0
      if ( ! b->yy_ch_buf )
2030
0
        YY_FATAL_ERROR(
2031
0
        "fatal error - scanner input buffer overflow" );
2032
2033
0
      yyg->yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
2034
2035
0
      num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
2036
0
            number_to_move - 1;
2037
2038
0
      }
2039
2040
0
    if ( num_to_read > YY_READ_BUF_SIZE )
2041
0
      num_to_read = YY_READ_BUF_SIZE;
2042
2043
    /* Read in more data. */
2044
0
    YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
2045
0
      yyg->yy_n_chars, num_to_read );
2046
2047
0
    YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
2048
0
    }
2049
2050
0
  if ( yyg->yy_n_chars == 0 )
2051
0
    {
2052
0
    if ( number_to_move == YY_MORE_ADJ )
2053
0
      {
2054
0
      ret_val = EOB_ACT_END_OF_FILE;
2055
0
      yyrestart( yyin  , yyscanner);
2056
0
      }
2057
2058
0
    else
2059
0
      {
2060
0
      ret_val = EOB_ACT_LAST_MATCH;
2061
0
      YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
2062
0
        YY_BUFFER_EOF_PENDING;
2063
0
      }
2064
0
    }
2065
2066
0
  else
2067
0
    ret_val = EOB_ACT_CONTINUE_SCAN;
2068
2069
0
  if ((yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
2070
    /* Extend the array by 50%, plus the number we really need. */
2071
0
    int new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1);
2072
0
    YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
2073
0
      (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size , yyscanner );
2074
0
    if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
2075
0
      YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
2076
    /* "- 2" to take care of EOB's */
2077
0
    YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
2078
0
  }
2079
2080
0
  yyg->yy_n_chars += number_to_move;
2081
0
  YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR;
2082
0
  YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
2083
2084
0
  yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
2085
2086
0
  return ret_val;
2087
0
}
2088
2089
/* yy_get_previous_state - get the state just before the EOB char was reached */
2090
2091
/* %if-c-only */
2092
/* %not-for-header */
2093
    static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
2094
/* %endif */
2095
/* %if-c++-only */
2096
/* %endif */
2097
0
{
2098
0
  yy_state_type yy_current_state;
2099
0
  char *yy_cp;
2100
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2101
2102
/* %% [15.0] code to get the start state into yy_current_state goes here */
2103
0
  yy_current_state = yyg->yy_start;
2104
2105
0
  for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
2106
0
    {
2107
/* %% [16.0] code to find the next state goes here */
2108
0
    YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
2109
0
    if ( yy_accept[yy_current_state] )
2110
0
      {
2111
0
      yyg->yy_last_accepting_state = yy_current_state;
2112
0
      yyg->yy_last_accepting_cpos = yy_cp;
2113
0
      }
2114
0
    while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2115
0
      {
2116
0
      yy_current_state = (int) yy_def[yy_current_state];
2117
0
      if ( yy_current_state >= 451 )
2118
0
        yy_c = yy_meta[yy_c];
2119
0
      }
2120
0
    yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
2121
0
    }
2122
2123
0
  return yy_current_state;
2124
0
}
2125
2126
/* yy_try_NUL_trans - try to make a transition on the NUL character
2127
 *
2128
 * synopsis
2129
 *  next_state = yy_try_NUL_trans( current_state );
2130
 */
2131
/* %if-c-only */
2132
    static yy_state_type yy_try_NUL_trans  (yy_state_type yy_current_state , yyscan_t yyscanner)
2133
/* %endif */
2134
/* %if-c++-only */
2135
/* %endif */
2136
0
{
2137
0
  int yy_is_jam;
2138
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */
2139
/* %% [17.0] code to find the next state, and perhaps do backing up, goes here */
2140
0
  char *yy_cp = yyg->yy_c_buf_p;
2141
2142
0
  YY_CHAR yy_c = 1;
2143
0
  if ( yy_accept[yy_current_state] )
2144
0
    {
2145
0
    yyg->yy_last_accepting_state = yy_current_state;
2146
0
    yyg->yy_last_accepting_cpos = yy_cp;
2147
0
    }
2148
0
  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2149
0
    {
2150
0
    yy_current_state = (int) yy_def[yy_current_state];
2151
0
    if ( yy_current_state >= 451 )
2152
0
      yy_c = yy_meta[yy_c];
2153
0
    }
2154
0
  yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
2155
0
  yy_is_jam = (yy_current_state == 450);
2156
2157
0
  (void)yyg;
2158
0
  return yy_is_jam ? 0 : yy_current_state;
2159
0
}
2160
2161
#ifndef YY_NO_UNPUT
2162
/* %if-c-only */
2163
2164
/* %endif */
2165
#endif
2166
2167
/* %if-c-only */
2168
#ifndef YY_NO_INPUT
2169
#ifdef __cplusplus
2170
    static int yyinput (yyscan_t yyscanner)
2171
#else
2172
    static int input  (yyscan_t yyscanner)
2173
#endif
2174
2175
/* %endif */
2176
/* %if-c++-only */
2177
/* %endif */
2178
{
2179
  int c;
2180
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2181
2182
  *yyg->yy_c_buf_p = yyg->yy_hold_char;
2183
2184
  if ( *yyg->yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
2185
    {
2186
    /* yy_c_buf_p now points to the character we want to return.
2187
     * If this occurs *before* the EOB characters, then it's a
2188
     * valid NUL; if not, then we've hit the end of the buffer.
2189
     */
2190
    if ( yyg->yy_c_buf_p < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
2191
      /* This was really a NUL. */
2192
      *yyg->yy_c_buf_p = '\0';
2193
2194
    else
2195
      { /* need more input */
2196
      int offset = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr);
2197
      ++yyg->yy_c_buf_p;
2198
2199
      switch ( yy_get_next_buffer( yyscanner ) )
2200
        {
2201
        case EOB_ACT_LAST_MATCH:
2202
          /* This happens because yy_g_n_b()
2203
           * sees that we've accumulated a
2204
           * token and flags that we need to
2205
           * try matching the token before
2206
           * proceeding.  But for input(),
2207
           * there's no matching to consider.
2208
           * So convert the EOB_ACT_LAST_MATCH
2209
           * to EOB_ACT_END_OF_FILE.
2210
           */
2211
2212
          /* Reset buffer status. */
2213
          yyrestart( yyin , yyscanner);
2214
2215
          /*FALLTHROUGH*/
2216
2217
        case EOB_ACT_END_OF_FILE:
2218
          {
2219
          if ( yywrap( yyscanner ) )
2220
            return 0;
2221
2222
          if ( ! yyg->yy_did_buffer_switch_on_eof )
2223
            YY_NEW_FILE;
2224
#ifdef __cplusplus
2225
          return yyinput(yyscanner);
2226
#else
2227
          return input(yyscanner);
2228
#endif
2229
          }
2230
2231
        case EOB_ACT_CONTINUE_SCAN:
2232
          yyg->yy_c_buf_p = yyg->yytext_ptr + offset;
2233
          break;
2234
        }
2235
      }
2236
    }
2237
2238
  c = *(unsigned char *) yyg->yy_c_buf_p; /* cast for 8-bit char's */
2239
  *yyg->yy_c_buf_p = '\0';  /* preserve yytext */
2240
  yyg->yy_hold_char = *++yyg->yy_c_buf_p;
2241
2242
/* %% [19.0] update BOL and yylineno */
2243
2244
  return c;
2245
}
2246
/* %if-c-only */
2247
#endif  /* ifndef YY_NO_INPUT */
2248
/* %endif */
2249
2250
/** Immediately switch to a different input stream.
2251
 * @param input_file A readable stream.
2252
 * @param yyscanner The scanner object.
2253
 * @note This function does not reset the start condition to @c INITIAL .
2254
 */
2255
/* %if-c-only */
2256
    void yyrestart  (FILE * input_file , yyscan_t yyscanner)
2257
/* %endif */
2258
/* %if-c++-only */
2259
/* %endif */
2260
0
{
2261
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2262
2263
0
  if ( ! YY_CURRENT_BUFFER ){
2264
0
        yyensure_buffer_stack (yyscanner);
2265
0
    YY_CURRENT_BUFFER_LVALUE =
2266
0
            yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner);
2267
0
  }
2268
2269
0
  yy_init_buffer( YY_CURRENT_BUFFER, input_file , yyscanner);
2270
0
  yy_load_buffer_state( yyscanner );
2271
0
}
2272
2273
/* %if-c++-only */
2274
/* %endif */
2275
2276
/** Switch to a different input buffer.
2277
 * @param new_buffer The new input buffer.
2278
 * @param yyscanner The scanner object.
2279
 */
2280
/* %if-c-only */
2281
    void yy_switch_to_buffer  (YY_BUFFER_STATE  new_buffer , yyscan_t yyscanner)
2282
/* %endif */
2283
/* %if-c++-only */
2284
/* %endif */
2285
0
{
2286
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2287
2288
  /* TODO. We should be able to replace this entire function body
2289
   * with
2290
   *    yypop_buffer_state();
2291
   *    yypush_buffer_state(new_buffer);
2292
     */
2293
0
  yyensure_buffer_stack (yyscanner);
2294
0
  if ( YY_CURRENT_BUFFER == new_buffer )
2295
0
    return;
2296
2297
0
  if ( YY_CURRENT_BUFFER )
2298
0
    {
2299
    /* Flush out information for old buffer. */
2300
0
    *yyg->yy_c_buf_p = yyg->yy_hold_char;
2301
0
    YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
2302
0
    YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
2303
0
    }
2304
2305
0
  YY_CURRENT_BUFFER_LVALUE = new_buffer;
2306
0
  yy_load_buffer_state( yyscanner );
2307
2308
  /* We don't actually know whether we did this switch during
2309
   * EOF (yywrap()) processing, but the only time this flag
2310
   * is looked at is after yywrap() is called, so it's safe
2311
   * to go ahead and always set it.
2312
   */
2313
0
  yyg->yy_did_buffer_switch_on_eof = 1;
2314
0
}
2315
2316
/* %if-c-only */
2317
static void yy_load_buffer_state  (yyscan_t yyscanner)
2318
/* %endif */
2319
/* %if-c++-only */
2320
/* %endif */
2321
0
{
2322
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2323
0
  yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
2324
0
  yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
2325
/* %if-c-only */
2326
0
  yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
2327
/* %endif */
2328
/* %if-c++-only */
2329
/* %endif */
2330
0
  yyg->yy_hold_char = *yyg->yy_c_buf_p;
2331
0
}
2332
2333
/** Allocate and initialize an input buffer state.
2334
 * @param file A readable stream.
2335
 * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
2336
 * @param yyscanner The scanner object.
2337
 * @return the allocated buffer state.
2338
 */
2339
/* %if-c-only */
2340
    YY_BUFFER_STATE yy_create_buffer  (FILE * file, int  size , yyscan_t yyscanner)
2341
/* %endif */
2342
/* %if-c++-only */
2343
/* %endif */
2344
0
{
2345
0
  YY_BUFFER_STATE b;
2346
    
2347
0
  b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) , yyscanner );
2348
0
  if ( ! b )
2349
0
    YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2350
2351
0
  b->yy_buf_size = size;
2352
2353
  /* yy_ch_buf has to be 2 characters longer than the size given because
2354
   * we need to put in 2 end-of-buffer characters.
2355
   */
2356
0
  b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
2357
0
  if ( ! b->yy_ch_buf )
2358
0
    YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2359
2360
0
  b->yy_is_our_buffer = 1;
2361
2362
0
  yy_init_buffer( b, file , yyscanner);
2363
2364
0
  return b;
2365
0
}
2366
2367
/* %if-c++-only */
2368
/* %endif */
2369
2370
/** Destroy the buffer.
2371
 * @param b a buffer created with yy_create_buffer()
2372
 * @param yyscanner The scanner object.
2373
 */
2374
/* %if-c-only */
2375
    void yy_delete_buffer (YY_BUFFER_STATE  b , yyscan_t yyscanner)
2376
/* %endif */
2377
/* %if-c++-only */
2378
/* %endif */
2379
0
{
2380
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2381
2382
0
  if ( ! b )
2383
0
    return;
2384
2385
0
  if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
2386
0
    YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
2387
2388
0
  if ( b->yy_is_our_buffer )
2389
0
    yyfree( (void *) b->yy_ch_buf , yyscanner );
2390
2391
0
  yyfree( (void *) b , yyscanner );
2392
0
}
2393
2394
/* Initializes or reinitializes a buffer.
2395
 * This function is sometimes called more than once on the same buffer,
2396
 * such as during a yyrestart() or at EOF.
2397
 */
2398
/* %if-c-only */
2399
    static void yy_init_buffer  (YY_BUFFER_STATE  b, FILE * file , yyscan_t yyscanner)
2400
/* %endif */
2401
/* %if-c++-only */
2402
/* %endif */
2403
2404
0
{
2405
0
  int oerrno = errno;
2406
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2407
2408
0
  yy_flush_buffer( b , yyscanner);
2409
2410
/* %if-c-only */
2411
0
  b->yy_input_file = file;
2412
/* %endif */
2413
/* %if-c++-only */
2414
/* %endif */
2415
0
  b->yy_fill_buffer = 1;
2416
2417
    /* If b is the current buffer, then yy_init_buffer was _probably_
2418
     * called from yyrestart() or through yy_get_next_buffer.
2419
     * In that case, we don't want to reset the lineno or column.
2420
     */
2421
0
    if (b != YY_CURRENT_BUFFER){
2422
0
        b->yy_bs_lineno = 1;
2423
0
        b->yy_bs_column = 0;
2424
0
    }
2425
2426
/* %if-c-only */
2427
2428
0
        b->yy_is_interactive = 0;
2429
    
2430
/* %endif */
2431
/* %if-c++-only */
2432
/* %endif */
2433
0
  errno = oerrno;
2434
0
}
2435
2436
/** Discard all buffered characters. On the next scan, YY_INPUT will be called.
2437
 * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
2438
 * @param yyscanner The scanner object.
2439
 */
2440
/* %if-c-only */
2441
    void yy_flush_buffer (YY_BUFFER_STATE  b , yyscan_t yyscanner)
2442
/* %endif */
2443
/* %if-c++-only */
2444
/* %endif */
2445
0
{
2446
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2447
0
  if ( ! b )
2448
0
    return;
2449
2450
0
  b->yy_n_chars = 0;
2451
2452
  /* We always need two end-of-buffer characters.  The first causes
2453
   * a transition to the end-of-buffer state.  The second causes
2454
   * a jam in that state.
2455
   */
2456
0
  b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
2457
0
  b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
2458
2459
0
  b->yy_buf_pos = &b->yy_ch_buf[0];
2460
2461
0
  b->yy_at_bol = 1;
2462
0
  b->yy_buffer_status = YY_BUFFER_NEW;
2463
2464
0
  if ( b == YY_CURRENT_BUFFER )
2465
0
    yy_load_buffer_state( yyscanner );
2466
0
}
2467
2468
/* %if-c-or-c++ */
2469
/** Pushes the new state onto the stack. The new state becomes
2470
 *  the current state. This function will allocate the stack
2471
 *  if necessary.
2472
 *  @param new_buffer The new state.
2473
 *  @param yyscanner The scanner object.
2474
 */
2475
/* %if-c-only */
2476
void yypush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
2477
/* %endif */
2478
/* %if-c++-only */
2479
/* %endif */
2480
0
{
2481
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2482
0
  if (new_buffer == NULL)
2483
0
    return;
2484
2485
0
  yyensure_buffer_stack(yyscanner);
2486
2487
  /* This block is copied from yy_switch_to_buffer. */
2488
0
  if ( YY_CURRENT_BUFFER )
2489
0
    {
2490
    /* Flush out information for old buffer. */
2491
0
    *yyg->yy_c_buf_p = yyg->yy_hold_char;
2492
0
    YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
2493
0
    YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
2494
0
    }
2495
2496
  /* Only push if top exists. Otherwise, replace top. */
2497
0
  if (YY_CURRENT_BUFFER)
2498
0
    yyg->yy_buffer_stack_top++;
2499
0
  YY_CURRENT_BUFFER_LVALUE = new_buffer;
2500
2501
  /* copied from yy_switch_to_buffer. */
2502
0
  yy_load_buffer_state( yyscanner );
2503
0
  yyg->yy_did_buffer_switch_on_eof = 1;
2504
0
}
2505
/* %endif */
2506
2507
/* %if-c-or-c++ */
2508
/** Removes and deletes the top of the stack, if present.
2509
 *  The next element becomes the new top.
2510
 *  @param yyscanner The scanner object.
2511
 */
2512
/* %if-c-only */
2513
void yypop_buffer_state (yyscan_t yyscanner)
2514
/* %endif */
2515
/* %if-c++-only */
2516
/* %endif */
2517
0
{
2518
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2519
0
  if (!YY_CURRENT_BUFFER)
2520
0
    return;
2521
2522
0
  yy_delete_buffer(YY_CURRENT_BUFFER , yyscanner);
2523
0
  YY_CURRENT_BUFFER_LVALUE = NULL;
2524
0
  if (yyg->yy_buffer_stack_top > 0)
2525
0
    --yyg->yy_buffer_stack_top;
2526
2527
0
  if (YY_CURRENT_BUFFER) {
2528
0
    yy_load_buffer_state( yyscanner );
2529
0
    yyg->yy_did_buffer_switch_on_eof = 1;
2530
0
  }
2531
0
}
2532
/* %endif */
2533
2534
/* %if-c-or-c++ */
2535
/* Allocates the stack if it does not exist.
2536
 *  Guarantees space for at least one push.
2537
 */
2538
/* %if-c-only */
2539
static void yyensure_buffer_stack (yyscan_t yyscanner)
2540
/* %endif */
2541
/* %if-c++-only */
2542
/* %endif */
2543
0
{
2544
0
  yy_size_t num_to_alloc;
2545
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2546
2547
0
  if (!yyg->yy_buffer_stack) {
2548
2549
    /* First allocation is just for 2 elements, since we don't know if this
2550
     * scanner will even need a stack. We use 2 instead of 1 to avoid an
2551
     * immediate realloc on the next call.
2552
         */
2553
0
      num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
2554
0
    yyg->yy_buffer_stack = (struct yy_buffer_state**)yyalloc
2555
0
                (num_to_alloc * sizeof(struct yy_buffer_state*)
2556
0
                , yyscanner);
2557
0
    if ( ! yyg->yy_buffer_stack )
2558
0
      YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
2559
2560
0
    memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state*));
2561
2562
0
    yyg->yy_buffer_stack_max = num_to_alloc;
2563
0
    yyg->yy_buffer_stack_top = 0;
2564
0
    return;
2565
0
  }
2566
2567
0
  if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1){
2568
2569
    /* Increase the buffer to prepare for a possible push. */
2570
0
    yy_size_t grow_size = 8 /* arbitrary grow size */;
2571
2572
0
    num_to_alloc = yyg->yy_buffer_stack_max + grow_size;
2573
0
    yyg->yy_buffer_stack = (struct yy_buffer_state**)yyrealloc
2574
0
                (yyg->yy_buffer_stack,
2575
0
                num_to_alloc * sizeof(struct yy_buffer_state*)
2576
0
                , yyscanner);
2577
0
    if ( ! yyg->yy_buffer_stack )
2578
0
      YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
2579
2580
    /* zero only the new slots.*/
2581
0
    memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size * sizeof(struct yy_buffer_state*));
2582
0
    yyg->yy_buffer_stack_max = num_to_alloc;
2583
0
  }
2584
0
}
2585
/* %endif */
2586
2587
#ifndef YY_EXIT_FAILURE
2588
#define YY_EXIT_FAILURE 2
2589
#endif
2590
2591
/* %if-c-only */
2592
static void yynoreturn yy_fatal_error (const char* msg , yyscan_t yyscanner)
2593
0
{
2594
0
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2595
0
  (void)yyg;
2596
0
  fprintf( stderr, "%s\n", msg );
2597
0
  exit( YY_EXIT_FAILURE );
2598
0
}
2599
/* %endif */
2600
/* %if-c++-only */
2601
/* %endif */
2602
2603
/* Redefine yyless() so it works in section 3 code. */
2604
2605
#undef yyless
2606
#define yyless(n) \
2607
  do \
2608
    { \
2609
    /* Undo effects of setting up yytext. */ \
2610
        int yyless_macro_arg = (n); \
2611
        YY_LESS_LINENO(yyless_macro_arg);\
2612
    yytext[yyleng] = yyg->yy_hold_char; \
2613
    yyg->yy_c_buf_p = yytext + yyless_macro_arg; \
2614
    yyg->yy_hold_char = *yyg->yy_c_buf_p; \
2615
    *yyg->yy_c_buf_p = '\0'; \
2616
    yyleng = yyless_macro_arg; \
2617
    } \
2618
  while ( 0 )
2619
2620
/* Accessor  methods (get/set functions) to struct members. */
2621
2622
/* %if-c-only */
2623
/* %if-reentrant */
2624
2625
/** Get the user-defined data for this scanner.
2626
 * @param yyscanner The scanner object.
2627
 */
2628
YY_EXTRA_TYPE yyget_extra  (yyscan_t yyscanner)
2629
0
{
2630
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2631
0
    return yyextra;
2632
0
}
2633
2634
/* %endif */
2635
2636
/** Get the current line number.
2637
 * @param yyscanner The scanner object.
2638
 */
2639
int yyget_lineno  (yyscan_t yyscanner)
2640
0
{
2641
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2642
2643
0
        if (! YY_CURRENT_BUFFER)
2644
0
            return 0;
2645
    
2646
0
    return yylineno;
2647
0
}
2648
2649
/** Get the current column number.
2650
 * @param yyscanner The scanner object.
2651
 */
2652
int yyget_column  (yyscan_t yyscanner)
2653
0
{
2654
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2655
2656
0
        if (! YY_CURRENT_BUFFER)
2657
0
            return 0;
2658
    
2659
0
    return yycolumn;
2660
0
}
2661
2662
/** Get the input stream.
2663
 * @param yyscanner The scanner object.
2664
 */
2665
FILE *yyget_in  (yyscan_t yyscanner)
2666
0
{
2667
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2668
0
    return yyin;
2669
0
}
2670
2671
/** Get the output stream.
2672
 * @param yyscanner The scanner object.
2673
 */
2674
FILE *yyget_out  (yyscan_t yyscanner)
2675
0
{
2676
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2677
0
    return yyout;
2678
0
}
2679
2680
/** Get the length of the current token.
2681
 * @param yyscanner The scanner object.
2682
 */
2683
int yyget_leng  (yyscan_t yyscanner)
2684
0
{
2685
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2686
0
    return yyleng;
2687
0
}
2688
2689
/** Get the current token.
2690
 * @param yyscanner The scanner object.
2691
 */
2692
2693
char *yyget_text  (yyscan_t yyscanner)
2694
0
{
2695
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2696
0
    return yytext;
2697
0
}
2698
2699
/* %if-reentrant */
2700
2701
/** Set the user-defined data. This data is never touched by the scanner.
2702
 * @param user_defined The data to be associated with this scanner.
2703
 * @param yyscanner The scanner object.
2704
 */
2705
void yyset_extra (YY_EXTRA_TYPE  user_defined , yyscan_t yyscanner)
2706
0
{
2707
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2708
0
    yyextra = user_defined ;
2709
0
}
2710
2711
/* %endif */
2712
2713
/** Set the current line number.
2714
 * @param _line_number line number
2715
 * @param yyscanner The scanner object.
2716
 */
2717
void yyset_lineno (int  _line_number , yyscan_t yyscanner)
2718
0
{
2719
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2720
2721
        /* lineno is only valid if an input buffer exists. */
2722
0
        if (! YY_CURRENT_BUFFER )
2723
0
           YY_FATAL_ERROR( "yyset_lineno called with no buffer" );
2724
    
2725
0
    yylineno = _line_number;
2726
0
}
2727
2728
/** Set the current column.
2729
 * @param _column_no column number
2730
 * @param yyscanner The scanner object.
2731
 */
2732
void yyset_column (int  _column_no , yyscan_t yyscanner)
2733
0
{
2734
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2735
2736
        /* column is only valid if an input buffer exists. */
2737
0
        if (! YY_CURRENT_BUFFER )
2738
0
           YY_FATAL_ERROR( "yyset_column called with no buffer" );
2739
    
2740
0
    yycolumn = _column_no;
2741
0
}
2742
2743
/** Set the input stream. This does not discard the current
2744
 * input buffer.
2745
 * @param _in_str A readable stream.
2746
 * @param yyscanner The scanner object.
2747
 * @see yy_switch_to_buffer
2748
 */
2749
void yyset_in (FILE *  _in_str , yyscan_t yyscanner)
2750
0
{
2751
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2752
0
    yyin = _in_str ;
2753
0
}
2754
2755
void yyset_out (FILE *  _out_str , yyscan_t yyscanner)
2756
0
{
2757
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2758
0
    yyout = _out_str ;
2759
0
}
2760
2761
int yyget_debug  (yyscan_t yyscanner)
2762
0
{
2763
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2764
0
    return yy_flex_debug;
2765
0
}
2766
2767
void yyset_debug (int  _bdebug , yyscan_t yyscanner)
2768
0
{
2769
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2770
0
    yy_flex_debug = _bdebug ;
2771
0
}
2772
2773
/* %endif */
2774
2775
/* %if-reentrant */
2776
/* Accessor methods for yylval and yylloc */
2777
2778
/* %if-bison-bridge */
2779
/* %endif */
2780
2781
/* User-visible API */
2782
2783
/* yylex_init is special because it creates the scanner itself, so it is
2784
 * the ONLY reentrant function that doesn't take the scanner as the last argument.
2785
 * That's why we explicitly handle the declaration, instead of using our macros.
2786
 */
2787
int yylex_init(yyscan_t* ptr_yy_globals)
2788
0
{
2789
0
    if (ptr_yy_globals == NULL){
2790
0
        errno = EINVAL;
2791
0
        return 1;
2792
0
    }
2793
2794
0
    *ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), NULL );
2795
2796
0
    if (*ptr_yy_globals == NULL){
2797
0
        errno = ENOMEM;
2798
0
        return 1;
2799
0
    }
2800
2801
    /* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for releases. */
2802
0
    memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));
2803
2804
0
    return yy_init_globals ( *ptr_yy_globals );
2805
0
}
2806
2807
/* yylex_init_extra has the same functionality as yylex_init, but follows the
2808
 * convention of taking the scanner as the last argument. Note however, that
2809
 * this is a *pointer* to a scanner, as it will be allocated by this call (and
2810
 * is the reason, too, why this function also must handle its own declaration).
2811
 * The user defined value in the first argument will be available to yyalloc in
2812
 * the yyextra field.
2813
 */
2814
int yylex_init_extra( YY_EXTRA_TYPE yy_user_defined, yyscan_t* ptr_yy_globals )
2815
0
{
2816
0
    struct yyguts_t dummy_yyguts;
2817
2818
0
    yyset_extra (yy_user_defined, &dummy_yyguts);
2819
2820
0
    if (ptr_yy_globals == NULL){
2821
0
        errno = EINVAL;
2822
0
        return 1;
2823
0
    }
2824
2825
0
    *ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), &dummy_yyguts );
2826
2827
0
    if (*ptr_yy_globals == NULL){
2828
0
        errno = ENOMEM;
2829
0
        return 1;
2830
0
    }
2831
2832
    /* By setting to 0xAA, we expose bugs in
2833
    yy_init_globals. Leave at 0x00 for releases. */
2834
0
    memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));
2835
2836
0
    yyset_extra (yy_user_defined, *ptr_yy_globals);
2837
2838
0
    return yy_init_globals ( *ptr_yy_globals );
2839
0
}
2840
2841
/* %endif if-c-only */
2842
2843
/* %if-c-only */
2844
static int yy_init_globals (yyscan_t yyscanner)
2845
0
{
2846
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2847
    /* Initialization is the same as for the non-reentrant scanner.
2848
     * This function is called from yylex_destroy(), so don't allocate here.
2849
     */
2850
2851
0
    yyg->yy_buffer_stack = NULL;
2852
0
    yyg->yy_buffer_stack_top = 0;
2853
0
    yyg->yy_buffer_stack_max = 0;
2854
0
    yyg->yy_c_buf_p = NULL;
2855
0
    yyg->yy_init = 0;
2856
0
    yyg->yy_start = 0;
2857
2858
0
    yyg->yy_start_stack_ptr = 0;
2859
0
    yyg->yy_start_stack_depth = 0;
2860
0
    yyg->yy_start_stack =  NULL;
2861
2862
/* Defined in main.c */
2863
#ifdef YY_STDINIT
2864
    yyin = stdin;
2865
    yyout = stdout;
2866
#else
2867
0
    yyin = NULL;
2868
0
    yyout = NULL;
2869
0
#endif
2870
2871
    /* For future reference: Set errno on error, since we are called by
2872
     * yylex_init()
2873
     */
2874
0
    return 0;
2875
0
}
2876
/* %endif */
2877
2878
/* %if-c-only SNIP! this currently causes conflicts with the c++ scanner */
2879
/* yylex_destroy is for both reentrant and non-reentrant scanners. */
2880
int yylex_destroy  (yyscan_t yyscanner)
2881
0
{
2882
0
    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2883
2884
    /* Pop the buffer stack, destroying each element. */
2885
0
  while(YY_CURRENT_BUFFER){
2886
0
    yy_delete_buffer( YY_CURRENT_BUFFER , yyscanner );
2887
0
    YY_CURRENT_BUFFER_LVALUE = NULL;
2888
0
    yypop_buffer_state(yyscanner);
2889
0
  }
2890
2891
  /* Destroy the stack itself. */
2892
0
  yyfree(yyg->yy_buffer_stack , yyscanner);
2893
0
  yyg->yy_buffer_stack = NULL;
2894
2895
    /* Destroy the start condition stack. */
2896
0
        yyfree( yyg->yy_start_stack , yyscanner );
2897
0
        yyg->yy_start_stack = NULL;
2898
2899
    /* Reset the globals. This is important in a non-reentrant scanner so the next time
2900
     * yylex() is called, initialization will occur. */
2901
0
    yy_init_globals( yyscanner);
2902
2903
/* %if-reentrant */
2904
    /* Destroy the main struct (reentrant only). */
2905
0
    yyfree ( yyscanner , yyscanner );
2906
0
    yyscanner = NULL;
2907
/* %endif */
2908
0
    return 0;
2909
0
}
2910
/* %endif */
2911
2912
/*
2913
 * Internal utility routines.
2914
 */
2915
2916
#ifndef yytext_ptr
2917
static void yy_flex_strncpy (char* s1, const char * s2, int n , yyscan_t yyscanner)
2918
{
2919
  struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2920
  (void)yyg;
2921
2922
  int i;
2923
  for ( i = 0; i < n; ++i )
2924
    s1[i] = s2[i];
2925
}
2926
#endif
2927
2928
#ifdef YY_NEED_STRLEN
2929
static int yy_flex_strlen (const char * s , yyscan_t yyscanner)
2930
{
2931
  int n;
2932
  for ( n = 0; s[n]; ++n )
2933
    ;
2934
2935
  return n;
2936
}
2937
#endif
2938
2939
/* %if-tables-serialization definitions */
2940
/* %define-yytables   The name for this specific scanner's tables. */
2941
#define YYTABLES_NAME "yytables"
2942
/* %endif */
2943
2944
/* %ok-for-header */
2945
2946
#line 197 "/src/wireshark/wiretap/busmaster_scanner.l"
2947
2948
2949
DIAG_ON_FLEX()
2950