Mercurial > repo
comparison interps/c-intercal/config.log @ 996:859f9b4339e6
<Gregor> tar xf egobot.tar.xz
author | HackBot |
---|---|
date | Sun, 09 Dec 2012 19:30:08 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
995:6883f5911eb7 | 996:859f9b4339e6 |
---|---|
1 This file contains any messages produced by compilers while | |
2 running configure, to aid debugging if configure makes a mistake. | |
3 | |
4 It was created by C-INTERCAL configure 0.29, which was | |
5 generated by GNU Autoconf 2.61. Invocation command line was | |
6 | |
7 $ ./configure --prefix=/home/gregor/projects/hackbot/multibot_cmds/env/interps/c-intercal/inst | |
8 | |
9 ## --------- ## | |
10 ## Platform. ## | |
11 ## --------- ## | |
12 | |
13 hostname = glapgor | |
14 uname -m = x86_64 | |
15 uname -r = 3.1-5.slh.2-aptosid-amd64 | |
16 uname -s = Linux | |
17 uname -v = #1 SMP PREEMPT Thu Dec 15 02:03:58 UTC 2011 | |
18 | |
19 /usr/bin/uname -p = unknown | |
20 /bin/uname -X = unknown | |
21 | |
22 /bin/arch = unknown | |
23 /usr/bin/arch -k = unknown | |
24 /usr/convex/getsysinfo = unknown | |
25 /usr/bin/hostinfo = unknown | |
26 /bin/machine = unknown | |
27 /usr/bin/oslevel = unknown | |
28 /bin/universe = unknown | |
29 | |
30 PATH: /home/gregor/bin | |
31 PATH: /usr/local/bin | |
32 PATH: /usr/bin | |
33 PATH: /bin | |
34 PATH: /usr/local/games | |
35 PATH: /usr/games | |
36 | |
37 | |
38 ## ----------- ## | |
39 ## Core tests. ## | |
40 ## ----------- ## | |
41 | |
42 configure:1793: checking for a BSD-compatible install | |
43 configure:1849: result: /usr/bin/install -c | |
44 configure:1860: checking whether build environment is sane | |
45 configure:1903: result: yes | |
46 configure:1931: checking for a thread-safe mkdir -p | |
47 configure:1970: result: /bin/mkdir -p | |
48 configure:1983: checking for gawk | |
49 configure:1999: found /usr/bin/gawk | |
50 configure:2010: result: gawk | |
51 configure:2021: checking whether make sets $(MAKE) | |
52 configure:2042: result: yes | |
53 configure:2225: checking how to create a pax tar archive | |
54 configure:2238: tar --version | |
55 tar (GNU tar) 1.26 | |
56 Copyright (C) 2011 Free Software Foundation, Inc. | |
57 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. | |
58 This is free software: you are free to change and redistribute it. | |
59 There is NO WARRANTY, to the extent permitted by law. | |
60 | |
61 Written by John Gilmore and Jay Fenlason. | |
62 configure:2241: $? = 0 | |
63 configure:2281: tardir=conftest.dir && eval tar --format=posix -chf - "$tardir" >conftest.tar | |
64 configure:2284: $? = 0 | |
65 configure:2288: tar -xf - <conftest.tar | |
66 configure:2291: $? = 0 | |
67 configure:2304: result: gnutar | |
68 configure:2318: checking for bison | |
69 configure:2334: found /usr/bin/bison | |
70 configure:2345: result: bison -y | |
71 configure:2405: checking for gcc | |
72 configure:2421: found /usr/bin/gcc | |
73 configure:2432: result: gcc | |
74 configure:2670: checking for C compiler version | |
75 configure:2677: gcc --version >&5 | |
76 gcc (Debian 4.7.2-4) 4.7.2 | |
77 Copyright (C) 2012 Free Software Foundation, Inc. | |
78 This is free software; see the source for copying conditions. There is NO | |
79 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
80 | |
81 configure:2680: $? = 0 | |
82 configure:2687: gcc -v >&5 | |
83 Using built-in specs. | |
84 COLLECT_GCC=gcc | |
85 COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper | |
86 Target: x86_64-linux-gnu | |
87 Configured with: ../src/configure -v --with-pkgversion='Debian 4.7.2-4' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs --enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.7 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu | |
88 Thread model: posix | |
89 gcc version 4.7.2 (Debian 4.7.2-4) | |
90 configure:2690: $? = 0 | |
91 configure:2697: gcc -V >&5 | |
92 gcc: error: unrecognized command line option '-V' | |
93 gcc: fatal error: no input files | |
94 compilation terminated. | |
95 configure:2700: $? = 4 | |
96 configure:2723: checking for C compiler default output file name | |
97 configure:2750: gcc conftest.c >&5 | |
98 configure:2753: $? = 0 | |
99 configure:2791: result: a.out | |
100 configure:2808: checking whether the C compiler works | |
101 configure:2818: ./a.out | |
102 configure:2821: $? = 0 | |
103 configure:2838: result: yes | |
104 configure:2845: checking whether we are cross compiling | |
105 configure:2847: result: no | |
106 configure:2850: checking for suffix of executables | |
107 configure:2857: gcc -o conftest conftest.c >&5 | |
108 configure:2860: $? = 0 | |
109 configure:2884: result: | |
110 configure:2890: checking for suffix of object files | |
111 configure:2916: gcc -c conftest.c >&5 | |
112 configure:2919: $? = 0 | |
113 configure:2942: result: o | |
114 configure:2946: checking whether we are using the GNU C compiler | |
115 configure:2975: gcc -c conftest.c >&5 | |
116 configure:2981: $? = 0 | |
117 configure:2998: result: yes | |
118 configure:3003: checking whether gcc accepts -g | |
119 configure:3033: gcc -c -g conftest.c >&5 | |
120 configure:3039: $? = 0 | |
121 configure:3138: result: yes | |
122 configure:3155: checking for gcc option to accept ISO C89 | |
123 configure:3229: gcc -c -g -O2 conftest.c >&5 | |
124 configure:3235: $? = 0 | |
125 configure:3258: result: none needed | |
126 configure:3287: checking for style of include used by make | |
127 configure:3315: result: GNU | |
128 configure:3340: checking dependency style of gcc | |
129 configure:3431: result: gcc3 | |
130 configure:3451: checking for flex | |
131 configure:3467: found /usr/bin/flex | |
132 configure:3478: result: flex | |
133 configure:3515: flex conftest.l | |
134 configure:3518: $? = 0 | |
135 configure:3520: checking lex output file root | |
136 configure:3536: result: lex.yy | |
137 configure:3541: checking lex library | |
138 configure:3560: gcc -o conftest -g -O2 conftest.c >&5 | |
139 /tmp/ccTCxEGN.o: In function `input': | |
140 /home/gregor/projects/hackbot/multibot_cmds/env/interps/c-intercal/lex.yy.c:1182: undefined reference to `yywrap' | |
141 /tmp/ccTCxEGN.o: In function `yylex': | |
142 /home/gregor/projects/hackbot/multibot_cmds/env/interps/c-intercal/lex.yy.c:881: undefined reference to `yywrap' | |
143 /tmp/ccTCxEGN.o: In function `main': | |
144 /home/gregor/projects/hackbot/multibot_cmds/env/interps/c-intercal/conftest.l:17: undefined reference to `yywrap' | |
145 collect2: error: ld returned 1 exit status | |
146 configure:3566: $? = 1 | |
147 configure: failed program was: | |
148 | | |
149 | #line 3 "lex.yy.c" | |
150 | | |
151 | #define YY_INT_ALIGNED short int | |
152 | | |
153 | /* A lexical scanner generated by flex */ | |
154 | | |
155 | #define FLEX_SCANNER | |
156 | #define YY_FLEX_MAJOR_VERSION 2 | |
157 | #define YY_FLEX_MINOR_VERSION 5 | |
158 | #define YY_FLEX_SUBMINOR_VERSION 35 | |
159 | #if YY_FLEX_SUBMINOR_VERSION > 0 | |
160 | #define FLEX_BETA | |
161 | #endif | |
162 | | |
163 | /* First, we deal with platform-specific or compiler-specific issues. */ | |
164 | | |
165 | /* begin standard C headers. */ | |
166 | #include <stdio.h> | |
167 | #include <string.h> | |
168 | #include <errno.h> | |
169 | #include <stdlib.h> | |
170 | | |
171 | /* end standard C headers. */ | |
172 | | |
173 | /* flex integer type definitions */ | |
174 | | |
175 | #ifndef FLEXINT_H | |
176 | #define FLEXINT_H | |
177 | | |
178 | /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */ | |
179 | | |
180 | #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L | |
181 | | |
182 | /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, | |
183 | * if you want the limit (max/min) macros for int types. | |
184 | */ | |
185 | #ifndef __STDC_LIMIT_MACROS | |
186 | #define __STDC_LIMIT_MACROS 1 | |
187 | #endif | |
188 | | |
189 | #include <inttypes.h> | |
190 | typedef int8_t flex_int8_t; | |
191 | typedef uint8_t flex_uint8_t; | |
192 | typedef int16_t flex_int16_t; | |
193 | typedef uint16_t flex_uint16_t; | |
194 | typedef int32_t flex_int32_t; | |
195 | typedef uint32_t flex_uint32_t; | |
196 | #else | |
197 | typedef signed char flex_int8_t; | |
198 | typedef short int flex_int16_t; | |
199 | typedef int flex_int32_t; | |
200 | typedef unsigned char flex_uint8_t; | |
201 | typedef unsigned short int flex_uint16_t; | |
202 | typedef unsigned int flex_uint32_t; | |
203 | | |
204 | /* Limits of integral types. */ | |
205 | #ifndef INT8_MIN | |
206 | #define INT8_MIN (-128) | |
207 | #endif | |
208 | #ifndef INT16_MIN | |
209 | #define INT16_MIN (-32767-1) | |
210 | #endif | |
211 | #ifndef INT32_MIN | |
212 | #define INT32_MIN (-2147483647-1) | |
213 | #endif | |
214 | #ifndef INT8_MAX | |
215 | #define INT8_MAX (127) | |
216 | #endif | |
217 | #ifndef INT16_MAX | |
218 | #define INT16_MAX (32767) | |
219 | #endif | |
220 | #ifndef INT32_MAX | |
221 | #define INT32_MAX (2147483647) | |
222 | #endif | |
223 | #ifndef UINT8_MAX | |
224 | #define UINT8_MAX (255U) | |
225 | #endif | |
226 | #ifndef UINT16_MAX | |
227 | #define UINT16_MAX (65535U) | |
228 | #endif | |
229 | #ifndef UINT32_MAX | |
230 | #define UINT32_MAX (4294967295U) | |
231 | #endif | |
232 | | |
233 | #endif /* ! C99 */ | |
234 | | |
235 | #endif /* ! FLEXINT_H */ | |
236 | | |
237 | #ifdef __cplusplus | |
238 | | |
239 | /* The "const" storage-class-modifier is valid. */ | |
240 | #define YY_USE_CONST | |
241 | | |
242 | #else /* ! __cplusplus */ | |
243 | | |
244 | /* C99 requires __STDC__ to be defined as 1. */ | |
245 | #if defined (__STDC__) | |
246 | | |
247 | #define YY_USE_CONST | |
248 | | |
249 | #endif /* defined (__STDC__) */ | |
250 | #endif /* ! __cplusplus */ | |
251 | | |
252 | #ifdef YY_USE_CONST | |
253 | #define yyconst const | |
254 | #else | |
255 | #define yyconst | |
256 | #endif | |
257 | | |
258 | /* Returned upon end-of-file. */ | |
259 | #define YY_NULL 0 | |
260 | | |
261 | /* Promotes a possibly negative, possibly signed char to an unsigned | |
262 | * integer for use as an array index. If the signed char is negative, | |
263 | * we want to instead treat it as an 8-bit unsigned char, hence the | |
264 | * double cast. | |
265 | */ | |
266 | #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) | |
267 | | |
268 | /* Enter a start condition. This macro really ought to take a parameter, | |
269 | * but we do it the disgusting crufty way forced on us by the ()-less | |
270 | * definition of BEGIN. | |
271 | */ | |
272 | #define BEGIN (yy_start) = 1 + 2 * | |
273 | | |
274 | /* Translate the current start state into a value that can be later handed | |
275 | * to BEGIN to return to the state. The YYSTATE alias is for lex | |
276 | * compatibility. | |
277 | */ | |
278 | #define YY_START (((yy_start) - 1) / 2) | |
279 | #define YYSTATE YY_START | |
280 | | |
281 | /* Action number for EOF rule of a given start state. */ | |
282 | #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) | |
283 | | |
284 | /* Special action meaning "start processing a new file". */ | |
285 | #define YY_NEW_FILE yyrestart(yyin ) | |
286 | | |
287 | #define YY_END_OF_BUFFER_CHAR 0 | |
288 | | |
289 | /* Size of default input buffer. */ | |
290 | #ifndef YY_BUF_SIZE | |
291 | #ifdef __ia64__ | |
292 | /* On IA-64, the buffer size is 16k, not 8k. | |
293 | * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case. | |
294 | * Ditto for the __ia64__ case accordingly. | |
295 | */ | |
296 | #define YY_BUF_SIZE 32768 | |
297 | #else | |
298 | #define YY_BUF_SIZE 16384 | |
299 | #endif /* __ia64__ */ | |
300 | #endif | |
301 | | |
302 | /* The state buf must be large enough to hold one state per character in the main buffer. | |
303 | */ | |
304 | #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) | |
305 | | |
306 | #ifndef YY_TYPEDEF_YY_BUFFER_STATE | |
307 | #define YY_TYPEDEF_YY_BUFFER_STATE | |
308 | typedef struct yy_buffer_state *YY_BUFFER_STATE; | |
309 | #endif | |
310 | | |
311 | extern int yyleng; | |
312 | | |
313 | extern FILE *yyin, *yyout; | |
314 | | |
315 | #define EOB_ACT_CONTINUE_SCAN 0 | |
316 | #define EOB_ACT_END_OF_FILE 1 | |
317 | #define EOB_ACT_LAST_MATCH 2 | |
318 | | |
319 | #define YY_LESS_LINENO(n) | |
320 | | |
321 | /* Return all but the first "n" matched characters back to the input stream. */ | |
322 | #define yyless(n) \ | |
323 | do \ | |
324 | { \ | |
325 | /* Undo effects of setting up yytext. */ \ | |
326 | int yyless_macro_arg = (n); \ | |
327 | YY_LESS_LINENO(yyless_macro_arg);\ | |
328 | *yy_cp = (yy_hold_char); \ | |
329 | YY_RESTORE_YY_MORE_OFFSET \ | |
330 | (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ | |
331 | YY_DO_BEFORE_ACTION; /* set up yytext again */ \ | |
332 | } \ | |
333 | while ( 0 ) | |
334 | | |
335 | #define unput(c) yyunput( c, (yytext_ptr) ) | |
336 | | |
337 | #ifndef YY_TYPEDEF_YY_SIZE_T | |
338 | #define YY_TYPEDEF_YY_SIZE_T | |
339 | typedef size_t yy_size_t; | |
340 | #endif | |
341 | | |
342 | #ifndef YY_STRUCT_YY_BUFFER_STATE | |
343 | #define YY_STRUCT_YY_BUFFER_STATE | |
344 | struct yy_buffer_state | |
345 | { | |
346 | FILE *yy_input_file; | |
347 | | |
348 | char *yy_ch_buf; /* input buffer */ | |
349 | char *yy_buf_pos; /* current position in input buffer */ | |
350 | | |
351 | /* Size of input buffer in bytes, not including room for EOB | |
352 | * characters. | |
353 | */ | |
354 | yy_size_t yy_buf_size; | |
355 | | |
356 | /* Number of characters read into yy_ch_buf, not including EOB | |
357 | * characters. | |
358 | */ | |
359 | int yy_n_chars; | |
360 | | |
361 | /* Whether we "own" the buffer - i.e., we know we created it, | |
362 | * and can realloc() it to grow it, and should free() it to | |
363 | * delete it. | |
364 | */ | |
365 | int yy_is_our_buffer; | |
366 | | |
367 | /* Whether this is an "interactive" input source; if so, and | |
368 | * if we're using stdio for input, then we want to use getc() | |
369 | * instead of fread(), to make sure we stop fetching input after | |
370 | * each newline. | |
371 | */ | |
372 | int yy_is_interactive; | |
373 | | |
374 | /* Whether we're considered to be at the beginning of a line. | |
375 | * If so, '^' rules will be active on the next match, otherwise | |
376 | * not. | |
377 | */ | |
378 | int yy_at_bol; | |
379 | | |
380 | int yy_bs_lineno; /**< The line count. */ | |
381 | int yy_bs_column; /**< The column count. */ | |
382 | | |
383 | /* Whether to try to fill the input buffer when we reach the | |
384 | * end of it. | |
385 | */ | |
386 | int yy_fill_buffer; | |
387 | | |
388 | int yy_buffer_status; | |
389 | | |
390 | #define YY_BUFFER_NEW 0 | |
391 | #define YY_BUFFER_NORMAL 1 | |
392 | /* When an EOF's been seen but there's still some text to process | |
393 | * then we mark the buffer as YY_EOF_PENDING, to indicate that we | |
394 | * shouldn't try reading from the input source any more. We might | |
395 | * still have a bunch of tokens to match, though, because of | |
396 | * possible backing-up. | |
397 | * | |
398 | * When we actually see the EOF, we change the status to "new" | |
399 | * (via yyrestart()), so that the user can continue scanning by | |
400 | * just pointing yyin at a new input file. | |
401 | */ | |
402 | #define YY_BUFFER_EOF_PENDING 2 | |
403 | | |
404 | }; | |
405 | #endif /* !YY_STRUCT_YY_BUFFER_STATE */ | |
406 | | |
407 | /* Stack of input buffers. */ | |
408 | static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */ | |
409 | static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */ | |
410 | static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */ | |
411 | | |
412 | /* We provide macros for accessing buffer states in case in the | |
413 | * future we want to put the buffer states in a more general | |
414 | * "scanner state". | |
415 | * | |
416 | * Returns the top of the stack, or NULL. | |
417 | */ | |
418 | #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ | |
419 | ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ | |
420 | : NULL) | |
421 | | |
422 | /* Same as previous macro, but useful when we know that the buffer stack is not | |
423 | * NULL or when we need an lvalue. For internal use only. | |
424 | */ | |
425 | #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] | |
426 | | |
427 | /* yy_hold_char holds the character lost when yytext is formed. */ | |
428 | static char yy_hold_char; | |
429 | static int yy_n_chars; /* number of characters read into yy_ch_buf */ | |
430 | int yyleng; | |
431 | | |
432 | /* Points to current character in buffer. */ | |
433 | static char *yy_c_buf_p = (char *) 0; | |
434 | static int yy_init = 0; /* whether we need to initialize */ | |
435 | static int yy_start = 0; /* start state number */ | |
436 | | |
437 | /* Flag which is used to allow yywrap()'s to do buffer switches | |
438 | * instead of setting up a fresh yyin. A bit of a hack ... | |
439 | */ | |
440 | static int yy_did_buffer_switch_on_eof; | |
441 | | |
442 | void yyrestart (FILE *input_file ); | |
443 | void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ); | |
444 | YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ); | |
445 | void yy_delete_buffer (YY_BUFFER_STATE b ); | |
446 | void yy_flush_buffer (YY_BUFFER_STATE b ); | |
447 | void yypush_buffer_state (YY_BUFFER_STATE new_buffer ); | |
448 | void yypop_buffer_state (void ); | |
449 | | |
450 | static void yyensure_buffer_stack (void ); | |
451 | static void yy_load_buffer_state (void ); | |
452 | static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file ); | |
453 | | |
454 | #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER ) | |
455 | | |
456 | YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ); | |
457 | YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ); | |
458 | YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len ); | |
459 | | |
460 | void *yyalloc (yy_size_t ); | |
461 | void *yyrealloc (void *,yy_size_t ); | |
462 | void yyfree (void * ); | |
463 | | |
464 | #define yy_new_buffer yy_create_buffer | |
465 | | |
466 | #define yy_set_interactive(is_interactive) \ | |
467 | { \ | |
468 | if ( ! YY_CURRENT_BUFFER ){ \ | |
469 | yyensure_buffer_stack (); \ | |
470 | YY_CURRENT_BUFFER_LVALUE = \ | |
471 | yy_create_buffer(yyin,YY_BUF_SIZE ); \ | |
472 | } \ | |
473 | YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ | |
474 | } | |
475 | | |
476 | #define yy_set_bol(at_bol) \ | |
477 | { \ | |
478 | if ( ! YY_CURRENT_BUFFER ){\ | |
479 | yyensure_buffer_stack (); \ | |
480 | YY_CURRENT_BUFFER_LVALUE = \ | |
481 | yy_create_buffer(yyin,YY_BUF_SIZE ); \ | |
482 | } \ | |
483 | YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ | |
484 | } | |
485 | | |
486 | #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) | |
487 | | |
488 | /* Begin user sect3 */ | |
489 | | |
490 | typedef unsigned char YY_CHAR; | |
491 | | |
492 | FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; | |
493 | | |
494 | typedef int yy_state_type; | |
495 | | |
496 | extern int yylineno; | |
497 | | |
498 | int yylineno = 1; | |
499 | | |
500 | extern char *yytext; | |
501 | #define yytext_ptr yytext | |
502 | | |
503 | static yy_state_type yy_get_previous_state (void ); | |
504 | static yy_state_type yy_try_NUL_trans (yy_state_type current_state ); | |
505 | static int yy_get_next_buffer (void ); | |
506 | static void yy_fatal_error (yyconst char msg[] ); | |
507 | | |
508 | /* Done after the current pattern has been matched and before the | |
509 | * corresponding action - sets up yytext. | |
510 | */ | |
511 | #define YY_DO_BEFORE_ACTION \ | |
512 | (yytext_ptr) = yy_bp; \ | |
513 | (yytext_ptr) -= (yy_more_len); \ | |
514 | yyleng = (size_t) (yy_cp - (yytext_ptr)); \ | |
515 | (yy_hold_char) = *yy_cp; \ | |
516 | *yy_cp = '\0'; \ | |
517 | (yy_c_buf_p) = yy_cp; | |
518 | | |
519 | #define YY_NUM_RULES 8 | |
520 | #define YY_END_OF_BUFFER 9 | |
521 | /* This struct is not used in this scanner, | |
522 | but its presence is necessary. */ | |
523 | struct yy_trans_info | |
524 | { | |
525 | flex_int32_t yy_verify; | |
526 | flex_int32_t yy_nxt; | |
527 | }; | |
528 | static yyconst flex_int16_t yy_acclist[23] = | |
529 | { 0, | |
530 | 9, 7, 8, 8, 1, 7, 8, 2, 7, 8, | |
531 | 3, 7, 8, 4, 7, 8, 5, 7, 8, 6, | |
532 | 7, 8 | |
533 | } ; | |
534 | | |
535 | static yyconst flex_int16_t yy_accept[14] = | |
536 | { 0, | |
537 | 1, 1, 1, 2, 4, 5, 8, 11, 14, 17, | |
538 | 20, 23, 23 | |
539 | } ; | |
540 | | |
541 | static yyconst flex_int32_t yy_ec[256] = | |
542 | { 0, | |
543 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, | |
544 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | |
545 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | |
546 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | |
547 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | |
548 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | |
549 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | |
550 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | |
551 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | |
552 | 1, 1, 1, 1, 1, 1, 3, 4, 5, 6, | |
553 | | |
554 | 7, 8, 1, 1, 1, 1, 1, 1, 1, 1, | |
555 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | |
556 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | |
557 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | |
558 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | |
559 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | |
560 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | |
561 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | |
562 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | |
563 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | |
564 | | |
565 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | |
566 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | |
567 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | |
568 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | |
569 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | |
570 | 1, 1, 1, 1, 1 | |
571 | } ; | |
572 | | |
573 | static yyconst flex_int32_t yy_meta[9] = | |
574 | { 0, | |
575 | 1, 1, 1, 1, 1, 1, 1, 1 | |
576 | } ; | |
577 | | |
578 | static yyconst flex_int16_t yy_base[13] = | |
579 | { 0, | |
580 | 0, 0, 9, 10, 10, 10, 10, 10, 10, 10, | |
581 | 10, 10 | |
582 | } ; | |
583 | | |
584 | static yyconst flex_int16_t yy_def[13] = | |
585 | { 0, | |
586 | 12, 1, 12, 12, 12, 12, 12, 12, 12, 12, | |
587 | 12, 0 | |
588 | } ; | |
589 | | |
590 | static yyconst flex_int16_t yy_nxt[19] = | |
591 | { 0, | |
592 | 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, | |
593 | 12, 12, 12, 12, 12, 12, 12, 12 | |
594 | } ; | |
595 | | |
596 | static yyconst flex_int16_t yy_chk[19] = | |
597 | { 0, | |
598 | 1, 1, 1, 1, 1, 1, 1, 1, 3, 12, | |
599 | 12, 12, 12, 12, 12, 12, 12, 12 | |
600 | } ; | |
601 | | |
602 | extern int yy_flex_debug; | |
603 | int yy_flex_debug = 0; | |
604 | | |
605 | static yy_state_type *yy_state_buf=0, *yy_state_ptr=0; | |
606 | static char *yy_full_match; | |
607 | static int yy_lp; | |
608 | #define REJECT \ | |
609 | { \ | |
610 | *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ \ | |
611 | yy_cp = (yy_full_match); /* restore poss. backed-over text */ \ | |
612 | ++(yy_lp); \ | |
613 | goto find_rule; \ | |
614 | } | |
615 | | |
616 | static int yy_more_flag = 0; | |
617 | static int yy_more_len = 0; | |
618 | #define yymore() ((yy_more_flag) = 1) | |
619 | #define YY_MORE_ADJ (yy_more_len) | |
620 | #define YY_RESTORE_YY_MORE_OFFSET | |
621 | char *yytext; | |
622 | #line 1 "conftest.l" | |
623 | #line 477 "lex.yy.c" | |
624 | | |
625 | #define INITIAL 0 | |
626 | | |
627 | #ifndef YY_NO_UNISTD_H | |
628 | /* Special case for "unistd.h", since it is non-ANSI. We include it way | |
629 | * down here because we want the user's section 1 to have been scanned first. | |
630 | * The user has a chance to override it with an option. | |
631 | */ | |
632 | #include <unistd.h> | |
633 | #endif | |
634 | | |
635 | #ifndef YY_EXTRA_TYPE | |
636 | #define YY_EXTRA_TYPE void * | |
637 | #endif | |
638 | | |
639 | static int yy_init_globals (void ); | |
640 | | |
641 | /* Accessor methods to globals. | |
642 | These are made visible to non-reentrant scanners for convenience. */ | |
643 | | |
644 | int yylex_destroy (void ); | |
645 | | |
646 | int yyget_debug (void ); | |
647 | | |
648 | void yyset_debug (int debug_flag ); | |
649 | | |
650 | YY_EXTRA_TYPE yyget_extra (void ); | |
651 | | |
652 | void yyset_extra (YY_EXTRA_TYPE user_defined ); | |
653 | | |
654 | FILE *yyget_in (void ); | |
655 | | |
656 | void yyset_in (FILE * in_str ); | |
657 | | |
658 | FILE *yyget_out (void ); | |
659 | | |
660 | void yyset_out (FILE * out_str ); | |
661 | | |
662 | int yyget_leng (void ); | |
663 | | |
664 | char *yyget_text (void ); | |
665 | | |
666 | int yyget_lineno (void ); | |
667 | | |
668 | void yyset_lineno (int line_number ); | |
669 | | |
670 | /* Macros after this point can all be overridden by user definitions in | |
671 | * section 1. | |
672 | */ | |
673 | | |
674 | #ifndef YY_SKIP_YYWRAP | |
675 | #ifdef __cplusplus | |
676 | extern "C" int yywrap (void ); | |
677 | #else | |
678 | extern int yywrap (void ); | |
679 | #endif | |
680 | #endif | |
681 | | |
682 | static void yyunput (int c,char *buf_ptr ); | |
683 | | |
684 | #ifndef yytext_ptr | |
685 | static void yy_flex_strncpy (char *,yyconst char *,int ); | |
686 | #endif | |
687 | | |
688 | #ifdef YY_NEED_STRLEN | |
689 | static int yy_flex_strlen (yyconst char * ); | |
690 | #endif | |
691 | | |
692 | #ifndef YY_NO_INPUT | |
693 | | |
694 | #ifdef __cplusplus | |
695 | static int yyinput (void ); | |
696 | #else | |
697 | static int input (void ); | |
698 | #endif | |
699 | | |
700 | #endif | |
701 | | |
702 | /* Amount of stuff to slurp up with each read. */ | |
703 | #ifndef YY_READ_BUF_SIZE | |
704 | #ifdef __ia64__ | |
705 | /* On IA-64, the buffer size is 16k, not 8k */ | |
706 | #define YY_READ_BUF_SIZE 16384 | |
707 | #else | |
708 | #define YY_READ_BUF_SIZE 8192 | |
709 | #endif /* __ia64__ */ | |
710 | #endif | |
711 | | |
712 | /* Copy whatever the last rule matched to the standard output. */ | |
713 | #ifndef ECHO | |
714 | /* This used to be an fputs(), but since the string might contain NUL's, | |
715 | * we now use fwrite(). | |
716 | */ | |
717 | #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0) | |
718 | #endif | |
719 | | |
720 | /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, | |
721 | * is returned in "result". | |
722 | */ | |
723 | #ifndef YY_INPUT | |
724 | #define YY_INPUT(buf,result,max_size) \ | |
725 | if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ | |
726 | { \ | |
727 | int c = '*'; \ | |
728 | size_t n; \ | |
729 | for ( n = 0; n < max_size && \ | |
730 | (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ | |
731 | buf[n] = (char) c; \ | |
732 | if ( c == '\n' ) \ | |
733 | buf[n++] = (char) c; \ | |
734 | if ( c == EOF && ferror( yyin ) ) \ | |
735 | YY_FATAL_ERROR( "input in flex scanner failed" ); \ | |
736 | result = n; \ | |
737 | } \ | |
738 | else \ | |
739 | { \ | |
740 | errno=0; \ | |
741 | while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ | |
742 | { \ | |
743 | if( errno != EINTR) \ | |
744 | { \ | |
745 | YY_FATAL_ERROR( "input in flex scanner failed" ); \ | |
746 | break; \ | |
747 | } \ | |
748 | errno=0; \ | |
749 | clearerr(yyin); \ | |
750 | } \ | |
751 | }\ | |
752 | \ | |
753 | | |
754 | #endif | |
755 | | |
756 | /* No semi-colon after return; correct usage is to write "yyterminate();" - | |
757 | * we don't want an extra ';' after the "return" because that will cause | |
758 | * some compilers to complain about unreachable statements. | |
759 | */ | |
760 | #ifndef yyterminate | |
761 | #define yyterminate() return YY_NULL | |
762 | #endif | |
763 | | |
764 | /* Number of entries by which start-condition stack grows. */ | |
765 | #ifndef YY_START_STACK_INCR | |
766 | #define YY_START_STACK_INCR 25 | |
767 | #endif | |
768 | | |
769 | /* Report a fatal error. */ | |
770 | #ifndef YY_FATAL_ERROR | |
771 | #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) | |
772 | #endif | |
773 | | |
774 | /* end tables serialization structures and prototypes */ | |
775 | | |
776 | /* Default declaration of generated scanner - a define so the user can | |
777 | * easily add parameters. | |
778 | */ | |
779 | #ifndef YY_DECL | |
780 | #define YY_DECL_IS_OURS 1 | |
781 | | |
782 | extern int yylex (void); | |
783 | | |
784 | #define YY_DECL int yylex (void) | |
785 | #endif /* !YY_DECL */ | |
786 | | |
787 | /* Code executed at the beginning of each rule, after yytext and yyleng | |
788 | * have been set up. | |
789 | */ | |
790 | #ifndef YY_USER_ACTION | |
791 | #define YY_USER_ACTION | |
792 | #endif | |
793 | | |
794 | /* Code executed at the end of each rule. */ | |
795 | #ifndef YY_BREAK | |
796 | #define YY_BREAK break; | |
797 | #endif | |
798 | | |
799 | #define YY_RULE_SETUP \ | |
800 | YY_USER_ACTION | |
801 | | |
802 | /** The main scanner function which does all the work. | |
803 | */ | |
804 | YY_DECL | |
805 | { | |
806 | register yy_state_type yy_current_state; | |
807 | register char *yy_cp, *yy_bp; | |
808 | register int yy_act; | |
809 | | |
810 | #line 1 "conftest.l" | |
811 | | |
812 | #line 666 "lex.yy.c" | |
813 | | |
814 | if ( !(yy_init) ) | |
815 | { | |
816 | (yy_init) = 1; | |
817 | | |
818 | #ifdef YY_USER_INIT | |
819 | YY_USER_INIT; | |
820 | #endif | |
821 | | |
822 | /* Create the reject buffer large enough to save one state per allowed character. */ | |
823 | if ( ! (yy_state_buf) ) | |
824 | (yy_state_buf) = (yy_state_type *)yyalloc(YY_STATE_BUF_SIZE ); | |
825 | if ( ! (yy_state_buf) ) | |
826 | YY_FATAL_ERROR( "out of dynamic memory in yylex()" ); | |
827 | | |
828 | if ( ! (yy_start) ) | |
829 | (yy_start) = 1; /* first start state */ | |
830 | | |
831 | if ( ! yyin ) | |
832 | yyin = stdin; | |
833 | | |
834 | if ( ! yyout ) | |
835 | yyout = stdout; | |
836 | | |
837 | if ( ! YY_CURRENT_BUFFER ) { | |
838 | yyensure_buffer_stack (); | |
839 | YY_CURRENT_BUFFER_LVALUE = | |
840 | yy_create_buffer(yyin,YY_BUF_SIZE ); | |
841 | } | |
842 | | |
843 | yy_load_buffer_state( ); | |
844 | } | |
845 | | |
846 | while ( 1 ) /* loops until end-of-file is reached */ | |
847 | { | |
848 | (yy_more_len) = 0; | |
849 | if ( (yy_more_flag) ) | |
850 | { | |
851 | (yy_more_len) = (yy_c_buf_p) - (yytext_ptr); | |
852 | (yy_more_flag) = 0; | |
853 | } | |
854 | yy_cp = (yy_c_buf_p); | |
855 | | |
856 | /* Support of yytext. */ | |
857 | *yy_cp = (yy_hold_char); | |
858 | | |
859 | /* yy_bp points to the position in yy_ch_buf of the start of | |
860 | * the current run. | |
861 | */ | |
862 | yy_bp = yy_cp; | |
863 | | |
864 | yy_current_state = (yy_start); | |
865 | | |
866 | (yy_state_ptr) = (yy_state_buf); | |
867 | *(yy_state_ptr)++ = yy_current_state; | |
868 | | |
869 | yy_match: | |
870 | do | |
871 | { | |
872 | register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; | |
873 | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) | |
874 | { | |
875 | yy_current_state = (int) yy_def[yy_current_state]; | |
876 | if ( yy_current_state >= 13 ) | |
877 | yy_c = yy_meta[(unsigned int) yy_c]; | |
878 | } | |
879 | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; | |
880 | *(yy_state_ptr)++ = yy_current_state; | |
881 | ++yy_cp; | |
882 | } | |
883 | while ( yy_base[yy_current_state] != 10 ); | |
884 | | |
885 | yy_find_action: | |
886 | yy_current_state = *--(yy_state_ptr); | |
887 | (yy_lp) = yy_accept[yy_current_state]; | |
888 | find_rule: /* we branch to this label when backing up */ | |
889 | for ( ; ; ) /* until we find what rule we matched */ | |
890 | { | |
891 | if ( (yy_lp) && (yy_lp) < yy_accept[yy_current_state + 1] ) | |
892 | { | |
893 | yy_act = yy_acclist[(yy_lp)]; | |
894 | { | |
895 | (yy_full_match) = yy_cp; | |
896 | break; | |
897 | } | |
898 | } | |
899 | --yy_cp; | |
900 | yy_current_state = *--(yy_state_ptr); | |
901 | (yy_lp) = yy_accept[yy_current_state]; | |
902 | } | |
903 | | |
904 | YY_DO_BEFORE_ACTION; | |
905 | | |
906 | do_action: /* This label is used only to access EOF actions. */ | |
907 | | |
908 | switch ( yy_act ) | |
909 | { /* beginning of action switch */ | |
910 | case 1: | |
911 | YY_RULE_SETUP | |
912 | #line 2 "conftest.l" | |
913 | { ECHO; } | |
914 | YY_BREAK | |
915 | case 2: | |
916 | YY_RULE_SETUP | |
917 | #line 3 "conftest.l" | |
918 | { REJECT; } | |
919 | YY_BREAK | |
920 | case 3: | |
921 | YY_RULE_SETUP | |
922 | #line 4 "conftest.l" | |
923 | { yymore (); } | |
924 | YY_BREAK | |
925 | case 4: | |
926 | YY_RULE_SETUP | |
927 | #line 5 "conftest.l" | |
928 | { yyless (1); } | |
929 | YY_BREAK | |
930 | case 5: | |
931 | YY_RULE_SETUP | |
932 | #line 6 "conftest.l" | |
933 | { yyless (input () != 0); } | |
934 | YY_BREAK | |
935 | case 6: | |
936 | YY_RULE_SETUP | |
937 | #line 7 "conftest.l" | |
938 | { unput (yytext[0]); } | |
939 | YY_BREAK | |
940 | case 7: | |
941 | YY_RULE_SETUP | |
942 | #line 8 "conftest.l" | |
943 | { BEGIN INITIAL; } | |
944 | YY_BREAK | |
945 | case 8: | |
946 | YY_RULE_SETUP | |
947 | #line 9 "conftest.l" | |
948 | ECHO; | |
949 | YY_BREAK | |
950 | #line 804 "lex.yy.c" | |
951 | case YY_STATE_EOF(INITIAL): | |
952 | yyterminate(); | |
953 | | |
954 | case YY_END_OF_BUFFER: | |
955 | { | |
956 | /* Amount of text matched not including the EOB char. */ | |
957 | int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1; | |
958 | | |
959 | /* Undo the effects of YY_DO_BEFORE_ACTION. */ | |
960 | *yy_cp = (yy_hold_char); | |
961 | YY_RESTORE_YY_MORE_OFFSET | |
962 | | |
963 | if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) | |
964 | { | |
965 | /* We're scanning a new file or input source. It's | |
966 | * possible that this happened because the user | |
967 | * just pointed yyin at a new source and called | |
968 | * yylex(). If so, then we have to assure | |
969 | * consistency between YY_CURRENT_BUFFER and our | |
970 | * globals. Here is the right place to do so, because | |
971 | * this is the first action (other than possibly a | |
972 | * back-up) that will match for the new input source. | |
973 | */ | |
974 | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; | |
975 | YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; | |
976 | YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; | |
977 | } | |
978 | | |
979 | /* Note that here we test for yy_c_buf_p "<=" to the position | |
980 | * of the first EOB in the buffer, since yy_c_buf_p will | |
981 | * already have been incremented past the NUL character | |
982 | * (since all states make transitions on EOB to the | |
983 | * end-of-buffer state). Contrast this with the test | |
984 | * in input(). | |
985 | */ | |
986 | if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) | |
987 | { /* This was really a NUL. */ | |
988 | yy_state_type yy_next_state; | |
989 | | |
990 | (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; | |
991 | | |
992 | yy_current_state = yy_get_previous_state( ); | |
993 | | |
994 | /* Okay, we're now positioned to make the NUL | |
995 | * transition. We couldn't have | |
996 | * yy_get_previous_state() go ahead and do it | |
997 | * for us because it doesn't know how to deal | |
998 | * with the possibility of jamming (and we don't | |
999 | * want to build jamming into it because then it | |
1000 | * will run more slowly). | |
1001 | */ | |
1002 | | |
1003 | yy_next_state = yy_try_NUL_trans( yy_current_state ); | |
1004 | | |
1005 | yy_bp = (yytext_ptr) + YY_MORE_ADJ; | |
1006 | | |
1007 | if ( yy_next_state ) | |
1008 | { | |
1009 | /* Consume the NUL. */ | |
1010 | yy_cp = ++(yy_c_buf_p); | |
1011 | yy_current_state = yy_next_state; | |
1012 | goto yy_match; | |
1013 | } | |
1014 | | |
1015 | else | |
1016 | { | |
1017 | yy_cp = (yy_c_buf_p); | |
1018 | goto yy_find_action; | |
1019 | } | |
1020 | } | |
1021 | | |
1022 | else switch ( yy_get_next_buffer( ) ) | |
1023 | { | |
1024 | case EOB_ACT_END_OF_FILE: | |
1025 | { | |
1026 | (yy_did_buffer_switch_on_eof) = 0; | |
1027 | | |
1028 | if ( yywrap( ) ) | |
1029 | { | |
1030 | /* Note: because we've taken care in | |
1031 | * yy_get_next_buffer() to have set up | |
1032 | * yytext, we can now set up | |
1033 | * yy_c_buf_p so that if some total | |
1034 | * hoser (like flex itself) wants to | |
1035 | * call the scanner after we return the | |
1036 | * YY_NULL, it'll still work - another | |
1037 | * YY_NULL will get returned. | |
1038 | */ | |
1039 | (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; | |
1040 | | |
1041 | yy_act = YY_STATE_EOF(YY_START); | |
1042 | goto do_action; | |
1043 | } | |
1044 | | |
1045 | else | |
1046 | { | |
1047 | if ( ! (yy_did_buffer_switch_on_eof) ) | |
1048 | YY_NEW_FILE; | |
1049 | } | |
1050 | break; | |
1051 | } | |
1052 | | |
1053 | case EOB_ACT_CONTINUE_SCAN: | |
1054 | (yy_c_buf_p) = | |
1055 | (yytext_ptr) + yy_amount_of_matched_text; | |
1056 | | |
1057 | yy_current_state = yy_get_previous_state( ); | |
1058 | | |
1059 | yy_cp = (yy_c_buf_p); | |
1060 | yy_bp = (yytext_ptr) + YY_MORE_ADJ; | |
1061 | goto yy_match; | |
1062 | | |
1063 | case EOB_ACT_LAST_MATCH: | |
1064 | (yy_c_buf_p) = | |
1065 | &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; | |
1066 | | |
1067 | yy_current_state = yy_get_previous_state( ); | |
1068 | | |
1069 | yy_cp = (yy_c_buf_p); | |
1070 | yy_bp = (yytext_ptr) + YY_MORE_ADJ; | |
1071 | goto yy_find_action; | |
1072 | } | |
1073 | break; | |
1074 | } | |
1075 | | |
1076 | default: | |
1077 | YY_FATAL_ERROR( | |
1078 | "fatal flex scanner internal error--no action found" ); | |
1079 | } /* end of action switch */ | |
1080 | } /* end of scanning one token */ | |
1081 | } /* end of yylex */ | |
1082 | | |
1083 | /* yy_get_next_buffer - try to read in a new buffer | |
1084 | * | |
1085 | * Returns a code representing an action: | |
1086 | * EOB_ACT_LAST_MATCH - | |
1087 | * EOB_ACT_CONTINUE_SCAN - continue scanning from current position | |
1088 | * EOB_ACT_END_OF_FILE - end of file | |
1089 | */ | |
1090 | static int yy_get_next_buffer (void) | |
1091 | { | |
1092 | register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; | |
1093 | register char *source = (yytext_ptr); | |
1094 | register int number_to_move, i; | |
1095 | int ret_val; | |
1096 | | |
1097 | if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) | |
1098 | YY_FATAL_ERROR( | |
1099 | "fatal flex scanner internal error--end of buffer missed" ); | |
1100 | | |
1101 | if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) | |
1102 | { /* Don't try to fill the buffer, so this is an EOF. */ | |
1103 | if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 ) | |
1104 | { | |
1105 | /* We matched a single character, the EOB, so | |
1106 | * treat this as a final EOF. | |
1107 | */ | |
1108 | return EOB_ACT_END_OF_FILE; | |
1109 | } | |
1110 | | |
1111 | else | |
1112 | { | |
1113 | /* We matched some text prior to the EOB, first | |
1114 | * process it. | |
1115 | */ | |
1116 | return EOB_ACT_LAST_MATCH; | |
1117 | } | |
1118 | } | |
1119 | | |
1120 | /* Try to read more data. */ | |
1121 | | |
1122 | /* First move last chars to start of buffer. */ | |
1123 | number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1; | |
1124 | | |
1125 | for ( i = 0; i < number_to_move; ++i ) | |
1126 | *(dest++) = *(source++); | |
1127 | | |
1128 | if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) | |
1129 | /* don't do the read, it's not guaranteed to return an EOF, | |
1130 | * just force an EOF | |
1131 | */ | |
1132 | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0; | |
1133 | | |
1134 | else | |
1135 | { | |
1136 | int num_to_read = | |
1137 | YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; | |
1138 | | |
1139 | while ( num_to_read <= 0 ) | |
1140 | { /* Not enough room in the buffer - grow it. */ | |
1141 | | |
1142 | YY_FATAL_ERROR( | |
1143 | "input buffer overflow, can't enlarge buffer because scanner uses REJECT" ); | |
1144 | | |
1145 | } | |
1146 | | |
1147 | if ( num_to_read > YY_READ_BUF_SIZE ) | |
1148 | num_to_read = YY_READ_BUF_SIZE; | |
1149 | | |
1150 | /* Read in more data. */ | |
1151 | YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), | |
1152 | (yy_n_chars), (size_t) num_to_read ); | |
1153 | | |
1154 | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); | |
1155 | } | |
1156 | | |
1157 | if ( (yy_n_chars) == 0 ) | |
1158 | { | |
1159 | if ( number_to_move == YY_MORE_ADJ ) | |
1160 | { | |
1161 | ret_val = EOB_ACT_END_OF_FILE; | |
1162 | yyrestart(yyin ); | |
1163 | } | |
1164 | | |
1165 | else | |
1166 | { | |
1167 | ret_val = EOB_ACT_LAST_MATCH; | |
1168 | YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = | |
1169 | YY_BUFFER_EOF_PENDING; | |
1170 | } | |
1171 | } | |
1172 | | |
1173 | else | |
1174 | ret_val = EOB_ACT_CONTINUE_SCAN; | |
1175 | | |
1176 | if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { | |
1177 | /* Extend the array by 50%, plus the number we really need. */ | |
1178 | yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); | |
1179 | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ); | |
1180 | if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) | |
1181 | YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); | |
1182 | } | |
1183 | | |
1184 | (yy_n_chars) += number_to_move; | |
1185 | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; | |
1186 | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; | |
1187 | | |
1188 | (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; | |
1189 | | |
1190 | return ret_val; | |
1191 | } | |
1192 | | |
1193 | /* yy_get_previous_state - get the state just before the EOB char was reached */ | |
1194 | | |
1195 | static yy_state_type yy_get_previous_state (void) | |
1196 | { | |
1197 | register yy_state_type yy_current_state; | |
1198 | register char *yy_cp; | |
1199 | | |
1200 | yy_current_state = (yy_start); | |
1201 | | |
1202 | (yy_state_ptr) = (yy_state_buf); | |
1203 | *(yy_state_ptr)++ = yy_current_state; | |
1204 | | |
1205 | for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) | |
1206 | { | |
1207 | register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); | |
1208 | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) | |
1209 | { | |
1210 | yy_current_state = (int) yy_def[yy_current_state]; | |
1211 | if ( yy_current_state >= 13 ) | |
1212 | yy_c = yy_meta[(unsigned int) yy_c]; | |
1213 | } | |
1214 | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; | |
1215 | *(yy_state_ptr)++ = yy_current_state; | |
1216 | } | |
1217 | | |
1218 | return yy_current_state; | |
1219 | } | |
1220 | | |
1221 | /* yy_try_NUL_trans - try to make a transition on the NUL character | |
1222 | * | |
1223 | * synopsis | |
1224 | * next_state = yy_try_NUL_trans( current_state ); | |
1225 | */ | |
1226 | static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) | |
1227 | { | |
1228 | register int yy_is_jam; | |
1229 | | |
1230 | register YY_CHAR yy_c = 1; | |
1231 | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) | |
1232 | { | |
1233 | yy_current_state = (int) yy_def[yy_current_state]; | |
1234 | if ( yy_current_state >= 13 ) | |
1235 | yy_c = yy_meta[(unsigned int) yy_c]; | |
1236 | } | |
1237 | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; | |
1238 | yy_is_jam = (yy_current_state == 12); | |
1239 | if ( ! yy_is_jam ) | |
1240 | *(yy_state_ptr)++ = yy_current_state; | |
1241 | | |
1242 | return yy_is_jam ? 0 : yy_current_state; | |
1243 | } | |
1244 | | |
1245 | static void yyunput (int c, register char * yy_bp ) | |
1246 | { | |
1247 | register char *yy_cp; | |
1248 | | |
1249 | yy_cp = (yy_c_buf_p); | |
1250 | | |
1251 | /* undo effects of setting up yytext */ | |
1252 | *yy_cp = (yy_hold_char); | |
1253 | | |
1254 | if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) | |
1255 | { /* need to shift things up to make room */ | |
1256 | /* +2 for EOB chars. */ | |
1257 | register int number_to_move = (yy_n_chars) + 2; | |
1258 | register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ | |
1259 | YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; | |
1260 | register char *source = | |
1261 | &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]; | |
1262 | | |
1263 | while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) | |
1264 | *--dest = *--source; | |
1265 | | |
1266 | yy_cp += (int) (dest - source); | |
1267 | yy_bp += (int) (dest - source); | |
1268 | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = | |
1269 | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size; | |
1270 | | |
1271 | if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) | |
1272 | YY_FATAL_ERROR( "flex scanner push-back overflow" ); | |
1273 | } | |
1274 | | |
1275 | *--yy_cp = (char) c; | |
1276 | | |
1277 | (yytext_ptr) = yy_bp; | |
1278 | (yy_hold_char) = *yy_cp; | |
1279 | (yy_c_buf_p) = yy_cp; | |
1280 | } | |
1281 | | |
1282 | #ifndef YY_NO_INPUT | |
1283 | #ifdef __cplusplus | |
1284 | static int yyinput (void) | |
1285 | #else | |
1286 | static int input (void) | |
1287 | #endif | |
1288 | | |
1289 | { | |
1290 | int c; | |
1291 | | |
1292 | *(yy_c_buf_p) = (yy_hold_char); | |
1293 | | |
1294 | if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) | |
1295 | { | |
1296 | /* yy_c_buf_p now points to the character we want to return. | |
1297 | * If this occurs *before* the EOB characters, then it's a | |
1298 | * valid NUL; if not, then we've hit the end of the buffer. | |
1299 | */ | |
1300 | if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) | |
1301 | /* This was really a NUL. */ | |
1302 | *(yy_c_buf_p) = '\0'; | |
1303 | | |
1304 | else | |
1305 | { /* need more input */ | |
1306 | int offset = (yy_c_buf_p) - (yytext_ptr); | |
1307 | ++(yy_c_buf_p); | |
1308 | | |
1309 | switch ( yy_get_next_buffer( ) ) | |
1310 | { | |
1311 | case EOB_ACT_LAST_MATCH: | |
1312 | /* This happens because yy_g_n_b() | |
1313 | * sees that we've accumulated a | |
1314 | * token and flags that we need to | |
1315 | * try matching the token before | |
1316 | * proceeding. But for input(), | |
1317 | * there's no matching to consider. | |
1318 | * So convert the EOB_ACT_LAST_MATCH | |
1319 | * to EOB_ACT_END_OF_FILE. | |
1320 | */ | |
1321 | | |
1322 | /* Reset buffer status. */ | |
1323 | yyrestart(yyin ); | |
1324 | | |
1325 | /*FALLTHROUGH*/ | |
1326 | | |
1327 | case EOB_ACT_END_OF_FILE: | |
1328 | { | |
1329 | if ( yywrap( ) ) | |
1330 | return EOF; | |
1331 | | |
1332 | if ( ! (yy_did_buffer_switch_on_eof) ) | |
1333 | YY_NEW_FILE; | |
1334 | #ifdef __cplusplus | |
1335 | return yyinput(); | |
1336 | #else | |
1337 | return input(); | |
1338 | #endif | |
1339 | } | |
1340 | | |
1341 | case EOB_ACT_CONTINUE_SCAN: | |
1342 | (yy_c_buf_p) = (yytext_ptr) + offset; | |
1343 | break; | |
1344 | } | |
1345 | } | |
1346 | } | |
1347 | | |
1348 | c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ | |
1349 | *(yy_c_buf_p) = '\0'; /* preserve yytext */ | |
1350 | (yy_hold_char) = *++(yy_c_buf_p); | |
1351 | | |
1352 | return c; | |
1353 | } | |
1354 | #endif /* ifndef YY_NO_INPUT */ | |
1355 | | |
1356 | /** Immediately switch to a different input stream. | |
1357 | * @param input_file A readable stream. | |
1358 | * | |
1359 | * @note This function does not reset the start condition to @c INITIAL . | |
1360 | */ | |
1361 | void yyrestart (FILE * input_file ) | |
1362 | { | |
1363 | | |
1364 | if ( ! YY_CURRENT_BUFFER ){ | |
1365 | yyensure_buffer_stack (); | |
1366 | YY_CURRENT_BUFFER_LVALUE = | |
1367 | yy_create_buffer(yyin,YY_BUF_SIZE ); | |
1368 | } | |
1369 | | |
1370 | yy_init_buffer(YY_CURRENT_BUFFER,input_file ); | |
1371 | yy_load_buffer_state( ); | |
1372 | } | |
1373 | | |
1374 | /** Switch to a different input buffer. | |
1375 | * @param new_buffer The new input buffer. | |
1376 | * | |
1377 | */ | |
1378 | void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ) | |
1379 | { | |
1380 | | |
1381 | /* TODO. We should be able to replace this entire function body | |
1382 | * with | |
1383 | * yypop_buffer_state(); | |
1384 | * yypush_buffer_state(new_buffer); | |
1385 | */ | |
1386 | yyensure_buffer_stack (); | |
1387 | if ( YY_CURRENT_BUFFER == new_buffer ) | |
1388 | return; | |
1389 | | |
1390 | if ( YY_CURRENT_BUFFER ) | |
1391 | { | |
1392 | /* Flush out information for old buffer. */ | |
1393 | *(yy_c_buf_p) = (yy_hold_char); | |
1394 | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); | |
1395 | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); | |
1396 | } | |
1397 | | |
1398 | YY_CURRENT_BUFFER_LVALUE = new_buffer; | |
1399 | yy_load_buffer_state( ); | |
1400 | | |
1401 | /* We don't actually know whether we did this switch during | |
1402 | * EOF (yywrap()) processing, but the only time this flag | |
1403 | * is looked at is after yywrap() is called, so it's safe | |
1404 | * to go ahead and always set it. | |
1405 | */ | |
1406 | (yy_did_buffer_switch_on_eof) = 1; | |
1407 | } | |
1408 | | |
1409 | static void yy_load_buffer_state (void) | |
1410 | { | |
1411 | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; | |
1412 | (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; | |
1413 | yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; | |
1414 | (yy_hold_char) = *(yy_c_buf_p); | |
1415 | } | |
1416 | | |
1417 | /** Allocate and initialize an input buffer state. | |
1418 | * @param file A readable stream. | |
1419 | * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. | |
1420 | * | |
1421 | * @return the allocated buffer state. | |
1422 | */ | |
1423 | YY_BUFFER_STATE yy_create_buffer (FILE * file, int size ) | |
1424 | { | |
1425 | YY_BUFFER_STATE b; | |
1426 | | |
1427 | b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); | |
1428 | if ( ! b ) | |
1429 | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); | |
1430 | | |
1431 | b->yy_buf_size = size; | |
1432 | | |
1433 | /* yy_ch_buf has to be 2 characters longer than the size given because | |
1434 | * we need to put in 2 end-of-buffer characters. | |
1435 | */ | |
1436 | b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 ); | |
1437 | if ( ! b->yy_ch_buf ) | |
1438 | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); | |
1439 | | |
1440 | b->yy_is_our_buffer = 1; | |
1441 | | |
1442 | yy_init_buffer(b,file ); | |
1443 | | |
1444 | return b; | |
1445 | } | |
1446 | | |
1447 | /** Destroy the buffer. | |
1448 | * @param b a buffer created with yy_create_buffer() | |
1449 | * | |
1450 | */ | |
1451 | void yy_delete_buffer (YY_BUFFER_STATE b ) | |
1452 | { | |
1453 | | |
1454 | if ( ! b ) | |
1455 | return; | |
1456 | | |
1457 | if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ | |
1458 | YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; | |
1459 | | |
1460 | if ( b->yy_is_our_buffer ) | |
1461 | yyfree((void *) b->yy_ch_buf ); | |
1462 | | |
1463 | yyfree((void *) b ); | |
1464 | } | |
1465 | | |
1466 | #ifndef __cplusplus | |
1467 | extern int isatty (int ); | |
1468 | #endif /* __cplusplus */ | |
1469 | | |
1470 | /* Initializes or reinitializes a buffer. | |
1471 | * This function is sometimes called more than once on the same buffer, | |
1472 | * such as during a yyrestart() or at EOF. | |
1473 | */ | |
1474 | static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file ) | |
1475 | | |
1476 | { | |
1477 | int oerrno = errno; | |
1478 | | |
1479 | yy_flush_buffer(b ); | |
1480 | | |
1481 | b->yy_input_file = file; | |
1482 | b->yy_fill_buffer = 1; | |
1483 | | |
1484 | /* If b is the current buffer, then yy_init_buffer was _probably_ | |
1485 | * called from yyrestart() or through yy_get_next_buffer. | |
1486 | * In that case, we don't want to reset the lineno or column. | |
1487 | */ | |
1488 | if (b != YY_CURRENT_BUFFER){ | |
1489 | b->yy_bs_lineno = 1; | |
1490 | b->yy_bs_column = 0; | |
1491 | } | |
1492 | | |
1493 | b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; | |
1494 | | |
1495 | errno = oerrno; | |
1496 | } | |
1497 | | |
1498 | /** Discard all buffered characters. On the next scan, YY_INPUT will be called. | |
1499 | * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. | |
1500 | * | |
1501 | */ | |
1502 | void yy_flush_buffer (YY_BUFFER_STATE b ) | |
1503 | { | |
1504 | if ( ! b ) | |
1505 | return; | |
1506 | | |
1507 | b->yy_n_chars = 0; | |
1508 | | |
1509 | /* We always need two end-of-buffer characters. The first causes | |
1510 | * a transition to the end-of-buffer state. The second causes | |
1511 | * a jam in that state. | |
1512 | */ | |
1513 | b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; | |
1514 | b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; | |
1515 | | |
1516 | b->yy_buf_pos = &b->yy_ch_buf[0]; | |
1517 | | |
1518 | b->yy_at_bol = 1; | |
1519 | b->yy_buffer_status = YY_BUFFER_NEW; | |
1520 | | |
1521 | if ( b == YY_CURRENT_BUFFER ) | |
1522 | yy_load_buffer_state( ); | |
1523 | } | |
1524 | | |
1525 | /** Pushes the new state onto the stack. The new state becomes | |
1526 | * the current state. This function will allocate the stack | |
1527 | * if necessary. | |
1528 | * @param new_buffer The new state. | |
1529 | * | |
1530 | */ | |
1531 | void yypush_buffer_state (YY_BUFFER_STATE new_buffer ) | |
1532 | { | |
1533 | if (new_buffer == NULL) | |
1534 | return; | |
1535 | | |
1536 | yyensure_buffer_stack(); | |
1537 | | |
1538 | /* This block is copied from yy_switch_to_buffer. */ | |
1539 | if ( YY_CURRENT_BUFFER ) | |
1540 | { | |
1541 | /* Flush out information for old buffer. */ | |
1542 | *(yy_c_buf_p) = (yy_hold_char); | |
1543 | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); | |
1544 | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); | |
1545 | } | |
1546 | | |
1547 | /* Only push if top exists. Otherwise, replace top. */ | |
1548 | if (YY_CURRENT_BUFFER) | |
1549 | (yy_buffer_stack_top)++; | |
1550 | YY_CURRENT_BUFFER_LVALUE = new_buffer; | |
1551 | | |
1552 | /* copied from yy_switch_to_buffer. */ | |
1553 | yy_load_buffer_state( ); | |
1554 | (yy_did_buffer_switch_on_eof) = 1; | |
1555 | } | |
1556 | | |
1557 | /** Removes and deletes the top of the stack, if present. | |
1558 | * The next element becomes the new top. | |
1559 | * | |
1560 | */ | |
1561 | void yypop_buffer_state (void) | |
1562 | { | |
1563 | if (!YY_CURRENT_BUFFER) | |
1564 | return; | |
1565 | | |
1566 | yy_delete_buffer(YY_CURRENT_BUFFER ); | |
1567 | YY_CURRENT_BUFFER_LVALUE = NULL; | |
1568 | if ((yy_buffer_stack_top) > 0) | |
1569 | --(yy_buffer_stack_top); | |
1570 | | |
1571 | if (YY_CURRENT_BUFFER) { | |
1572 | yy_load_buffer_state( ); | |
1573 | (yy_did_buffer_switch_on_eof) = 1; | |
1574 | } | |
1575 | } | |
1576 | | |
1577 | /* Allocates the stack if it does not exist. | |
1578 | * Guarantees space for at least one push. | |
1579 | */ | |
1580 | static void yyensure_buffer_stack (void) | |
1581 | { | |
1582 | int num_to_alloc; | |
1583 | | |
1584 | if (!(yy_buffer_stack)) { | |
1585 | | |
1586 | /* First allocation is just for 2 elements, since we don't know if this | |
1587 | * scanner will even need a stack. We use 2 instead of 1 to avoid an | |
1588 | * immediate realloc on the next call. | |
1589 | */ | |
1590 | num_to_alloc = 1; | |
1591 | (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc | |
1592 | (num_to_alloc * sizeof(struct yy_buffer_state*) | |
1593 | ); | |
1594 | if ( ! (yy_buffer_stack) ) | |
1595 | YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); | |
1596 | | |
1597 | memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); | |
1598 | | |
1599 | (yy_buffer_stack_max) = num_to_alloc; | |
1600 | (yy_buffer_stack_top) = 0; | |
1601 | return; | |
1602 | } | |
1603 | | |
1604 | if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ | |
1605 | | |
1606 | /* Increase the buffer to prepare for a possible push. */ | |
1607 | int grow_size = 8 /* arbitrary grow size */; | |
1608 | | |
1609 | num_to_alloc = (yy_buffer_stack_max) + grow_size; | |
1610 | (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc | |
1611 | ((yy_buffer_stack), | |
1612 | num_to_alloc * sizeof(struct yy_buffer_state*) | |
1613 | ); | |
1614 | if ( ! (yy_buffer_stack) ) | |
1615 | YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); | |
1616 | | |
1617 | /* zero only the new slots.*/ | |
1618 | memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); | |
1619 | (yy_buffer_stack_max) = num_to_alloc; | |
1620 | } | |
1621 | } | |
1622 | | |
1623 | /** Setup the input buffer state to scan directly from a user-specified character buffer. | |
1624 | * @param base the character buffer | |
1625 | * @param size the size in bytes of the character buffer | |
1626 | * | |
1627 | * @return the newly allocated buffer state object. | |
1628 | */ | |
1629 | YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size ) | |
1630 | { | |
1631 | YY_BUFFER_STATE b; | |
1632 | | |
1633 | if ( size < 2 || | |
1634 | base[size-2] != YY_END_OF_BUFFER_CHAR || | |
1635 | base[size-1] != YY_END_OF_BUFFER_CHAR ) | |
1636 | /* They forgot to leave room for the EOB's. */ | |
1637 | return 0; | |
1638 | | |
1639 | b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); | |
1640 | if ( ! b ) | |
1641 | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); | |
1642 | | |
1643 | b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ | |
1644 | b->yy_buf_pos = b->yy_ch_buf = base; | |
1645 | b->yy_is_our_buffer = 0; | |
1646 | b->yy_input_file = 0; | |
1647 | b->yy_n_chars = b->yy_buf_size; | |
1648 | b->yy_is_interactive = 0; | |
1649 | b->yy_at_bol = 1; | |
1650 | b->yy_fill_buffer = 0; | |
1651 | b->yy_buffer_status = YY_BUFFER_NEW; | |
1652 | | |
1653 | yy_switch_to_buffer(b ); | |
1654 | | |
1655 | return b; | |
1656 | } | |
1657 | | |
1658 | /** Setup the input buffer state to scan a string. The next call to yylex() will | |
1659 | * scan from a @e copy of @a str. | |
1660 | * @param yystr a NUL-terminated string to scan | |
1661 | * | |
1662 | * @return the newly allocated buffer state object. | |
1663 | * @note If you want to scan bytes that may contain NUL values, then use | |
1664 | * yy_scan_bytes() instead. | |
1665 | */ | |
1666 | YY_BUFFER_STATE yy_scan_string (yyconst char * yystr ) | |
1667 | { | |
1668 | | |
1669 | return yy_scan_bytes(yystr,strlen(yystr) ); | |
1670 | } | |
1671 | | |
1672 | /** Setup the input buffer state to scan the given bytes. The next call to yylex() will | |
1673 | * scan from a @e copy of @a bytes. | |
1674 | * @param yybytes the byte buffer to scan | |
1675 | * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. | |
1676 | * | |
1677 | * @return the newly allocated buffer state object. | |
1678 | */ | |
1679 | YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len ) | |
1680 | { | |
1681 | YY_BUFFER_STATE b; | |
1682 | char *buf; | |
1683 | yy_size_t n; | |
1684 | int i; | |
1685 | | |
1686 | /* Get memory for full buffer, including space for trailing EOB's. */ | |
1687 | n = _yybytes_len + 2; | |
1688 | buf = (char *) yyalloc(n ); | |
1689 | if ( ! buf ) | |
1690 | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); | |
1691 | | |
1692 | for ( i = 0; i < _yybytes_len; ++i ) | |
1693 | buf[i] = yybytes[i]; | |
1694 | | |
1695 | buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; | |
1696 | | |
1697 | b = yy_scan_buffer(buf,n ); | |
1698 | if ( ! b ) | |
1699 | YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); | |
1700 | | |
1701 | /* It's okay to grow etc. this buffer, and we should throw it | |
1702 | * away when we're done. | |
1703 | */ | |
1704 | b->yy_is_our_buffer = 1; | |
1705 | | |
1706 | return b; | |
1707 | } | |
1708 | | |
1709 | #ifndef YY_EXIT_FAILURE | |
1710 | #define YY_EXIT_FAILURE 2 | |
1711 | #endif | |
1712 | | |
1713 | static void yy_fatal_error (yyconst char* msg ) | |
1714 | { | |
1715 | (void) fprintf( stderr, "%s\n", msg ); | |
1716 | exit( YY_EXIT_FAILURE ); | |
1717 | } | |
1718 | | |
1719 | /* Redefine yyless() so it works in section 3 code. */ | |
1720 | | |
1721 | #undef yyless | |
1722 | #define yyless(n) \ | |
1723 | do \ | |
1724 | { \ | |
1725 | /* Undo effects of setting up yytext. */ \ | |
1726 | int yyless_macro_arg = (n); \ | |
1727 | YY_LESS_LINENO(yyless_macro_arg);\ | |
1728 | yytext[yyleng] = (yy_hold_char); \ | |
1729 | (yy_c_buf_p) = yytext + yyless_macro_arg; \ | |
1730 | (yy_hold_char) = *(yy_c_buf_p); \ | |
1731 | *(yy_c_buf_p) = '\0'; \ | |
1732 | yyleng = yyless_macro_arg; \ | |
1733 | } \ | |
1734 | while ( 0 ) | |
1735 | | |
1736 | /* Accessor methods (get/set functions) to struct members. */ | |
1737 | | |
1738 | /** Get the current line number. | |
1739 | * | |
1740 | */ | |
1741 | int yyget_lineno (void) | |
1742 | { | |
1743 | | |
1744 | return yylineno; | |
1745 | } | |
1746 | | |
1747 | /** Get the input stream. | |
1748 | * | |
1749 | */ | |
1750 | FILE *yyget_in (void) | |
1751 | { | |
1752 | return yyin; | |
1753 | } | |
1754 | | |
1755 | /** Get the output stream. | |
1756 | * | |
1757 | */ | |
1758 | FILE *yyget_out (void) | |
1759 | { | |
1760 | return yyout; | |
1761 | } | |
1762 | | |
1763 | /** Get the length of the current token. | |
1764 | * | |
1765 | */ | |
1766 | int yyget_leng (void) | |
1767 | { | |
1768 | return yyleng; | |
1769 | } | |
1770 | | |
1771 | /** Get the current token. | |
1772 | * | |
1773 | */ | |
1774 | | |
1775 | char *yyget_text (void) | |
1776 | { | |
1777 | return yytext; | |
1778 | } | |
1779 | | |
1780 | /** Set the current line number. | |
1781 | * @param line_number | |
1782 | * | |
1783 | */ | |
1784 | void yyset_lineno (int line_number ) | |
1785 | { | |
1786 | | |
1787 | yylineno = line_number; | |
1788 | } | |
1789 | | |
1790 | /** Set the input stream. This does not discard the current | |
1791 | * input buffer. | |
1792 | * @param in_str A readable stream. | |
1793 | * | |
1794 | * @see yy_switch_to_buffer | |
1795 | */ | |
1796 | void yyset_in (FILE * in_str ) | |
1797 | { | |
1798 | yyin = in_str ; | |
1799 | } | |
1800 | | |
1801 | void yyset_out (FILE * out_str ) | |
1802 | { | |
1803 | yyout = out_str ; | |
1804 | } | |
1805 | | |
1806 | int yyget_debug (void) | |
1807 | { | |
1808 | return yy_flex_debug; | |
1809 | } | |
1810 | | |
1811 | void yyset_debug (int bdebug ) | |
1812 | { | |
1813 | yy_flex_debug = bdebug ; | |
1814 | } | |
1815 | | |
1816 | static int yy_init_globals (void) | |
1817 | { | |
1818 | /* Initialization is the same as for the non-reentrant scanner. | |
1819 | * This function is called from yylex_destroy(), so don't allocate here. | |
1820 | */ | |
1821 | | |
1822 | (yy_buffer_stack) = 0; | |
1823 | (yy_buffer_stack_top) = 0; | |
1824 | (yy_buffer_stack_max) = 0; | |
1825 | (yy_c_buf_p) = (char *) 0; | |
1826 | (yy_init) = 0; | |
1827 | (yy_start) = 0; | |
1828 | | |
1829 | (yy_state_buf) = 0; | |
1830 | (yy_state_ptr) = 0; | |
1831 | (yy_full_match) = 0; | |
1832 | (yy_lp) = 0; | |
1833 | | |
1834 | /* Defined in main.c */ | |
1835 | #ifdef YY_STDINIT | |
1836 | yyin = stdin; | |
1837 | yyout = stdout; | |
1838 | #else | |
1839 | yyin = (FILE *) 0; | |
1840 | yyout = (FILE *) 0; | |
1841 | #endif | |
1842 | | |
1843 | /* For future reference: Set errno on error, since we are called by | |
1844 | * yylex_init() | |
1845 | */ | |
1846 | return 0; | |
1847 | } | |
1848 | | |
1849 | /* yylex_destroy is for both reentrant and non-reentrant scanners. */ | |
1850 | int yylex_destroy (void) | |
1851 | { | |
1852 | | |
1853 | /* Pop the buffer stack, destroying each element. */ | |
1854 | while(YY_CURRENT_BUFFER){ | |
1855 | yy_delete_buffer(YY_CURRENT_BUFFER ); | |
1856 | YY_CURRENT_BUFFER_LVALUE = NULL; | |
1857 | yypop_buffer_state(); | |
1858 | } | |
1859 | | |
1860 | /* Destroy the stack itself. */ | |
1861 | yyfree((yy_buffer_stack) ); | |
1862 | (yy_buffer_stack) = NULL; | |
1863 | | |
1864 | yyfree ( (yy_state_buf) ); | |
1865 | (yy_state_buf) = NULL; | |
1866 | | |
1867 | /* Reset the globals. This is important in a non-reentrant scanner so the next time | |
1868 | * yylex() is called, initialization will occur. */ | |
1869 | yy_init_globals( ); | |
1870 | | |
1871 | return 0; | |
1872 | } | |
1873 | | |
1874 | /* | |
1875 | * Internal utility routines. | |
1876 | */ | |
1877 | | |
1878 | #ifndef yytext_ptr | |
1879 | static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) | |
1880 | { | |
1881 | register int i; | |
1882 | for ( i = 0; i < n; ++i ) | |
1883 | s1[i] = s2[i]; | |
1884 | } | |
1885 | #endif | |
1886 | | |
1887 | #ifdef YY_NEED_STRLEN | |
1888 | static int yy_flex_strlen (yyconst char * s ) | |
1889 | { | |
1890 | register int n; | |
1891 | for ( n = 0; s[n]; ++n ) | |
1892 | ; | |
1893 | | |
1894 | return n; | |
1895 | } | |
1896 | #endif | |
1897 | | |
1898 | void *yyalloc (yy_size_t size ) | |
1899 | { | |
1900 | return (void *) malloc( size ); | |
1901 | } | |
1902 | | |
1903 | void *yyrealloc (void * ptr, yy_size_t size ) | |
1904 | { | |
1905 | /* The cast to (char *) in the following accommodates both | |
1906 | * implementations that use char* generic pointers, and those | |
1907 | * that use void* generic pointers. It works with the latter | |
1908 | * because both ANSI C and C++ allow castless assignment from | |
1909 | * any pointer type to void*, and deal with argument conversions | |
1910 | * as though doing an assignment. | |
1911 | */ | |
1912 | return (void *) realloc( (char *) ptr, size ); | |
1913 | } | |
1914 | | |
1915 | void yyfree (void * ptr ) | |
1916 | { | |
1917 | free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ | |
1918 | } | |
1919 | | |
1920 | #define YYTABLES_NAME "yytables" | |
1921 | | |
1922 | #line 9 "conftest.l" | |
1923 | | |
1924 | | |
1925 | #ifdef YYTEXT_POINTER | |
1926 | extern char *yytext; | |
1927 | #endif | |
1928 | int | |
1929 | main (void) | |
1930 | { | |
1931 | return ! yylex () + ! yywrap (); | |
1932 | } | |
1933 configure:3560: gcc -o conftest -g -O2 conftest.c -lfl >&5 | |
1934 configure:3566: $? = 0 | |
1935 configure:3587: result: -lfl | |
1936 configure:3593: checking whether yytext is a pointer | |
1937 configure:3614: gcc -o conftest -g -O2 conftest.c -lfl >&5 | |
1938 configure:3620: $? = 0 | |
1939 configure:3639: result: yes | |
1940 configure:3697: checking for ranlib | |
1941 configure:3713: found /usr/bin/ranlib | |
1942 configure:3724: result: ranlib | |
1943 configure:3750: checking whether ln -s works | |
1944 configure:3754: result: yes | |
1945 configure:3804: checking for ar | |
1946 configure:3820: found /usr/bin/ar | |
1947 configure:3831: result: ar | |
1948 configure:3865: checking how to run the C preprocessor | |
1949 configure:3905: gcc -E conftest.c | |
1950 configure:3911: $? = 0 | |
1951 configure:3942: gcc -E conftest.c | |
1952 conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory | |
1953 compilation terminated. | |
1954 configure:3948: $? = 1 | |
1955 configure: failed program was: | |
1956 | /* confdefs.h. */ | |
1957 | #define PACKAGE_NAME "C-INTERCAL" | |
1958 | #define PACKAGE_TARNAME "ick" | |
1959 | #define PACKAGE_VERSION "0.29" | |
1960 | #define PACKAGE_STRING "C-INTERCAL 0.29" | |
1961 | #define PACKAGE_BUGREPORT "ais523(524\)x\((525)y)@bham.ac.uk" | |
1962 | #define PACKAGE "ick" | |
1963 | #define VERSION "0.29" | |
1964 | #define YYTEXT_POINTER 1 | |
1965 | /* end confdefs.h. */ | |
1966 | #include <ac_nonexistent.h> | |
1967 configure:3981: result: gcc -E | |
1968 configure:4010: gcc -E conftest.c | |
1969 configure:4016: $? = 0 | |
1970 configure:4047: gcc -E conftest.c | |
1971 conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory | |
1972 compilation terminated. | |
1973 configure:4053: $? = 1 | |
1974 configure: failed program was: | |
1975 | /* confdefs.h. */ | |
1976 | #define PACKAGE_NAME "C-INTERCAL" | |
1977 | #define PACKAGE_TARNAME "ick" | |
1978 | #define PACKAGE_VERSION "0.29" | |
1979 | #define PACKAGE_STRING "C-INTERCAL 0.29" | |
1980 | #define PACKAGE_BUGREPORT "ais523(524\)x\((525)y)@bham.ac.uk" | |
1981 | #define PACKAGE "ick" | |
1982 | #define VERSION "0.29" | |
1983 | #define YYTEXT_POINTER 1 | |
1984 | /* end confdefs.h. */ | |
1985 | #include <ac_nonexistent.h> | |
1986 configure:4091: checking for grep that handles long lines and -e | |
1987 configure:4165: result: /bin/grep | |
1988 configure:4170: checking for egrep | |
1989 configure:4248: result: /bin/grep -E | |
1990 configure:4253: checking for ANSI C header files | |
1991 configure:4283: gcc -c -g -O2 conftest.c >&5 | |
1992 configure:4289: $? = 0 | |
1993 configure:4388: gcc -o conftest -g -O2 conftest.c >&5 | |
1994 configure:4391: $? = 0 | |
1995 configure:4397: ./conftest | |
1996 configure:4400: $? = 0 | |
1997 configure:4417: result: yes | |
1998 configure:4441: checking for sys/types.h | |
1999 configure:4462: gcc -c -g -O2 conftest.c >&5 | |
2000 configure:4468: $? = 0 | |
2001 configure:4484: result: yes | |
2002 configure:4441: checking for sys/stat.h | |
2003 configure:4462: gcc -c -g -O2 conftest.c >&5 | |
2004 configure:4468: $? = 0 | |
2005 configure:4484: result: yes | |
2006 configure:4441: checking for stdlib.h | |
2007 configure:4462: gcc -c -g -O2 conftest.c >&5 | |
2008 configure:4468: $? = 0 | |
2009 configure:4484: result: yes | |
2010 configure:4441: checking for string.h | |
2011 configure:4462: gcc -c -g -O2 conftest.c >&5 | |
2012 configure:4468: $? = 0 | |
2013 configure:4484: result: yes | |
2014 configure:4441: checking for memory.h | |
2015 configure:4462: gcc -c -g -O2 conftest.c >&5 | |
2016 configure:4468: $? = 0 | |
2017 configure:4484: result: yes | |
2018 configure:4441: checking for strings.h | |
2019 configure:4462: gcc -c -g -O2 conftest.c >&5 | |
2020 configure:4468: $? = 0 | |
2021 configure:4484: result: yes | |
2022 configure:4441: checking for inttypes.h | |
2023 configure:4462: gcc -c -g -O2 conftest.c >&5 | |
2024 configure:4468: $? = 0 | |
2025 configure:4484: result: yes | |
2026 configure:4441: checking for stdint.h | |
2027 configure:4462: gcc -c -g -O2 conftest.c >&5 | |
2028 configure:4468: $? = 0 | |
2029 configure:4484: result: yes | |
2030 configure:4441: checking for unistd.h | |
2031 configure:4462: gcc -c -g -O2 conftest.c >&5 | |
2032 configure:4468: $? = 0 | |
2033 configure:4484: result: yes | |
2034 configure:4513: checking sys/time.h usability | |
2035 configure:4530: gcc -c -g -O2 conftest.c >&5 | |
2036 configure:4536: $? = 0 | |
2037 configure:4550: result: yes | |
2038 configure:4554: checking sys/time.h presence | |
2039 configure:4569: gcc -E conftest.c | |
2040 configure:4575: $? = 0 | |
2041 configure:4589: result: yes | |
2042 configure:4622: checking for sys/time.h | |
2043 configure:4630: result: yes | |
2044 configure:4503: checking for unistd.h | |
2045 configure:4509: result: yes | |
2046 configure:4513: checking stdarg.h usability | |
2047 configure:4530: gcc -c -g -O2 conftest.c >&5 | |
2048 configure:4536: $? = 0 | |
2049 configure:4550: result: yes | |
2050 configure:4554: checking stdarg.h presence | |
2051 configure:4569: gcc -E conftest.c | |
2052 configure:4575: $? = 0 | |
2053 configure:4589: result: yes | |
2054 configure:4622: checking for stdarg.h | |
2055 configure:4630: result: yes | |
2056 configure:4648: checking for stdint.h | |
2057 configure:4654: result: yes | |
2058 configure:4790: checking for an ANSI C-conforming const | |
2059 configure:4865: gcc -c -g -O2 conftest.c >&5 | |
2060 configure:4871: $? = 0 | |
2061 configure:4886: result: yes | |
2062 configure:4896: checking for working volatile | |
2063 configure:4925: gcc -c -g -O2 conftest.c >&5 | |
2064 configure:4931: $? = 0 | |
2065 configure:4946: result: yes | |
2066 configure:4956: checking for long long int | |
2067 configure:4986: gcc -c -g -O2 conftest.c >&5 | |
2068 configure:4992: $? = 0 | |
2069 configure:5007: result: yes | |
2070 configure:5014: checking size of long long int | |
2071 configure:5316: gcc -o conftest -g -O2 conftest.c >&5 | |
2072 configure:5319: $? = 0 | |
2073 configure:5325: ./conftest | |
2074 configure:5328: $? = 0 | |
2075 configure:5351: result: 8 | |
2076 configure:5361: checking for _Bool | |
2077 configure:5391: gcc -c -g -O2 conftest.c >&5 | |
2078 configure:5397: $? = 0 | |
2079 configure:5412: result: yes | |
2080 configure:5419: checking size of _Bool | |
2081 configure:5721: gcc -o conftest -g -O2 conftest.c >&5 | |
2082 configure:5724: $? = 0 | |
2083 configure:5730: ./conftest | |
2084 configure:5733: $? = 0 | |
2085 configure:5756: result: 1 | |
2086 configure:5766: checking for sig_atomic_t | |
2087 configure:5797: gcc -c -g -O2 conftest.c >&5 | |
2088 configure:5803: $? = 0 | |
2089 configure:5818: result: yes | |
2090 configure:5825: checking size of sig_atomic_t | |
2091 configure:6133: gcc -o conftest -g -O2 conftest.c >&5 | |
2092 configure:6136: $? = 0 | |
2093 configure:6142: ./conftest | |
2094 configure:6145: $? = 0 | |
2095 configure:6168: result: 4 | |
2096 configure:6178: checking whether time.h and sys/time.h may both be included | |
2097 configure:6208: gcc -c -g -O2 conftest.c >&5 | |
2098 configure:6214: $? = 0 | |
2099 configure:6229: result: yes | |
2100 configure:6241: checking whether #! works in shell scripts | |
2101 configure:6258: result: yes | |
2102 configure:6262: checking return type of signal handlers | |
2103 configure:6290: gcc -c -g -O2 conftest.c >&5 | |
2104 conftest.c: In function 'main': | |
2105 conftest.c:35:1: error: void value not ignored as it ought to be | |
2106 configure:6296: $? = 1 | |
2107 configure: failed program was: | |
2108 | /* confdefs.h. */ | |
2109 | #define PACKAGE_NAME "C-INTERCAL" | |
2110 | #define PACKAGE_TARNAME "ick" | |
2111 | #define PACKAGE_VERSION "0.29" | |
2112 | #define PACKAGE_STRING "C-INTERCAL 0.29" | |
2113 | #define PACKAGE_BUGREPORT "ais523(524\)x\((525)y)@bham.ac.uk" | |
2114 | #define PACKAGE "ick" | |
2115 | #define VERSION "0.29" | |
2116 | #define YYTEXT_POINTER 1 | |
2117 | #define STDC_HEADERS 1 | |
2118 | #define HAVE_SYS_TYPES_H 1 | |
2119 | #define HAVE_SYS_STAT_H 1 | |
2120 | #define HAVE_STDLIB_H 1 | |
2121 | #define HAVE_STRING_H 1 | |
2122 | #define HAVE_MEMORY_H 1 | |
2123 | #define HAVE_STRINGS_H 1 | |
2124 | #define HAVE_INTTYPES_H 1 | |
2125 | #define HAVE_STDINT_H 1 | |
2126 | #define HAVE_UNISTD_H 1 | |
2127 | #define HAVE_SYS_TIME_H 1 | |
2128 | #define HAVE_UNISTD_H 1 | |
2129 | #define HAVE_STDARG_H 1 | |
2130 | #define HAVE_STDINT_H 1 | |
2131 | #define SIZEOF_LONG_LONG_INT 8 | |
2132 | #define SIZEOF__BOOL 1 | |
2133 | #define SIZEOF_SIG_ATOMIC_T 4 | |
2134 | #define TIME_WITH_SYS_TIME 1 | |
2135 | /* end confdefs.h. */ | |
2136 | #include <sys/types.h> | |
2137 | #include <signal.h> | |
2138 | | |
2139 | int | |
2140 | main () | |
2141 | { | |
2142 | return *(signal (0, 0)) (0) == 1; | |
2143 | ; | |
2144 | return 0; | |
2145 | } | |
2146 configure:6311: result: void | |
2147 configure:6319: checking for size_t | |
2148 configure:6349: gcc -c -g -O2 conftest.c >&5 | |
2149 configure:6355: $? = 0 | |
2150 configure:6370: result: yes | |
2151 configure:6383: checking for uint16_t | |
2152 configure:6414: gcc -c -g -O2 conftest.c >&5 | |
2153 configure:6420: $? = 0 | |
2154 configure:6441: result: yes | |
2155 configure:6455: checking for uint32_t | |
2156 configure:6486: gcc -c -g -O2 conftest.c >&5 | |
2157 configure:6492: $? = 0 | |
2158 configure:6513: result: yes | |
2159 configure:6531: checking whether yyrestart() is needed | |
2160 configure:6559: gcc -c -g -O2 conftest.c >&5 | |
2161 In file included from conftest.c:30:0: | |
2162 <stdin>:4:7: error: conflicting types for 'yyrestart' | |
2163 In file included from conftest.c:30:0: | |
2164 lex.yy.c:1179:10: note: previous definition of 'yyrestart' was here | |
2165 configure:6565: $? = 1 | |
2166 configure: failed program was: | |
2167 | /* confdefs.h. */ | |
2168 | #define PACKAGE_NAME "C-INTERCAL" | |
2169 | #define PACKAGE_TARNAME "ick" | |
2170 | #define PACKAGE_VERSION "0.29" | |
2171 | #define PACKAGE_STRING "C-INTERCAL 0.29" | |
2172 | #define PACKAGE_BUGREPORT "ais523(524\)x\((525)y)@bham.ac.uk" | |
2173 | #define PACKAGE "ick" | |
2174 | #define VERSION "0.29" | |
2175 | #define YYTEXT_POINTER 1 | |
2176 | #define STDC_HEADERS 1 | |
2177 | #define HAVE_SYS_TYPES_H 1 | |
2178 | #define HAVE_SYS_STAT_H 1 | |
2179 | #define HAVE_STDLIB_H 1 | |
2180 | #define HAVE_STRING_H 1 | |
2181 | #define HAVE_MEMORY_H 1 | |
2182 | #define HAVE_STRINGS_H 1 | |
2183 | #define HAVE_INTTYPES_H 1 | |
2184 | #define HAVE_STDINT_H 1 | |
2185 | #define HAVE_UNISTD_H 1 | |
2186 | #define HAVE_SYS_TIME_H 1 | |
2187 | #define HAVE_UNISTD_H 1 | |
2188 | #define HAVE_STDARG_H 1 | |
2189 | #define HAVE_STDINT_H 1 | |
2190 | #define SIZEOF_LONG_LONG_INT 8 | |
2191 | #define SIZEOF__BOOL 1 | |
2192 | #define SIZEOF_SIG_ATOMIC_T 4 | |
2193 | #define TIME_WITH_SYS_TIME 1 | |
2194 | #define RETSIGTYPE void | |
2195 | /* end confdefs.h. */ | |
2196 | #include "lex.yy.c" | |
2197 | | |
2198 | int | |
2199 | main () | |
2200 | { | |
2201 | exit(0); | |
2202 | ; | |
2203 | return 0; | |
2204 | } | |
2205 configure:6581: result: yes | |
2206 configure:6611: checking for gettimeofday | |
2207 configure:6667: gcc -o conftest -g -O2 conftest.c >&5 | |
2208 configure:6673: $? = 0 | |
2209 configure:6691: result: yes | |
2210 configure:6611: checking for gethrtime | |
2211 configure:6667: gcc -o conftest -g -O2 conftest.c >&5 | |
2212 /tmp/ccJaE8aY.o: In function `main': | |
2213 /home/gregor/projects/hackbot/multibot_cmds/env/interps/c-intercal/conftest.c:68: undefined reference to `gethrtime' | |
2214 collect2: error: ld returned 1 exit status | |
2215 configure:6673: $? = 1 | |
2216 configure: failed program was: | |
2217 | /* confdefs.h. */ | |
2218 | #define PACKAGE_NAME "C-INTERCAL" | |
2219 | #define PACKAGE_TARNAME "ick" | |
2220 | #define PACKAGE_VERSION "0.29" | |
2221 | #define PACKAGE_STRING "C-INTERCAL 0.29" | |
2222 | #define PACKAGE_BUGREPORT "ais523(524\)x\((525)y)@bham.ac.uk" | |
2223 | #define PACKAGE "ick" | |
2224 | #define VERSION "0.29" | |
2225 | #define YYTEXT_POINTER 1 | |
2226 | #define STDC_HEADERS 1 | |
2227 | #define HAVE_SYS_TYPES_H 1 | |
2228 | #define HAVE_SYS_STAT_H 1 | |
2229 | #define HAVE_STDLIB_H 1 | |
2230 | #define HAVE_STRING_H 1 | |
2231 | #define HAVE_MEMORY_H 1 | |
2232 | #define HAVE_STRINGS_H 1 | |
2233 | #define HAVE_INTTYPES_H 1 | |
2234 | #define HAVE_STDINT_H 1 | |
2235 | #define HAVE_UNISTD_H 1 | |
2236 | #define HAVE_SYS_TIME_H 1 | |
2237 | #define HAVE_UNISTD_H 1 | |
2238 | #define HAVE_STDARG_H 1 | |
2239 | #define HAVE_STDINT_H 1 | |
2240 | #define SIZEOF_LONG_LONG_INT 8 | |
2241 | #define SIZEOF__BOOL 1 | |
2242 | #define SIZEOF_SIG_ATOMIC_T 4 | |
2243 | #define TIME_WITH_SYS_TIME 1 | |
2244 | #define RETSIGTYPE void | |
2245 | #define NEED_YYRESTART | |
2246 | #define HAVE_SYS_INTERPRETER | |
2247 | #define EXEEXT "" | |
2248 | #define HAVE_GETTIMEOFDAY 1 | |
2249 | /* end confdefs.h. */ | |
2250 | /* Define gethrtime to an innocuous variant, in case <limits.h> declares gethrtime. | |
2251 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2252 | #define gethrtime innocuous_gethrtime | |
2253 | | |
2254 | /* System header to define __stub macros and hopefully few prototypes, | |
2255 | which can conflict with char gethrtime (); below. | |
2256 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2257 | <limits.h> exists even on freestanding compilers. */ | |
2258 | | |
2259 | #ifdef __STDC__ | |
2260 | # include <limits.h> | |
2261 | #else | |
2262 | # include <assert.h> | |
2263 | #endif | |
2264 | | |
2265 | #undef gethrtime | |
2266 | | |
2267 | /* Override any GCC internal prototype to avoid an error. | |
2268 | Use char because int might match the return type of a GCC | |
2269 | builtin and then its argument prototype would still apply. */ | |
2270 | #ifdef __cplusplus | |
2271 | extern "C" | |
2272 | #endif | |
2273 | char gethrtime (); | |
2274 | /* The GNU C library defines this for functions which it implements | |
2275 | to always fail with ENOSYS. Some functions are actually named | |
2276 | something starting with __ and the normal name is an alias. */ | |
2277 | #if defined __stub_gethrtime || defined __stub___gethrtime | |
2278 | choke me | |
2279 | #endif | |
2280 | | |
2281 | int | |
2282 | main () | |
2283 | { | |
2284 | return gethrtime (); | |
2285 | ; | |
2286 | return 0; | |
2287 | } | |
2288 configure:6691: result: no | |
2289 configure:6611: checking for strdup | |
2290 configure:6667: gcc -o conftest -g -O2 conftest.c >&5 | |
2291 conftest.c:57:6: warning: conflicting types for built-in function 'strdup' [enabled by default] | |
2292 configure:6673: $? = 0 | |
2293 configure:6691: result: yes | |
2294 configure:6611: checking for strtol | |
2295 configure:6667: gcc -o conftest -g -O2 conftest.c >&5 | |
2296 configure:6673: $? = 0 | |
2297 configure:6691: result: yes | |
2298 configure:6611: checking for strtoul | |
2299 configure:6667: gcc -o conftest -g -O2 conftest.c >&5 | |
2300 configure:6673: $? = 0 | |
2301 configure:6691: result: yes | |
2302 configure:6611: checking for snprintf | |
2303 configure:6667: gcc -o conftest -g -O2 conftest.c >&5 | |
2304 conftest.c:60:6: warning: conflicting types for built-in function 'snprintf' [enabled by default] | |
2305 configure:6673: $? = 0 | |
2306 configure:6691: result: yes | |
2307 configure:6611: checking for vsnprintf | |
2308 configure:6667: gcc -o conftest -g -O2 conftest.c >&5 | |
2309 conftest.c:61:6: warning: conflicting types for built-in function 'vsnprintf' [enabled by default] | |
2310 configure:6673: $? = 0 | |
2311 configure:6691: result: yes | |
2312 configure:6707: checking for clock_gettime | |
2313 configure:6763: gcc -o conftest -g -O2 -lrt conftest.c >&5 | |
2314 configure:6769: $? = 0 | |
2315 configure:6787: result: yes | |
2316 configure:6919: creating ./config.status | |
2317 | |
2318 ## ---------------------- ## | |
2319 ## Running config.status. ## | |
2320 ## ---------------------- ## | |
2321 | |
2322 This file was extended by C-INTERCAL config.status 0.29, which was | |
2323 generated by GNU Autoconf 2.61. Invocation command line was | |
2324 | |
2325 CONFIG_FILES = | |
2326 CONFIG_HEADERS = | |
2327 CONFIG_LINKS = | |
2328 CONFIG_COMMANDS = | |
2329 $ ./config.status | |
2330 | |
2331 on glapgor | |
2332 | |
2333 config.status:647: creating Makefile | |
2334 config.status:647: creating coopt.sh | |
2335 config.status:647: creating host.mak | |
2336 config.status:647: creating config.h | |
2337 config.status:940: executing depfiles commands | |
2338 | |
2339 ## ---------------- ## | |
2340 ## Cache variables. ## | |
2341 ## ---------------- ## | |
2342 | |
2343 ac_cv_c_compiler_gnu=yes | |
2344 ac_cv_c_const=yes | |
2345 ac_cv_c_uint16_t=yes | |
2346 ac_cv_c_uint32_t=yes | |
2347 ac_cv_c_volatile=yes | |
2348 ac_cv_env_CC_set= | |
2349 ac_cv_env_CC_value= | |
2350 ac_cv_env_CFLAGS_set= | |
2351 ac_cv_env_CFLAGS_value= | |
2352 ac_cv_env_CPPFLAGS_set= | |
2353 ac_cv_env_CPPFLAGS_value= | |
2354 ac_cv_env_CPP_set= | |
2355 ac_cv_env_CPP_value= | |
2356 ac_cv_env_LDFLAGS_set= | |
2357 ac_cv_env_LDFLAGS_value= | |
2358 ac_cv_env_LIBS_set= | |
2359 ac_cv_env_LIBS_value= | |
2360 ac_cv_env_YACC_set= | |
2361 ac_cv_env_YACC_value= | |
2362 ac_cv_env_YFLAGS_set= | |
2363 ac_cv_env_YFLAGS_value= | |
2364 ac_cv_env_build_alias_set= | |
2365 ac_cv_env_build_alias_value= | |
2366 ac_cv_env_host_alias_set= | |
2367 ac_cv_env_host_alias_value= | |
2368 ac_cv_env_target_alias_set= | |
2369 ac_cv_env_target_alias_value= | |
2370 ac_cv_func_clock_gettime=yes | |
2371 ac_cv_func_gethrtime=no | |
2372 ac_cv_func_gettimeofday=yes | |
2373 ac_cv_func_snprintf=yes | |
2374 ac_cv_func_strdup=yes | |
2375 ac_cv_func_strtol=yes | |
2376 ac_cv_func_strtoul=yes | |
2377 ac_cv_func_vsnprintf=yes | |
2378 ac_cv_header_inttypes_h=yes | |
2379 ac_cv_header_memory_h=yes | |
2380 ac_cv_header_stdarg_h=yes | |
2381 ac_cv_header_stdc=yes | |
2382 ac_cv_header_stdint_h=yes | |
2383 ac_cv_header_stdlib_h=yes | |
2384 ac_cv_header_string_h=yes | |
2385 ac_cv_header_strings_h=yes | |
2386 ac_cv_header_sys_stat_h=yes | |
2387 ac_cv_header_sys_time_h=yes | |
2388 ac_cv_header_sys_types_h=yes | |
2389 ac_cv_header_time=yes | |
2390 ac_cv_header_unistd_h=yes | |
2391 ac_cv_lib_lex=-lfl | |
2392 ac_cv_objext=o | |
2393 ac_cv_path_EGREP='/bin/grep -E' | |
2394 ac_cv_path_GREP=/bin/grep | |
2395 ac_cv_path_install='/usr/bin/install -c' | |
2396 ac_cv_path_mkdir=/bin/mkdir | |
2397 ac_cv_prog_AWK=gawk | |
2398 ac_cv_prog_CPP='gcc -E' | |
2399 ac_cv_prog_LEX=flex | |
2400 ac_cv_prog_YACC='bison -y' | |
2401 ac_cv_prog_ac_ct_AR=ar | |
2402 ac_cv_prog_ac_ct_CC=gcc | |
2403 ac_cv_prog_ac_ct_RANLIB=ranlib | |
2404 ac_cv_prog_cc_c89= | |
2405 ac_cv_prog_cc_g=yes | |
2406 ac_cv_prog_lex_root=lex.yy | |
2407 ac_cv_prog_lex_yytext_pointer=yes | |
2408 ac_cv_prog_make_make_set=yes | |
2409 ac_cv_sizeof__Bool=1 | |
2410 ac_cv_sizeof_long_long_int=8 | |
2411 ac_cv_sizeof_sig_atomic_t=4 | |
2412 ac_cv_sys_interpreter=yes | |
2413 ac_cv_type__Bool=yes | |
2414 ac_cv_type_long_long_int=yes | |
2415 ac_cv_type_sig_atomic_t=yes | |
2416 ac_cv_type_signal=void | |
2417 ac_cv_type_size_t=yes | |
2418 am_cv_CC_dependencies_compiler_type=gcc3 | |
2419 am_cv_prog_tar_pax=gnutar | |
2420 | |
2421 ## ----------------- ## | |
2422 ## Output variables. ## | |
2423 ## ----------------- ## | |
2424 | |
2425 ACLOCAL='${SHELL} /home/gregor/projects/hackbot/multibot_cmds/env/interps/c-intercal/buildaux/missing --run aclocal-1.10' | |
2426 AMDEPBACKSLASH='\' | |
2427 AMDEP_FALSE='#' | |
2428 AMDEP_TRUE='' | |
2429 AMTAR='${SHELL} /home/gregor/projects/hackbot/multibot_cmds/env/interps/c-intercal/buildaux/missing --run tar' | |
2430 AR='ar' | |
2431 AUTOCONF='${SHELL} /home/gregor/projects/hackbot/multibot_cmds/env/interps/c-intercal/buildaux/missing --run autoconf' | |
2432 AUTOHEADER='${SHELL} /home/gregor/projects/hackbot/multibot_cmds/env/interps/c-intercal/buildaux/missing --run autoheader' | |
2433 AUTOMAKE='${SHELL} /home/gregor/projects/hackbot/multibot_cmds/env/interps/c-intercal/buildaux/missing --run automake-1.10' | |
2434 AWK='gawk' | |
2435 CC='gcc' | |
2436 CCDEPMODE='depmode=gcc3' | |
2437 CFLAGS='-g -O2' | |
2438 CPP='gcc -E' | |
2439 CPPFLAGS='' | |
2440 CYGPATH_W='echo' | |
2441 DEFS='-DHAVE_CONFIG_H' | |
2442 DEPDIR='.deps' | |
2443 ECHO_C='' | |
2444 ECHO_N='-n' | |
2445 ECHO_T='' | |
2446 EGREP='/bin/grep -E' | |
2447 EXEEXT='' | |
2448 GREP='/bin/grep' | |
2449 HAVE_STDINT_H='1' | |
2450 INCLUDE_HIDDEN_FROM_AUTOMAKE='include' | |
2451 INSTALL_DATA='${INSTALL} -m 644' | |
2452 INSTALL_PROGRAM='${INSTALL}' | |
2453 INSTALL_SCRIPT='${INSTALL}' | |
2454 INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' | |
2455 LDFLAGS='' | |
2456 LEX='flex' | |
2457 LEXLIB='-lfl' | |
2458 LEX_OUTPUT_ROOT='lex.yy' | |
2459 LIBOBJS='' | |
2460 LIBS='' | |
2461 LN_S='ln -s' | |
2462 LTLIBOBJS='' | |
2463 MAKEINFO='${SHELL} /home/gregor/projects/hackbot/multibot_cmds/env/interps/c-intercal/buildaux/missing --run makeinfo' | |
2464 OBJEXT='o' | |
2465 PACKAGE='ick' | |
2466 PACKAGE_BUGREPORT='ais523(524\)x\((525)y)@bham.ac.uk' | |
2467 PACKAGE_NAME='C-INTERCAL' | |
2468 PACKAGE_STRING='C-INTERCAL 0.29' | |
2469 PACKAGE_TARNAME='ick' | |
2470 PACKAGE_VERSION='0.29' | |
2471 PATH_SEPARATOR=':' | |
2472 RANLIB='ranlib' | |
2473 SET_MAKE='' | |
2474 SHELL='/bin/bash' | |
2475 STRIP='' | |
2476 VERSION='0.29' | |
2477 YACC='bison -y' | |
2478 YFLAGS='' | |
2479 ac_ct_CC='gcc' | |
2480 am__fastdepCC_FALSE='#' | |
2481 am__fastdepCC_TRUE='' | |
2482 am__include='include' | |
2483 am__isrc='' | |
2484 am__leading_dot='.' | |
2485 am__quote='' | |
2486 am__tar='tar --format=posix -chf - "$$tardir"' | |
2487 am__untar='tar -xf -' | |
2488 bindir='${exec_prefix}/bin' | |
2489 build_alias='' | |
2490 datadir='${datarootdir}' | |
2491 datarootdir='${prefix}/share' | |
2492 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
2493 dvidir='${docdir}' | |
2494 exec_prefix='${prefix}' | |
2495 host_alias='' | |
2496 htmldir='${docdir}' | |
2497 includedir='${prefix}/include' | |
2498 infodir='${datarootdir}/info' | |
2499 install_sh='$(SHELL) /home/gregor/projects/hackbot/multibot_cmds/env/interps/c-intercal/buildaux/install-sh' | |
2500 libdir='${exec_prefix}/lib' | |
2501 libexecdir='${exec_prefix}/libexec' | |
2502 localedir='${datarootdir}/locale' | |
2503 localstatedir='${prefix}/var' | |
2504 mandir='${datarootdir}/man' | |
2505 mkdir_p='/bin/mkdir -p' | |
2506 oldincludedir='/usr/include' | |
2507 pdfdir='${docdir}' | |
2508 prefix='/home/gregor/projects/hackbot/multibot_cmds/env/interps/c-intercal/inst' | |
2509 program_transform_name='s,x,x,' | |
2510 psdir='${docdir}' | |
2511 sbindir='${exec_prefix}/sbin' | |
2512 sharedstatedir='${prefix}/com' | |
2513 sysconfdir='${prefix}/etc' | |
2514 target_alias='' | |
2515 | |
2516 ## ----------- ## | |
2517 ## confdefs.h. ## | |
2518 ## ----------- ## | |
2519 | |
2520 #define PACKAGE_NAME "C-INTERCAL" | |
2521 #define PACKAGE_TARNAME "ick" | |
2522 #define PACKAGE_VERSION "0.29" | |
2523 #define PACKAGE_STRING "C-INTERCAL 0.29" | |
2524 #define PACKAGE_BUGREPORT "ais523(524\)x\((525)y)@bham.ac.uk" | |
2525 #define PACKAGE "ick" | |
2526 #define VERSION "0.29" | |
2527 #define YYTEXT_POINTER 1 | |
2528 #define STDC_HEADERS 1 | |
2529 #define HAVE_SYS_TYPES_H 1 | |
2530 #define HAVE_SYS_STAT_H 1 | |
2531 #define HAVE_STDLIB_H 1 | |
2532 #define HAVE_STRING_H 1 | |
2533 #define HAVE_MEMORY_H 1 | |
2534 #define HAVE_STRINGS_H 1 | |
2535 #define HAVE_INTTYPES_H 1 | |
2536 #define HAVE_STDINT_H 1 | |
2537 #define HAVE_UNISTD_H 1 | |
2538 #define HAVE_SYS_TIME_H 1 | |
2539 #define HAVE_UNISTD_H 1 | |
2540 #define HAVE_STDARG_H 1 | |
2541 #define HAVE_STDINT_H 1 | |
2542 #define SIZEOF_LONG_LONG_INT 8 | |
2543 #define SIZEOF__BOOL 1 | |
2544 #define SIZEOF_SIG_ATOMIC_T 4 | |
2545 #define TIME_WITH_SYS_TIME 1 | |
2546 #define RETSIGTYPE void | |
2547 #define NEED_YYRESTART | |
2548 #define HAVE_SYS_INTERPRETER | |
2549 #define EXEEXT "" | |
2550 #define HAVE_GETTIMEOFDAY 1 | |
2551 #define HAVE_STRDUP 1 | |
2552 #define HAVE_STRTOL 1 | |
2553 #define HAVE_STRTOUL 1 | |
2554 #define HAVE_SNPRINTF 1 | |
2555 #define HAVE_VSNPRINTF 1 | |
2556 #define HAVE_CLOCK_GETTIME 1 | |
2557 | |
2558 configure: exit 0 |