Bug Summary

File:src/usr.sbin/nsd/obj/conftest.c
Warning:line 786, column 21
Assigned value is garbage or undefined

Annotated Source Code

Press '?' to see keyboard shortcuts

clang -cc1 -cc1 -triple amd64-unknown-openbsd7.0 -analyze -disable-free -disable-llvm-verifier -discard-value-names -main-file-name conftest.c -analyzer-store=region -analyzer-opt-analyze-nested-blocks -analyzer-checker=core -analyzer-checker=apiModeling -analyzer-checker=unix -analyzer-checker=deadcode -analyzer-checker=security.insecureAPI.UncheckedReturn -analyzer-checker=security.insecureAPI.getpw -analyzer-checker=security.insecureAPI.gets -analyzer-checker=security.insecureAPI.mktemp -analyzer-checker=security.insecureAPI.mkstemp -analyzer-checker=security.insecureAPI.vfork -analyzer-checker=nullability.NullPassedToNonnull -analyzer-checker=nullability.NullReturnedFromNonnull -analyzer-output plist -w -setup-static-analyzer -mrelocation-model pic -pic-level 1 -pic-is-pie -mframe-pointer=all -relaxed-aliasing -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-feature +retpoline-indirect-calls -target-feature +retpoline-indirect-branches -tune-cpu generic -debugger-tuning=gdb -fcoverage-compilation-dir=/usr/src/usr.sbin/nsd/obj -resource-dir /usr/local/lib/clang/13.0.0 -internal-isystem /usr/local/lib/clang/13.0.0/include -internal-externc-isystem /usr/include -O2 -fdebug-compilation-dir=/usr/src/usr.sbin/nsd/obj -ferror-limit 19 -fwrapv -D_RET_PROTECTOR -ret-protector -fgnuc-version=4.2.1 -vectorize-loops -vectorize-slp -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-valloc -fno-builtin-free -fno-builtin-strdup -fno-builtin-strndup -analyzer-output=html -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /home/ben/Projects/vmm/scan-build/2022-01-12-194120-40624-1 -x c conftest.c
1/* confdefs.h */
2#define PACKAGE_NAME"NSD" "NSD"
3#define PACKAGE_TARNAME"nsd" "nsd"
4#define PACKAGE_VERSION"4.3.9" "4.3.9"
5#define PACKAGE_STRING"NSD 4.3.9" "NSD 4.3.9"
6#define PACKAGE_BUGREPORT"nsd-bugs@nlnetlabs.nl" "nsd-bugs@nlnetlabs.nl"
7#define PACKAGE_URL"" ""
8#define CONFCMDLINE"--prefix=/usr --localstatedir=/var --sysconfdir=/etc --with-ssl=/usr --with-user=_nsd --with-chroot=/var/nsd --with-configdir=/var/nsd/etc --with-pidfile= --with-zonesdir=/var/nsd/zones --with-dbfile= --with-zonelistfile=/var/nsd/db/zone.list --with-xfrdir=/var/nsd/run/xfr --with-xfrdfile=/var/nsd/run/xfrd.state --with-libevent=/usr --enable-ratelimit --enable-root-server" "--prefix=/usr --localstatedir=/var --sysconfdir=/etc --with-ssl=/usr --with-user=_nsd --with-chroot=/var/nsd --with-configdir=/var/nsd/etc --with-pidfile= --with-zonesdir=/var/nsd/zones --with-dbfile= --with-zonelistfile=/var/nsd/db/zone.list --with-xfrdir=/var/nsd/run/xfr --with-xfrdfile=/var/nsd/run/xfrd.state --with-libevent=/usr --enable-ratelimit --enable-root-server"
9#define STDC_HEADERS1 1
10#define HAVE_SYS_TYPES_H1 1
11#define HAVE_SYS_STAT_H1 1
12#define HAVE_STDLIB_H1 1
13#define HAVE_STRING_H1 1
14#define HAVE_MEMORY_H1 1
15#define HAVE_STRINGS_H1 1
16#define HAVE_INTTYPES_H1 1
17#define HAVE_STDINT_H1 1
18#define HAVE_UNISTD_H1 1
19#define __EXTENSIONS__1 1
20#define _ALL_SOURCE1 1
21#define _GNU_SOURCE1 1
22#define _POSIX_PTHREAD_SEMANTICS1 1
23#define _TANDEM_SOURCE1 1
24#define CONFIGDIR"/var/nsd/etc" "/var/nsd/etc"
25#define CONFIGFILE"/var/nsd/etc/nsd.conf" "/var/nsd/etc/nsd.conf"
26#define PIDFILE"" ""
27#define DBFILE"" ""
28#define ZONESDIR"/var/nsd/zones" "/var/nsd/zones"
29#define XFRDFILE"/var/nsd/run/xfrd.state" "/var/nsd/run/xfrd.state"
30#define ZONELISTFILE"/var/nsd/db/zone.list" "/var/nsd/db/zone.list"
31#define XFRDIR"/var/nsd/run/xfr" "/var/nsd/run/xfr"
32#define NSD_START_PATH"/usr/sbin/nsd" "/usr/sbin/nsd"
33#define CHROOTDIR"/var/nsd" "/var/nsd"
34#define USER"_nsd" "_nsd"
35/* end confdefs.h. */
36
37 #define YYTEXT_POINTER1 1
38
39#line 3 "lex.yy.c"
40
41#define YY_INT_ALIGNEDshort int short int
42
43/* $OpenBSD: flex.skl,v 1.18 2021/11/30 15:50:06 millert Exp $ */
44
45/* A lexical scanner generated by flex */
46
47#define FLEX_SCANNER
48#define YY_FLEX_MAJOR_VERSION2 2
49#define YY_FLEX_MINOR_VERSION5 5
50#define YY_FLEX_SUBMINOR_VERSION39 39
51#if YY_FLEX_SUBMINOR_VERSION39 > 0
52#define FLEX_BETA
53#endif
54
55/* First, we deal with platform-specific or compiler-specific issues. */
56
57/* begin standard C headers. */
58#include <stdio.h>
59#include <string.h>
60#include <errno(*__errno()).h>
61#include <stdlib.h>
62
63/* end standard C headers. */
64
65/* $OpenBSD: flexint.h,v 1.1 2015/11/19 19:43:40 tedu Exp $ */
66
67/* flex integer type definitions */
68
69#ifndef FLEXINT_H
70#define FLEXINT_H
71
72/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
73
74#if defined (__STDC_VERSION__201710L) && __STDC_VERSION__201710L >= 199901L
75
76/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
77 * if you want the limit (max/min) macros for int types.
78 */
79#ifndef __STDC_LIMIT_MACROS1
80#define __STDC_LIMIT_MACROS1 1
81#endif
82
83#include <inttypes.h>
84typedef int8_t flex_int8_t;
85typedef uint8_t flex_uint8_t;
86typedef int16_t flex_int16_t;
87typedef uint16_t flex_uint16_t;
88typedef int32_t flex_int32_t;
89typedef uint32_t flex_uint32_t;
90#else
91typedef signed char flex_int8_t;
92typedef short int flex_int16_t;
93typedef int flex_int32_t;
94typedef unsigned char flex_uint8_t;
95typedef unsigned short int flex_uint16_t;
96typedef unsigned int flex_uint32_t;
97
98/* Limits of integral types. */
99#ifndef INT8_MIN(-0x7f - 1)
100#define INT8_MIN(-0x7f - 1) (-128)
101#endif
102#ifndef INT16_MIN(-0x7fff - 1)
103#define INT16_MIN(-0x7fff - 1) (-32767-1)
104#endif
105#ifndef INT32_MIN(-0x7fffffff - 1)
106#define INT32_MIN(-0x7fffffff - 1) (-2147483647-1)
107#endif
108#ifndef INT8_MAX0x7f
109#define INT8_MAX0x7f (127)
110#endif
111#ifndef INT16_MAX0x7fff
112#define INT16_MAX0x7fff (32767)
113#endif
114#ifndef INT32_MAX0x7fffffff
115#define INT32_MAX0x7fffffff (2147483647)
116#endif
117#ifndef UINT8_MAX0xff
118#define UINT8_MAX0xff (255U)
119#endif
120#ifndef UINT16_MAX0xffff
121#define UINT16_MAX0xffff (65535U)
122#endif
123#ifndef UINT32_MAX0xffffffffU
124#define UINT32_MAX0xffffffffU (4294967295U)
125#endif
126
127#endif /* ! C99 */
128
129#endif /* ! FLEXINT_H */
130
131#ifdef __cplusplus
132
133/* The "const" storage-class-modifier is valid. */
134#define YY_USE_CONST
135
136#else /* ! __cplusplus */
137
138/* C99 requires __STDC__ to be defined as 1. */
139#if defined (__STDC__1)
140
141#define YY_USE_CONST
142
143#endif /* defined (__STDC__) */
144#endif /* ! __cplusplus */
145
146#ifdef YY_USE_CONST
147#define yyconstconst const
148#else
149#define yyconstconst
150#endif
151
152/* Returned upon end-of-file. */
153#define YY_NULL0 0
154
155/* Promotes a possibly negative, possibly signed char to an unsigned
156 * integer for use as an array index. If the signed char is negative,
157 * we want to instead treat it as an 8-bit unsigned char, hence the
158 * double cast.
159 */
160#define YY_SC_TO_UI(c)((unsigned int) (unsigned char) c) ((unsigned int) (unsigned char) c)
161
162/* Enter a start condition. This macro really ought to take a parameter,
163 * but we do it the disgusting crufty way forced on us by the ()-less
164 * definition of BEGIN.
165 */
166#define BEGIN(yy_start) = 1 + 2 * (yy_start) = 1 + 2 *
167
168/* Translate the current start state into a value that can be later handed
169 * to BEGIN to return to the state. The YYSTATE alias is for lex
170 * compatibility.
171 */
172#define YY_START(((yy_start) - 1) / 2) (((yy_start) - 1) / 2)
173#define YYSTATE(((yy_start) - 1) / 2) YY_START(((yy_start) - 1) / 2)
174
175/* Action number for EOF rule of a given start state. */
176#define YY_STATE_EOF(state)(9 + state + 1) (YY_END_OF_BUFFER9 + state + 1)
177
178/* Special action meaning "start processing a new file". */
179#define YY_NEW_FILEyyrestart(yyin ) yyrestart(yyin )
180
181#define YY_END_OF_BUFFER_CHAR0 0
182
183/* Size of default input buffer. */
184#ifndef YY_BUF_SIZE16384
185#define YY_BUF_SIZE16384 16384
186#endif
187
188/* The state buf must be large enough to hold one state per character in the main buffer.
189 */
190#define YY_STATE_BUF_SIZE((16384 + 2) * sizeof(yy_state_type)) ((YY_BUF_SIZE16384 + 2) * sizeof(yy_state_type))
191
192#ifndef YY_TYPEDEF_YY_BUFFER_STATE
193#define YY_TYPEDEF_YY_BUFFER_STATE
194typedef struct yy_buffer_state *YY_BUFFER_STATE;
195#endif
196
197#ifndef YY_TYPEDEF_YY_SIZE_T
198#define YY_TYPEDEF_YY_SIZE_T
199typedef size_t yy_size_t;
200#endif
201
202extern yy_size_t yyleng;
203
204extern FILE *yyin, *yyout;
205
206#define EOB_ACT_CONTINUE_SCAN0 0
207#define EOB_ACT_END_OF_FILE1 1
208#define EOB_ACT_LAST_MATCH2 2
209
210 #define YY_LESS_LINENO(n)
211 #define YY_LINENO_REWIND_TO(ptr)
212
213/* Return all but the first "n" matched characters back to the input stream. */
214#define yyless(n)do { int yyless_macro_arg = (n); ; yytext[yyleng] = (yy_hold_char
); (yy_c_buf_p) = yytext + yyless_macro_arg; (yy_hold_char) =
*(yy_c_buf_p); *(yy_c_buf_p) = '\0'; yyleng = yyless_macro_arg
; } while ( 0 )
\
215 do \
216 { \
217 /* Undo effects of setting up yytext. */ \
218 int yyless_macro_arg = (n); \
219 YY_LESS_LINENO(yyless_macro_arg);\
220 *yy_cp = (yy_hold_char); \
221 YY_RESTORE_YY_MORE_OFFSET \
222 (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ(yy_more_len); \
223 YY_DO_BEFORE_ACTION(yytext) = yy_bp; (yytext) -= (yy_more_len); yyleng = (size_t
) (yy_cp - (yytext)); (yy_hold_char) = *yy_cp; *yy_cp = '\0';
(yy_c_buf_p) = yy_cp;
; /* set up yytext again */ \
224 } \
225 while ( 0 )
226
227#define unput(c)yyunput( c, (yytext) ) yyunput( c, (yytext_ptryytext) )
228
229#ifndef YY_STRUCT_YY_BUFFER_STATE
230#define YY_STRUCT_YY_BUFFER_STATE
231struct yy_buffer_state
232 {
233 FILE *yy_input_file;
234
235 char *yy_ch_buf; /* input buffer */
236 char *yy_buf_pos; /* current position in input buffer */
237
238 /* Size of input buffer in bytes, not including room for EOB
239 * characters.
240 */
241 yy_size_t yy_buf_size;
242
243 /* Number of characters read into yy_ch_buf, not including EOB
244 * characters.
245 */
246 yy_size_t yy_n_chars;
247
248 /* Whether we "own" the buffer - i.e., we know we created it,
249 * and can realloc() it to grow it, and should free() it to
250 * delete it.
251 */
252 int yy_is_our_buffer;
253
254 /* Whether this is an "interactive" input source; if so, and
255 * if we're using stdio for input, then we want to use getc()
256 * instead of fread(), to make sure we stop fetching input after
257 * each newline.
258 */
259 int yy_is_interactive;
260
261 /* Whether we're considered to be at the beginning of a line.
262 * If so, '^' rules will be active on the next match, otherwise
263 * not.
264 */
265 int yy_at_bol;
266
267 int yy_bs_lineno; /**< The line count. */
268 int yy_bs_column; /**< The column count. */
269
270 /* Whether to try to fill the input buffer when we reach the
271 * end of it.
272 */
273 int yy_fill_buffer;
274
275 int yy_buffer_status;
276
277#define YY_BUFFER_NEW0 0
278#define YY_BUFFER_NORMAL1 1
279 /* When an EOF's been seen but there's still some text to process
280 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
281 * shouldn't try reading from the input source any more. We might
282 * still have a bunch of tokens to match, though, because of
283 * possible backing-up.
284 *
285 * When we actually see the EOF, we change the status to "new"
286 * (via yyrestart()), so that the user can continue scanning by
287 * just pointing yyin at a new input file.
288 */
289#define YY_BUFFER_EOF_PENDING2 2
290
291 };
292#endif /* !YY_STRUCT_YY_BUFFER_STATE */
293
294/* Stack of input buffers. */
295static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
296static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
297static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
298
299/* We provide macros for accessing buffer states in case in the
300 * future we want to put the buffer states in a more general
301 * "scanner state".
302 *
303 * Returns the top of the stack, or NULL.
304 */
305#define YY_CURRENT_BUFFER( (yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top)
] : ((void *)0))
( (yy_buffer_stack) \
306 ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
307 : NULL((void *)0))
308
309/* Same as previous macro, but useful when we know that the buffer stack is not
310 * NULL or when we need an lvalue. For internal use only.
311 */
312#define YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)] (yy_buffer_stack)[(yy_buffer_stack_top)]
313
314/* yy_hold_char holds the character lost when yytext is formed. */
315static char yy_hold_char;
316static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */
317yy_size_t yyleng;
318
319/* Points to current character in buffer. */
320static char *yy_c_buf_p = (char *) 0;
321static int yy_init = 0; /* whether we need to initialize */
322static int yy_start = 0; /* start state number */
323
324/* Flag which is used to allow yywrap()'s to do buffer switches
325 * instead of setting up a fresh yyin. A bit of a hack ...
326 */
327static int yy_did_buffer_switch_on_eof;
328
329void yyrestart (FILE *input_file );
330void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer );
331YY_BUFFER_STATE yy_create_buffer (FILE *file,int size );
332void yy_delete_buffer (YY_BUFFER_STATE b );
333void yy_flush_buffer (YY_BUFFER_STATE b );
334void yypush_buffer_state (YY_BUFFER_STATE new_buffer );
335void yypop_buffer_state (void );
336
337static void yyensure_buffer_stack (void );
338static void yy_load_buffer_state (void );
339static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file );
340
341#define YY_FLUSH_BUFFERyy_flush_buffer(( (yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top
)] : ((void *)0)) )
yy_flush_buffer(YY_CURRENT_BUFFER( (yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top)
] : ((void *)0))
)
342
343YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size );
344YY_BUFFER_STATE yy_scan_string (yyconstconst char *yy_str );
345YY_BUFFER_STATE yy_scan_bytes (yyconstconst char *bytes,yy_size_t len );
346
347void *yyalloc (yy_size_t );
348void *yyrealloc (void *,yy_size_t );
349void yyfree (void * );
350
351#define yy_new_bufferyy_create_buffer yy_create_buffer
352
353#define yy_set_interactive(is_interactive){ if ( ! ( (yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top
)] : ((void *)0)) ){ yyensure_buffer_stack (); (yy_buffer_stack
)[(yy_buffer_stack_top)] = yy_create_buffer(yyin,16384 ); } (
yy_buffer_stack)[(yy_buffer_stack_top)]->yy_is_interactive
= is_interactive; }
\
354 { \
355 if ( ! YY_CURRENT_BUFFER( (yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top)
] : ((void *)0))
){ \
356 yyensure_buffer_stack (); \
357 YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)] = \
358 yy_create_buffer(yyin,YY_BUF_SIZE16384 ); \
359 } \
360 YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_is_interactive = is_interactive; \
361 }
362
363#define yy_set_bol(at_bol){ if ( ! ( (yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top
)] : ((void *)0)) ){ yyensure_buffer_stack (); (yy_buffer_stack
)[(yy_buffer_stack_top)] = yy_create_buffer(yyin,16384 ); } (
yy_buffer_stack)[(yy_buffer_stack_top)]->yy_at_bol = at_bol
; }
\
364 { \
365 if ( ! YY_CURRENT_BUFFER( (yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top)
] : ((void *)0))
){\
366 yyensure_buffer_stack (); \
367 YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)] = \
368 yy_create_buffer(yyin,YY_BUF_SIZE16384 ); \
369 } \
370 YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_at_bol = at_bol; \
371 }
372
373#define YY_AT_BOL()((yy_buffer_stack)[(yy_buffer_stack_top)]->yy_at_bol) (YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_at_bol)
374
375/* Begin user sect3 */
376
377typedef unsigned char YY_CHAR;
378
379FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
380
381typedef int yy_state_type;
382
383extern int yylineno;
384
385int yylineno = 1;
386
387extern char *yytext;
388#define yytext_ptryytext yytext
389
390static yy_state_type yy_get_previous_state (void );
391static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
392static int yy_get_next_buffer (void );
393static void yy_fatal_error (yyconstconst char msg[] );
394
395/* Done after the current pattern has been matched and before the
396 * corresponding action - sets up yytext.
397 */
398#define YY_DO_BEFORE_ACTION(yytext) = yy_bp; (yytext) -= (yy_more_len); yyleng = (size_t
) (yy_cp - (yytext)); (yy_hold_char) = *yy_cp; *yy_cp = '\0';
(yy_c_buf_p) = yy_cp;
\
399 (yytext_ptryytext) = yy_bp; \
400 (yytext_ptryytext) -= (yy_more_len); \
401 yyleng = (size_t) (yy_cp - (yytext_ptryytext)); \
402 (yy_hold_char) = *yy_cp; \
403 *yy_cp = '\0'; \
404 (yy_c_buf_p) = yy_cp;
405
406#define YY_NUM_RULES8 8
407#define YY_END_OF_BUFFER9 9
408/* This struct is not used in this scanner,
409 but its presence is necessary. */
410struct yy_trans_info
411 {
412 flex_int32_t yy_verify;
413 flex_int32_t yy_nxt;
414 };
415static yyconstconst flex_int16_t yy_acclist[23] =
416 { 0,
417 9, 7, 8, 8, 1, 7, 8, 2, 7, 8,
418 3, 7, 8, 4, 7, 8, 5, 7, 8, 6,
419 7, 8
420 } ;
421
422static yyconstconst flex_int16_t yy_accept[14] =
423 { 0,
424 1, 1, 1, 2, 4, 5, 8, 11, 14, 17,
425 20, 23, 23
426 } ;
427
428static yyconstconst flex_int32_t yy_ec[256] =
429 { 0,
430 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
431 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
432 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
433 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
434 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
435 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
436 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
437 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
438 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
439 1, 1, 1, 1, 1, 1, 3, 4, 5, 6,
440
441 7, 8, 1, 1, 1, 1, 1, 1, 1, 1,
442 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
443 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
444 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
445 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
446 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
447 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
448 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
449 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
450 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
451
452 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
453 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
454 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
455 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
456 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
457 1, 1, 1, 1, 1
458 } ;
459
460static yyconstconst flex_int32_t yy_meta[9] =
461 { 0,
462 1, 1, 1, 1, 1, 1, 1, 1
463 } ;
464
465static yyconstconst flex_int16_t yy_base[13] =
466 { 0,
467 0, 0, 9, 10, 10, 10, 10, 10, 10, 10,
468 10, 10
469 } ;
470
471static yyconstconst flex_int16_t yy_def[13] =
472 { 0,
473 12, 1, 12, 12, 12, 12, 12, 12, 12, 12,
474 12, 0
475 } ;
476
477static yyconstconst flex_int16_t yy_nxt[19] =
478 { 0,
479 4, 5, 6, 7, 8, 9, 10, 11, 12, 3,
480 12, 12, 12, 12, 12, 12, 12, 12
481 } ;
482
483static yyconstconst flex_int16_t yy_chk[19] =
484 { 0,
485 1, 1, 1, 1, 1, 1, 1, 1, 3, 12,
486 12, 12, 12, 12, 12, 12, 12, 12
487 } ;
488
489extern int yy_flex_debug;
490int yy_flex_debug = 0;
491
492static yy_state_type *yy_state_buf=0, *yy_state_ptr=0;
493static char *yy_full_match;
494static int yy_lp;
495#define REJECT{ *yy_cp = (yy_hold_char); yy_cp = (yy_full_match); ++(yy_lp)
; goto find_rule; }
\
496{ \
497*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ \
498yy_cp = (yy_full_match); /* restore poss. backed-over text */ \
499++(yy_lp); \
500goto find_rule; \
501}
502
503static int yy_more_flag = 0;
504static int yy_more_len = 0;
505#define yymore()((yy_more_flag) = 1) ((yy_more_flag) = 1)
506#define YY_MORE_ADJ(yy_more_len) (yy_more_len)
507#define YY_RESTORE_YY_MORE_OFFSET
508char *yytext;
509#line 1 "conftest.l"
510#line 474 "lex.yy.c"
511
512#define INITIAL0 0
513
514#ifndef YY_NO_UNISTD_H
515/* Special case for "unistd.h", since it is non-ANSI. We include it way
516 * down here because we want the user's section 1 to have been scanned first.
517 * The user has a chance to override it with an option.
518 */
519#include <unistd.h>
520#endif
521
522#ifndef YY_EXTRA_TYPEvoid *
523#define YY_EXTRA_TYPEvoid * void *
524#endif
525
526static int yy_init_globals (void );
527
528/* Accessor methods to globals.
529 These are made visible to non-reentrant scanners for convenience. */
530
531int yylex_destroy (void );
532
533int yyget_debug (void );
534
535void yyset_debug (int debug_flag );
536
537YY_EXTRA_TYPEvoid * yyget_extra (void );
538
539void yyset_extra (YY_EXTRA_TYPEvoid * user_defined );
540
541FILE *yyget_in (void );
542
543void yyset_in (FILE * in_str );
544
545FILE *yyget_out (void );
546
547void yyset_out (FILE * out_str );
548
549yy_size_t yyget_leng (void );
550
551char *yyget_text (void );
552
553int yyget_lineno (void );
554
555void yyset_lineno (int line_number );
556
557/* Macros after this point can all be overridden by user definitions in
558 * section 1.
559 */
560
561#ifndef YY_SKIP_YYWRAP
562#ifdef __cplusplus
563extern "C" int yywrap (void );
564#else
565extern int yywrap (void );
566#endif
567#endif
568
569 static void yyunput (int c,char *buf_ptr );
570
571#ifndef yytext_ptryytext
572static void yy_flex_strncpy (char *,yyconstconst char *,int );
573#endif
574
575#ifdef YY_NEED_STRLEN
576static int yy_flex_strlen (yyconstconst char * );
577#endif
578
579#ifndef YY_NO_INPUT
580
581#ifdef __cplusplus
582static int yyinput (void );
583#else
584static int input (void );
585#endif
586
587#endif
588
589/* Amount of stuff to slurp up with each read. */
590#ifndef YY_READ_BUF_SIZE8192
591#define YY_READ_BUF_SIZE8192 8192
592#endif
593
594/* Copy whatever the last rule matched to the standard output. */
595#ifndef ECHOdo { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
596/* This used to be an fputs(), but since the string might contain NUL's,
597 * we now use fwrite().
598 */
599#define ECHOdo { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0) do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
600#endif
601
602/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
603 * is returned in "result".
604 */
605#ifndef YY_INPUT
606#define YY_INPUT(buf,result,max_size)if ( (yy_buffer_stack)[(yy_buffer_stack_top)]->yy_is_interactive
) { int c = '*'; size_t n; for ( n = 0; n < max_size &&
(c = (!__isthreaded ? (--(yyin)->_r < 0 ? __srget(yyin
) : (int)(*(yyin)->_p++)) : (getc)(yyin))) != (-1) &&
c != '\n'; ++n ) buf[n] = (char) c; if ( c == '\n' ) buf[n++
] = (char) c; if ( c == (-1) && (!__isthreaded ? (((yyin
)->_flags & 0x0040) != 0) : (ferror)(yyin)) ) yy_fatal_error
( "input in flex scanner failed" ); result = n; } else { (*__errno
())=0; while ( (result = fread(buf, 1, max_size, yyin))==0 &&
(!__isthreaded ? (((yyin)->_flags & 0x0040) != 0) : (
ferror)(yyin))) { if( (*__errno()) != 4) { yy_fatal_error( "input in flex scanner failed"
); break; } (*__errno())=0; (!__isthreaded ? ((void)((yyin)->
_flags &= ~(0x0040|0x0020))) : (clearerr)(yyin)); } }
\
607 if ( YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_is_interactive ) \
608 { \
609 int c = '*'; \
610 size_t n; \
611 for ( n = 0; n < max_size && \
612 (c = getc( yyin )(!__isthreaded ? (--(yyin)->_r < 0 ? __srget(yyin) : (int
)(*(yyin)->_p++)) : (getc)(yyin))
) != EOF(-1) && c != '\n'; ++n ) \
613 buf[n] = (char) c; \
614 if ( c == '\n' ) \
615 buf[n++] = (char) c; \
616 if ( c == EOF(-1) && ferror( yyin )(!__isthreaded ? (((yyin)->_flags & 0x0040) != 0) : (ferror
)(yyin))
) \
617 YY_FATAL_ERROR( "input in flex scanner failed" )yy_fatal_error( "input in flex scanner failed" ); \
618 result = n; \
619 } \
620 else \
621 { \
622 errno(*__errno())=0; \
623 while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)(!__isthreaded ? (((yyin)->_flags & 0x0040) != 0) : (ferror
)(yyin))
) \
624 { \
625 if( errno(*__errno()) != EINTR4) \
626 { \
627 YY_FATAL_ERROR( "input in flex scanner failed" )yy_fatal_error( "input in flex scanner failed" ); \
628 break; \
629 } \
630 errno(*__errno())=0; \
631 clearerr(yyin)(!__isthreaded ? ((void)((yyin)->_flags &= ~(0x0040|0x0020
))) : (clearerr)(yyin))
; \
632 } \
633 }\
634\
635
636#endif
637
638/* No semi-colon after return; correct usage is to write "yyterminate();" -
639 * we don't want an extra ';' after the "return" because that will cause
640 * some compilers to complain about unreachable statements.
641 */
642#ifndef yyterminate
643#define yyterminate()return 0 return YY_NULL0
644#endif
645
646/* Number of entries by which start-condition stack grows. */
647#ifndef YY_START_STACK_INCR25
648#define YY_START_STACK_INCR25 25
649#endif
650
651/* Report a fatal error. */
652#ifndef YY_FATAL_ERROR
653#define YY_FATAL_ERROR(msg)yy_fatal_error( msg ) yy_fatal_error( msg )
654#endif
655
656/* end tables serialization structures and prototypes */
657
658/* Default declaration of generated scanner - a define so the user can
659 * easily add parameters.
660 */
661#ifndef YY_DECLint yylex (void)
662#define YY_DECL_IS_OURS1 1
663
664extern int yylex (void);
665
666#define YY_DECLint yylex (void) int yylex (void)
667#endif /* !YY_DECL */
668
669/* Code executed at the beginning of each rule, after yytext and yyleng
670 * have been set up.
671 */
672#ifndef YY_USER_ACTION
673#define YY_USER_ACTION
674#endif
675
676/* Code executed at the end of each rule. */
677#ifndef YY_BREAKbreak;
678#define YY_BREAKbreak; break;
679#endif
680
681#define YY_RULE_SETUP \
682 YY_USER_ACTION
683
684/** The main scanner function which does all the work.
685 */
686YY_DECLint yylex (void)
687{
688 yy_state_type yy_current_state;
689 char *yy_cp, *yy_bp;
690 int yy_act;
691
692 if ( !(yy_init
1.1
'yy_init' is 0
) )
2
Taking true branch
693 {
694 (yy_init) = 1;
695
696#ifdef YY_USER_INIT
697 YY_USER_INIT;
698#endif
699
700 /* Create the reject buffer large enough to save one state per allowed character. */
701 if ( ! (yy_state_buf
2.1
'yy_state_buf' is null
) )
3
Taking true branch
702 (yy_state_buf) = (yy_state_type *)
703 yyalloc(YY_STATE_BUF_SIZE((16384 + 2) * sizeof(yy_state_type)) );
4
Calling 'yyalloc'
6
Returning from 'yyalloc'
704 if ( ! (yy_state_buf) )
7
Assuming 'yy_state_buf' is non-null
8
Taking false branch
705 YY_FATAL_ERROR( "out of dynamic memory in yylex()" )yy_fatal_error( "out of dynamic memory in yylex()" );
706
707 if ( ! (yy_start) )
9
Assuming 'yy_start' is not equal to 0
10
Taking false branch
708 (yy_start) = 1; /* first start state */
709
710 if ( ! yyin ) {
11
Assuming 'yyin' is non-null
12
Taking false branch
711 yyin = stdin(&__sF[0]);
712 }
713
714 if ( ! yyout ) {
13
Assuming 'yyout' is non-null
14
Taking false branch
715 yyout = stdout(&__sF[1]);
716 }
717
718 if ( ! YY_CURRENT_BUFFER( (yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top)
] : ((void *)0))
) {
15
Assuming 'yy_buffer_stack' is null
16
'?' condition is false
17
Taking true branch
719 yyensure_buffer_stack ();
720 YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)] =
721 yy_create_buffer(yyin,YY_BUF_SIZE16384 );
722 }
723
724 yy_load_buffer_state( );
725 }
726
727 {
728#line 1 "conftest.l"
729
730#line 694 "lex.yy.c"
731
732 while ( 1 ) /* loops until end-of-file is reached */
18
Loop condition is true. Entering loop body
733 {
734 (yy_more_len) = 0;
735 if ( (yy_more_flag) )
19
Assuming 'yy_more_flag' is 0
20
Taking false branch
736 {
737 (yy_more_len) = (yy_c_buf_p) - (yytext_ptryytext);
738 (yy_more_flag) = 0;
739 }
740 yy_cp = (yy_c_buf_p);
741
742 /* Support of yytext. */
743 *yy_cp = (yy_hold_char);
744
745 /* yy_bp points to the position in yy_ch_buf of the start of
746 * the current run.
747 */
748 yy_bp = yy_cp;
749
750 yy_current_state = (yy_start);
751
752 (yy_state_ptr) = (yy_state_buf);
753 *(yy_state_ptr)++ = yy_current_state;
754
755yy_match:
756 do
22
Loop condition is false. Exiting loop
757 {
758 YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)((unsigned int) (unsigned char) *yy_cp)] ;
759 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
21
Loop condition is false. Execution continues on line 765
760 {
761 yy_current_state = (int) yy_def[yy_current_state];
762 if ( yy_current_state >= 13 )
763 yy_c = yy_meta[(unsigned int) yy_c];
764 }
765 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
766 *(yy_state_ptr)++ = yy_current_state;
767 ++yy_cp;
768 }
769 while ( yy_base[yy_current_state] != 10 );
770
771yy_find_action:
772 yy_current_state = *--(yy_state_ptr);
773 (yy_lp) = yy_accept[yy_current_state];
774find_rule: /* we branch to this label when backing up */
775 for ( ; ; ) /* until we find what rule we matched */
23
Loop condition is true. Entering loop body
25
Loop condition is true. Entering loop body
776 {
777 if ( (yy_lp) && (yy_lp) < yy_accept[yy_current_state + 1] )
24
Assuming 'yy_lp' is 0
26
Assuming 'yy_lp' is 0
778 {
779 yy_act = yy_acclist[(yy_lp)];
780 {
781 (yy_full_match) = yy_cp;
782 break;
783 }
784 }
785 --yy_cp;
786 yy_current_state = *--(yy_state_ptr);
27
Assigned value is garbage or undefined
787 (yy_lp) = yy_accept[yy_current_state];
788 }
789
790 YY_DO_BEFORE_ACTION(yytext) = yy_bp; (yytext) -= (yy_more_len); yyleng = (size_t
) (yy_cp - (yytext)); (yy_hold_char) = *yy_cp; *yy_cp = '\0';
(yy_c_buf_p) = yy_cp;
;
791
792do_action: /* This label is used only to access EOF actions. */
793
794 switch ( yy_act )
795 { /* beginning of action switch */
796case 1:
797YY_RULE_SETUP
798#line 2 "conftest.l"
799{ ECHOdo { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0); }
800 YY_BREAKbreak;
801case 2:
802YY_RULE_SETUP
803#line 3 "conftest.l"
804{ REJECT{ *yy_cp = (yy_hold_char); yy_cp = (yy_full_match); ++(yy_lp)
; goto find_rule; }
; }
805 YY_BREAKbreak;
806case 3:
807YY_RULE_SETUP
808#line 4 "conftest.l"
809{ yymore ()((yy_more_flag) = 1); }
810 YY_BREAKbreak;
811case 4:
812YY_RULE_SETUP
813#line 5 "conftest.l"
814{ yyless (1)do { int yyless_macro_arg = (1); ; yytext[yyleng] = (yy_hold_char
); (yy_c_buf_p) = yytext + yyless_macro_arg; (yy_hold_char) =
*(yy_c_buf_p); *(yy_c_buf_p) = '\0'; yyleng = yyless_macro_arg
; } while ( 0 )
; }
815 YY_BREAKbreak;
816case 5:
817YY_RULE_SETUP
818#line 6 "conftest.l"
819{ /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
820 yyless ((input () != 0))do { int yyless_macro_arg = ((input () != 0)); ; yytext[yyleng
] = (yy_hold_char); (yy_c_buf_p) = yytext + yyless_macro_arg;
(yy_hold_char) = *(yy_c_buf_p); *(yy_c_buf_p) = '\0'; yyleng
= yyless_macro_arg; } while ( 0 )
; }
821 YY_BREAKbreak;
822case 6:
823YY_RULE_SETUP
824#line 8 "conftest.l"
825{ unput (yytext[0])yyunput( yytext[0], (yytext) ); }
826 YY_BREAKbreak;
827case 7:
828YY_RULE_SETUP
829#line 9 "conftest.l"
830{ BEGIN(yy_start) = 1 + 2 * INITIAL0; }
831 YY_BREAKbreak;
832case 8:
833YY_RULE_SETUP
834#line 10 "conftest.l"
835ECHOdo { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0);
836 YY_BREAKbreak;
837#line 801 "lex.yy.c"
838 case YY_STATE_EOF(INITIAL)(9 + 0 + 1):
839 yyterminate()return 0;
840
841 case YY_END_OF_BUFFER9:
842 {
843 /* Amount of text matched not including the EOB char. */
844 int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptryytext)) - 1;
845
846 /* Undo the effects of YY_DO_BEFORE_ACTION. */
847 *yy_cp = (yy_hold_char);
848 YY_RESTORE_YY_MORE_OFFSET
849
850 if ( YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_buffer_status == YY_BUFFER_NEW0 )
851 {
852 /* We're scanning a new file or input source. It's
853 * possible that this happened because the user
854 * just pointed yyin at a new source and called
855 * yylex(). If so, then we have to assure
856 * consistency between YY_CURRENT_BUFFER and our
857 * globals. Here is the right place to do so, because
858 * this is the first action (other than possibly a
859 * back-up) that will match for the new input source.
860 */
861 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_n_chars;
862 YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_input_file = yyin;
863 YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_buffer_status = YY_BUFFER_NORMAL1;
864 }
865
866 /* Note that here we test for yy_c_buf_p "<=" to the position
867 * of the first EOB in the buffer, since yy_c_buf_p will
868 * already have been incremented past the NUL character
869 * (since all states make transitions on EOB to the
870 * end-of-buffer state). Contrast this with the test
871 * in input().
872 */
873 if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_ch_buf[(yy_n_chars)] )
874 { /* This was really a NUL. */
875 yy_state_type yy_next_state;
876
877 (yy_c_buf_p) = (yytext_ptryytext) + yy_amount_of_matched_text;
878
879 yy_current_state = yy_get_previous_state( );
880
881 /* Okay, we're now positioned to make the NUL
882 * transition. We couldn't have
883 * yy_get_previous_state() go ahead and do it
884 * for us because it doesn't know how to deal
885 * with the possibility of jamming (and we don't
886 * want to build jamming into it because then it
887 * will run more slowly).
888 */
889
890 yy_next_state = yy_try_NUL_trans( yy_current_state );
891
892 yy_bp = (yytext_ptryytext) + YY_MORE_ADJ(yy_more_len);
893
894 if ( yy_next_state )
895 {
896 /* Consume the NUL. */
897 yy_cp = ++(yy_c_buf_p);
898 yy_current_state = yy_next_state;
899 goto yy_match;
900 }
901
902 else
903 {
904 yy_cp = (yy_c_buf_p);
905 goto yy_find_action;
906 }
907 }
908
909 else switch ( yy_get_next_buffer( ) )
910 {
911 case EOB_ACT_END_OF_FILE1:
912 {
913 (yy_did_buffer_switch_on_eof) = 0;
914
915 if ( yywrap( ) )
916 {
917 /* Note: because we've taken care in
918 * yy_get_next_buffer() to have set up
919 * yytext, we can now set up
920 * yy_c_buf_p so that if some total
921 * hoser (like flex itself) wants to
922 * call the scanner after we return the
923 * YY_NULL, it'll still work - another
924 * YY_NULL will get returned.
925 */
926 (yy_c_buf_p) = (yytext_ptryytext) + YY_MORE_ADJ(yy_more_len);
927
928 yy_act = YY_STATE_EOF(YY_START)(9 + (((yy_start) - 1) / 2) + 1);
929 goto do_action;
930 }
931
932 else
933 {
934 if ( ! (yy_did_buffer_switch_on_eof) )
935 YY_NEW_FILEyyrestart(yyin );
936 }
937 break;
938 }
939
940 case EOB_ACT_CONTINUE_SCAN0:
941 (yy_c_buf_p) =
942 (yytext_ptryytext) + yy_amount_of_matched_text;
943
944 yy_current_state = yy_get_previous_state( );
945
946 yy_cp = (yy_c_buf_p);
947 yy_bp = (yytext_ptryytext) + YY_MORE_ADJ(yy_more_len);
948 goto yy_match;
949
950 case EOB_ACT_LAST_MATCH2:
951 (yy_c_buf_p) =
952 &YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_ch_buf[(yy_n_chars)];
953
954 yy_current_state = yy_get_previous_state( );
955
956 yy_cp = (yy_c_buf_p);
957 yy_bp = (yytext_ptryytext) + YY_MORE_ADJ(yy_more_len);
958 goto yy_find_action;
959 }
960 break;
961 }
962
963 default:
964 YY_FATAL_ERROR(yy_fatal_error( "fatal flex scanner internal error--no action found"
)
965 "fatal flex scanner internal error--no action found" )yy_fatal_error( "fatal flex scanner internal error--no action found"
)
;
966 } /* end of action switch */
967 } /* end of scanning one token */
968 } /* end of user's declarations */
969} /* end of yylex */
970
971/* yy_get_next_buffer - try to read in a new buffer
972 *
973 * Returns a code representing an action:
974 * EOB_ACT_LAST_MATCH -
975 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
976 * EOB_ACT_END_OF_FILE - end of file
977 */
978static int yy_get_next_buffer (void)
979{
980 char *dest = YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_ch_buf;
981 char *source = (yytext_ptryytext);
982 int number_to_move, i;
983 int ret_val;
984
985 if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_ch_buf[(yy_n_chars) + 1] )
986 YY_FATAL_ERROR(yy_fatal_error( "fatal flex scanner internal error--end of buffer missed"
)
987 "fatal flex scanner internal error--end of buffer missed" )yy_fatal_error( "fatal flex scanner internal error--end of buffer missed"
)
;
988
989 if ( YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_fill_buffer == 0 )
990 { /* Don't try to fill the buffer, so this is an EOF. */
991 if ( (yy_c_buf_p) - (yytext_ptryytext) - YY_MORE_ADJ(yy_more_len) == 1 )
992 {
993 /* We matched a single character, the EOB, so
994 * treat this as a final EOF.
995 */
996 return EOB_ACT_END_OF_FILE1;
997 }
998
999 else
1000 {
1001 /* We matched some text prior to the EOB, first
1002 * process it.
1003 */
1004 return EOB_ACT_LAST_MATCH2;
1005 }
1006 }
1007
1008 /* Try to read more data. */
1009
1010 /* First move last chars to start of buffer. */
1011 number_to_move = (int) ((yy_c_buf_p) - (yytext_ptryytext)) - 1;
1012
1013 for ( i = 0; i < number_to_move; ++i )
1014 *(dest++) = *(source++);
1015
1016 if ( YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_buffer_status == YY_BUFFER_EOF_PENDING2 )
1017 /* don't do the read, it's not guaranteed to return an EOF,
1018 * just force an EOF
1019 */
1020 YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_n_chars = (yy_n_chars) = 0;
1021
1022 else
1023 {
1024 yy_size_t num_to_read =
1025 YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_buf_size - number_to_move - 1;
1026
1027 while ( num_to_read <= 0 )
1028 { /* Not enough room in the buffer - grow it. */
1029
1030 YY_FATAL_ERROR(yy_fatal_error( "input buffer overflow, can't enlarge buffer because scanner uses REJECT"
)
1031"input buffer overflow, can't enlarge buffer because scanner uses REJECT" )yy_fatal_error( "input buffer overflow, can't enlarge buffer because scanner uses REJECT"
)
;
1032
1033 }
1034
1035 if ( num_to_read > YY_READ_BUF_SIZE8192 )
1036 num_to_read = YY_READ_BUF_SIZE8192;
1037
1038 /* Read in more data. */
1039 YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),if ( (yy_buffer_stack)[(yy_buffer_stack_top)]->yy_is_interactive
) { int c = '*'; size_t n; for ( n = 0; n < num_to_read &&
(c = (!__isthreaded ? (--(yyin)->_r < 0 ? __srget(yyin
) : (int)(*(yyin)->_p++)) : (getc)(yyin))) != (-1) &&
c != '\n'; ++n ) (&(yy_buffer_stack)[(yy_buffer_stack_top
)]->yy_ch_buf[number_to_move])[n] = (char) c; if ( c == '\n'
) (&(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_ch_buf
[number_to_move])[n++] = (char) c; if ( c == (-1) && (
!__isthreaded ? (((yyin)->_flags & 0x0040) != 0) : (ferror
)(yyin)) ) yy_fatal_error( "input in flex scanner failed" ); (
yy_n_chars) = n; } else { (*__errno())=0; while ( ((yy_n_chars
) = fread((&(yy_buffer_stack)[(yy_buffer_stack_top)]->
yy_ch_buf[number_to_move]), 1, num_to_read, yyin))==0 &&
(!__isthreaded ? (((yyin)->_flags & 0x0040) != 0) : (
ferror)(yyin))) { if( (*__errno()) != 4) { yy_fatal_error( "input in flex scanner failed"
); break; } (*__errno())=0; (!__isthreaded ? ((void)((yyin)->
_flags &= ~(0x0040|0x0020))) : (clearerr)(yyin)); } }
1040 (yy_n_chars), num_to_read )if ( (yy_buffer_stack)[(yy_buffer_stack_top)]->yy_is_interactive
) { int c = '*'; size_t n; for ( n = 0; n < num_to_read &&
(c = (!__isthreaded ? (--(yyin)->_r < 0 ? __srget(yyin
) : (int)(*(yyin)->_p++)) : (getc)(yyin))) != (-1) &&
c != '\n'; ++n ) (&(yy_buffer_stack)[(yy_buffer_stack_top
)]->yy_ch_buf[number_to_move])[n] = (char) c; if ( c == '\n'
) (&(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_ch_buf
[number_to_move])[n++] = (char) c; if ( c == (-1) && (
!__isthreaded ? (((yyin)->_flags & 0x0040) != 0) : (ferror
)(yyin)) ) yy_fatal_error( "input in flex scanner failed" ); (
yy_n_chars) = n; } else { (*__errno())=0; while ( ((yy_n_chars
) = fread((&(yy_buffer_stack)[(yy_buffer_stack_top)]->
yy_ch_buf[number_to_move]), 1, num_to_read, yyin))==0 &&
(!__isthreaded ? (((yyin)->_flags & 0x0040) != 0) : (
ferror)(yyin))) { if( (*__errno()) != 4) { yy_fatal_error( "input in flex scanner failed"
); break; } (*__errno())=0; (!__isthreaded ? ((void)((yyin)->
_flags &= ~(0x0040|0x0020))) : (clearerr)(yyin)); } }
;
1041
1042 YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_n_chars = (yy_n_chars);
1043 }
1044
1045 if ( (yy_n_chars) == 0 )
1046 {
1047 if ( number_to_move == YY_MORE_ADJ(yy_more_len) )
1048 {
1049 ret_val = EOB_ACT_END_OF_FILE1;
1050 yyrestart(yyin );
1051 }
1052
1053 else
1054 {
1055 ret_val = EOB_ACT_LAST_MATCH2;
1056 YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_buffer_status =
1057 YY_BUFFER_EOF_PENDING2;
1058 }
1059 }
1060
1061 else
1062 ret_val = EOB_ACT_CONTINUE_SCAN0;
1063
1064 if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_buf_size) {
1065 /* Extend the array by 50%, plus the number we really need. */
1066 yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
1067 YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_ch_buf,new_size );
1068 if ( ! YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_ch_buf )
1069 YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" )yy_fatal_error( "out of dynamic memory in yy_get_next_buffer()"
)
;
1070 /* "- 2" to take care of EOB's */
1071 YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_buf_size = (int) (new_size - 2);
1072 }
1073
1074 (yy_n_chars) += number_to_move;
1075 YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR0;
1076 YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR0;
1077
1078 (yytext_ptryytext) = &YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_ch_buf[0];
1079
1080 return ret_val;
1081}
1082
1083/* yy_get_previous_state - get the state just before the EOB char was reached */
1084
1085 static yy_state_type yy_get_previous_state (void)
1086{
1087 yy_state_type yy_current_state;
1088 char *yy_cp;
1089
1090 yy_current_state = (yy_start);
1091
1092 (yy_state_ptr) = (yy_state_buf);
1093 *(yy_state_ptr)++ = yy_current_state;
1094
1095 for ( yy_cp = (yytext_ptryytext) + YY_MORE_ADJ(yy_more_len); yy_cp < (yy_c_buf_p); ++yy_cp )
1096 {
1097 YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)((unsigned int) (unsigned char) *yy_cp)] : 1);
1098 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1099 {
1100 yy_current_state = (int) yy_def[yy_current_state];
1101 if ( yy_current_state >= 13 )
1102 yy_c = yy_meta[(unsigned int) yy_c];
1103 }
1104 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1105 *(yy_state_ptr)++ = yy_current_state;
1106 }
1107
1108 return yy_current_state;
1109}
1110
1111/* yy_try_NUL_trans - try to make a transition on the NUL character
1112 *
1113 * synopsis
1114 * next_state = yy_try_NUL_trans( current_state );
1115 */
1116 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
1117{
1118 int yy_is_jam;
1119
1120 YY_CHAR yy_c = 1;
1121 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1122 {
1123 yy_current_state = (int) yy_def[yy_current_state];
1124 if ( yy_current_state >= 13 )
1125 yy_c = yy_meta[(unsigned int) yy_c];
1126 }
1127 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1128 yy_is_jam = (yy_current_state == 12);
1129 if ( ! yy_is_jam )
1130 *(yy_state_ptr)++ = yy_current_state;
1131
1132 return yy_is_jam ? 0 : yy_current_state;
1133}
1134
1135 static void yyunput (int c, char * yy_bp )
1136{
1137 char *yy_cp;
1138
1139 yy_cp = (yy_c_buf_p);
1140
1141 /* undo effects of setting up yytext */
1142 *yy_cp = (yy_hold_char);
1143
1144 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_ch_buf + 2 )
1145 { /* need to shift things up to make room */
1146 /* +2 for EOB chars. */
1147 yy_size_t number_to_move = (yy_n_chars) + 2;
1148 char *dest = &YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_ch_buf[
1149 YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_buf_size + 2];
1150 char *source =
1151 &YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_ch_buf[number_to_move];
1152
1153 while ( source > YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_ch_buf )
1154 *--dest = *--source;
1155
1156 yy_cp += (int) (dest - source);
1157 yy_bp += (int) (dest - source);
1158 YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_n_chars =
1159 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_buf_size;
1160
1161 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_ch_buf + 2 )
1162 YY_FATAL_ERROR( "flex scanner push-back overflow" )yy_fatal_error( "flex scanner push-back overflow" );
1163 }
1164
1165 *--yy_cp = (char) c;
1166
1167 (yytext_ptryytext) = yy_bp;
1168 (yy_hold_char) = *yy_cp;
1169 (yy_c_buf_p) = yy_cp;
1170}
1171
1172#ifndef YY_NO_INPUT
1173#ifdef __cplusplus
1174 static int yyinput (void)
1175#else
1176 static int input (void)
1177#endif
1178
1179{
1180 int c;
1181
1182 *(yy_c_buf_p) = (yy_hold_char);
1183
1184 if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR0 )
1185 {
1186 /* yy_c_buf_p now points to the character we want to return.
1187 * If this occurs *before* the EOB characters, then it's a
1188 * valid NUL; if not, then we've hit the end of the buffer.
1189 */
1190 if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_ch_buf[(yy_n_chars)] )
1191 /* This was really a NUL. */
1192 *(yy_c_buf_p) = '\0';
1193
1194 else
1195 { /* need more input */
1196 yy_size_t offset = (yy_c_buf_p) - (yytext_ptryytext);
1197 ++(yy_c_buf_p);
1198
1199 switch ( yy_get_next_buffer( ) )
1200 {
1201 case EOB_ACT_LAST_MATCH2:
1202 /* This happens because yy_g_n_b()
1203 * sees that we've accumulated a
1204 * token and flags that we need to
1205 * try matching the token before
1206 * proceeding. But for input(),
1207 * there's no matching to consider.
1208 * So convert the EOB_ACT_LAST_MATCH
1209 * to EOB_ACT_END_OF_FILE.
1210 */
1211
1212 /* Reset buffer status. */
1213 yyrestart(yyin );
1214
1215 /*FALLTHROUGH*/
1216
1217 case EOB_ACT_END_OF_FILE1:
1218 {
1219 if ( yywrap( ) )
1220 return EOF(-1);
1221
1222 if ( ! (yy_did_buffer_switch_on_eof) )
1223 YY_NEW_FILEyyrestart(yyin );
1224#ifdef __cplusplus
1225 return yyinput();
1226#else
1227 return input();
1228#endif
1229 }
1230
1231 case EOB_ACT_CONTINUE_SCAN0:
1232 (yy_c_buf_p) = (yytext_ptryytext) + offset;
1233 break;
1234 }
1235 }
1236 }
1237
1238 c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
1239 *(yy_c_buf_p) = '\0'; /* preserve yytext */
1240 (yy_hold_char) = *++(yy_c_buf_p);
1241
1242 return c;
1243}
1244#endif /* ifndef YY_NO_INPUT */
1245
1246/** Immediately switch to a different input stream.
1247 * @param input_file A readable stream.
1248 *
1249 * @note This function does not reset the start condition to @c INITIAL .
1250 */
1251 void yyrestart (FILE * input_file )
1252{
1253
1254 if ( ! YY_CURRENT_BUFFER( (yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top)
] : ((void *)0))
){
1255 yyensure_buffer_stack ();
1256 YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)] =
1257 yy_create_buffer(yyin,YY_BUF_SIZE16384 );
1258 }
1259
1260 yy_init_buffer(YY_CURRENT_BUFFER( (yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top)
] : ((void *)0))
,input_file );
1261 yy_load_buffer_state( );
1262}
1263
1264/** Switch to a different input buffer.
1265 * @param new_buffer The new input buffer.
1266 *
1267 */
1268 void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
1269{
1270
1271 /* TODO. We should be able to replace this entire function body
1272 * with
1273 * yypop_buffer_state();
1274 * yypush_buffer_state(new_buffer);
1275 */
1276 yyensure_buffer_stack ();
1277 if ( YY_CURRENT_BUFFER( (yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top)
] : ((void *)0))
== new_buffer )
1278 return;
1279
1280 if ( YY_CURRENT_BUFFER( (yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top)
] : ((void *)0))
)
1281 {
1282 /* Flush out information for old buffer. */
1283 *(yy_c_buf_p) = (yy_hold_char);
1284 YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_buf_pos = (yy_c_buf_p);
1285 YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_n_chars = (yy_n_chars);
1286 }
1287
1288 YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)] = new_buffer;
1289 yy_load_buffer_state( );
1290
1291 /* We don't actually know whether we did this switch during
1292 * EOF (yywrap()) processing, but the only time this flag
1293 * is looked at is after yywrap() is called, so it's safe
1294 * to go ahead and always set it.
1295 */
1296 (yy_did_buffer_switch_on_eof) = 1;
1297}
1298
1299static void yy_load_buffer_state (void)
1300{
1301 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_n_chars;
1302 (yytext_ptryytext) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_buf_pos;
1303 yyin = YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_input_file;
1304 (yy_hold_char) = *(yy_c_buf_p);
1305}
1306
1307/** Allocate and initialize an input buffer state.
1308 * @param file A readable stream.
1309 * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
1310 *
1311 * @return the allocated buffer state.
1312 */
1313 YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
1314{
1315 YY_BUFFER_STATE b;
1316
1317 b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
1318 if ( ! b )
1319 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" )yy_fatal_error( "out of dynamic memory in yy_create_buffer()"
)
;
1320
1321 b->yy_buf_size = size;
1322
1323 /* yy_ch_buf has to be 2 characters longer than the size given because
1324 * we need to put in 2 end-of-buffer characters.
1325 */
1326 b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 );
1327 if ( ! b->yy_ch_buf )
1328 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" )yy_fatal_error( "out of dynamic memory in yy_create_buffer()"
)
;
1329
1330 b->yy_is_our_buffer = 1;
1331
1332 yy_init_buffer(b,file );
1333
1334 return b;
1335}
1336
1337/** Destroy the buffer.
1338 * @param b a buffer created with yy_create_buffer()
1339 *
1340 */
1341 void yy_delete_buffer (YY_BUFFER_STATE b )
1342{
1343
1344 if ( ! b )
1345 return;
1346
1347 if ( b == YY_CURRENT_BUFFER( (yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top)
] : ((void *)0))
) /* Not sure if we should pop here. */
1348 YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)] = (YY_BUFFER_STATE) 0;
1349
1350 if ( b->yy_is_our_buffer )
1351 yyfree((void *) b->yy_ch_buf );
1352
1353 yyfree((void *) b );
1354}
1355
1356/* Initializes or reinitializes a buffer.
1357 * This function is sometimes called more than once on the same buffer,
1358 * such as during a yyrestart() or at EOF.
1359 */
1360 static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
1361
1362{
1363 int oerrno = errno(*__errno());
1364
1365 yy_flush_buffer(b );
1366
1367 b->yy_input_file = file;
1368 b->yy_fill_buffer = 1;
1369
1370 /* If b is the current buffer, then yy_init_buffer was _probably_
1371 * called from yyrestart() or through yy_get_next_buffer.
1372 * In that case, we don't want to reset the lineno or column.
1373 */
1374 if (b != YY_CURRENT_BUFFER( (yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top)
] : ((void *)0))
){
1375 b->yy_bs_lineno = 1;
1376 b->yy_bs_column = 0;
1377 }
1378
1379 b->yy_is_interactive = file ? (isatty( fileno(file)(!__isthreaded ? ((file)->_file) : (fileno)(file)) ) > 0) : 0;
1380
1381 errno(*__errno()) = oerrno;
1382}
1383
1384/** Discard all buffered characters. On the next scan, YY_INPUT will be called.
1385 * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
1386 *
1387 */
1388 void yy_flush_buffer (YY_BUFFER_STATE b )
1389{
1390 if ( ! b )
1391 return;
1392
1393 b->yy_n_chars = 0;
1394
1395 /* We always need two end-of-buffer characters. The first causes
1396 * a transition to the end-of-buffer state. The second causes
1397 * a jam in that state.
1398 */
1399 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR0;
1400 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR0;
1401
1402 b->yy_buf_pos = &b->yy_ch_buf[0];
1403
1404 b->yy_at_bol = 1;
1405 b->yy_buffer_status = YY_BUFFER_NEW0;
1406
1407 if ( b == YY_CURRENT_BUFFER( (yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top)
] : ((void *)0))
)
1408 yy_load_buffer_state( );
1409}
1410
1411/** Pushes the new state onto the stack. The new state becomes
1412 * the current state. This function will allocate the stack
1413 * if necessary.
1414 * @param new_buffer The new state.
1415 *
1416 */
1417void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
1418{
1419 if (new_buffer == NULL((void *)0))
1420 return;
1421
1422 yyensure_buffer_stack();
1423
1424 /* This block is copied from yy_switch_to_buffer. */
1425 if ( YY_CURRENT_BUFFER( (yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top)
] : ((void *)0))
)
1426 {
1427 /* Flush out information for old buffer. */
1428 *(yy_c_buf_p) = (yy_hold_char);
1429 YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_buf_pos = (yy_c_buf_p);
1430 YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)]->yy_n_chars = (yy_n_chars);
1431 }
1432
1433 /* Only push if top exists. Otherwise, replace top. */
1434 if (YY_CURRENT_BUFFER( (yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top)
] : ((void *)0))
)
1435 (yy_buffer_stack_top)++;
1436 YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)] = new_buffer;
1437
1438 /* copied from yy_switch_to_buffer. */
1439 yy_load_buffer_state( );
1440 (yy_did_buffer_switch_on_eof) = 1;
1441}
1442
1443/** Removes and deletes the top of the stack, if present.
1444 * The next element becomes the new top.
1445 *
1446 */
1447void yypop_buffer_state (void)
1448{
1449 if (!YY_CURRENT_BUFFER( (yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top)
] : ((void *)0))
)
1450 return;
1451
1452 yy_delete_buffer(YY_CURRENT_BUFFER( (yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top)
] : ((void *)0))
);
1453 YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)] = NULL((void *)0);
1454 if ((yy_buffer_stack_top) > 0)
1455 --(yy_buffer_stack_top);
1456
1457 if (YY_CURRENT_BUFFER( (yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top)
] : ((void *)0))
) {
1458 yy_load_buffer_state( );
1459 (yy_did_buffer_switch_on_eof) = 1;
1460 }
1461}
1462
1463/* Allocates the stack if it does not exist.
1464 * Guarantees space for at least one push.
1465 */
1466static void yyensure_buffer_stack (void)
1467{
1468 yy_size_t num_to_alloc;
1469
1470 if (!(yy_buffer_stack)) {
1471
1472 /* First allocation is just for 2 elements, since we don't know if this
1473 * scanner will even need a stack. We use 2 instead of 1 to avoid an
1474 * immediate realloc on the next call.
1475 */
1476 num_to_alloc = 1;
1477 (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
1478 (num_to_alloc * sizeof(struct yy_buffer_state*)
1479 );
1480 if ( ! (yy_buffer_stack) )
1481 YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" )yy_fatal_error( "out of dynamic memory in yyensure_buffer_stack()"
)
;
1482
1483 memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
1484
1485 (yy_buffer_stack_max) = num_to_alloc;
1486 (yy_buffer_stack_top) = 0;
1487 return;
1488 }
1489
1490 if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
1491
1492 /* Increase the buffer to prepare for a possible push. */
1493 int grow_size = 8 /* arbitrary grow size */;
1494
1495 num_to_alloc = (yy_buffer_stack_max) + grow_size;
1496 (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
1497 ((yy_buffer_stack),
1498 num_to_alloc * sizeof(struct yy_buffer_state*)
1499 );
1500 if ( ! (yy_buffer_stack) )
1501 YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" )yy_fatal_error( "out of dynamic memory in yyensure_buffer_stack()"
)
;
1502
1503 /* zero only the new slots.*/
1504 memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
1505 (yy_buffer_stack_max) = num_to_alloc;
1506 }
1507}
1508
1509/** Setup the input buffer state to scan directly from a user-specified character buffer.
1510 * @param base the character buffer
1511 * @param size the size in bytes of the character buffer
1512 *
1513 * @return the newly allocated buffer state object.
1514 */
1515YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
1516{
1517 YY_BUFFER_STATE b;
1518
1519 if ( size < 2 ||
1520 base[size-2] != YY_END_OF_BUFFER_CHAR0 ||
1521 base[size-1] != YY_END_OF_BUFFER_CHAR0 )
1522 /* They forgot to leave room for the EOB's. */
1523 return 0;
1524
1525 b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
1526 if ( ! b )
1527 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" )yy_fatal_error( "out of dynamic memory in yy_scan_buffer()" );
1528
1529 b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
1530 b->yy_buf_pos = b->yy_ch_buf = base;
1531 b->yy_is_our_buffer = 0;
1532 b->yy_input_file = 0;
1533 b->yy_n_chars = b->yy_buf_size;
1534 b->yy_is_interactive = 0;
1535 b->yy_at_bol = 1;
1536 b->yy_fill_buffer = 0;
1537 b->yy_buffer_status = YY_BUFFER_NEW0;
1538
1539 yy_switch_to_buffer(b );
1540
1541 return b;
1542}
1543
1544/** Setup the input buffer state to scan a string. The next call to yylex() will
1545 * scan from a @e copy of @a str.
1546 * @param yystr a NUL-terminated string to scan
1547 *
1548 * @return the newly allocated buffer state object.
1549 * @note If you want to scan bytes that may contain NUL values, then use
1550 * yy_scan_bytes() instead.
1551 */
1552YY_BUFFER_STATE yy_scan_string (yyconstconst char * yystr )
1553{
1554
1555 return yy_scan_bytes(yystr,strlen(yystr) );
1556}
1557
1558/** Setup the input buffer state to scan the given bytes. The next call to yylex() will
1559 * scan from a @e copy of @a bytes.
1560 * @param yybytes the byte buffer to scan
1561 * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
1562 *
1563 * @return the newly allocated buffer state object.
1564 */
1565YY_BUFFER_STATE yy_scan_bytes (yyconstconst char * yybytes, yy_size_t _yybytes_len )
1566{
1567 YY_BUFFER_STATE b;
1568 char *buf;
1569 yy_size_t n;
1570 yy_size_t i;
1571
1572 /* Get memory for full buffer, including space for trailing EOB's. */
1573 n = _yybytes_len + 2;
1574 buf = (char *) yyalloc(n );
1575 if ( ! buf )
1576 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" )yy_fatal_error( "out of dynamic memory in yy_scan_bytes()" );
1577
1578 for ( i = 0; i < _yybytes_len; ++i )
1579 buf[i] = yybytes[i];
1580
1581 buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR0;
1582
1583 b = yy_scan_buffer(buf,n );
1584 if ( ! b )
1585 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" )yy_fatal_error( "bad buffer in yy_scan_bytes()" );
1586
1587 /* It's okay to grow etc. this buffer, and we should throw it
1588 * away when we're done.
1589 */
1590 b->yy_is_our_buffer = 1;
1591
1592 return b;
1593}
1594
1595#ifndef YY_EXIT_FAILURE2
1596#define YY_EXIT_FAILURE2 2
1597#endif
1598
1599static void yy_fatal_error (yyconstconst char* msg )
1600{
1601 (void) fprintf( stderr(&__sF[2]), "%s\n", msg );
1602 exit( YY_EXIT_FAILURE2 );
1603}
1604
1605/* Redefine yyless() so it works in section 3 code. */
1606
1607#undef yyless
1608#define yyless(n)do { int yyless_macro_arg = (n); ; yytext[yyleng] = (yy_hold_char
); (yy_c_buf_p) = yytext + yyless_macro_arg; (yy_hold_char) =
*(yy_c_buf_p); *(yy_c_buf_p) = '\0'; yyleng = yyless_macro_arg
; } while ( 0 )
\
1609 do \
1610 { \
1611 /* Undo effects of setting up yytext. */ \
1612 int yyless_macro_arg = (n); \
1613 YY_LESS_LINENO(yyless_macro_arg);\
1614 yytext[yyleng] = (yy_hold_char); \
1615 (yy_c_buf_p) = yytext + yyless_macro_arg; \
1616 (yy_hold_char) = *(yy_c_buf_p); \
1617 *(yy_c_buf_p) = '\0'; \
1618 yyleng = yyless_macro_arg; \
1619 } \
1620 while ( 0 )
1621
1622/* Accessor methods (get/set functions) to struct members. */
1623
1624/** Get the current line number.
1625 *
1626 */
1627int yyget_lineno (void)
1628{
1629
1630 return yylineno;
1631}
1632
1633/** Get the input stream.
1634 *
1635 */
1636FILE *yyget_in (void)
1637{
1638 return yyin;
1639}
1640
1641/** Get the output stream.
1642 *
1643 */
1644FILE *yyget_out (void)
1645{
1646 return yyout;
1647}
1648
1649/** Get the length of the current token.
1650 *
1651 */
1652yy_size_t yyget_leng (void)
1653{
1654 return yyleng;
1655}
1656
1657/** Get the current token.
1658 *
1659 */
1660
1661char *yyget_text (void)
1662{
1663 return yytext;
1664}
1665
1666/** Set the current line number.
1667 * @param line_number
1668 *
1669 */
1670void yyset_lineno (int line_number )
1671{
1672
1673 yylineno = line_number;
1674}
1675
1676/** Set the input stream. This does not discard the current
1677 * input buffer.
1678 * @param in_str A readable stream.
1679 *
1680 * @see yy_switch_to_buffer
1681 */
1682void yyset_in (FILE * in_str )
1683{
1684 yyin = in_str ;
1685}
1686
1687void yyset_out (FILE * out_str )
1688{
1689 yyout = out_str ;
1690}
1691
1692int yyget_debug (void)
1693{
1694 return yy_flex_debug;
1695}
1696
1697void yyset_debug (int bdebug )
1698{
1699 yy_flex_debug = bdebug ;
1700}
1701
1702static int yy_init_globals (void)
1703{
1704 /* Initialization is the same as for the non-reentrant scanner.
1705 * This function is called from yylex_destroy(), so don't allocate here.
1706 */
1707
1708 (yy_buffer_stack) = 0;
1709 (yy_buffer_stack_top) = 0;
1710 (yy_buffer_stack_max) = 0;
1711 (yy_c_buf_p) = (char *) 0;
1712 (yy_init) = 0;
1713 (yy_start) = 0;
1714
1715 (yy_state_buf) = 0;
1716 (yy_state_ptr) = 0;
1717 (yy_full_match) = 0;
1718 (yy_lp) = 0;
1719
1720/* Defined in main.c */
1721#ifdef YY_STDINIT
1722 yyin = stdin(&__sF[0]);
1723 yyout = stdout(&__sF[1]);
1724#else
1725 yyin = (FILE *) 0;
1726 yyout = (FILE *) 0;
1727#endif
1728
1729 /* For future reference: Set errno on error, since we are called by
1730 * yylex_init()
1731 */
1732 return 0;
1733}
1734
1735/* yylex_destroy is for both reentrant and non-reentrant scanners. */
1736int yylex_destroy (void)
1737{
1738
1739 /* Pop the buffer stack, destroying each element. */
1740 while(YY_CURRENT_BUFFER( (yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top)
] : ((void *)0))
){
1741 yy_delete_buffer(YY_CURRENT_BUFFER( (yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top)
] : ((void *)0))
);
1742 YY_CURRENT_BUFFER_LVALUE(yy_buffer_stack)[(yy_buffer_stack_top)] = NULL((void *)0);
1743 yypop_buffer_state();
1744 }
1745
1746 /* Destroy the stack itself. */
1747 yyfree((yy_buffer_stack) );
1748 (yy_buffer_stack) = NULL((void *)0);
1749
1750 yyfree ( (yy_state_buf) );
1751 (yy_state_buf) = NULL((void *)0);
1752
1753 /* Reset the globals. This is important in a non-reentrant scanner so the next time
1754 * yylex() is called, initialization will occur. */
1755 yy_init_globals( );
1756
1757 return 0;
1758}
1759
1760/*
1761 * Internal utility routines.
1762 */
1763
1764#ifndef yytext_ptryytext
1765static void yy_flex_strncpy (char* s1, yyconstconst char * s2, int n )
1766{
1767 int i;
1768 for ( i = 0; i < n; ++i )
1769 s1[i] = s2[i];
1770}
1771#endif
1772
1773#ifdef YY_NEED_STRLEN
1774static int yy_flex_strlen (yyconstconst char * s )
1775{
1776 int n;
1777 for ( n = 0; s[n]; ++n )
1778 ;
1779
1780 return n;
1781}
1782#endif
1783
1784void *yyalloc (yy_size_t size )
1785{
1786 return (void *) malloc( size );
5
Storing uninitialized value
1787}
1788
1789void *yyrealloc (void * ptr, yy_size_t size )
1790{
1791 /* The cast to (char *) in the following accommodates both
1792 * implementations that use char* generic pointers, and those
1793 * that use void* generic pointers. It works with the latter
1794 * because both ANSI C and C++ allow castless assignment from
1795 * any pointer type to void*, and deal with argument conversions
1796 * as though doing an assignment.
1797 */
1798 return (void *) realloc( (char *) ptr, size );
1799}
1800
1801void yyfree (void * ptr )
1802{
1803 free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
1804}
1805
1806#define YYTABLES_NAME"yytables" "yytables"
1807
1808#line 10 "conftest.l"
1809
1810
1811#ifdef YYTEXT_POINTER1
1812extern char *yytext;
1813#endif
1814int
1815main (void)
1816{
1817 return ! yylex () + ! yywrap ();
1
Calling 'yylex'
1818}