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