Guest User

Untitled

a guest
Oct 5th, 2018
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 132.93 KB | None | 0 0
  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 xboard configure 4.5.2a, which was
  5. generated by GNU Autoconf 2.68. Invocation command line was
  6.  
  7. $ ./configure --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib
  8.  
  9. ## --------- ##
  10. ## Platform. ##
  11. ## --------- ##
  12.  
  13. hostname = Peter-Martins-iMac.local
  14. uname -m = x86_64
  15. uname -r = 12.1.0
  16. uname -s = Darwin
  17. uname -v = Darwin Kernel Version 12.1.0: Tue Aug 14 13:29:55 PDT 2012; root:xnu-2050.9.2~1/RELEASE_X86_64
  18.  
  19. /usr/bin/uname -p = i386
  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 = Mach kernel version:
  26. Darwin Kernel Version 12.1.0: Tue Aug 14 13:29:55 PDT 2012; root:xnu-2050.9.2~1/RELEASE_X86_64
  27. Kernel configured for up to 4 processors.
  28. 2 processors are physically available.
  29. 4 processors are logically available.
  30. Processor type: i486 (Intel 80486)
  31. Processors active: 0 1 2 3
  32. Primary memory available: 4.00 gigabytes
  33. Default processor set: 149 tasks, 711 threads, 4 processors
  34. Load average: 2.01, Mach factor: 1.98
  35. /bin/machine = unknown
  36. /usr/bin/oslevel = unknown
  37. /bin/universe = unknown
  38.  
  39. PATH: /sw/bin
  40. PATH: /sw/sbin
  41. PATH: /usr/bin
  42. PATH: /bin
  43. PATH: /usr/sbin
  44. PATH: /sbin
  45. PATH: /usr/local/bin
  46. PATH: /opt/X11/bin
  47. PATH: /usr/X11R6/bin
  48.  
  49.  
  50. ## ----------- ##
  51. ## Core tests. ##
  52. ## ----------- ##
  53.  
  54. configure:2220: checking for a BSD-compatible install
  55. configure:2288: result: /usr/bin/install -c
  56. configure:2299: checking whether build environment is sane
  57. configure:2349: result: yes
  58. configure:2490: checking for a thread-safe mkdir -p
  59. configure:2529: result: ./install-sh -c -d
  60. configure:2542: checking for gawk
  61. configure:2572: result: no
  62. configure:2542: checking for mawk
  63. configure:2572: result: no
  64. configure:2542: checking for nawk
  65. configure:2572: result: no
  66. configure:2542: checking for awk
  67. configure:2558: found /usr/bin/awk
  68. configure:2569: result: awk
  69. configure:2580: checking whether make sets $(MAKE)
  70. configure:2602: result: yes
  71. configure:2774: checking for gcc
  72. configure:2790: found /usr/bin/gcc
  73. configure:2801: result: gcc
  74. configure:3030: checking for C compiler version
  75. configure:3039: gcc --version >&5
  76. i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
  77. Copyright (C) 2007 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:3050: $? = 0
  82. configure:3039: gcc -v >&5
  83. Using built-in specs.
  84. Target: i686-apple-darwin11
  85. Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~28/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~28/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
  86. Thread model: posix
  87. gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
  88. configure:3050: $? = 0
  89. configure:3039: gcc -V >&5
  90. llvm-gcc-4.2: argument to `-V' is missing
  91. configure:3050: $? = 1
  92. configure:3039: gcc -qversion >&5
  93. i686-apple-darwin11-llvm-gcc-4.2: no input files
  94. configure:3050: $? = 1
  95. configure:3070: checking whether the C compiler works
  96. configure:3092: gcc conftest.c >&5
  97. configure:3096: $? = 0
  98. configure:3144: result: yes
  99. configure:3147: checking for C compiler default output file name
  100. configure:3149: result: a.out
  101. configure:3155: checking for suffix of executables
  102. configure:3162: gcc -o conftest conftest.c >&5
  103. configure:3166: $? = 0
  104. configure:3188: result:
  105. configure:3210: checking whether we are cross compiling
  106. configure:3218: gcc -o conftest conftest.c >&5
  107. configure:3222: $? = 0
  108. configure:3229: ./conftest
  109. configure:3233: $? = 0
  110. configure:3248: result: no
  111. configure:3253: checking for suffix of object files
  112. configure:3275: gcc -c conftest.c >&5
  113. configure:3279: $? = 0
  114. configure:3300: result: o
  115. configure:3304: checking whether we are using the GNU C compiler
  116. configure:3323: gcc -c conftest.c >&5
  117. configure:3323: $? = 0
  118. configure:3332: result: yes
  119. configure:3341: checking whether gcc accepts -g
  120. configure:3361: gcc -c -g conftest.c >&5
  121. configure:3361: $? = 0
  122. configure:3402: result: yes
  123. configure:3419: checking for gcc option to accept ISO C89
  124. configure:3483: gcc -c conftest.c >&5
  125. configure:3483: $? = 0
  126. configure:3496: result: none needed
  127. configure:3527: checking for style of include used by make
  128. configure:3555: result: GNU
  129. configure:3580: checking dependency style of gcc
  130. configure:3690: result: gcc3
  131. configure:3707: checking whether gcc and cc understand -c and -o together
  132. configure:3738: gcc -c conftest.c -o conftest2.o >&5
  133. configure:3742: $? = 0
  134. configure:3748: gcc -c conftest.c -o conftest2.o >&5
  135. configure:3752: $? = 0
  136. configure:3763: cc -c conftest.c >&5
  137. configure:3767: $? = 0
  138. configure:3775: cc -c conftest.c -o conftest2.o >&5
  139. configure:3779: $? = 0
  140. configure:3785: cc -c conftest.c -o conftest2.o >&5
  141. configure:3789: $? = 0
  142. configure:3807: result: yes
  143. configure:3838: checking how to run the C preprocessor
  144. configure:3869: gcc -E conftest.c
  145. configure:3869: $? = 0
  146. configure:3883: gcc -E conftest.c
  147. conftest.c:11:28: error: ac_nonexistent.h: No such file or directory
  148. configure:3883: $? = 1
  149. configure: failed program was:
  150. | /* confdefs.h */
  151. | #define PACKAGE_NAME "xboard"
  152. | #define PACKAGE_TARNAME "xboard"
  153. | #define PACKAGE_VERSION "4.5.2a"
  154. | #define PACKAGE_STRING "xboard 4.5.2a"
  155. | #define PACKAGE_BUGREPORT "bug-xboard@gnu.org"
  156. | #define PACKAGE_URL ""
  157. | #define PACKAGE "xboard"
  158. | #define VERSION "4.5.2a"
  159. | /* end confdefs.h. */
  160. | #include <ac_nonexistent.h>
  161. configure:3908: result: gcc -E
  162. configure:3928: gcc -E conftest.c
  163. configure:3928: $? = 0
  164. configure:3942: gcc -E conftest.c
  165. conftest.c:11:28: error: ac_nonexistent.h: No such file or directory
  166. configure:3942: $? = 1
  167. configure: failed program was:
  168. | /* confdefs.h */
  169. | #define PACKAGE_NAME "xboard"
  170. | #define PACKAGE_TARNAME "xboard"
  171. | #define PACKAGE_VERSION "4.5.2a"
  172. | #define PACKAGE_STRING "xboard 4.5.2a"
  173. | #define PACKAGE_BUGREPORT "bug-xboard@gnu.org"
  174. | #define PACKAGE_URL ""
  175. | #define PACKAGE "xboard"
  176. | #define VERSION "4.5.2a"
  177. | /* end confdefs.h. */
  178. | #include <ac_nonexistent.h>
  179. configure:3971: checking for library containing strerror
  180. configure:4002: gcc -o conftest conftest.c >&5
  181. configure:4002: $? = 0
  182. configure:4019: result: none required
  183. configure:4033: checking for flex
  184. configure:4049: found /usr/bin/flex
  185. configure:4060: result: flex
  186. configure:4097: flex conftest.l
  187. configure:4101: $? = 0
  188. configure:4103: checking lex output file root
  189. configure:4117: result: lex.yy
  190. configure:4122: checking lex library
  191. configure:4136: gcc -o conftest conftest.c >&5
  192. Undefined symbols for architecture x86_64:
  193. "_yywrap", referenced from:
  194. _yylex in ccxqxUDp.o
  195. _input in ccxqxUDp.o
  196. _main in ccxqxUDp.o
  197. ld: symbol(s) not found for architecture x86_64
  198. collect2: ld returned 1 exit status
  199. configure:4136: $? = 1
  200. configure: failed program was:
  201. | /* confdefs.h */
  202. | #define PACKAGE_NAME "xboard"
  203. | #define PACKAGE_TARNAME "xboard"
  204. | #define PACKAGE_VERSION "4.5.2a"
  205. | #define PACKAGE_STRING "xboard 4.5.2a"
  206. | #define PACKAGE_BUGREPORT "bug-xboard@gnu.org"
  207. | #define PACKAGE_URL ""
  208. | #define PACKAGE "xboard"
  209. | #define VERSION "4.5.2a"
  210. | /* end confdefs.h. */
  211. |
  212. | #line 3 "lex.yy.c"
  213. |
  214. | #define YY_INT_ALIGNED short int
  215. |
  216. | /* A lexical scanner generated by flex */
  217. |
  218. | #define FLEX_SCANNER
  219. | #define YY_FLEX_MAJOR_VERSION 2
  220. | #define YY_FLEX_MINOR_VERSION 5
  221. | #define YY_FLEX_SUBMINOR_VERSION 35
  222. | #if YY_FLEX_SUBMINOR_VERSION > 0
  223. | #define FLEX_BETA
  224. | #endif
  225. |
  226. | /* First, we deal with platform-specific or compiler-specific issues. */
  227. |
  228. | /* begin standard C headers. */
  229. | #include <stdio.h>
  230. | #include <string.h>
  231. | #include <errno.h>
  232. | #include <stdlib.h>
  233. |
  234. | /* end standard C headers. */
  235. |
  236. | /* flex integer type definitions */
  237. |
  238. | #ifndef FLEXINT_H
  239. | #define FLEXINT_H
  240. |
  241. | /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
  242. |
  243. | #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
  244. |
  245. | /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
  246. | * if you want the limit (max/min) macros for int types.
  247. | */
  248. | #ifndef __STDC_LIMIT_MACROS
  249. | #define __STDC_LIMIT_MACROS 1
  250. | #endif
  251. |
  252. | #include <inttypes.h>
  253. | typedef int8_t flex_int8_t;
  254. | typedef uint8_t flex_uint8_t;
  255. | typedef int16_t flex_int16_t;
  256. | typedef uint16_t flex_uint16_t;
  257. | typedef int32_t flex_int32_t;
  258. | typedef uint32_t flex_uint32_t;
  259. | typedef uint64_t flex_uint64_t;
  260. | #else
  261. | typedef signed char flex_int8_t;
  262. | typedef short int flex_int16_t;
  263. | typedef int flex_int32_t;
  264. | typedef unsigned char flex_uint8_t;
  265. | typedef unsigned short int flex_uint16_t;
  266. | typedef unsigned int flex_uint32_t;
  267. | #endif /* ! C99 */
  268. |
  269. | /* Limits of integral types. */
  270. | #ifndef INT8_MIN
  271. | #define INT8_MIN (-128)
  272. | #endif
  273. | #ifndef INT16_MIN
  274. | #define INT16_MIN (-32767-1)
  275. | #endif
  276. | #ifndef INT32_MIN
  277. | #define INT32_MIN (-2147483647-1)
  278. | #endif
  279. | #ifndef INT8_MAX
  280. | #define INT8_MAX (127)
  281. | #endif
  282. | #ifndef INT16_MAX
  283. | #define INT16_MAX (32767)
  284. | #endif
  285. | #ifndef INT32_MAX
  286. | #define INT32_MAX (2147483647)
  287. | #endif
  288. | #ifndef UINT8_MAX
  289. | #define UINT8_MAX (255U)
  290. | #endif
  291. | #ifndef UINT16_MAX
  292. | #define UINT16_MAX (65535U)
  293. | #endif
  294. | #ifndef UINT32_MAX
  295. | #define UINT32_MAX (4294967295U)
  296. | #endif
  297. |
  298. | #endif /* ! FLEXINT_H */
  299. |
  300. | #ifdef __cplusplus
  301. |
  302. | /* The "const" storage-class-modifier is valid. */
  303. | #define YY_USE_CONST
  304. |
  305. | #else /* ! __cplusplus */
  306. |
  307. | /* C99 requires __STDC__ to be defined as 1. */
  308. | #if defined (__STDC__)
  309. |
  310. | #define YY_USE_CONST
  311. |
  312. | #endif /* defined (__STDC__) */
  313. | #endif /* ! __cplusplus */
  314. |
  315. | #ifdef YY_USE_CONST
  316. | #define yyconst const
  317. | #else
  318. | #define yyconst
  319. | #endif
  320. |
  321. | /* Returned upon end-of-file. */
  322. | #define YY_NULL 0
  323. |
  324. | /* Promotes a possibly negative, possibly signed char to an unsigned
  325. | * integer for use as an array index. If the signed char is negative,
  326. | * we want to instead treat it as an 8-bit unsigned char, hence the
  327. | * double cast.
  328. | */
  329. | #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
  330. |
  331. | /* Enter a start condition. This macro really ought to take a parameter,
  332. | * but we do it the disgusting crufty way forced on us by the ()-less
  333. | * definition of BEGIN.
  334. | */
  335. | #define BEGIN (yy_start) = 1 + 2 *
  336. |
  337. | /* Translate the current start state into a value that can be later handed
  338. | * to BEGIN to return to the state. The YYSTATE alias is for lex
  339. | * compatibility.
  340. | */
  341. | #define YY_START (((yy_start) - 1) / 2)
  342. | #define YYSTATE YY_START
  343. |
  344. | /* Action number for EOF rule of a given start state. */
  345. | #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  346. |
  347. | /* Special action meaning "start processing a new file". */
  348. | #define YY_NEW_FILE yyrestart(yyin )
  349. |
  350. | #define YY_END_OF_BUFFER_CHAR 0
  351. |
  352. | /* Size of default input buffer. */
  353. | #ifndef YY_BUF_SIZE
  354. | #define YY_BUF_SIZE 16384
  355. | #endif
  356. |
  357. | /* The state buf must be large enough to hold one state per character in the main buffer.
  358. | */
  359. | #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
  360. |
  361. | #ifndef YY_TYPEDEF_YY_BUFFER_STATE
  362. | #define YY_TYPEDEF_YY_BUFFER_STATE
  363. | typedef struct yy_buffer_state *YY_BUFFER_STATE;
  364. | #endif
  365. |
  366. | #ifndef YY_TYPEDEF_YY_SIZE_T
  367. | #define YY_TYPEDEF_YY_SIZE_T
  368. | typedef size_t yy_size_t;
  369. | #endif
  370. |
  371. | extern yy_size_t yyleng;
  372. |
  373. | extern FILE *yyin, *yyout;
  374. |
  375. | #define EOB_ACT_CONTINUE_SCAN 0
  376. | #define EOB_ACT_END_OF_FILE 1
  377. | #define EOB_ACT_LAST_MATCH 2
  378. |
  379. | #define YY_LESS_LINENO(n)
  380. |
  381. | /* Return all but the first "n" matched characters back to the input stream. */
  382. | #define yyless(n) \
  383. | do \
  384. | { \
  385. | /* Undo effects of setting up yytext. */ \
  386. | int yyless_macro_arg = (n); \
  387. | YY_LESS_LINENO(yyless_macro_arg);\
  388. | *yy_cp = (yy_hold_char); \
  389. | YY_RESTORE_YY_MORE_OFFSET \
  390. | (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
  391. | YY_DO_BEFORE_ACTION; /* set up yytext again */ \
  392. | } \
  393. | while ( 0 )
  394. |
  395. | #define unput(c) yyunput( c, (yytext_ptr) )
  396. |
  397. | #ifndef YY_STRUCT_YY_BUFFER_STATE
  398. | #define YY_STRUCT_YY_BUFFER_STATE
  399. | struct yy_buffer_state
  400. | {
  401. | FILE *yy_input_file;
  402. |
  403. | char *yy_ch_buf; /* input buffer */
  404. | char *yy_buf_pos; /* current position in input buffer */
  405. |
  406. | /* Size of input buffer in bytes, not including room for EOB
  407. | * characters.
  408. | */
  409. | yy_size_t yy_buf_size;
  410. |
  411. | /* Number of characters read into yy_ch_buf, not including EOB
  412. | * characters.
  413. | */
  414. | yy_size_t yy_n_chars;
  415. |
  416. | /* Whether we "own" the buffer - i.e., we know we created it,
  417. | * and can realloc() it to grow it, and should free() it to
  418. | * delete it.
  419. | */
  420. | int yy_is_our_buffer;
  421. |
  422. | /* Whether this is an "interactive" input source; if so, and
  423. | * if we're using stdio for input, then we want to use getc()
  424. | * instead of fread(), to make sure we stop fetching input after
  425. | * each newline.
  426. | */
  427. | int yy_is_interactive;
  428. |
  429. | /* Whether we're considered to be at the beginning of a line.
  430. | * If so, '^' rules will be active on the next match, otherwise
  431. | * not.
  432. | */
  433. | int yy_at_bol;
  434. |
  435. | int yy_bs_lineno; /**< The line count. */
  436. | int yy_bs_column; /**< The column count. */
  437. |
  438. | /* Whether to try to fill the input buffer when we reach the
  439. | * end of it.
  440. | */
  441. | int yy_fill_buffer;
  442. |
  443. | int yy_buffer_status;
  444. |
  445. | #define YY_BUFFER_NEW 0
  446. | #define YY_BUFFER_NORMAL 1
  447. | /* When an EOF's been seen but there's still some text to process
  448. | * then we mark the buffer as YY_EOF_PENDING, to indicate that we
  449. | * shouldn't try reading from the input source any more. We might
  450. | * still have a bunch of tokens to match, though, because of
  451. | * possible backing-up.
  452. | *
  453. | * When we actually see the EOF, we change the status to "new"
  454. | * (via yyrestart()), so that the user can continue scanning by
  455. | * just pointing yyin at a new input file.
  456. | */
  457. | #define YY_BUFFER_EOF_PENDING 2
  458. |
  459. | };
  460. | #endif /* !YY_STRUCT_YY_BUFFER_STATE */
  461. |
  462. | /* Stack of input buffers. */
  463. | static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
  464. | static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
  465. | static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
  466. |
  467. | /* We provide macros for accessing buffer states in case in the
  468. | * future we want to put the buffer states in a more general
  469. | * "scanner state".
  470. | *
  471. | * Returns the top of the stack, or NULL.
  472. | */
  473. | #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
  474. | ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
  475. | : NULL)
  476. |
  477. | /* Same as previous macro, but useful when we know that the buffer stack is not
  478. | * NULL or when we need an lvalue. For internal use only.
  479. | */
  480. | #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
  481. |
  482. | /* yy_hold_char holds the character lost when yytext is formed. */
  483. | static char yy_hold_char;
  484. | static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */
  485. | yy_size_t yyleng;
  486. |
  487. | /* Points to current character in buffer. */
  488. | static char *yy_c_buf_p = (char *) 0;
  489. | static int yy_init = 0; /* whether we need to initialize */
  490. | static int yy_start = 0; /* start state number */
  491. |
  492. | /* Flag which is used to allow yywrap()'s to do buffer switches
  493. | * instead of setting up a fresh yyin. A bit of a hack ...
  494. | */
  495. | static int yy_did_buffer_switch_on_eof;
  496. |
  497. | void yyrestart (FILE *input_file );
  498. | void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer );
  499. | YY_BUFFER_STATE yy_create_buffer (FILE *file,int size );
  500. | void yy_delete_buffer (YY_BUFFER_STATE b );
  501. | void yy_flush_buffer (YY_BUFFER_STATE b );
  502. | void yypush_buffer_state (YY_BUFFER_STATE new_buffer );
  503. | void yypop_buffer_state (void );
  504. |
  505. | static void yyensure_buffer_stack (void );
  506. | static void yy_load_buffer_state (void );
  507. | static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file );
  508. |
  509. | #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER )
  510. |
  511. | YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size );
  512. | YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str );
  513. | YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len );
  514. |
  515. | void *yyalloc (yy_size_t );
  516. | void *yyrealloc (void *,yy_size_t );
  517. | void yyfree (void * );
  518. |
  519. | #define yy_new_buffer yy_create_buffer
  520. |
  521. | #define yy_set_interactive(is_interactive) \
  522. | { \
  523. | if ( ! YY_CURRENT_BUFFER ){ \
  524. | yyensure_buffer_stack (); \
  525. | YY_CURRENT_BUFFER_LVALUE = \
  526. | yy_create_buffer(yyin,YY_BUF_SIZE ); \
  527. | } \
  528. | YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
  529. | }
  530. |
  531. | #define yy_set_bol(at_bol) \
  532. | { \
  533. | if ( ! YY_CURRENT_BUFFER ){\
  534. | yyensure_buffer_stack (); \
  535. | YY_CURRENT_BUFFER_LVALUE = \
  536. | yy_create_buffer(yyin,YY_BUF_SIZE ); \
  537. | } \
  538. | YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
  539. | }
  540. |
  541. | #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
  542. |
  543. | /* Begin user sect3 */
  544. |
  545. | typedef unsigned char YY_CHAR;
  546. |
  547. | FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
  548. |
  549. | typedef int yy_state_type;
  550. |
  551. | extern int yylineno;
  552. |
  553. | int yylineno = 1;
  554. |
  555. | extern char *yytext;
  556. | #define yytext_ptr yytext
  557. |
  558. | static yy_state_type yy_get_previous_state (void );
  559. | static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
  560. | static int yy_get_next_buffer (void );
  561. | static void yy_fatal_error (yyconst char msg[] );
  562. |
  563. | /* Done after the current pattern has been matched and before the
  564. | * corresponding action - sets up yytext.
  565. | */
  566. | #define YY_DO_BEFORE_ACTION \
  567. | (yytext_ptr) = yy_bp; \
  568. | (yytext_ptr) -= (yy_more_len); \
  569. | yyleng = (yy_size_t) (yy_cp - (yytext_ptr)); \
  570. | (yy_hold_char) = *yy_cp; \
  571. | *yy_cp = '\0'; \
  572. | (yy_c_buf_p) = yy_cp;
  573. |
  574. | #define YY_NUM_RULES 8
  575. | #define YY_END_OF_BUFFER 9
  576. | /* This struct is not used in this scanner,
  577. | but its presence is necessary. */
  578. | struct yy_trans_info
  579. | {
  580. | flex_int32_t yy_verify;
  581. | flex_int32_t yy_nxt;
  582. | };
  583. | static yyconst flex_int16_t yy_acclist[23] =
  584. | { 0,
  585. | 9, 7, 8, 8, 1, 7, 8, 2, 7, 8,
  586. | 3, 7, 8, 4, 7, 8, 5, 7, 8, 6,
  587. | 7, 8
  588. | } ;
  589. |
  590. | static yyconst flex_int16_t yy_accept[14] =
  591. | { 0,
  592. | 1, 1, 1, 2, 4, 5, 8, 11, 14, 17,
  593. | 20, 23, 23
  594. | } ;
  595. |
  596. | static yyconst flex_int32_t yy_ec[256] =
  597. | { 0,
  598. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
  599. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  600. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  601. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  602. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  603. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  604. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  605. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  606. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  607. | 1, 1, 1, 1, 1, 1, 3, 4, 5, 6,
  608. |
  609. | 7, 8, 1, 1, 1, 1, 1, 1, 1, 1,
  610. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  611. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  612. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  613. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  614. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  615. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  616. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  617. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  618. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  619. |
  620. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  621. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  622. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  623. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  624. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  625. | 1, 1, 1, 1, 1
  626. | } ;
  627. |
  628. | static yyconst flex_int32_t yy_meta[9] =
  629. | { 0,
  630. | 1, 1, 1, 1, 1, 1, 1, 1
  631. | } ;
  632. |
  633. | static yyconst flex_int16_t yy_base[13] =
  634. | { 0,
  635. | 0, 0, 9, 10, 10, 10, 10, 10, 10, 10,
  636. | 10, 10
  637. | } ;
  638. |
  639. | static yyconst flex_int16_t yy_def[13] =
  640. | { 0,
  641. | 12, 1, 12, 12, 12, 12, 12, 12, 12, 12,
  642. | 12, 0
  643. | } ;
  644. |
  645. | static yyconst flex_int16_t yy_nxt[19] =
  646. | { 0,
  647. | 4, 5, 6, 7, 8, 9, 10, 11, 12, 3,
  648. | 12, 12, 12, 12, 12, 12, 12, 12
  649. | } ;
  650. |
  651. | static yyconst flex_int16_t yy_chk[19] =
  652. | { 0,
  653. | 1, 1, 1, 1, 1, 1, 1, 1, 3, 12,
  654. | 12, 12, 12, 12, 12, 12, 12, 12
  655. | } ;
  656. |
  657. | extern int yy_flex_debug;
  658. | int yy_flex_debug = 0;
  659. |
  660. | static yy_state_type *yy_state_buf=0, *yy_state_ptr=0;
  661. | static char *yy_full_match;
  662. | static int yy_lp;
  663. | #define REJECT \
  664. | { \
  665. | *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ \
  666. | yy_cp = (yy_full_match); /* restore poss. backed-over text */ \
  667. | ++(yy_lp); \
  668. | goto find_rule; \
  669. | }
  670. |
  671. | static int yy_more_flag = 0;
  672. | static int yy_more_len = 0;
  673. | #define yymore() ((yy_more_flag) = 1)
  674. | #define YY_MORE_ADJ (yy_more_len)
  675. | #define YY_RESTORE_YY_MORE_OFFSET
  676. | char *yytext;
  677. | #line 1 "conftest.l"
  678. | #line 469 "lex.yy.c"
  679. |
  680. | #define INITIAL 0
  681. |
  682. | #ifndef YY_NO_UNISTD_H
  683. | /* Special case for "unistd.h", since it is non-ANSI. We include it way
  684. | * down here because we want the user's section 1 to have been scanned first.
  685. | * The user has a chance to override it with an option.
  686. | */
  687. | #include <unistd.h>
  688. | #endif
  689. |
  690. | #ifndef YY_EXTRA_TYPE
  691. | #define YY_EXTRA_TYPE void *
  692. | #endif
  693. |
  694. | static int yy_init_globals (void );
  695. |
  696. | /* Accessor methods to globals.
  697. | These are made visible to non-reentrant scanners for convenience. */
  698. |
  699. | int yylex_destroy (void );
  700. |
  701. | int yyget_debug (void );
  702. |
  703. | void yyset_debug (int debug_flag );
  704. |
  705. | YY_EXTRA_TYPE yyget_extra (void );
  706. |
  707. | void yyset_extra (YY_EXTRA_TYPE user_defined );
  708. |
  709. | FILE *yyget_in (void );
  710. |
  711. | void yyset_in (FILE * in_str );
  712. |
  713. | FILE *yyget_out (void );
  714. |
  715. | void yyset_out (FILE * out_str );
  716. |
  717. | yy_size_t yyget_leng (void );
  718. |
  719. | char *yyget_text (void );
  720. |
  721. | int yyget_lineno (void );
  722. |
  723. | void yyset_lineno (int line_number );
  724. |
  725. | /* Macros after this point can all be overridden by user definitions in
  726. | * section 1.
  727. | */
  728. |
  729. | #ifndef YY_SKIP_YYWRAP
  730. | #ifdef __cplusplus
  731. | extern "C" int yywrap (void );
  732. | #else
  733. | extern int yywrap (void );
  734. | #endif
  735. | #endif
  736. |
  737. | static void yyunput (int c,char *buf_ptr );
  738. |
  739. | #ifndef yytext_ptr
  740. | static void yy_flex_strncpy (char *,yyconst char *,int );
  741. | #endif
  742. |
  743. | #ifdef YY_NEED_STRLEN
  744. | static int yy_flex_strlen (yyconst char * );
  745. | #endif
  746. |
  747. | #ifndef YY_NO_INPUT
  748. |
  749. | #ifdef __cplusplus
  750. | static int yyinput (void );
  751. | #else
  752. | static int input (void );
  753. | #endif
  754. |
  755. | #endif
  756. |
  757. | /* Amount of stuff to slurp up with each read. */
  758. | #ifndef YY_READ_BUF_SIZE
  759. | #define YY_READ_BUF_SIZE 8192
  760. | #endif
  761. |
  762. | /* Copy whatever the last rule matched to the standard output. */
  763. | #ifndef ECHO
  764. | /* This used to be an fputs(), but since the string might contain NUL's,
  765. | * we now use fwrite().
  766. | */
  767. | #define ECHO fwrite( yytext, yyleng, 1, yyout )
  768. | #endif
  769. |
  770. | /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
  771. | * is returned in "result".
  772. | */
  773. | #ifndef YY_INPUT
  774. | #define YY_INPUT(buf,result,max_size) \
  775. | if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
  776. | { \
  777. | int c = '*'; \
  778. | yy_size_t n; \
  779. | for ( n = 0; n < max_size && \
  780. | (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
  781. | buf[n] = (char) c; \
  782. | if ( c == '\n' ) \
  783. | buf[n++] = (char) c; \
  784. | if ( c == EOF && ferror( yyin ) ) \
  785. | YY_FATAL_ERROR( "input in flex scanner failed" ); \
  786. | result = n; \
  787. | } \
  788. | else \
  789. | { \
  790. | errno=0; \
  791. | while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
  792. | { \
  793. | if( errno != EINTR) \
  794. | { \
  795. | YY_FATAL_ERROR( "input in flex scanner failed" ); \
  796. | break; \
  797. | } \
  798. | errno=0; \
  799. | clearerr(yyin); \
  800. | } \
  801. | }\
  802. | \
  803. |
  804. | #endif
  805. |
  806. | /* No semi-colon after return; correct usage is to write "yyterminate();" -
  807. | * we don't want an extra ';' after the "return" because that will cause
  808. | * some compilers to complain about unreachable statements.
  809. | */
  810. | #ifndef yyterminate
  811. | #define yyterminate() return YY_NULL
  812. | #endif
  813. |
  814. | /* Number of entries by which start-condition stack grows. */
  815. | #ifndef YY_START_STACK_INCR
  816. | #define YY_START_STACK_INCR 25
  817. | #endif
  818. |
  819. | /* Report a fatal error. */
  820. | #ifndef YY_FATAL_ERROR
  821. | #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
  822. | #endif
  823. |
  824. | /* end tables serialization structures and prototypes */
  825. |
  826. | /* Default declaration of generated scanner - a define so the user can
  827. | * easily add parameters.
  828. | */
  829. | #ifndef YY_DECL
  830. | #define YY_DECL_IS_OURS 1
  831. |
  832. | extern int yylex (void);
  833. |
  834. | #define YY_DECL int yylex (void)
  835. | #endif /* !YY_DECL */
  836. |
  837. | /* Code executed at the beginning of each rule, after yytext and yyleng
  838. | * have been set up.
  839. | */
  840. | #ifndef YY_USER_ACTION
  841. | #define YY_USER_ACTION
  842. | #endif
  843. |
  844. | /* Code executed at the end of each rule. */
  845. | #ifndef YY_BREAK
  846. | #define YY_BREAK break;
  847. | #endif
  848. |
  849. | #define YY_RULE_SETUP \
  850. | YY_USER_ACTION
  851. |
  852. | /** The main scanner function which does all the work.
  853. | */
  854. | YY_DECL
  855. | {
  856. | register yy_state_type yy_current_state;
  857. | register char *yy_cp, *yy_bp;
  858. | register int yy_act;
  859. |
  860. | #line 1 "conftest.l"
  861. |
  862. | #line 653 "lex.yy.c"
  863. |
  864. | if ( !(yy_init) )
  865. | {
  866. | (yy_init) = 1;
  867. |
  868. | #ifdef YY_USER_INIT
  869. | YY_USER_INIT;
  870. | #endif
  871. |
  872. | /* Create the reject buffer large enough to save one state per allowed character. */
  873. | if ( ! (yy_state_buf) )
  874. | (yy_state_buf) = (yy_state_type *)yyalloc(YY_STATE_BUF_SIZE );
  875. | if ( ! (yy_state_buf) )
  876. | YY_FATAL_ERROR( "out of dynamic memory in yylex()" );
  877. |
  878. | if ( ! (yy_start) )
  879. | (yy_start) = 1; /* first start state */
  880. |
  881. | if ( ! yyin )
  882. | yyin = stdin;
  883. |
  884. | if ( ! yyout )
  885. | yyout = stdout;
  886. |
  887. | if ( ! YY_CURRENT_BUFFER ) {
  888. | yyensure_buffer_stack ();
  889. | YY_CURRENT_BUFFER_LVALUE =
  890. | yy_create_buffer(yyin,YY_BUF_SIZE );
  891. | }
  892. |
  893. | yy_load_buffer_state( );
  894. | }
  895. |
  896. | while ( 1 ) /* loops until end-of-file is reached */
  897. | {
  898. | (yy_more_len) = 0;
  899. | if ( (yy_more_flag) )
  900. | {
  901. | (yy_more_len) = (yy_c_buf_p) - (yytext_ptr);
  902. | (yy_more_flag) = 0;
  903. | }
  904. | yy_cp = (yy_c_buf_p);
  905. |
  906. | /* Support of yytext. */
  907. | *yy_cp = (yy_hold_char);
  908. |
  909. | /* yy_bp points to the position in yy_ch_buf of the start of
  910. | * the current run.
  911. | */
  912. | yy_bp = yy_cp;
  913. |
  914. | yy_current_state = (yy_start);
  915. |
  916. | (yy_state_ptr) = (yy_state_buf);
  917. | *(yy_state_ptr)++ = yy_current_state;
  918. |
  919. | yy_match:
  920. | do
  921. | {
  922. | register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
  923. | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  924. | {
  925. | yy_current_state = (int) yy_def[yy_current_state];
  926. | if ( yy_current_state >= 13 )
  927. | yy_c = yy_meta[(unsigned int) yy_c];
  928. | }
  929. | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  930. | *(yy_state_ptr)++ = yy_current_state;
  931. | ++yy_cp;
  932. | }
  933. | while ( yy_base[yy_current_state] != 10 );
  934. |
  935. | yy_find_action:
  936. | yy_current_state = *--(yy_state_ptr);
  937. | (yy_lp) = yy_accept[yy_current_state];
  938. | goto find_rule; /* Shut up GCC warning -Wall */
  939. | find_rule: /* we branch to this label when backing up */
  940. | for ( ; ; ) /* until we find what rule we matched */
  941. | {
  942. | if ( (yy_lp) && (yy_lp) < yy_accept[yy_current_state + 1] )
  943. | {
  944. | yy_act = yy_acclist[(yy_lp)];
  945. | {
  946. | (yy_full_match) = yy_cp;
  947. | break;
  948. | }
  949. | }
  950. | --yy_cp;
  951. | yy_current_state = *--(yy_state_ptr);
  952. | (yy_lp) = yy_accept[yy_current_state];
  953. | }
  954. |
  955. | YY_DO_BEFORE_ACTION;
  956. |
  957. | do_action: /* This label is used only to access EOF actions. */
  958. |
  959. | switch ( yy_act )
  960. | { /* beginning of action switch */
  961. | case 1:
  962. | YY_RULE_SETUP
  963. | #line 2 "conftest.l"
  964. | { ECHO; }
  965. | YY_BREAK
  966. | case 2:
  967. | YY_RULE_SETUP
  968. | #line 3 "conftest.l"
  969. | { REJECT; }
  970. | YY_BREAK
  971. | case 3:
  972. | YY_RULE_SETUP
  973. | #line 4 "conftest.l"
  974. | { yymore (); }
  975. | YY_BREAK
  976. | case 4:
  977. | YY_RULE_SETUP
  978. | #line 5 "conftest.l"
  979. | { yyless (1); }
  980. | YY_BREAK
  981. | case 5:
  982. | YY_RULE_SETUP
  983. | #line 6 "conftest.l"
  984. | { yyless (input () != 0); }
  985. | YY_BREAK
  986. | case 6:
  987. | YY_RULE_SETUP
  988. | #line 7 "conftest.l"
  989. | { unput (yytext[0]); }
  990. | YY_BREAK
  991. | case 7:
  992. | YY_RULE_SETUP
  993. | #line 8 "conftest.l"
  994. | { BEGIN INITIAL; }
  995. | YY_BREAK
  996. | case 8:
  997. | YY_RULE_SETUP
  998. | #line 9 "conftest.l"
  999. | ECHO;
  1000. | YY_BREAK
  1001. | #line 792 "lex.yy.c"
  1002. | case YY_STATE_EOF(INITIAL):
  1003. | yyterminate();
  1004. |
  1005. | case YY_END_OF_BUFFER:
  1006. | {
  1007. | /* Amount of text matched not including the EOB char. */
  1008. | int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
  1009. |
  1010. | /* Undo the effects of YY_DO_BEFORE_ACTION. */
  1011. | *yy_cp = (yy_hold_char);
  1012. | YY_RESTORE_YY_MORE_OFFSET
  1013. |
  1014. | if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
  1015. | {
  1016. | /* We're scanning a new file or input source. It's
  1017. | * possible that this happened because the user
  1018. | * just pointed yyin at a new source and called
  1019. | * yylex(). If so, then we have to assure
  1020. | * consistency between YY_CURRENT_BUFFER and our
  1021. | * globals. Here is the right place to do so, because
  1022. | * this is the first action (other than possibly a
  1023. | * back-up) that will match for the new input source.
  1024. | */
  1025. | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  1026. | YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
  1027. | YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
  1028. | }
  1029. |
  1030. | /* Note that here we test for yy_c_buf_p "<=" to the position
  1031. | * of the first EOB in the buffer, since yy_c_buf_p will
  1032. | * already have been incremented past the NUL character
  1033. | * (since all states make transitions on EOB to the
  1034. | * end-of-buffer state). Contrast this with the test
  1035. | * in input().
  1036. | */
  1037. | if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
  1038. | { /* This was really a NUL. */
  1039. | yy_state_type yy_next_state;
  1040. |
  1041. | (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
  1042. |
  1043. | yy_current_state = yy_get_previous_state( );
  1044. |
  1045. | /* Okay, we're now positioned to make the NUL
  1046. | * transition. We couldn't have
  1047. | * yy_get_previous_state() go ahead and do it
  1048. | * for us because it doesn't know how to deal
  1049. | * with the possibility of jamming (and we don't
  1050. | * want to build jamming into it because then it
  1051. | * will run more slowly).
  1052. | */
  1053. |
  1054. | yy_next_state = yy_try_NUL_trans( yy_current_state );
  1055. |
  1056. | yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  1057. |
  1058. | if ( yy_next_state )
  1059. | {
  1060. | /* Consume the NUL. */
  1061. | yy_cp = ++(yy_c_buf_p);
  1062. | yy_current_state = yy_next_state;
  1063. | goto yy_match;
  1064. | }
  1065. |
  1066. | else
  1067. | {
  1068. | yy_cp = (yy_c_buf_p);
  1069. | goto yy_find_action;
  1070. | }
  1071. | }
  1072. |
  1073. | else switch ( yy_get_next_buffer( ) )
  1074. | {
  1075. | case EOB_ACT_END_OF_FILE:
  1076. | {
  1077. | (yy_did_buffer_switch_on_eof) = 0;
  1078. |
  1079. | if ( yywrap( ) )
  1080. | {
  1081. | /* Note: because we've taken care in
  1082. | * yy_get_next_buffer() to have set up
  1083. | * yytext, we can now set up
  1084. | * yy_c_buf_p so that if some total
  1085. | * hoser (like flex itself) wants to
  1086. | * call the scanner after we return the
  1087. | * YY_NULL, it'll still work - another
  1088. | * YY_NULL will get returned.
  1089. | */
  1090. | (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
  1091. |
  1092. | yy_act = YY_STATE_EOF(YY_START);
  1093. | goto do_action;
  1094. | }
  1095. |
  1096. | else
  1097. | {
  1098. | if ( ! (yy_did_buffer_switch_on_eof) )
  1099. | YY_NEW_FILE;
  1100. | }
  1101. | break;
  1102. | }
  1103. |
  1104. | case EOB_ACT_CONTINUE_SCAN:
  1105. | (yy_c_buf_p) =
  1106. | (yytext_ptr) + yy_amount_of_matched_text;
  1107. |
  1108. | yy_current_state = yy_get_previous_state( );
  1109. |
  1110. | yy_cp = (yy_c_buf_p);
  1111. | yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  1112. | goto yy_match;
  1113. |
  1114. | case EOB_ACT_LAST_MATCH:
  1115. | (yy_c_buf_p) =
  1116. | &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
  1117. |
  1118. | yy_current_state = yy_get_previous_state( );
  1119. |
  1120. | yy_cp = (yy_c_buf_p);
  1121. | yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  1122. | goto yy_find_action;
  1123. | }
  1124. | break;
  1125. | }
  1126. |
  1127. | default:
  1128. | YY_FATAL_ERROR(
  1129. | "fatal flex scanner internal error--no action found" );
  1130. | } /* end of action switch */
  1131. | } /* end of scanning one token */
  1132. | } /* end of yylex */
  1133. |
  1134. | /* yy_get_next_buffer - try to read in a new buffer
  1135. | *
  1136. | * Returns a code representing an action:
  1137. | * EOB_ACT_LAST_MATCH -
  1138. | * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
  1139. | * EOB_ACT_END_OF_FILE - end of file
  1140. | */
  1141. | static int yy_get_next_buffer (void)
  1142. | {
  1143. | register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
  1144. | register char *source = (yytext_ptr);
  1145. | register int number_to_move, i;
  1146. | int ret_val;
  1147. |
  1148. | if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
  1149. | YY_FATAL_ERROR(
  1150. | "fatal flex scanner internal error--end of buffer missed" );
  1151. |
  1152. | if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
  1153. | { /* Don't try to fill the buffer, so this is an EOF. */
  1154. | if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
  1155. | {
  1156. | /* We matched a single character, the EOB, so
  1157. | * treat this as a final EOF.
  1158. | */
  1159. | return EOB_ACT_END_OF_FILE;
  1160. | }
  1161. |
  1162. | else
  1163. | {
  1164. | /* We matched some text prior to the EOB, first
  1165. | * process it.
  1166. | */
  1167. | return EOB_ACT_LAST_MATCH;
  1168. | }
  1169. | }
  1170. |
  1171. | /* Try to read more data. */
  1172. |
  1173. | /* First move last chars to start of buffer. */
  1174. | number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
  1175. |
  1176. | for ( i = 0; i < number_to_move; ++i )
  1177. | *(dest++) = *(source++);
  1178. |
  1179. | if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
  1180. | /* don't do the read, it's not guaranteed to return an EOF,
  1181. | * just force an EOF
  1182. | */
  1183. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
  1184. |
  1185. | else
  1186. | {
  1187. | yy_size_t num_to_read =
  1188. | YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
  1189. |
  1190. | while ( num_to_read <= 0 )
  1191. | { /* Not enough room in the buffer - grow it. */
  1192. |
  1193. | YY_FATAL_ERROR(
  1194. | "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
  1195. |
  1196. | }
  1197. |
  1198. | if ( num_to_read > YY_READ_BUF_SIZE )
  1199. | num_to_read = YY_READ_BUF_SIZE;
  1200. |
  1201. | /* Read in more data. */
  1202. | YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
  1203. | (yy_n_chars), num_to_read );
  1204. |
  1205. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  1206. | }
  1207. |
  1208. | if ( (yy_n_chars) == 0 )
  1209. | {
  1210. | if ( number_to_move == YY_MORE_ADJ )
  1211. | {
  1212. | ret_val = EOB_ACT_END_OF_FILE;
  1213. | yyrestart(yyin );
  1214. | }
  1215. |
  1216. | else
  1217. | {
  1218. | ret_val = EOB_ACT_LAST_MATCH;
  1219. | YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
  1220. | YY_BUFFER_EOF_PENDING;
  1221. | }
  1222. | }
  1223. |
  1224. | else
  1225. | ret_val = EOB_ACT_CONTINUE_SCAN;
  1226. |
  1227. | if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
  1228. | /* Extend the array by 50%, plus the number we really need. */
  1229. | yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
  1230. | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
  1231. | if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
  1232. | YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
  1233. | }
  1234. |
  1235. | (yy_n_chars) += number_to_move;
  1236. | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
  1237. | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
  1238. |
  1239. | (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
  1240. |
  1241. | return ret_val;
  1242. | }
  1243. |
  1244. | /* yy_get_previous_state - get the state just before the EOB char was reached */
  1245. |
  1246. | static yy_state_type yy_get_previous_state (void)
  1247. | {
  1248. | register yy_state_type yy_current_state;
  1249. | register char *yy_cp;
  1250. |
  1251. | yy_current_state = (yy_start);
  1252. |
  1253. | (yy_state_ptr) = (yy_state_buf);
  1254. | *(yy_state_ptr)++ = yy_current_state;
  1255. |
  1256. | for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
  1257. | {
  1258. | register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
  1259. | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  1260. | {
  1261. | yy_current_state = (int) yy_def[yy_current_state];
  1262. | if ( yy_current_state >= 13 )
  1263. | yy_c = yy_meta[(unsigned int) yy_c];
  1264. | }
  1265. | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  1266. | *(yy_state_ptr)++ = yy_current_state;
  1267. | }
  1268. |
  1269. | return yy_current_state;
  1270. | }
  1271. |
  1272. | /* yy_try_NUL_trans - try to make a transition on the NUL character
  1273. | *
  1274. | * synopsis
  1275. | * next_state = yy_try_NUL_trans( current_state );
  1276. | */
  1277. | static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
  1278. | {
  1279. | register int yy_is_jam;
  1280. |
  1281. | register YY_CHAR yy_c = 1;
  1282. | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  1283. | {
  1284. | yy_current_state = (int) yy_def[yy_current_state];
  1285. | if ( yy_current_state >= 13 )
  1286. | yy_c = yy_meta[(unsigned int) yy_c];
  1287. | }
  1288. | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  1289. | yy_is_jam = (yy_current_state == 12);
  1290. | if ( ! yy_is_jam )
  1291. | *(yy_state_ptr)++ = yy_current_state;
  1292. |
  1293. | return yy_is_jam ? 0 : yy_current_state;
  1294. | }
  1295. |
  1296. | static void yyunput (int c, register char * yy_bp )
  1297. | {
  1298. | register char *yy_cp;
  1299. |
  1300. | yy_cp = (yy_c_buf_p);
  1301. |
  1302. | /* undo effects of setting up yytext */
  1303. | *yy_cp = (yy_hold_char);
  1304. |
  1305. | if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
  1306. | { /* need to shift things up to make room */
  1307. | /* +2 for EOB chars. */
  1308. | register yy_size_t number_to_move = (yy_n_chars) + 2;
  1309. | register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
  1310. | YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
  1311. | register char *source =
  1312. | &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
  1313. |
  1314. | while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
  1315. | *--dest = *--source;
  1316. |
  1317. | yy_cp += (int) (dest - source);
  1318. | yy_bp += (int) (dest - source);
  1319. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
  1320. | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
  1321. |
  1322. | if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
  1323. | YY_FATAL_ERROR( "flex scanner push-back overflow" );
  1324. | }
  1325. |
  1326. | *--yy_cp = (char) c;
  1327. |
  1328. | (yytext_ptr) = yy_bp;
  1329. | (yy_hold_char) = *yy_cp;
  1330. | (yy_c_buf_p) = yy_cp;
  1331. | }
  1332. |
  1333. | #ifndef YY_NO_INPUT
  1334. | #ifdef __cplusplus
  1335. | static int yyinput (void)
  1336. | #else
  1337. | static int input (void)
  1338. | #endif
  1339. |
  1340. | {
  1341. | int c;
  1342. |
  1343. | *(yy_c_buf_p) = (yy_hold_char);
  1344. |
  1345. | if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
  1346. | {
  1347. | /* yy_c_buf_p now points to the character we want to return.
  1348. | * If this occurs *before* the EOB characters, then it's a
  1349. | * valid NUL; if not, then we've hit the end of the buffer.
  1350. | */
  1351. | if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
  1352. | /* This was really a NUL. */
  1353. | *(yy_c_buf_p) = '\0';
  1354. |
  1355. | else
  1356. | { /* need more input */
  1357. | yy_size_t offset = (yy_c_buf_p) - (yytext_ptr);
  1358. | ++(yy_c_buf_p);
  1359. |
  1360. | switch ( yy_get_next_buffer( ) )
  1361. | {
  1362. | case EOB_ACT_LAST_MATCH:
  1363. | /* This happens because yy_g_n_b()
  1364. | * sees that we've accumulated a
  1365. | * token and flags that we need to
  1366. | * try matching the token before
  1367. | * proceeding. But for input(),
  1368. | * there's no matching to consider.
  1369. | * So convert the EOB_ACT_LAST_MATCH
  1370. | * to EOB_ACT_END_OF_FILE.
  1371. | */
  1372. |
  1373. | /* Reset buffer status. */
  1374. | yyrestart(yyin );
  1375. |
  1376. | /*FALLTHROUGH*/
  1377. |
  1378. | case EOB_ACT_END_OF_FILE:
  1379. | {
  1380. | if ( yywrap( ) )
  1381. | return 0;
  1382. |
  1383. | if ( ! (yy_did_buffer_switch_on_eof) )
  1384. | YY_NEW_FILE;
  1385. | #ifdef __cplusplus
  1386. | return yyinput();
  1387. | #else
  1388. | return input();
  1389. | #endif
  1390. | }
  1391. |
  1392. | case EOB_ACT_CONTINUE_SCAN:
  1393. | (yy_c_buf_p) = (yytext_ptr) + offset;
  1394. | break;
  1395. | }
  1396. | }
  1397. | }
  1398. |
  1399. | c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
  1400. | *(yy_c_buf_p) = '\0'; /* preserve yytext */
  1401. | (yy_hold_char) = *++(yy_c_buf_p);
  1402. |
  1403. | return c;
  1404. | }
  1405. | #endif /* ifndef YY_NO_INPUT */
  1406. |
  1407. | /** Immediately switch to a different input stream.
  1408. | * @param input_file A readable stream.
  1409. | *
  1410. | * @note This function does not reset the start condition to @c INITIAL .
  1411. | */
  1412. | void yyrestart (FILE * input_file )
  1413. | {
  1414. |
  1415. | if ( ! YY_CURRENT_BUFFER ){
  1416. | yyensure_buffer_stack ();
  1417. | YY_CURRENT_BUFFER_LVALUE =
  1418. | yy_create_buffer(yyin,YY_BUF_SIZE );
  1419. | }
  1420. |
  1421. | yy_init_buffer(YY_CURRENT_BUFFER,input_file );
  1422. | yy_load_buffer_state( );
  1423. | }
  1424. |
  1425. | /** Switch to a different input buffer.
  1426. | * @param new_buffer The new input buffer.
  1427. | *
  1428. | */
  1429. | void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
  1430. | {
  1431. |
  1432. | /* TODO. We should be able to replace this entire function body
  1433. | * with
  1434. | * yypop_buffer_state();
  1435. | * yypush_buffer_state(new_buffer);
  1436. | */
  1437. | yyensure_buffer_stack ();
  1438. | if ( YY_CURRENT_BUFFER == new_buffer )
  1439. | return;
  1440. |
  1441. | if ( YY_CURRENT_BUFFER )
  1442. | {
  1443. | /* Flush out information for old buffer. */
  1444. | *(yy_c_buf_p) = (yy_hold_char);
  1445. | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
  1446. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  1447. | }
  1448. |
  1449. | YY_CURRENT_BUFFER_LVALUE = new_buffer;
  1450. | yy_load_buffer_state( );
  1451. |
  1452. | /* We don't actually know whether we did this switch during
  1453. | * EOF (yywrap()) processing, but the only time this flag
  1454. | * is looked at is after yywrap() is called, so it's safe
  1455. | * to go ahead and always set it.
  1456. | */
  1457. | (yy_did_buffer_switch_on_eof) = 1;
  1458. | }
  1459. |
  1460. | static void yy_load_buffer_state (void)
  1461. | {
  1462. | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  1463. | (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
  1464. | yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
  1465. | (yy_hold_char) = *(yy_c_buf_p);
  1466. | }
  1467. |
  1468. | /** Allocate and initialize an input buffer state.
  1469. | * @param file A readable stream.
  1470. | * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
  1471. | *
  1472. | * @return the allocated buffer state.
  1473. | */
  1474. | YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
  1475. | {
  1476. | YY_BUFFER_STATE b;
  1477. |
  1478. | b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
  1479. | if ( ! b )
  1480. | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  1481. |
  1482. | b->yy_buf_size = size;
  1483. |
  1484. | /* yy_ch_buf has to be 2 characters longer than the size given because
  1485. | * we need to put in 2 end-of-buffer characters.
  1486. | */
  1487. | b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 );
  1488. | if ( ! b->yy_ch_buf )
  1489. | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  1490. |
  1491. | b->yy_is_our_buffer = 1;
  1492. |
  1493. | yy_init_buffer(b,file );
  1494. |
  1495. | return b;
  1496. | }
  1497. |
  1498. | /** Destroy the buffer.
  1499. | * @param b a buffer created with yy_create_buffer()
  1500. | *
  1501. | */
  1502. | void yy_delete_buffer (YY_BUFFER_STATE b )
  1503. | {
  1504. |
  1505. | if ( ! b )
  1506. | return;
  1507. |
  1508. | if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
  1509. | YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
  1510. |
  1511. | if ( b->yy_is_our_buffer )
  1512. | yyfree((void *) b->yy_ch_buf );
  1513. |
  1514. | yyfree((void *) b );
  1515. | }
  1516. |
  1517. | #ifndef __cplusplus
  1518. | extern int isatty (int );
  1519. | #endif /* __cplusplus */
  1520. |
  1521. | /* Initializes or reinitializes a buffer.
  1522. | * This function is sometimes called more than once on the same buffer,
  1523. | * such as during a yyrestart() or at EOF.
  1524. | */
  1525. | static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
  1526. |
  1527. | {
  1528. | int oerrno = errno;
  1529. |
  1530. | yy_flush_buffer(b );
  1531. |
  1532. | b->yy_input_file = file;
  1533. | b->yy_fill_buffer = 1;
  1534. |
  1535. | /* If b is the current buffer, then yy_init_buffer was _probably_
  1536. | * called from yyrestart() or through yy_get_next_buffer.
  1537. | * In that case, we don't want to reset the lineno or column.
  1538. | */
  1539. | if (b != YY_CURRENT_BUFFER){
  1540. | b->yy_bs_lineno = 1;
  1541. | b->yy_bs_column = 0;
  1542. | }
  1543. |
  1544. | b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
  1545. |
  1546. | errno = oerrno;
  1547. | }
  1548. |
  1549. | /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
  1550. | * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
  1551. | *
  1552. | */
  1553. | void yy_flush_buffer (YY_BUFFER_STATE b )
  1554. | {
  1555. | if ( ! b )
  1556. | return;
  1557. |
  1558. | b->yy_n_chars = 0;
  1559. |
  1560. | /* We always need two end-of-buffer characters. The first causes
  1561. | * a transition to the end-of-buffer state. The second causes
  1562. | * a jam in that state.
  1563. | */
  1564. | b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
  1565. | b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
  1566. |
  1567. | b->yy_buf_pos = &b->yy_ch_buf[0];
  1568. |
  1569. | b->yy_at_bol = 1;
  1570. | b->yy_buffer_status = YY_BUFFER_NEW;
  1571. |
  1572. | if ( b == YY_CURRENT_BUFFER )
  1573. | yy_load_buffer_state( );
  1574. | }
  1575. |
  1576. | /** Pushes the new state onto the stack. The new state becomes
  1577. | * the current state. This function will allocate the stack
  1578. | * if necessary.
  1579. | * @param new_buffer The new state.
  1580. | *
  1581. | */
  1582. | void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
  1583. | {
  1584. | if (new_buffer == NULL)
  1585. | return;
  1586. |
  1587. | yyensure_buffer_stack();
  1588. |
  1589. | /* This block is copied from yy_switch_to_buffer. */
  1590. | if ( YY_CURRENT_BUFFER )
  1591. | {
  1592. | /* Flush out information for old buffer. */
  1593. | *(yy_c_buf_p) = (yy_hold_char);
  1594. | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
  1595. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  1596. | }
  1597. |
  1598. | /* Only push if top exists. Otherwise, replace top. */
  1599. | if (YY_CURRENT_BUFFER)
  1600. | (yy_buffer_stack_top)++;
  1601. | YY_CURRENT_BUFFER_LVALUE = new_buffer;
  1602. |
  1603. | /* copied from yy_switch_to_buffer. */
  1604. | yy_load_buffer_state( );
  1605. | (yy_did_buffer_switch_on_eof) = 1;
  1606. | }
  1607. |
  1608. | /** Removes and deletes the top of the stack, if present.
  1609. | * The next element becomes the new top.
  1610. | *
  1611. | */
  1612. | void yypop_buffer_state (void)
  1613. | {
  1614. | if (!YY_CURRENT_BUFFER)
  1615. | return;
  1616. |
  1617. | yy_delete_buffer(YY_CURRENT_BUFFER );
  1618. | YY_CURRENT_BUFFER_LVALUE = NULL;
  1619. | if ((yy_buffer_stack_top) > 0)
  1620. | --(yy_buffer_stack_top);
  1621. |
  1622. | if (YY_CURRENT_BUFFER) {
  1623. | yy_load_buffer_state( );
  1624. | (yy_did_buffer_switch_on_eof) = 1;
  1625. | }
  1626. | }
  1627. |
  1628. | /* Allocates the stack if it does not exist.
  1629. | * Guarantees space for at least one push.
  1630. | */
  1631. | static void yyensure_buffer_stack (void)
  1632. | {
  1633. | yy_size_t num_to_alloc;
  1634. |
  1635. | if (!(yy_buffer_stack)) {
  1636. |
  1637. | /* First allocation is just for 2 elements, since we don't know if this
  1638. | * scanner will even need a stack. We use 2 instead of 1 to avoid an
  1639. | * immediate realloc on the next call.
  1640. | */
  1641. | num_to_alloc = 1;
  1642. | (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
  1643. | (num_to_alloc * sizeof(struct yy_buffer_state*)
  1644. | );
  1645. | if ( ! (yy_buffer_stack) )
  1646. | YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
  1647. |
  1648. | memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
  1649. |
  1650. | (yy_buffer_stack_max) = num_to_alloc;
  1651. | (yy_buffer_stack_top) = 0;
  1652. | return;
  1653. | }
  1654. |
  1655. | if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
  1656. |
  1657. | /* Increase the buffer to prepare for a possible push. */
  1658. | int grow_size = 8 /* arbitrary grow size */;
  1659. |
  1660. | num_to_alloc = (yy_buffer_stack_max) + grow_size;
  1661. | (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
  1662. | ((yy_buffer_stack),
  1663. | num_to_alloc * sizeof(struct yy_buffer_state*)
  1664. | );
  1665. | if ( ! (yy_buffer_stack) )
  1666. | YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
  1667. |
  1668. | /* zero only the new slots.*/
  1669. | memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
  1670. | (yy_buffer_stack_max) = num_to_alloc;
  1671. | }
  1672. | }
  1673. |
  1674. | /** Setup the input buffer state to scan directly from a user-specified character buffer.
  1675. | * @param base the character buffer
  1676. | * @param size the size in bytes of the character buffer
  1677. | *
  1678. | * @return the newly allocated buffer state object.
  1679. | */
  1680. | YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
  1681. | {
  1682. | YY_BUFFER_STATE b;
  1683. |
  1684. | if ( size < 2 ||
  1685. | base[size-2] != YY_END_OF_BUFFER_CHAR ||
  1686. | base[size-1] != YY_END_OF_BUFFER_CHAR )
  1687. | /* They forgot to leave room for the EOB's. */
  1688. | return 0;
  1689. |
  1690. | b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
  1691. | if ( ! b )
  1692. | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
  1693. |
  1694. | b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
  1695. | b->yy_buf_pos = b->yy_ch_buf = base;
  1696. | b->yy_is_our_buffer = 0;
  1697. | b->yy_input_file = 0;
  1698. | b->yy_n_chars = b->yy_buf_size;
  1699. | b->yy_is_interactive = 0;
  1700. | b->yy_at_bol = 1;
  1701. | b->yy_fill_buffer = 0;
  1702. | b->yy_buffer_status = YY_BUFFER_NEW;
  1703. |
  1704. | yy_switch_to_buffer(b );
  1705. |
  1706. | return b;
  1707. | }
  1708. |
  1709. | /** Setup the input buffer state to scan a string. The next call to yylex() will
  1710. | * scan from a @e copy of @a str.
  1711. | * @param yystr a NUL-terminated string to scan
  1712. | *
  1713. | * @return the newly allocated buffer state object.
  1714. | * @note If you want to scan bytes that may contain NUL values, then use
  1715. | * yy_scan_bytes() instead.
  1716. | */
  1717. | YY_BUFFER_STATE yy_scan_string (yyconst char * yystr )
  1718. | {
  1719. |
  1720. | return yy_scan_bytes(yystr,strlen(yystr) );
  1721. | }
  1722. |
  1723. | /** Setup the input buffer state to scan the given bytes. The next call to yylex() will
  1724. | * scan from a @e copy of @a bytes.
  1725. | * @param bytes the byte buffer to scan
  1726. | * @param len the number of bytes in the buffer pointed to by @a bytes.
  1727. | *
  1728. | * @return the newly allocated buffer state object.
  1729. | */
  1730. | YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len )
  1731. | {
  1732. | YY_BUFFER_STATE b;
  1733. | char *buf;
  1734. | yy_size_t n, i;
  1735. |
  1736. | /* Get memory for full buffer, including space for trailing EOB's. */
  1737. | n = _yybytes_len + 2;
  1738. | buf = (char *) yyalloc(n );
  1739. | if ( ! buf )
  1740. | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
  1741. |
  1742. | for ( i = 0; i < _yybytes_len; ++i )
  1743. | buf[i] = yybytes[i];
  1744. |
  1745. | buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
  1746. |
  1747. | b = yy_scan_buffer(buf,n );
  1748. | if ( ! b )
  1749. | YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
  1750. |
  1751. | /* It's okay to grow etc. this buffer, and we should throw it
  1752. | * away when we're done.
  1753. | */
  1754. | b->yy_is_our_buffer = 1;
  1755. |
  1756. | return b;
  1757. | }
  1758. |
  1759. | #ifndef YY_EXIT_FAILURE
  1760. | #define YY_EXIT_FAILURE 2
  1761. | #endif
  1762. |
  1763. | static void yy_fatal_error (yyconst char* msg )
  1764. | {
  1765. | (void) fprintf( stderr, "%s\n", msg );
  1766. | exit( YY_EXIT_FAILURE );
  1767. | }
  1768. |
  1769. | /* Redefine yyless() so it works in section 3 code. */
  1770. |
  1771. | #undef yyless
  1772. | #define yyless(n) \
  1773. | do \
  1774. | { \
  1775. | /* Undo effects of setting up yytext. */ \
  1776. | int yyless_macro_arg = (n); \
  1777. | YY_LESS_LINENO(yyless_macro_arg);\
  1778. | yytext[yyleng] = (yy_hold_char); \
  1779. | (yy_c_buf_p) = yytext + yyless_macro_arg; \
  1780. | (yy_hold_char) = *(yy_c_buf_p); \
  1781. | *(yy_c_buf_p) = '\0'; \
  1782. | yyleng = yyless_macro_arg; \
  1783. | } \
  1784. | while ( 0 )
  1785. |
  1786. | /* Accessor methods (get/set functions) to struct members. */
  1787. |
  1788. | /** Get the current line number.
  1789. | *
  1790. | */
  1791. | int yyget_lineno (void)
  1792. | {
  1793. |
  1794. | return yylineno;
  1795. | }
  1796. |
  1797. | /** Get the input stream.
  1798. | *
  1799. | */
  1800. | FILE *yyget_in (void)
  1801. | {
  1802. | return yyin;
  1803. | }
  1804. |
  1805. | /** Get the output stream.
  1806. | *
  1807. | */
  1808. | FILE *yyget_out (void)
  1809. | {
  1810. | return yyout;
  1811. | }
  1812. |
  1813. | /** Get the length of the current token.
  1814. | *
  1815. | */
  1816. | yy_size_t yyget_leng (void)
  1817. | {
  1818. | return yyleng;
  1819. | }
  1820. |
  1821. | /** Get the current token.
  1822. | *
  1823. | */
  1824. |
  1825. | char *yyget_text (void)
  1826. | {
  1827. | return yytext;
  1828. | }
  1829. |
  1830. | /** Set the current line number.
  1831. | * @param line_number
  1832. | *
  1833. | */
  1834. | void yyset_lineno (int line_number )
  1835. | {
  1836. |
  1837. | yylineno = line_number;
  1838. | }
  1839. |
  1840. | /** Set the input stream. This does not discard the current
  1841. | * input buffer.
  1842. | * @param in_str A readable stream.
  1843. | *
  1844. | * @see yy_switch_to_buffer
  1845. | */
  1846. | void yyset_in (FILE * in_str )
  1847. | {
  1848. | yyin = in_str ;
  1849. | }
  1850. |
  1851. | void yyset_out (FILE * out_str )
  1852. | {
  1853. | yyout = out_str ;
  1854. | }
  1855. |
  1856. | int yyget_debug (void)
  1857. | {
  1858. | return yy_flex_debug;
  1859. | }
  1860. |
  1861. | void yyset_debug (int bdebug )
  1862. | {
  1863. | yy_flex_debug = bdebug ;
  1864. | }
  1865. |
  1866. | static int yy_init_globals (void)
  1867. | {
  1868. | /* Initialization is the same as for the non-reentrant scanner.
  1869. | * This function is called from yylex_destroy(), so don't allocate here.
  1870. | */
  1871. |
  1872. | (yy_buffer_stack) = 0;
  1873. | (yy_buffer_stack_top) = 0;
  1874. | (yy_buffer_stack_max) = 0;
  1875. | (yy_c_buf_p) = (char *) 0;
  1876. | (yy_init) = 0;
  1877. | (yy_start) = 0;
  1878. |
  1879. | (yy_state_buf) = 0;
  1880. | (yy_state_ptr) = 0;
  1881. | (yy_full_match) = 0;
  1882. | (yy_lp) = 0;
  1883. |
  1884. | /* Defined in main.c */
  1885. | #ifdef YY_STDINIT
  1886. | yyin = stdin;
  1887. | yyout = stdout;
  1888. | #else
  1889. | yyin = (FILE *) 0;
  1890. | yyout = (FILE *) 0;
  1891. | #endif
  1892. |
  1893. | /* For future reference: Set errno on error, since we are called by
  1894. | * yylex_init()
  1895. | */
  1896. | return 0;
  1897. | }
  1898. |
  1899. | /* yylex_destroy is for both reentrant and non-reentrant scanners. */
  1900. | int yylex_destroy (void)
  1901. | {
  1902. |
  1903. | /* Pop the buffer stack, destroying each element. */
  1904. | while(YY_CURRENT_BUFFER){
  1905. | yy_delete_buffer(YY_CURRENT_BUFFER );
  1906. | YY_CURRENT_BUFFER_LVALUE = NULL;
  1907. | yypop_buffer_state();
  1908. | }
  1909. |
  1910. | /* Destroy the stack itself. */
  1911. | yyfree((yy_buffer_stack) );
  1912. | (yy_buffer_stack) = NULL;
  1913. |
  1914. | yyfree ( (yy_state_buf) );
  1915. | (yy_state_buf) = NULL;
  1916. |
  1917. | /* Reset the globals. This is important in a non-reentrant scanner so the next time
  1918. | * yylex() is called, initialization will occur. */
  1919. | yy_init_globals( );
  1920. |
  1921. | return 0;
  1922. | }
  1923. |
  1924. | /*
  1925. | * Internal utility routines.
  1926. | */
  1927. |
  1928. | #ifndef yytext_ptr
  1929. | static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
  1930. | {
  1931. | register int i;
  1932. | for ( i = 0; i < n; ++i )
  1933. | s1[i] = s2[i];
  1934. | }
  1935. | #endif
  1936. |
  1937. | #ifdef YY_NEED_STRLEN
  1938. | static int yy_flex_strlen (yyconst char * s )
  1939. | {
  1940. | register int n;
  1941. | for ( n = 0; s[n]; ++n )
  1942. | ;
  1943. |
  1944. | return n;
  1945. | }
  1946. | #endif
  1947. |
  1948. | void *yyalloc (yy_size_t size )
  1949. | {
  1950. | return (void *) malloc( size );
  1951. | }
  1952. |
  1953. | void *yyrealloc (void * ptr, yy_size_t size )
  1954. | {
  1955. | /* The cast to (char *) in the following accommodates both
  1956. | * implementations that use char* generic pointers, and those
  1957. | * that use void* generic pointers. It works with the latter
  1958. | * because both ANSI C and C++ allow castless assignment from
  1959. | * any pointer type to void*, and deal with argument conversions
  1960. | * as though doing an assignment.
  1961. | */
  1962. | return (void *) realloc( (char *) ptr, size );
  1963. | }
  1964. |
  1965. | void yyfree (void * ptr )
  1966. | {
  1967. | free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
  1968. | }
  1969. |
  1970. | #define YYTABLES_NAME "yytables"
  1971. |
  1972. | #line 9 "conftest.l"
  1973. |
  1974. |
  1975. | #ifdef YYTEXT_POINTER
  1976. | extern char *yytext;
  1977. | #endif
  1978. | int
  1979. | main (void)
  1980. | {
  1981. | return ! yylex () + ! yywrap ();
  1982. | }
  1983. configure:4136: gcc -o conftest conftest.c -lfl >&5
  1984. ld: library not found for -lfl
  1985. collect2: ld returned 1 exit status
  1986. configure:4136: $? = 1
  1987. configure: failed program was:
  1988. | /* confdefs.h */
  1989. | #define PACKAGE_NAME "xboard"
  1990. | #define PACKAGE_TARNAME "xboard"
  1991. | #define PACKAGE_VERSION "4.5.2a"
  1992. | #define PACKAGE_STRING "xboard 4.5.2a"
  1993. | #define PACKAGE_BUGREPORT "bug-xboard@gnu.org"
  1994. | #define PACKAGE_URL ""
  1995. | #define PACKAGE "xboard"
  1996. | #define VERSION "4.5.2a"
  1997. | /* end confdefs.h. */
  1998. |
  1999. | #line 3 "lex.yy.c"
  2000. |
  2001. | #define YY_INT_ALIGNED short int
  2002. |
  2003. | /* A lexical scanner generated by flex */
  2004. |
  2005. | #define FLEX_SCANNER
  2006. | #define YY_FLEX_MAJOR_VERSION 2
  2007. | #define YY_FLEX_MINOR_VERSION 5
  2008. | #define YY_FLEX_SUBMINOR_VERSION 35
  2009. | #if YY_FLEX_SUBMINOR_VERSION > 0
  2010. | #define FLEX_BETA
  2011. | #endif
  2012. |
  2013. | /* First, we deal with platform-specific or compiler-specific issues. */
  2014. |
  2015. | /* begin standard C headers. */
  2016. | #include <stdio.h>
  2017. | #include <string.h>
  2018. | #include <errno.h>
  2019. | #include <stdlib.h>
  2020. |
  2021. | /* end standard C headers. */
  2022. |
  2023. | /* flex integer type definitions */
  2024. |
  2025. | #ifndef FLEXINT_H
  2026. | #define FLEXINT_H
  2027. |
  2028. | /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
  2029. |
  2030. | #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
  2031. |
  2032. | /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
  2033. | * if you want the limit (max/min) macros for int types.
  2034. | */
  2035. | #ifndef __STDC_LIMIT_MACROS
  2036. | #define __STDC_LIMIT_MACROS 1
  2037. | #endif
  2038. |
  2039. | #include <inttypes.h>
  2040. | typedef int8_t flex_int8_t;
  2041. | typedef uint8_t flex_uint8_t;
  2042. | typedef int16_t flex_int16_t;
  2043. | typedef uint16_t flex_uint16_t;
  2044. | typedef int32_t flex_int32_t;
  2045. | typedef uint32_t flex_uint32_t;
  2046. | typedef uint64_t flex_uint64_t;
  2047. | #else
  2048. | typedef signed char flex_int8_t;
  2049. | typedef short int flex_int16_t;
  2050. | typedef int flex_int32_t;
  2051. | typedef unsigned char flex_uint8_t;
  2052. | typedef unsigned short int flex_uint16_t;
  2053. | typedef unsigned int flex_uint32_t;
  2054. | #endif /* ! C99 */
  2055. |
  2056. | /* Limits of integral types. */
  2057. | #ifndef INT8_MIN
  2058. | #define INT8_MIN (-128)
  2059. | #endif
  2060. | #ifndef INT16_MIN
  2061. | #define INT16_MIN (-32767-1)
  2062. | #endif
  2063. | #ifndef INT32_MIN
  2064. | #define INT32_MIN (-2147483647-1)
  2065. | #endif
  2066. | #ifndef INT8_MAX
  2067. | #define INT8_MAX (127)
  2068. | #endif
  2069. | #ifndef INT16_MAX
  2070. | #define INT16_MAX (32767)
  2071. | #endif
  2072. | #ifndef INT32_MAX
  2073. | #define INT32_MAX (2147483647)
  2074. | #endif
  2075. | #ifndef UINT8_MAX
  2076. | #define UINT8_MAX (255U)
  2077. | #endif
  2078. | #ifndef UINT16_MAX
  2079. | #define UINT16_MAX (65535U)
  2080. | #endif
  2081. | #ifndef UINT32_MAX
  2082. | #define UINT32_MAX (4294967295U)
  2083. | #endif
  2084. |
  2085. | #endif /* ! FLEXINT_H */
  2086. |
  2087. | #ifdef __cplusplus
  2088. |
  2089. | /* The "const" storage-class-modifier is valid. */
  2090. | #define YY_USE_CONST
  2091. |
  2092. | #else /* ! __cplusplus */
  2093. |
  2094. | /* C99 requires __STDC__ to be defined as 1. */
  2095. | #if defined (__STDC__)
  2096. |
  2097. | #define YY_USE_CONST
  2098. |
  2099. | #endif /* defined (__STDC__) */
  2100. | #endif /* ! __cplusplus */
  2101. |
  2102. | #ifdef YY_USE_CONST
  2103. | #define yyconst const
  2104. | #else
  2105. | #define yyconst
  2106. | #endif
  2107. |
  2108. | /* Returned upon end-of-file. */
  2109. | #define YY_NULL 0
  2110. |
  2111. | /* Promotes a possibly negative, possibly signed char to an unsigned
  2112. | * integer for use as an array index. If the signed char is negative,
  2113. | * we want to instead treat it as an 8-bit unsigned char, hence the
  2114. | * double cast.
  2115. | */
  2116. | #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
  2117. |
  2118. | /* Enter a start condition. This macro really ought to take a parameter,
  2119. | * but we do it the disgusting crufty way forced on us by the ()-less
  2120. | * definition of BEGIN.
  2121. | */
  2122. | #define BEGIN (yy_start) = 1 + 2 *
  2123. |
  2124. | /* Translate the current start state into a value that can be later handed
  2125. | * to BEGIN to return to the state. The YYSTATE alias is for lex
  2126. | * compatibility.
  2127. | */
  2128. | #define YY_START (((yy_start) - 1) / 2)
  2129. | #define YYSTATE YY_START
  2130. |
  2131. | /* Action number for EOF rule of a given start state. */
  2132. | #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  2133. |
  2134. | /* Special action meaning "start processing a new file". */
  2135. | #define YY_NEW_FILE yyrestart(yyin )
  2136. |
  2137. | #define YY_END_OF_BUFFER_CHAR 0
  2138. |
  2139. | /* Size of default input buffer. */
  2140. | #ifndef YY_BUF_SIZE
  2141. | #define YY_BUF_SIZE 16384
  2142. | #endif
  2143. |
  2144. | /* The state buf must be large enough to hold one state per character in the main buffer.
  2145. | */
  2146. | #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
  2147. |
  2148. | #ifndef YY_TYPEDEF_YY_BUFFER_STATE
  2149. | #define YY_TYPEDEF_YY_BUFFER_STATE
  2150. | typedef struct yy_buffer_state *YY_BUFFER_STATE;
  2151. | #endif
  2152. |
  2153. | #ifndef YY_TYPEDEF_YY_SIZE_T
  2154. | #define YY_TYPEDEF_YY_SIZE_T
  2155. | typedef size_t yy_size_t;
  2156. | #endif
  2157. |
  2158. | extern yy_size_t yyleng;
  2159. |
  2160. | extern FILE *yyin, *yyout;
  2161. |
  2162. | #define EOB_ACT_CONTINUE_SCAN 0
  2163. | #define EOB_ACT_END_OF_FILE 1
  2164. | #define EOB_ACT_LAST_MATCH 2
  2165. |
  2166. | #define YY_LESS_LINENO(n)
  2167. |
  2168. | /* Return all but the first "n" matched characters back to the input stream. */
  2169. | #define yyless(n) \
  2170. | do \
  2171. | { \
  2172. | /* Undo effects of setting up yytext. */ \
  2173. | int yyless_macro_arg = (n); \
  2174. | YY_LESS_LINENO(yyless_macro_arg);\
  2175. | *yy_cp = (yy_hold_char); \
  2176. | YY_RESTORE_YY_MORE_OFFSET \
  2177. | (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
  2178. | YY_DO_BEFORE_ACTION; /* set up yytext again */ \
  2179. | } \
  2180. | while ( 0 )
  2181. |
  2182. | #define unput(c) yyunput( c, (yytext_ptr) )
  2183. |
  2184. | #ifndef YY_STRUCT_YY_BUFFER_STATE
  2185. | #define YY_STRUCT_YY_BUFFER_STATE
  2186. | struct yy_buffer_state
  2187. | {
  2188. | FILE *yy_input_file;
  2189. |
  2190. | char *yy_ch_buf; /* input buffer */
  2191. | char *yy_buf_pos; /* current position in input buffer */
  2192. |
  2193. | /* Size of input buffer in bytes, not including room for EOB
  2194. | * characters.
  2195. | */
  2196. | yy_size_t yy_buf_size;
  2197. |
  2198. | /* Number of characters read into yy_ch_buf, not including EOB
  2199. | * characters.
  2200. | */
  2201. | yy_size_t yy_n_chars;
  2202. |
  2203. | /* Whether we "own" the buffer - i.e., we know we created it,
  2204. | * and can realloc() it to grow it, and should free() it to
  2205. | * delete it.
  2206. | */
  2207. | int yy_is_our_buffer;
  2208. |
  2209. | /* Whether this is an "interactive" input source; if so, and
  2210. | * if we're using stdio for input, then we want to use getc()
  2211. | * instead of fread(), to make sure we stop fetching input after
  2212. | * each newline.
  2213. | */
  2214. | int yy_is_interactive;
  2215. |
  2216. | /* Whether we're considered to be at the beginning of a line.
  2217. | * If so, '^' rules will be active on the next match, otherwise
  2218. | * not.
  2219. | */
  2220. | int yy_at_bol;
  2221. |
  2222. | int yy_bs_lineno; /**< The line count. */
  2223. | int yy_bs_column; /**< The column count. */
  2224. |
  2225. | /* Whether to try to fill the input buffer when we reach the
  2226. | * end of it.
  2227. | */
  2228. | int yy_fill_buffer;
  2229. |
  2230. | int yy_buffer_status;
  2231. |
  2232. | #define YY_BUFFER_NEW 0
  2233. | #define YY_BUFFER_NORMAL 1
  2234. | /* When an EOF's been seen but there's still some text to process
  2235. | * then we mark the buffer as YY_EOF_PENDING, to indicate that we
  2236. | * shouldn't try reading from the input source any more. We might
  2237. | * still have a bunch of tokens to match, though, because of
  2238. | * possible backing-up.
  2239. | *
  2240. | * When we actually see the EOF, we change the status to "new"
  2241. | * (via yyrestart()), so that the user can continue scanning by
  2242. | * just pointing yyin at a new input file.
  2243. | */
  2244. | #define YY_BUFFER_EOF_PENDING 2
  2245. |
  2246. | };
  2247. | #endif /* !YY_STRUCT_YY_BUFFER_STATE */
  2248. |
  2249. | /* Stack of input buffers. */
  2250. | static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
  2251. | static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
  2252. | static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
  2253. |
  2254. | /* We provide macros for accessing buffer states in case in the
  2255. | * future we want to put the buffer states in a more general
  2256. | * "scanner state".
  2257. | *
  2258. | * Returns the top of the stack, or NULL.
  2259. | */
  2260. | #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
  2261. | ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
  2262. | : NULL)
  2263. |
  2264. | /* Same as previous macro, but useful when we know that the buffer stack is not
  2265. | * NULL or when we need an lvalue. For internal use only.
  2266. | */
  2267. | #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
  2268. |
  2269. | /* yy_hold_char holds the character lost when yytext is formed. */
  2270. | static char yy_hold_char;
  2271. | static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */
  2272. | yy_size_t yyleng;
  2273. |
  2274. | /* Points to current character in buffer. */
  2275. | static char *yy_c_buf_p = (char *) 0;
  2276. | static int yy_init = 0; /* whether we need to initialize */
  2277. | static int yy_start = 0; /* start state number */
  2278. |
  2279. | /* Flag which is used to allow yywrap()'s to do buffer switches
  2280. | * instead of setting up a fresh yyin. A bit of a hack ...
  2281. | */
  2282. | static int yy_did_buffer_switch_on_eof;
  2283. |
  2284. | void yyrestart (FILE *input_file );
  2285. | void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer );
  2286. | YY_BUFFER_STATE yy_create_buffer (FILE *file,int size );
  2287. | void yy_delete_buffer (YY_BUFFER_STATE b );
  2288. | void yy_flush_buffer (YY_BUFFER_STATE b );
  2289. | void yypush_buffer_state (YY_BUFFER_STATE new_buffer );
  2290. | void yypop_buffer_state (void );
  2291. |
  2292. | static void yyensure_buffer_stack (void );
  2293. | static void yy_load_buffer_state (void );
  2294. | static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file );
  2295. |
  2296. | #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER )
  2297. |
  2298. | YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size );
  2299. | YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str );
  2300. | YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len );
  2301. |
  2302. | void *yyalloc (yy_size_t );
  2303. | void *yyrealloc (void *,yy_size_t );
  2304. | void yyfree (void * );
  2305. |
  2306. | #define yy_new_buffer yy_create_buffer
  2307. |
  2308. | #define yy_set_interactive(is_interactive) \
  2309. | { \
  2310. | if ( ! YY_CURRENT_BUFFER ){ \
  2311. | yyensure_buffer_stack (); \
  2312. | YY_CURRENT_BUFFER_LVALUE = \
  2313. | yy_create_buffer(yyin,YY_BUF_SIZE ); \
  2314. | } \
  2315. | YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
  2316. | }
  2317. |
  2318. | #define yy_set_bol(at_bol) \
  2319. | { \
  2320. | if ( ! YY_CURRENT_BUFFER ){\
  2321. | yyensure_buffer_stack (); \
  2322. | YY_CURRENT_BUFFER_LVALUE = \
  2323. | yy_create_buffer(yyin,YY_BUF_SIZE ); \
  2324. | } \
  2325. | YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
  2326. | }
  2327. |
  2328. | #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
  2329. |
  2330. | /* Begin user sect3 */
  2331. |
  2332. | typedef unsigned char YY_CHAR;
  2333. |
  2334. | FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
  2335. |
  2336. | typedef int yy_state_type;
  2337. |
  2338. | extern int yylineno;
  2339. |
  2340. | int yylineno = 1;
  2341. |
  2342. | extern char *yytext;
  2343. | #define yytext_ptr yytext
  2344. |
  2345. | static yy_state_type yy_get_previous_state (void );
  2346. | static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
  2347. | static int yy_get_next_buffer (void );
  2348. | static void yy_fatal_error (yyconst char msg[] );
  2349. |
  2350. | /* Done after the current pattern has been matched and before the
  2351. | * corresponding action - sets up yytext.
  2352. | */
  2353. | #define YY_DO_BEFORE_ACTION \
  2354. | (yytext_ptr) = yy_bp; \
  2355. | (yytext_ptr) -= (yy_more_len); \
  2356. | yyleng = (yy_size_t) (yy_cp - (yytext_ptr)); \
  2357. | (yy_hold_char) = *yy_cp; \
  2358. | *yy_cp = '\0'; \
  2359. | (yy_c_buf_p) = yy_cp;
  2360. |
  2361. | #define YY_NUM_RULES 8
  2362. | #define YY_END_OF_BUFFER 9
  2363. | /* This struct is not used in this scanner,
  2364. | but its presence is necessary. */
  2365. | struct yy_trans_info
  2366. | {
  2367. | flex_int32_t yy_verify;
  2368. | flex_int32_t yy_nxt;
  2369. | };
  2370. | static yyconst flex_int16_t yy_acclist[23] =
  2371. | { 0,
  2372. | 9, 7, 8, 8, 1, 7, 8, 2, 7, 8,
  2373. | 3, 7, 8, 4, 7, 8, 5, 7, 8, 6,
  2374. | 7, 8
  2375. | } ;
  2376. |
  2377. | static yyconst flex_int16_t yy_accept[14] =
  2378. | { 0,
  2379. | 1, 1, 1, 2, 4, 5, 8, 11, 14, 17,
  2380. | 20, 23, 23
  2381. | } ;
  2382. |
  2383. | static yyconst flex_int32_t yy_ec[256] =
  2384. | { 0,
  2385. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
  2386. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2387. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2388. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2389. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2390. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2391. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2392. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2393. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2394. | 1, 1, 1, 1, 1, 1, 3, 4, 5, 6,
  2395. |
  2396. | 7, 8, 1, 1, 1, 1, 1, 1, 1, 1,
  2397. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2398. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2399. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2400. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2401. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2402. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2403. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2404. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2405. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2406. |
  2407. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2408. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2409. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2410. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2411. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2412. | 1, 1, 1, 1, 1
  2413. | } ;
  2414. |
  2415. | static yyconst flex_int32_t yy_meta[9] =
  2416. | { 0,
  2417. | 1, 1, 1, 1, 1, 1, 1, 1
  2418. | } ;
  2419. |
  2420. | static yyconst flex_int16_t yy_base[13] =
  2421. | { 0,
  2422. | 0, 0, 9, 10, 10, 10, 10, 10, 10, 10,
  2423. | 10, 10
  2424. | } ;
  2425. |
  2426. | static yyconst flex_int16_t yy_def[13] =
  2427. | { 0,
  2428. | 12, 1, 12, 12, 12, 12, 12, 12, 12, 12,
  2429. | 12, 0
  2430. | } ;
  2431. |
  2432. | static yyconst flex_int16_t yy_nxt[19] =
  2433. | { 0,
  2434. | 4, 5, 6, 7, 8, 9, 10, 11, 12, 3,
  2435. | 12, 12, 12, 12, 12, 12, 12, 12
  2436. | } ;
  2437. |
  2438. | static yyconst flex_int16_t yy_chk[19] =
  2439. | { 0,
  2440. | 1, 1, 1, 1, 1, 1, 1, 1, 3, 12,
  2441. | 12, 12, 12, 12, 12, 12, 12, 12
  2442. | } ;
  2443. |
  2444. | extern int yy_flex_debug;
  2445. | int yy_flex_debug = 0;
  2446. |
  2447. | static yy_state_type *yy_state_buf=0, *yy_state_ptr=0;
  2448. | static char *yy_full_match;
  2449. | static int yy_lp;
  2450. | #define REJECT \
  2451. | { \
  2452. | *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ \
  2453. | yy_cp = (yy_full_match); /* restore poss. backed-over text */ \
  2454. | ++(yy_lp); \
  2455. | goto find_rule; \
  2456. | }
  2457. |
  2458. | static int yy_more_flag = 0;
  2459. | static int yy_more_len = 0;
  2460. | #define yymore() ((yy_more_flag) = 1)
  2461. | #define YY_MORE_ADJ (yy_more_len)
  2462. | #define YY_RESTORE_YY_MORE_OFFSET
  2463. | char *yytext;
  2464. | #line 1 "conftest.l"
  2465. | #line 469 "lex.yy.c"
  2466. |
  2467. | #define INITIAL 0
  2468. |
  2469. | #ifndef YY_NO_UNISTD_H
  2470. | /* Special case for "unistd.h", since it is non-ANSI. We include it way
  2471. | * down here because we want the user's section 1 to have been scanned first.
  2472. | * The user has a chance to override it with an option.
  2473. | */
  2474. | #include <unistd.h>
  2475. | #endif
  2476. |
  2477. | #ifndef YY_EXTRA_TYPE
  2478. | #define YY_EXTRA_TYPE void *
  2479. | #endif
  2480. |
  2481. | static int yy_init_globals (void );
  2482. |
  2483. | /* Accessor methods to globals.
  2484. | These are made visible to non-reentrant scanners for convenience. */
  2485. |
  2486. | int yylex_destroy (void );
  2487. |
  2488. | int yyget_debug (void );
  2489. |
  2490. | void yyset_debug (int debug_flag );
  2491. |
  2492. | YY_EXTRA_TYPE yyget_extra (void );
  2493. |
  2494. | void yyset_extra (YY_EXTRA_TYPE user_defined );
  2495. |
  2496. | FILE *yyget_in (void );
  2497. |
  2498. | void yyset_in (FILE * in_str );
  2499. |
  2500. | FILE *yyget_out (void );
  2501. |
  2502. | void yyset_out (FILE * out_str );
  2503. |
  2504. | yy_size_t yyget_leng (void );
  2505. |
  2506. | char *yyget_text (void );
  2507. |
  2508. | int yyget_lineno (void );
  2509. |
  2510. | void yyset_lineno (int line_number );
  2511. |
  2512. | /* Macros after this point can all be overridden by user definitions in
  2513. | * section 1.
  2514. | */
  2515. |
  2516. | #ifndef YY_SKIP_YYWRAP
  2517. | #ifdef __cplusplus
  2518. | extern "C" int yywrap (void );
  2519. | #else
  2520. | extern int yywrap (void );
  2521. | #endif
  2522. | #endif
  2523. |
  2524. | static void yyunput (int c,char *buf_ptr );
  2525. |
  2526. | #ifndef yytext_ptr
  2527. | static void yy_flex_strncpy (char *,yyconst char *,int );
  2528. | #endif
  2529. |
  2530. | #ifdef YY_NEED_STRLEN
  2531. | static int yy_flex_strlen (yyconst char * );
  2532. | #endif
  2533. |
  2534. | #ifndef YY_NO_INPUT
  2535. |
  2536. | #ifdef __cplusplus
  2537. | static int yyinput (void );
  2538. | #else
  2539. | static int input (void );
  2540. | #endif
  2541. |
  2542. | #endif
  2543. |
  2544. | /* Amount of stuff to slurp up with each read. */
  2545. | #ifndef YY_READ_BUF_SIZE
  2546. | #define YY_READ_BUF_SIZE 8192
  2547. | #endif
  2548. |
  2549. | /* Copy whatever the last rule matched to the standard output. */
  2550. | #ifndef ECHO
  2551. | /* This used to be an fputs(), but since the string might contain NUL's,
  2552. | * we now use fwrite().
  2553. | */
  2554. | #define ECHO fwrite( yytext, yyleng, 1, yyout )
  2555. | #endif
  2556. |
  2557. | /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
  2558. | * is returned in "result".
  2559. | */
  2560. | #ifndef YY_INPUT
  2561. | #define YY_INPUT(buf,result,max_size) \
  2562. | if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
  2563. | { \
  2564. | int c = '*'; \
  2565. | yy_size_t n; \
  2566. | for ( n = 0; n < max_size && \
  2567. | (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
  2568. | buf[n] = (char) c; \
  2569. | if ( c == '\n' ) \
  2570. | buf[n++] = (char) c; \
  2571. | if ( c == EOF && ferror( yyin ) ) \
  2572. | YY_FATAL_ERROR( "input in flex scanner failed" ); \
  2573. | result = n; \
  2574. | } \
  2575. | else \
  2576. | { \
  2577. | errno=0; \
  2578. | while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
  2579. | { \
  2580. | if( errno != EINTR) \
  2581. | { \
  2582. | YY_FATAL_ERROR( "input in flex scanner failed" ); \
  2583. | break; \
  2584. | } \
  2585. | errno=0; \
  2586. | clearerr(yyin); \
  2587. | } \
  2588. | }\
  2589. | \
  2590. |
  2591. | #endif
  2592. |
  2593. | /* No semi-colon after return; correct usage is to write "yyterminate();" -
  2594. | * we don't want an extra ';' after the "return" because that will cause
  2595. | * some compilers to complain about unreachable statements.
  2596. | */
  2597. | #ifndef yyterminate
  2598. | #define yyterminate() return YY_NULL
  2599. | #endif
  2600. |
  2601. | /* Number of entries by which start-condition stack grows. */
  2602. | #ifndef YY_START_STACK_INCR
  2603. | #define YY_START_STACK_INCR 25
  2604. | #endif
  2605. |
  2606. | /* Report a fatal error. */
  2607. | #ifndef YY_FATAL_ERROR
  2608. | #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
  2609. | #endif
  2610. |
  2611. | /* end tables serialization structures and prototypes */
  2612. |
  2613. | /* Default declaration of generated scanner - a define so the user can
  2614. | * easily add parameters.
  2615. | */
  2616. | #ifndef YY_DECL
  2617. | #define YY_DECL_IS_OURS 1
  2618. |
  2619. | extern int yylex (void);
  2620. |
  2621. | #define YY_DECL int yylex (void)
  2622. | #endif /* !YY_DECL */
  2623. |
  2624. | /* Code executed at the beginning of each rule, after yytext and yyleng
  2625. | * have been set up.
  2626. | */
  2627. | #ifndef YY_USER_ACTION
  2628. | #define YY_USER_ACTION
  2629. | #endif
  2630. |
  2631. | /* Code executed at the end of each rule. */
  2632. | #ifndef YY_BREAK
  2633. | #define YY_BREAK break;
  2634. | #endif
  2635. |
  2636. | #define YY_RULE_SETUP \
  2637. | YY_USER_ACTION
  2638. |
  2639. | /** The main scanner function which does all the work.
  2640. | */
  2641. | YY_DECL
  2642. | {
  2643. | register yy_state_type yy_current_state;
  2644. | register char *yy_cp, *yy_bp;
  2645. | register int yy_act;
  2646. |
  2647. | #line 1 "conftest.l"
  2648. |
  2649. | #line 653 "lex.yy.c"
  2650. |
  2651. | if ( !(yy_init) )
  2652. | {
  2653. | (yy_init) = 1;
  2654. |
  2655. | #ifdef YY_USER_INIT
  2656. | YY_USER_INIT;
  2657. | #endif
  2658. |
  2659. | /* Create the reject buffer large enough to save one state per allowed character. */
  2660. | if ( ! (yy_state_buf) )
  2661. | (yy_state_buf) = (yy_state_type *)yyalloc(YY_STATE_BUF_SIZE );
  2662. | if ( ! (yy_state_buf) )
  2663. | YY_FATAL_ERROR( "out of dynamic memory in yylex()" );
  2664. |
  2665. | if ( ! (yy_start) )
  2666. | (yy_start) = 1; /* first start state */
  2667. |
  2668. | if ( ! yyin )
  2669. | yyin = stdin;
  2670. |
  2671. | if ( ! yyout )
  2672. | yyout = stdout;
  2673. |
  2674. | if ( ! YY_CURRENT_BUFFER ) {
  2675. | yyensure_buffer_stack ();
  2676. | YY_CURRENT_BUFFER_LVALUE =
  2677. | yy_create_buffer(yyin,YY_BUF_SIZE );
  2678. | }
  2679. |
  2680. | yy_load_buffer_state( );
  2681. | }
  2682. |
  2683. | while ( 1 ) /* loops until end-of-file is reached */
  2684. | {
  2685. | (yy_more_len) = 0;
  2686. | if ( (yy_more_flag) )
  2687. | {
  2688. | (yy_more_len) = (yy_c_buf_p) - (yytext_ptr);
  2689. | (yy_more_flag) = 0;
  2690. | }
  2691. | yy_cp = (yy_c_buf_p);
  2692. |
  2693. | /* Support of yytext. */
  2694. | *yy_cp = (yy_hold_char);
  2695. |
  2696. | /* yy_bp points to the position in yy_ch_buf of the start of
  2697. | * the current run.
  2698. | */
  2699. | yy_bp = yy_cp;
  2700. |
  2701. | yy_current_state = (yy_start);
  2702. |
  2703. | (yy_state_ptr) = (yy_state_buf);
  2704. | *(yy_state_ptr)++ = yy_current_state;
  2705. |
  2706. | yy_match:
  2707. | do
  2708. | {
  2709. | register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
  2710. | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  2711. | {
  2712. | yy_current_state = (int) yy_def[yy_current_state];
  2713. | if ( yy_current_state >= 13 )
  2714. | yy_c = yy_meta[(unsigned int) yy_c];
  2715. | }
  2716. | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  2717. | *(yy_state_ptr)++ = yy_current_state;
  2718. | ++yy_cp;
  2719. | }
  2720. | while ( yy_base[yy_current_state] != 10 );
  2721. |
  2722. | yy_find_action:
  2723. | yy_current_state = *--(yy_state_ptr);
  2724. | (yy_lp) = yy_accept[yy_current_state];
  2725. | goto find_rule; /* Shut up GCC warning -Wall */
  2726. | find_rule: /* we branch to this label when backing up */
  2727. | for ( ; ; ) /* until we find what rule we matched */
  2728. | {
  2729. | if ( (yy_lp) && (yy_lp) < yy_accept[yy_current_state + 1] )
  2730. | {
  2731. | yy_act = yy_acclist[(yy_lp)];
  2732. | {
  2733. | (yy_full_match) = yy_cp;
  2734. | break;
  2735. | }
  2736. | }
  2737. | --yy_cp;
  2738. | yy_current_state = *--(yy_state_ptr);
  2739. | (yy_lp) = yy_accept[yy_current_state];
  2740. | }
  2741. |
  2742. | YY_DO_BEFORE_ACTION;
  2743. |
  2744. | do_action: /* This label is used only to access EOF actions. */
  2745. |
  2746. | switch ( yy_act )
  2747. | { /* beginning of action switch */
  2748. | case 1:
  2749. | YY_RULE_SETUP
  2750. | #line 2 "conftest.l"
  2751. | { ECHO; }
  2752. | YY_BREAK
  2753. | case 2:
  2754. | YY_RULE_SETUP
  2755. | #line 3 "conftest.l"
  2756. | { REJECT; }
  2757. | YY_BREAK
  2758. | case 3:
  2759. | YY_RULE_SETUP
  2760. | #line 4 "conftest.l"
  2761. | { yymore (); }
  2762. | YY_BREAK
  2763. | case 4:
  2764. | YY_RULE_SETUP
  2765. | #line 5 "conftest.l"
  2766. | { yyless (1); }
  2767. | YY_BREAK
  2768. | case 5:
  2769. | YY_RULE_SETUP
  2770. | #line 6 "conftest.l"
  2771. | { yyless (input () != 0); }
  2772. | YY_BREAK
  2773. | case 6:
  2774. | YY_RULE_SETUP
  2775. | #line 7 "conftest.l"
  2776. | { unput (yytext[0]); }
  2777. | YY_BREAK
  2778. | case 7:
  2779. | YY_RULE_SETUP
  2780. | #line 8 "conftest.l"
  2781. | { BEGIN INITIAL; }
  2782. | YY_BREAK
  2783. | case 8:
  2784. | YY_RULE_SETUP
  2785. | #line 9 "conftest.l"
  2786. | ECHO;
  2787. | YY_BREAK
  2788. | #line 792 "lex.yy.c"
  2789. | case YY_STATE_EOF(INITIAL):
  2790. | yyterminate();
  2791. |
  2792. | case YY_END_OF_BUFFER:
  2793. | {
  2794. | /* Amount of text matched not including the EOB char. */
  2795. | int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
  2796. |
  2797. | /* Undo the effects of YY_DO_BEFORE_ACTION. */
  2798. | *yy_cp = (yy_hold_char);
  2799. | YY_RESTORE_YY_MORE_OFFSET
  2800. |
  2801. | if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
  2802. | {
  2803. | /* We're scanning a new file or input source. It's
  2804. | * possible that this happened because the user
  2805. | * just pointed yyin at a new source and called
  2806. | * yylex(). If so, then we have to assure
  2807. | * consistency between YY_CURRENT_BUFFER and our
  2808. | * globals. Here is the right place to do so, because
  2809. | * this is the first action (other than possibly a
  2810. | * back-up) that will match for the new input source.
  2811. | */
  2812. | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  2813. | YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
  2814. | YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
  2815. | }
  2816. |
  2817. | /* Note that here we test for yy_c_buf_p "<=" to the position
  2818. | * of the first EOB in the buffer, since yy_c_buf_p will
  2819. | * already have been incremented past the NUL character
  2820. | * (since all states make transitions on EOB to the
  2821. | * end-of-buffer state). Contrast this with the test
  2822. | * in input().
  2823. | */
  2824. | if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
  2825. | { /* This was really a NUL. */
  2826. | yy_state_type yy_next_state;
  2827. |
  2828. | (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
  2829. |
  2830. | yy_current_state = yy_get_previous_state( );
  2831. |
  2832. | /* Okay, we're now positioned to make the NUL
  2833. | * transition. We couldn't have
  2834. | * yy_get_previous_state() go ahead and do it
  2835. | * for us because it doesn't know how to deal
  2836. | * with the possibility of jamming (and we don't
  2837. | * want to build jamming into it because then it
  2838. | * will run more slowly).
  2839. | */
  2840. |
  2841. | yy_next_state = yy_try_NUL_trans( yy_current_state );
  2842. |
  2843. | yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  2844. |
  2845. | if ( yy_next_state )
  2846. | {
  2847. | /* Consume the NUL. */
  2848. | yy_cp = ++(yy_c_buf_p);
  2849. | yy_current_state = yy_next_state;
  2850. | goto yy_match;
  2851. | }
  2852. |
  2853. | else
  2854. | {
  2855. | yy_cp = (yy_c_buf_p);
  2856. | goto yy_find_action;
  2857. | }
  2858. | }
  2859. |
  2860. | else switch ( yy_get_next_buffer( ) )
  2861. | {
  2862. | case EOB_ACT_END_OF_FILE:
  2863. | {
  2864. | (yy_did_buffer_switch_on_eof) = 0;
  2865. |
  2866. | if ( yywrap( ) )
  2867. | {
  2868. | /* Note: because we've taken care in
  2869. | * yy_get_next_buffer() to have set up
  2870. | * yytext, we can now set up
  2871. | * yy_c_buf_p so that if some total
  2872. | * hoser (like flex itself) wants to
  2873. | * call the scanner after we return the
  2874. | * YY_NULL, it'll still work - another
  2875. | * YY_NULL will get returned.
  2876. | */
  2877. | (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
  2878. |
  2879. | yy_act = YY_STATE_EOF(YY_START);
  2880. | goto do_action;
  2881. | }
  2882. |
  2883. | else
  2884. | {
  2885. | if ( ! (yy_did_buffer_switch_on_eof) )
  2886. | YY_NEW_FILE;
  2887. | }
  2888. | break;
  2889. | }
  2890. |
  2891. | case EOB_ACT_CONTINUE_SCAN:
  2892. | (yy_c_buf_p) =
  2893. | (yytext_ptr) + yy_amount_of_matched_text;
  2894. |
  2895. | yy_current_state = yy_get_previous_state( );
  2896. |
  2897. | yy_cp = (yy_c_buf_p);
  2898. | yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  2899. | goto yy_match;
  2900. |
  2901. | case EOB_ACT_LAST_MATCH:
  2902. | (yy_c_buf_p) =
  2903. | &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
  2904. |
  2905. | yy_current_state = yy_get_previous_state( );
  2906. |
  2907. | yy_cp = (yy_c_buf_p);
  2908. | yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  2909. | goto yy_find_action;
  2910. | }
  2911. | break;
  2912. | }
  2913. |
  2914. | default:
  2915. | YY_FATAL_ERROR(
  2916. | "fatal flex scanner internal error--no action found" );
  2917. | } /* end of action switch */
  2918. | } /* end of scanning one token */
  2919. | } /* end of yylex */
  2920. |
  2921. | /* yy_get_next_buffer - try to read in a new buffer
  2922. | *
  2923. | * Returns a code representing an action:
  2924. | * EOB_ACT_LAST_MATCH -
  2925. | * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
  2926. | * EOB_ACT_END_OF_FILE - end of file
  2927. | */
  2928. | static int yy_get_next_buffer (void)
  2929. | {
  2930. | register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
  2931. | register char *source = (yytext_ptr);
  2932. | register int number_to_move, i;
  2933. | int ret_val;
  2934. |
  2935. | if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
  2936. | YY_FATAL_ERROR(
  2937. | "fatal flex scanner internal error--end of buffer missed" );
  2938. |
  2939. | if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
  2940. | { /* Don't try to fill the buffer, so this is an EOF. */
  2941. | if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
  2942. | {
  2943. | /* We matched a single character, the EOB, so
  2944. | * treat this as a final EOF.
  2945. | */
  2946. | return EOB_ACT_END_OF_FILE;
  2947. | }
  2948. |
  2949. | else
  2950. | {
  2951. | /* We matched some text prior to the EOB, first
  2952. | * process it.
  2953. | */
  2954. | return EOB_ACT_LAST_MATCH;
  2955. | }
  2956. | }
  2957. |
  2958. | /* Try to read more data. */
  2959. |
  2960. | /* First move last chars to start of buffer. */
  2961. | number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
  2962. |
  2963. | for ( i = 0; i < number_to_move; ++i )
  2964. | *(dest++) = *(source++);
  2965. |
  2966. | if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
  2967. | /* don't do the read, it's not guaranteed to return an EOF,
  2968. | * just force an EOF
  2969. | */
  2970. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
  2971. |
  2972. | else
  2973. | {
  2974. | yy_size_t num_to_read =
  2975. | YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
  2976. |
  2977. | while ( num_to_read <= 0 )
  2978. | { /* Not enough room in the buffer - grow it. */
  2979. |
  2980. | YY_FATAL_ERROR(
  2981. | "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
  2982. |
  2983. | }
  2984. |
  2985. | if ( num_to_read > YY_READ_BUF_SIZE )
  2986. | num_to_read = YY_READ_BUF_SIZE;
  2987. |
  2988. | /* Read in more data. */
  2989. | YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
  2990. | (yy_n_chars), num_to_read );
  2991. |
  2992. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  2993. | }
  2994. |
  2995. | if ( (yy_n_chars) == 0 )
  2996. | {
  2997. | if ( number_to_move == YY_MORE_ADJ )
  2998. | {
  2999. | ret_val = EOB_ACT_END_OF_FILE;
  3000. | yyrestart(yyin );
  3001. | }
  3002. |
  3003. | else
  3004. | {
  3005. | ret_val = EOB_ACT_LAST_MATCH;
  3006. | YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
  3007. | YY_BUFFER_EOF_PENDING;
  3008. | }
  3009. | }
  3010. |
  3011. | else
  3012. | ret_val = EOB_ACT_CONTINUE_SCAN;
  3013. |
  3014. | if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
  3015. | /* Extend the array by 50%, plus the number we really need. */
  3016. | yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
  3017. | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
  3018. | if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
  3019. | YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
  3020. | }
  3021. |
  3022. | (yy_n_chars) += number_to_move;
  3023. | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
  3024. | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
  3025. |
  3026. | (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
  3027. |
  3028. | return ret_val;
  3029. | }
  3030. |
  3031. | /* yy_get_previous_state - get the state just before the EOB char was reached */
  3032. |
  3033. | static yy_state_type yy_get_previous_state (void)
  3034. | {
  3035. | register yy_state_type yy_current_state;
  3036. | register char *yy_cp;
  3037. |
  3038. | yy_current_state = (yy_start);
  3039. |
  3040. | (yy_state_ptr) = (yy_state_buf);
  3041. | *(yy_state_ptr)++ = yy_current_state;
  3042. |
  3043. | for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
  3044. | {
  3045. | register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
  3046. | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  3047. | {
  3048. | yy_current_state = (int) yy_def[yy_current_state];
  3049. | if ( yy_current_state >= 13 )
  3050. | yy_c = yy_meta[(unsigned int) yy_c];
  3051. | }
  3052. | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  3053. | *(yy_state_ptr)++ = yy_current_state;
  3054. | }
  3055. |
  3056. | return yy_current_state;
  3057. | }
  3058. |
  3059. | /* yy_try_NUL_trans - try to make a transition on the NUL character
  3060. | *
  3061. | * synopsis
  3062. | * next_state = yy_try_NUL_trans( current_state );
  3063. | */
  3064. | static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
  3065. | {
  3066. | register int yy_is_jam;
  3067. |
  3068. | register YY_CHAR yy_c = 1;
  3069. | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  3070. | {
  3071. | yy_current_state = (int) yy_def[yy_current_state];
  3072. | if ( yy_current_state >= 13 )
  3073. | yy_c = yy_meta[(unsigned int) yy_c];
  3074. | }
  3075. | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
  3076. | yy_is_jam = (yy_current_state == 12);
  3077. | if ( ! yy_is_jam )
  3078. | *(yy_state_ptr)++ = yy_current_state;
  3079. |
  3080. | return yy_is_jam ? 0 : yy_current_state;
  3081. | }
  3082. |
  3083. | static void yyunput (int c, register char * yy_bp )
  3084. | {
  3085. | register char *yy_cp;
  3086. |
  3087. | yy_cp = (yy_c_buf_p);
  3088. |
  3089. | /* undo effects of setting up yytext */
  3090. | *yy_cp = (yy_hold_char);
  3091. |
  3092. | if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
  3093. | { /* need to shift things up to make room */
  3094. | /* +2 for EOB chars. */
  3095. | register yy_size_t number_to_move = (yy_n_chars) + 2;
  3096. | register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
  3097. | YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
  3098. | register char *source =
  3099. | &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
  3100. |
  3101. | while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
  3102. | *--dest = *--source;
  3103. |
  3104. | yy_cp += (int) (dest - source);
  3105. | yy_bp += (int) (dest - source);
  3106. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
  3107. | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
  3108. |
  3109. | if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
  3110. | YY_FATAL_ERROR( "flex scanner push-back overflow" );
  3111. | }
  3112. |
  3113. | *--yy_cp = (char) c;
  3114. |
  3115. | (yytext_ptr) = yy_bp;
  3116. | (yy_hold_char) = *yy_cp;
  3117. | (yy_c_buf_p) = yy_cp;
  3118. | }
  3119. |
  3120. | #ifndef YY_NO_INPUT
  3121. | #ifdef __cplusplus
  3122. | static int yyinput (void)
  3123. | #else
  3124. | static int input (void)
  3125. | #endif
  3126. |
  3127. | {
  3128. | int c;
  3129. |
  3130. | *(yy_c_buf_p) = (yy_hold_char);
  3131. |
  3132. | if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
  3133. | {
  3134. | /* yy_c_buf_p now points to the character we want to return.
  3135. | * If this occurs *before* the EOB characters, then it's a
  3136. | * valid NUL; if not, then we've hit the end of the buffer.
  3137. | */
  3138. | if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
  3139. | /* This was really a NUL. */
  3140. | *(yy_c_buf_p) = '\0';
  3141. |
  3142. | else
  3143. | { /* need more input */
  3144. | yy_size_t offset = (yy_c_buf_p) - (yytext_ptr);
  3145. | ++(yy_c_buf_p);
  3146. |
  3147. | switch ( yy_get_next_buffer( ) )
  3148. | {
  3149. | case EOB_ACT_LAST_MATCH:
  3150. | /* This happens because yy_g_n_b()
  3151. | * sees that we've accumulated a
  3152. | * token and flags that we need to
  3153. | * try matching the token before
  3154. | * proceeding. But for input(),
  3155. | * there's no matching to consider.
  3156. | * So convert the EOB_ACT_LAST_MATCH
  3157. | * to EOB_ACT_END_OF_FILE.
  3158. | */
  3159. |
  3160. | /* Reset buffer status. */
  3161. | yyrestart(yyin );
  3162. |
  3163. | /*FALLTHROUGH*/
  3164. |
  3165. | case EOB_ACT_END_OF_FILE:
  3166. | {
  3167. | if ( yywrap( ) )
  3168. | return 0;
  3169. |
  3170. | if ( ! (yy_did_buffer_switch_on_eof) )
  3171. | YY_NEW_FILE;
  3172. | #ifdef __cplusplus
  3173. | return yyinput();
  3174. | #else
  3175. | return input();
  3176. | #endif
  3177. | }
  3178. |
  3179. | case EOB_ACT_CONTINUE_SCAN:
  3180. | (yy_c_buf_p) = (yytext_ptr) + offset;
  3181. | break;
  3182. | }
  3183. | }
  3184. | }
  3185. |
  3186. | c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
  3187. | *(yy_c_buf_p) = '\0'; /* preserve yytext */
  3188. | (yy_hold_char) = *++(yy_c_buf_p);
  3189. |
  3190. | return c;
  3191. | }
  3192. | #endif /* ifndef YY_NO_INPUT */
  3193. |
  3194. | /** Immediately switch to a different input stream.
  3195. | * @param input_file A readable stream.
  3196. | *
  3197. | * @note This function does not reset the start condition to @c INITIAL .
  3198. | */
  3199. | void yyrestart (FILE * input_file )
  3200. | {
  3201. |
  3202. | if ( ! YY_CURRENT_BUFFER ){
  3203. | yyensure_buffer_stack ();
  3204. | YY_CURRENT_BUFFER_LVALUE =
  3205. | yy_create_buffer(yyin,YY_BUF_SIZE );
  3206. | }
  3207. |
  3208. | yy_init_buffer(YY_CURRENT_BUFFER,input_file );
  3209. | yy_load_buffer_state( );
  3210. | }
  3211. |
  3212. | /** Switch to a different input buffer.
  3213. | * @param new_buffer The new input buffer.
  3214. | *
  3215. | */
  3216. | void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
  3217. | {
  3218. |
  3219. | /* TODO. We should be able to replace this entire function body
  3220. | * with
  3221. | * yypop_buffer_state();
  3222. | * yypush_buffer_state(new_buffer);
  3223. | */
  3224. | yyensure_buffer_stack ();
  3225. | if ( YY_CURRENT_BUFFER == new_buffer )
  3226. | return;
  3227. |
  3228. | if ( YY_CURRENT_BUFFER )
  3229. | {
  3230. | /* Flush out information for old buffer. */
  3231. | *(yy_c_buf_p) = (yy_hold_char);
  3232. | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
  3233. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  3234. | }
  3235. |
  3236. | YY_CURRENT_BUFFER_LVALUE = new_buffer;
  3237. | yy_load_buffer_state( );
  3238. |
  3239. | /* We don't actually know whether we did this switch during
  3240. | * EOF (yywrap()) processing, but the only time this flag
  3241. | * is looked at is after yywrap() is called, so it's safe
  3242. | * to go ahead and always set it.
  3243. | */
  3244. | (yy_did_buffer_switch_on_eof) = 1;
  3245. | }
  3246. |
  3247. | static void yy_load_buffer_state (void)
  3248. | {
  3249. | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  3250. | (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
  3251. | yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
  3252. | (yy_hold_char) = *(yy_c_buf_p);
  3253. | }
  3254. |
  3255. | /** Allocate and initialize an input buffer state.
  3256. | * @param file A readable stream.
  3257. | * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
  3258. | *
  3259. | * @return the allocated buffer state.
  3260. | */
  3261. | YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
  3262. | {
  3263. | YY_BUFFER_STATE b;
  3264. |
  3265. | b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
  3266. | if ( ! b )
  3267. | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  3268. |
  3269. | b->yy_buf_size = size;
  3270. |
  3271. | /* yy_ch_buf has to be 2 characters longer than the size given because
  3272. | * we need to put in 2 end-of-buffer characters.
  3273. | */
  3274. | b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 );
  3275. | if ( ! b->yy_ch_buf )
  3276. | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  3277. |
  3278. | b->yy_is_our_buffer = 1;
  3279. |
  3280. | yy_init_buffer(b,file );
  3281. |
  3282. | return b;
  3283. | }
  3284. |
  3285. | /** Destroy the buffer.
  3286. | * @param b a buffer created with yy_create_buffer()
  3287. | *
  3288. | */
  3289. | void yy_delete_buffer (YY_BUFFER_STATE b )
  3290. | {
  3291. |
  3292. | if ( ! b )
  3293. | return;
  3294. |
  3295. | if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
  3296. | YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
  3297. |
  3298. | if ( b->yy_is_our_buffer )
  3299. | yyfree((void *) b->yy_ch_buf );
  3300. |
  3301. | yyfree((void *) b );
  3302. | }
  3303. |
  3304. | #ifndef __cplusplus
  3305. | extern int isatty (int );
  3306. | #endif /* __cplusplus */
  3307. |
  3308. | /* Initializes or reinitializes a buffer.
  3309. | * This function is sometimes called more than once on the same buffer,
  3310. | * such as during a yyrestart() or at EOF.
  3311. | */
  3312. | static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
  3313. |
  3314. | {
  3315. | int oerrno = errno;
  3316. |
  3317. | yy_flush_buffer(b );
  3318. |
  3319. | b->yy_input_file = file;
  3320. | b->yy_fill_buffer = 1;
  3321. |
  3322. | /* If b is the current buffer, then yy_init_buffer was _probably_
  3323. | * called from yyrestart() or through yy_get_next_buffer.
  3324. | * In that case, we don't want to reset the lineno or column.
  3325. | */
  3326. | if (b != YY_CURRENT_BUFFER){
  3327. | b->yy_bs_lineno = 1;
  3328. | b->yy_bs_column = 0;
  3329. | }
  3330. |
  3331. | b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
  3332. |
  3333. | errno = oerrno;
  3334. | }
  3335. |
  3336. | /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
  3337. | * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
  3338. | *
  3339. | */
  3340. | void yy_flush_buffer (YY_BUFFER_STATE b )
  3341. | {
  3342. | if ( ! b )
  3343. | return;
  3344. |
  3345. | b->yy_n_chars = 0;
  3346. |
  3347. | /* We always need two end-of-buffer characters. The first causes
  3348. | * a transition to the end-of-buffer state. The second causes
  3349. | * a jam in that state.
  3350. | */
  3351. | b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
  3352. | b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
  3353. |
  3354. | b->yy_buf_pos = &b->yy_ch_buf[0];
  3355. |
  3356. | b->yy_at_bol = 1;
  3357. | b->yy_buffer_status = YY_BUFFER_NEW;
  3358. |
  3359. | if ( b == YY_CURRENT_BUFFER )
  3360. | yy_load_buffer_state( );
  3361. | }
  3362. |
  3363. | /** Pushes the new state onto the stack. The new state becomes
  3364. | * the current state. This function will allocate the stack
  3365. | * if necessary.
  3366. | * @param new_buffer The new state.
  3367. | *
  3368. | */
  3369. | void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
  3370. | {
  3371. | if (new_buffer == NULL)
  3372. | return;
  3373. |
  3374. | yyensure_buffer_stack();
  3375. |
  3376. | /* This block is copied from yy_switch_to_buffer. */
  3377. | if ( YY_CURRENT_BUFFER )
  3378. | {
  3379. | /* Flush out information for old buffer. */
  3380. | *(yy_c_buf_p) = (yy_hold_char);
  3381. | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
  3382. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  3383. | }
  3384. |
  3385. | /* Only push if top exists. Otherwise, replace top. */
  3386. | if (YY_CURRENT_BUFFER)
  3387. | (yy_buffer_stack_top)++;
  3388. | YY_CURRENT_BUFFER_LVALUE = new_buffer;
  3389. |
  3390. | /* copied from yy_switch_to_buffer. */
  3391. | yy_load_buffer_state( );
  3392. | (yy_did_buffer_switch_on_eof) = 1;
  3393. | }
  3394. |
  3395. | /** Removes and deletes the top of the stack, if present.
  3396. | * The next element becomes the new top.
  3397. | *
  3398. | */
  3399. | void yypop_buffer_state (void)
  3400. | {
  3401. | if (!YY_CURRENT_BUFFER)
  3402. | return;
  3403. |
  3404. | yy_delete_buffer(YY_CURRENT_BUFFER );
  3405. | YY_CURRENT_BUFFER_LVALUE = NULL;
  3406. | if ((yy_buffer_stack_top) > 0)
  3407. | --(yy_buffer_stack_top);
  3408. |
  3409. | if (YY_CURRENT_BUFFER) {
  3410. | yy_load_buffer_state( );
  3411. | (yy_did_buffer_switch_on_eof) = 1;
  3412. | }
  3413. | }
  3414. |
  3415. | /* Allocates the stack if it does not exist.
  3416. | * Guarantees space for at least one push.
  3417. | */
  3418. | static void yyensure_buffer_stack (void)
  3419. | {
  3420. | yy_size_t num_to_alloc;
  3421. |
  3422. | if (!(yy_buffer_stack)) {
  3423. |
  3424. | /* First allocation is just for 2 elements, since we don't know if this
  3425. | * scanner will even need a stack. We use 2 instead of 1 to avoid an
  3426. | * immediate realloc on the next call.
  3427. | */
  3428. | num_to_alloc = 1;
  3429. | (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
  3430. | (num_to_alloc * sizeof(struct yy_buffer_state*)
  3431. | );
  3432. | if ( ! (yy_buffer_stack) )
  3433. | YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
  3434. |
  3435. | memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
  3436. |
  3437. | (yy_buffer_stack_max) = num_to_alloc;
  3438. | (yy_buffer_stack_top) = 0;
  3439. | return;
  3440. | }
  3441. |
  3442. | if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
  3443. |
  3444. | /* Increase the buffer to prepare for a possible push. */
  3445. | int grow_size = 8 /* arbitrary grow size */;
  3446. |
  3447. | num_to_alloc = (yy_buffer_stack_max) + grow_size;
  3448. | (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
  3449. | ((yy_buffer_stack),
  3450. | num_to_alloc * sizeof(struct yy_buffer_state*)
  3451. | );
  3452. | if ( ! (yy_buffer_stack) )
  3453. | YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
  3454. |
  3455. | /* zero only the new slots.*/
  3456. | memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
  3457. | (yy_buffer_stack_max) = num_to_alloc;
  3458. | }
  3459. | }
  3460. |
  3461. | /** Setup the input buffer state to scan directly from a user-specified character buffer.
  3462. | * @param base the character buffer
  3463. | * @param size the size in bytes of the character buffer
  3464. | *
  3465. | * @return the newly allocated buffer state object.
  3466. | */
  3467. | YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
  3468. | {
  3469. | YY_BUFFER_STATE b;
  3470. |
  3471. | if ( size < 2 ||
  3472. | base[size-2] != YY_END_OF_BUFFER_CHAR ||
  3473. | base[size-1] != YY_END_OF_BUFFER_CHAR )
  3474. | /* They forgot to leave room for the EOB's. */
  3475. | return 0;
  3476. |
  3477. | b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
  3478. | if ( ! b )
  3479. | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
  3480. |
  3481. | b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
  3482. | b->yy_buf_pos = b->yy_ch_buf = base;
  3483. | b->yy_is_our_buffer = 0;
  3484. | b->yy_input_file = 0;
  3485. | b->yy_n_chars = b->yy_buf_size;
  3486. | b->yy_is_interactive = 0;
  3487. | b->yy_at_bol = 1;
  3488. | b->yy_fill_buffer = 0;
  3489. | b->yy_buffer_status = YY_BUFFER_NEW;
  3490. |
  3491. | yy_switch_to_buffer(b );
  3492. |
  3493. | return b;
  3494. | }
  3495. |
  3496. | /** Setup the input buffer state to scan a string. The next call to yylex() will
  3497. | * scan from a @e copy of @a str.
  3498. | * @param yystr a NUL-terminated string to scan
  3499. | *
  3500. | * @return the newly allocated buffer state object.
  3501. | * @note If you want to scan bytes that may contain NUL values, then use
  3502. | * yy_scan_bytes() instead.
  3503. | */
  3504. | YY_BUFFER_STATE yy_scan_string (yyconst char * yystr )
  3505. | {
  3506. |
  3507. | return yy_scan_bytes(yystr,strlen(yystr) );
  3508. | }
  3509. |
  3510. | /** Setup the input buffer state to scan the given bytes. The next call to yylex() will
  3511. | * scan from a @e copy of @a bytes.
  3512. | * @param bytes the byte buffer to scan
  3513. | * @param len the number of bytes in the buffer pointed to by @a bytes.
  3514. | *
  3515. | * @return the newly allocated buffer state object.
  3516. | */
  3517. | YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len )
  3518. | {
  3519. | YY_BUFFER_STATE b;
  3520. | char *buf;
  3521. | yy_size_t n, i;
  3522. |
  3523. | /* Get memory for full buffer, including space for trailing EOB's. */
  3524. | n = _yybytes_len + 2;
  3525. | buf = (char *) yyalloc(n );
  3526. | if ( ! buf )
  3527. | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
  3528. |
  3529. | for ( i = 0; i < _yybytes_len; ++i )
  3530. | buf[i] = yybytes[i];
  3531. |
  3532. | buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
  3533. |
  3534. | b = yy_scan_buffer(buf,n );
  3535. | if ( ! b )
  3536. | YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
  3537. |
  3538. | /* It's okay to grow etc. this buffer, and we should throw it
  3539. | * away when we're done.
  3540. | */
  3541. | b->yy_is_our_buffer = 1;
  3542. |
  3543. | return b;
  3544. | }
  3545. |
  3546. | #ifndef YY_EXIT_FAILURE
  3547. | #define YY_EXIT_FAILURE 2
  3548. | #endif
  3549. |
  3550. | static void yy_fatal_error (yyconst char* msg )
  3551. | {
  3552. | (void) fprintf( stderr, "%s\n", msg );
  3553. | exit( YY_EXIT_FAILURE );
  3554. | }
  3555. |
  3556. | /* Redefine yyless() so it works in section 3 code. */
  3557. |
  3558. | #undef yyless
  3559. | #define yyless(n) \
  3560. | do \
  3561. | { \
  3562. | /* Undo effects of setting up yytext. */ \
  3563. | int yyless_macro_arg = (n); \
  3564. | YY_LESS_LINENO(yyless_macro_arg);\
  3565. | yytext[yyleng] = (yy_hold_char); \
  3566. | (yy_c_buf_p) = yytext + yyless_macro_arg; \
  3567. | (yy_hold_char) = *(yy_c_buf_p); \
  3568. | *(yy_c_buf_p) = '\0'; \
  3569. | yyleng = yyless_macro_arg; \
  3570. | } \
  3571. | while ( 0 )
  3572. |
  3573. | /* Accessor methods (get/set functions) to struct members. */
  3574. |
  3575. | /** Get the current line number.
  3576. | *
  3577. | */
  3578. | int yyget_lineno (void)
  3579. | {
  3580. |
  3581. | return yylineno;
  3582. | }
  3583. |
  3584. | /** Get the input stream.
  3585. | *
  3586. | */
  3587. | FILE *yyget_in (void)
  3588. | {
  3589. | return yyin;
  3590. | }
  3591. |
  3592. | /** Get the output stream.
  3593. | *
  3594. | */
  3595. | FILE *yyget_out (void)
  3596. | {
  3597. | return yyout;
  3598. | }
  3599. |
  3600. | /** Get the length of the current token.
  3601. | *
  3602. | */
  3603. | yy_size_t yyget_leng (void)
  3604. | {
  3605. | return yyleng;
  3606. | }
  3607. |
  3608. | /** Get the current token.
  3609. | *
  3610. | */
  3611. |
  3612. | char *yyget_text (void)
  3613. | {
  3614. | return yytext;
  3615. | }
  3616. |
  3617. | /** Set the current line number.
  3618. | * @param line_number
  3619. | *
  3620. | */
  3621. | void yyset_lineno (int line_number )
  3622. | {
  3623. |
  3624. | yylineno = line_number;
  3625. | }
  3626. |
  3627. | /** Set the input stream. This does not discard the current
  3628. | * input buffer.
  3629. | * @param in_str A readable stream.
  3630. | *
  3631. | * @see yy_switch_to_buffer
  3632. | */
  3633. | void yyset_in (FILE * in_str )
  3634. | {
  3635. | yyin = in_str ;
  3636. | }
  3637. |
  3638. | void yyset_out (FILE * out_str )
  3639. | {
  3640. | yyout = out_str ;
  3641. | }
  3642. |
  3643. | int yyget_debug (void)
  3644. | {
  3645. | return yy_flex_debug;
  3646. | }
  3647. |
  3648. | void yyset_debug (int bdebug )
  3649. | {
  3650. | yy_flex_debug = bdebug ;
  3651. | }
  3652. |
  3653. | static int yy_init_globals (void)
  3654. | {
  3655. | /* Initialization is the same as for the non-reentrant scanner.
  3656. | * This function is called from yylex_destroy(), so don't allocate here.
  3657. | */
  3658. |
  3659. | (yy_buffer_stack) = 0;
  3660. | (yy_buffer_stack_top) = 0;
  3661. | (yy_buffer_stack_max) = 0;
  3662. | (yy_c_buf_p) = (char *) 0;
  3663. | (yy_init) = 0;
  3664. | (yy_start) = 0;
  3665. |
  3666. | (yy_state_buf) = 0;
  3667. | (yy_state_ptr) = 0;
  3668. | (yy_full_match) = 0;
  3669. | (yy_lp) = 0;
  3670. |
  3671. | /* Defined in main.c */
  3672. | #ifdef YY_STDINIT
  3673. | yyin = stdin;
  3674. | yyout = stdout;
  3675. | #else
  3676. | yyin = (FILE *) 0;
  3677. | yyout = (FILE *) 0;
  3678. | #endif
  3679. |
  3680. | /* For future reference: Set errno on error, since we are called by
  3681. | * yylex_init()
  3682. | */
  3683. | return 0;
  3684. | }
  3685. |
  3686. | /* yylex_destroy is for both reentrant and non-reentrant scanners. */
  3687. | int yylex_destroy (void)
  3688. | {
  3689. |
  3690. | /* Pop the buffer stack, destroying each element. */
  3691. | while(YY_CURRENT_BUFFER){
  3692. | yy_delete_buffer(YY_CURRENT_BUFFER );
  3693. | YY_CURRENT_BUFFER_LVALUE = NULL;
  3694. | yypop_buffer_state();
  3695. | }
  3696. |
  3697. | /* Destroy the stack itself. */
  3698. | yyfree((yy_buffer_stack) );
  3699. | (yy_buffer_stack) = NULL;
  3700. |
  3701. | yyfree ( (yy_state_buf) );
  3702. | (yy_state_buf) = NULL;
  3703. |
  3704. | /* Reset the globals. This is important in a non-reentrant scanner so the next time
  3705. | * yylex() is called, initialization will occur. */
  3706. | yy_init_globals( );
  3707. |
  3708. | return 0;
  3709. | }
  3710. |
  3711. | /*
  3712. | * Internal utility routines.
  3713. | */
  3714. |
  3715. | #ifndef yytext_ptr
  3716. | static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
  3717. | {
  3718. | register int i;
  3719. | for ( i = 0; i < n; ++i )
  3720. | s1[i] = s2[i];
  3721. | }
  3722. | #endif
  3723. |
  3724. | #ifdef YY_NEED_STRLEN
  3725. | static int yy_flex_strlen (yyconst char * s )
  3726. | {
  3727. | register int n;
  3728. | for ( n = 0; s[n]; ++n )
  3729. | ;
  3730. |
  3731. | return n;
  3732. | }
  3733. | #endif
  3734. |
  3735. | void *yyalloc (yy_size_t size )
  3736. | {
  3737. | return (void *) malloc( size );
  3738. | }
  3739. |
  3740. | void *yyrealloc (void * ptr, yy_size_t size )
  3741. | {
  3742. | /* The cast to (char *) in the following accommodates both
  3743. | * implementations that use char* generic pointers, and those
  3744. | * that use void* generic pointers. It works with the latter
  3745. | * because both ANSI C and C++ allow castless assignment from
  3746. | * any pointer type to void*, and deal with argument conversions
  3747. | * as though doing an assignment.
  3748. | */
  3749. | return (void *) realloc( (char *) ptr, size );
  3750. | }
  3751. |
  3752. | void yyfree (void * ptr )
  3753. | {
  3754. | free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
  3755. | }
  3756. |
  3757. | #define YYTABLES_NAME "yytables"
  3758. |
  3759. | #line 9 "conftest.l"
  3760. |
  3761. |
  3762. | #ifdef YYTEXT_POINTER
  3763. | extern char *yytext;
  3764. | #endif
  3765. | int
  3766. | main (void)
  3767. | {
  3768. | return ! yylex () + ! yywrap ();
  3769. | }
  3770. configure:4136: gcc -o conftest conftest.c -ll >&5
  3771. configure:4136: $? = 0
  3772. configure:4146: result: -ll
  3773. configure:4152: checking whether yytext is a pointer
  3774. configure:4169: gcc -o conftest conftest.c -ll >&5
  3775. configure:4169: $? = 0
  3776. configure:4177: result: yes
  3777. configure:4200: checking for remsh
  3778. configure:4230: result: no
  3779. configure:4200: checking for rsh
  3780. configure:4216: found /usr/bin/rsh
  3781. configure:4227: result: rsh
  3782. configure:4243: checking for makeinfo
  3783. configure:4259: found /sw/bin/makeinfo
  3784. configure:4270: result: makeinfo
  3785. configure:4292: checking for nroff
  3786. configure:4308: found /usr/bin/nroff
  3787. configure:4320: result: nroff -man
  3788. configure:4333: checking for awk
  3789. configure:4351: found /usr/bin/awk
  3790. configure:4363: result: /usr/bin/awk
  3791. configure:4378: checking for perl
  3792. configure:4396: found /usr/bin/perl
  3793. configure:4408: result: /usr/bin/perl
  3794. configure:4421: checking for grep that handles long lines and -e
  3795. configure:4479: result: /usr/bin/grep
  3796. configure:4484: checking for egrep
  3797. configure:4546: result: /usr/bin/grep -E
  3798. configure:4551: checking for ANSI C header files
  3799. configure:4571: gcc -c conftest.c >&5
  3800. configure:4571: $? = 0
  3801. configure:4644: gcc -o conftest conftest.c >&5
  3802. configure:4644: $? = 0
  3803. configure:4644: ./conftest
  3804. configure:4644: $? = 0
  3805. configure:4655: result: yes
  3806. configure:4663: checking whether time.h and sys/time.h may both be included
  3807. configure:4683: gcc -c conftest.c >&5
  3808. configure:4683: $? = 0
  3809. configure:4690: result: yes
  3810. configure:4698: checking for sys/wait.h that is POSIX.1 compatible
  3811. configure:4724: gcc -c conftest.c >&5
  3812. configure:4724: $? = 0
  3813. configure:4731: result: yes
  3814. configure:4742: checking for dirent.h that defines DIR
  3815. configure:4761: gcc -c conftest.c >&5
  3816. configure:4761: $? = 0
  3817. configure:4769: result: yes
  3818. configure:4782: checking for library containing opendir
  3819. configure:4813: gcc -o conftest conftest.c >&5
  3820. configure:4813: $? = 0
  3821. configure:4830: result: none required
  3822. configure:4897: checking return type of signal handlers
  3823. configure:4915: gcc -c conftest.c >&5
  3824. conftest.c: In function 'main':
  3825. conftest.c:23: error: void value not ignored as it ought to be
  3826. configure:4915: $? = 1
  3827. configure: failed program was:
  3828. | /* confdefs.h */
  3829. | #define PACKAGE_NAME "xboard"
  3830. | #define PACKAGE_TARNAME "xboard"
  3831. | #define PACKAGE_VERSION "4.5.2a"
  3832. | #define PACKAGE_STRING "xboard 4.5.2a"
  3833. | #define PACKAGE_BUGREPORT "bug-xboard@gnu.org"
  3834. | #define PACKAGE_URL ""
  3835. | #define PACKAGE "xboard"
  3836. | #define VERSION "4.5.2a"
  3837. | #define YYTEXT_POINTER 1
  3838. | #define REMOTE_SHELL "rsh"
  3839. | #define STDC_HEADERS 1
  3840. | #define TIME_WITH_SYS_TIME 1
  3841. | #define HAVE_SYS_WAIT_H 1
  3842. | #define HAVE_DIRENT_H 1
  3843. | /* end confdefs.h. */
  3844. | #include <sys/types.h>
  3845. | #include <signal.h>
  3846. |
  3847. | int
  3848. | main ()
  3849. | {
  3850. | return *(signal (0, 0)) (0) == 1;
  3851. | ;
  3852. | return 0;
  3853. | }
  3854. configure:4922: result: void
  3855. configure:4935: checking for sys/types.h
  3856. configure:4935: gcc -c conftest.c >&5
  3857. configure:4935: $? = 0
  3858. configure:4935: result: yes
  3859. configure:4935: checking for sys/stat.h
  3860. configure:4935: gcc -c conftest.c >&5
  3861. configure:4935: $? = 0
  3862. configure:4935: result: yes
  3863. configure:4935: checking for stdlib.h
  3864. configure:4935: gcc -c conftest.c >&5
  3865. configure:4935: $? = 0
  3866. configure:4935: result: yes
  3867. configure:4935: checking for string.h
  3868. configure:4935: gcc -c conftest.c >&5
  3869. configure:4935: $? = 0
  3870. configure:4935: result: yes
  3871. configure:4935: checking for memory.h
  3872. configure:4935: gcc -c conftest.c >&5
  3873. configure:4935: $? = 0
  3874. configure:4935: result: yes
  3875. configure:4935: checking for strings.h
  3876. configure:4935: gcc -c conftest.c >&5
  3877. configure:4935: $? = 0
  3878. configure:4935: result: yes
  3879. configure:4935: checking for inttypes.h
  3880. configure:4935: gcc -c conftest.c >&5
  3881. configure:4935: $? = 0
  3882. configure:4935: result: yes
  3883. configure:4935: checking for stdint.h
  3884. configure:4935: gcc -c conftest.c >&5
  3885. configure:4935: $? = 0
  3886. configure:4935: result: yes
  3887. configure:4935: checking for unistd.h
  3888. configure:4935: gcc -c conftest.c >&5
  3889. configure:4935: $? = 0
  3890. configure:4935: result: yes
  3891. configure:4950: checking stropts.h usability
  3892. configure:4950: gcc -c conftest.c >&5
  3893. conftest.c:60:21: error: stropts.h: No such file or directory
  3894. configure:4950: $? = 1
  3895. configure: failed program was:
  3896. | /* confdefs.h */
  3897. | #define PACKAGE_NAME "xboard"
  3898. | #define PACKAGE_TARNAME "xboard"
  3899. | #define PACKAGE_VERSION "4.5.2a"
  3900. | #define PACKAGE_STRING "xboard 4.5.2a"
  3901. | #define PACKAGE_BUGREPORT "bug-xboard@gnu.org"
  3902. | #define PACKAGE_URL ""
  3903. | #define PACKAGE "xboard"
  3904. | #define VERSION "4.5.2a"
  3905. | #define YYTEXT_POINTER 1
  3906. | #define REMOTE_SHELL "rsh"
  3907. | #define STDC_HEADERS 1
  3908. | #define TIME_WITH_SYS_TIME 1
  3909. | #define HAVE_SYS_WAIT_H 1
  3910. | #define HAVE_DIRENT_H 1
  3911. | #define RETSIGTYPE void
  3912. | #define HAVE_SYS_TYPES_H 1
  3913. | #define HAVE_SYS_STAT_H 1
  3914. | #define HAVE_STDLIB_H 1
  3915. | #define HAVE_STRING_H 1
  3916. | #define HAVE_MEMORY_H 1
  3917. | #define HAVE_STRINGS_H 1
  3918. | #define HAVE_INTTYPES_H 1
  3919. | #define HAVE_STDINT_H 1
  3920. | #define HAVE_UNISTD_H 1
  3921. | /* end confdefs.h. */
  3922. | #include <stdio.h>
  3923. | #ifdef HAVE_SYS_TYPES_H
  3924. | # include <sys/types.h>
  3925. | #endif
  3926. | #ifdef HAVE_SYS_STAT_H
  3927. | # include <sys/stat.h>
  3928. | #endif
  3929. | #ifdef STDC_HEADERS
  3930. | # include <stdlib.h>
  3931. | # include <stddef.h>
  3932. | #else
  3933. | # ifdef HAVE_STDLIB_H
  3934. | # include <stdlib.h>
  3935. | # endif
  3936. | #endif
  3937. | #ifdef HAVE_STRING_H
  3938. | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  3939. | # include <memory.h>
  3940. | # endif
  3941. | # include <string.h>
  3942. | #endif
  3943. | #ifdef HAVE_STRINGS_H
  3944. | # include <strings.h>
  3945. | #endif
  3946. | #ifdef HAVE_INTTYPES_H
  3947. | # include <inttypes.h>
  3948. | #endif
  3949. | #ifdef HAVE_STDINT_H
  3950. | # include <stdint.h>
  3951. | #endif
  3952. | #ifdef HAVE_UNISTD_H
  3953. | # include <unistd.h>
  3954. | #endif
  3955. | #include <stropts.h>
  3956. configure:4950: result: no
  3957. configure:4950: checking stropts.h presence
  3958. configure:4950: gcc -E conftest.c
  3959. conftest.c:27:21: error: stropts.h: No such file or directory
  3960. configure:4950: $? = 1
  3961. configure: failed program was:
  3962. | /* confdefs.h */
  3963. | #define PACKAGE_NAME "xboard"
  3964. | #define PACKAGE_TARNAME "xboard"
  3965. | #define PACKAGE_VERSION "4.5.2a"
  3966. | #define PACKAGE_STRING "xboard 4.5.2a"
  3967. | #define PACKAGE_BUGREPORT "bug-xboard@gnu.org"
  3968. | #define PACKAGE_URL ""
  3969. | #define PACKAGE "xboard"
  3970. | #define VERSION "4.5.2a"
  3971. | #define YYTEXT_POINTER 1
  3972. | #define REMOTE_SHELL "rsh"
  3973. | #define STDC_HEADERS 1
  3974. | #define TIME_WITH_SYS_TIME 1
  3975. | #define HAVE_SYS_WAIT_H 1
  3976. | #define HAVE_DIRENT_H 1
  3977. | #define RETSIGTYPE void
  3978. | #define HAVE_SYS_TYPES_H 1
  3979. | #define HAVE_SYS_STAT_H 1
  3980. | #define HAVE_STDLIB_H 1
  3981. | #define HAVE_STRING_H 1
  3982. | #define HAVE_MEMORY_H 1
  3983. | #define HAVE_STRINGS_H 1
  3984. | #define HAVE_INTTYPES_H 1
  3985. | #define HAVE_STDINT_H 1
  3986. | #define HAVE_UNISTD_H 1
  3987. | /* end confdefs.h. */
  3988. | #include <stropts.h>
  3989. configure:4950: result: no
  3990. configure:4950: checking for stropts.h
  3991. configure:4950: result: no
  3992. configure:4950: checking sys/time.h usability
  3993. configure:4950: gcc -c conftest.c >&5
  3994. configure:4950: $? = 0
  3995. configure:4950: result: yes
  3996. configure:4950: checking sys/time.h presence
  3997. configure:4950: gcc -E conftest.c
  3998. configure:4950: $? = 0
  3999. configure:4950: result: yes
  4000. configure:4950: checking for sys/time.h
  4001. configure:4950: result: yes
  4002. configure:4950: checking for string.h
  4003. configure:4950: result: yes
  4004. configure:4950: checking for unistd.h
  4005. configure:4950: result: yes
  4006. configure:4950: checking sys/systeminfo.h usability
  4007. configure:4950: gcc -c conftest.c >&5
  4008. conftest.c:63:28: error: sys/systeminfo.h: No such file or directory
  4009. configure:4950: $? = 1
  4010. configure: failed program was:
  4011. | /* confdefs.h */
  4012. | #define PACKAGE_NAME "xboard"
  4013. | #define PACKAGE_TARNAME "xboard"
  4014. | #define PACKAGE_VERSION "4.5.2a"
  4015. | #define PACKAGE_STRING "xboard 4.5.2a"
  4016. | #define PACKAGE_BUGREPORT "bug-xboard@gnu.org"
  4017. | #define PACKAGE_URL ""
  4018. | #define PACKAGE "xboard"
  4019. | #define VERSION "4.5.2a"
  4020. | #define YYTEXT_POINTER 1
  4021. | #define REMOTE_SHELL "rsh"
  4022. | #define STDC_HEADERS 1
  4023. | #define TIME_WITH_SYS_TIME 1
  4024. | #define HAVE_SYS_WAIT_H 1
  4025. | #define HAVE_DIRENT_H 1
  4026. | #define RETSIGTYPE void
  4027. | #define HAVE_SYS_TYPES_H 1
  4028. | #define HAVE_SYS_STAT_H 1
  4029. | #define HAVE_STDLIB_H 1
  4030. | #define HAVE_STRING_H 1
  4031. | #define HAVE_MEMORY_H 1
  4032. | #define HAVE_STRINGS_H 1
  4033. | #define HAVE_INTTYPES_H 1
  4034. | #define HAVE_STDINT_H 1
  4035. | #define HAVE_UNISTD_H 1
  4036. | #define HAVE_SYS_TIME_H 1
  4037. | #define HAVE_STRING_H 1
  4038. | #define HAVE_UNISTD_H 1
  4039. | /* end confdefs.h. */
  4040. | #include <stdio.h>
  4041. | #ifdef HAVE_SYS_TYPES_H
  4042. | # include <sys/types.h>
  4043. | #endif
  4044. | #ifdef HAVE_SYS_STAT_H
  4045. | # include <sys/stat.h>
  4046. | #endif
  4047. | #ifdef STDC_HEADERS
  4048. | # include <stdlib.h>
  4049. | # include <stddef.h>
  4050. | #else
  4051. | # ifdef HAVE_STDLIB_H
  4052. | # include <stdlib.h>
  4053. | # endif
  4054. | #endif
  4055. | #ifdef HAVE_STRING_H
  4056. | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  4057. | # include <memory.h>
  4058. | # endif
  4059. | # include <string.h>
  4060. | #endif
  4061. | #ifdef HAVE_STRINGS_H
  4062. | # include <strings.h>
  4063. | #endif
  4064. | #ifdef HAVE_INTTYPES_H
  4065. | # include <inttypes.h>
  4066. | #endif
  4067. | #ifdef HAVE_STDINT_H
  4068. | # include <stdint.h>
  4069. | #endif
  4070. | #ifdef HAVE_UNISTD_H
  4071. | # include <unistd.h>
  4072. | #endif
  4073. | #include <sys/systeminfo.h>
  4074. configure:4950: result: no
  4075. configure:4950: checking sys/systeminfo.h presence
  4076. configure:4950: gcc -E conftest.c
  4077. conftest.c:30:28: error: sys/systeminfo.h: No such file or directory
  4078. configure:4950: $? = 1
  4079. configure: failed program was:
  4080. | /* confdefs.h */
  4081. | #define PACKAGE_NAME "xboard"
  4082. | #define PACKAGE_TARNAME "xboard"
  4083. | #define PACKAGE_VERSION "4.5.2a"
  4084. | #define PACKAGE_STRING "xboard 4.5.2a"
  4085. | #define PACKAGE_BUGREPORT "bug-xboard@gnu.org"
  4086. | #define PACKAGE_URL ""
  4087. | #define PACKAGE "xboard"
  4088. | #define VERSION "4.5.2a"
  4089. | #define YYTEXT_POINTER 1
  4090. | #define REMOTE_SHELL "rsh"
  4091. | #define STDC_HEADERS 1
  4092. | #define TIME_WITH_SYS_TIME 1
  4093. | #define HAVE_SYS_WAIT_H 1
  4094. | #define HAVE_DIRENT_H 1
  4095. | #define RETSIGTYPE void
  4096. | #define HAVE_SYS_TYPES_H 1
  4097. | #define HAVE_SYS_STAT_H 1
  4098. | #define HAVE_STDLIB_H 1
  4099. | #define HAVE_STRING_H 1
  4100. | #define HAVE_MEMORY_H 1
  4101. | #define HAVE_STRINGS_H 1
  4102. | #define HAVE_INTTYPES_H 1
  4103. | #define HAVE_STDINT_H 1
  4104. | #define HAVE_UNISTD_H 1
  4105. | #define HAVE_SYS_TIME_H 1
  4106. | #define HAVE_STRING_H 1
  4107. | #define HAVE_UNISTD_H 1
  4108. | /* end confdefs.h. */
  4109. | #include <sys/systeminfo.h>
  4110. configure:4950: result: no
  4111. configure:4950: checking for sys/systeminfo.h
  4112. configure:4950: result: no
  4113. configure:4963: checking fcntl.h usability
  4114. configure:4963: gcc -c conftest.c >&5
  4115. configure:4963: $? = 0
  4116. configure:4963: result: yes
  4117. configure:4963: checking fcntl.h presence
  4118. configure:4963: gcc -E conftest.c
  4119. configure:4963: $? = 0
  4120. configure:4963: result: yes
  4121. configure:4963: checking for fcntl.h
  4122. configure:4963: result: yes
  4123. configure:4976: checking sys/socket.h usability
  4124. configure:4976: gcc -c conftest.c >&5
  4125. configure:4976: $? = 0
  4126. configure:4976: result: yes
  4127. configure:4976: checking sys/socket.h presence
  4128. configure:4976: gcc -E conftest.c
  4129. configure:4976: $? = 0
  4130. configure:4976: result: yes
  4131. configure:4976: checking for sys/socket.h
  4132. configure:4976: result: yes
  4133. configure:4986: checking stddef.h usability
  4134. configure:4986: gcc -c conftest.c >&5
  4135. configure:4986: $? = 0
  4136. configure:4986: result: yes
  4137. configure:4986: checking stddef.h presence
  4138. configure:4986: gcc -E conftest.c
  4139. configure:4986: $? = 0
  4140. configure:4986: result: yes
  4141. configure:4986: checking for stddef.h
  4142. configure:4986: result: yes
  4143. configure:4999: checking for _getpty
  4144. configure:4999: gcc -o conftest conftest.c >&5
  4145. Undefined symbols for architecture x86_64:
  4146. "__getpty", referenced from:
  4147. _main in ccwIkjLC.o
  4148. ld: symbol(s) not found for architecture x86_64
  4149. collect2: ld returned 1 exit status
  4150. configure:4999: $? = 1
  4151. configure: failed program was:
  4152. | /* confdefs.h */
  4153. | #define PACKAGE_NAME "xboard"
  4154. | #define PACKAGE_TARNAME "xboard"
  4155. | #define PACKAGE_VERSION "4.5.2a"
  4156. | #define PACKAGE_STRING "xboard 4.5.2a"
  4157. | #define PACKAGE_BUGREPORT "bug-xboard@gnu.org"
  4158. | #define PACKAGE_URL ""
  4159. | #define PACKAGE "xboard"
  4160. | #define VERSION "4.5.2a"
  4161. | #define YYTEXT_POINTER 1
  4162. | #define REMOTE_SHELL "rsh"
  4163. | #define STDC_HEADERS 1
  4164. | #define TIME_WITH_SYS_TIME 1
  4165. | #define HAVE_SYS_WAIT_H 1
  4166. | #define HAVE_DIRENT_H 1
  4167. | #define RETSIGTYPE void
  4168. | #define HAVE_SYS_TYPES_H 1
  4169. | #define HAVE_SYS_STAT_H 1
  4170. | #define HAVE_STDLIB_H 1
  4171. | #define HAVE_STRING_H 1
  4172. | #define HAVE_MEMORY_H 1
  4173. | #define HAVE_STRINGS_H 1
  4174. | #define HAVE_INTTYPES_H 1
  4175. | #define HAVE_STDINT_H 1
  4176. | #define HAVE_UNISTD_H 1
  4177. | #define HAVE_SYS_TIME_H 1
  4178. | #define HAVE_STRING_H 1
  4179. | #define HAVE_UNISTD_H 1
  4180. | #define HAVE_FCNTL_H 1
  4181. | #define HAVE_SYS_SOCKET_H 1
  4182. | /* end confdefs.h. */
  4183. | /* Define _getpty to an innocuous variant, in case <limits.h> declares _getpty.
  4184. | For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4185. | #define _getpty innocuous__getpty
  4186. |
  4187. | /* System header to define __stub macros and hopefully few prototypes,
  4188. | which can conflict with char _getpty (); below.
  4189. | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4190. | <limits.h> exists even on freestanding compilers. */
  4191. |
  4192. | #ifdef __STDC__
  4193. | # include <limits.h>
  4194. | #else
  4195. | # include <assert.h>
  4196. | #endif
  4197. |
  4198. | #undef _getpty
  4199. |
  4200. | /* Override any GCC internal prototype to avoid an error.
  4201. | Use char because int might match the return type of a GCC
  4202. | builtin and then its argument prototype would still apply. */
  4203. | #ifdef __cplusplus
  4204. | extern "C"
  4205. | #endif
  4206. | char _getpty ();
  4207. | /* The GNU C library defines this for functions which it implements
  4208. | to always fail with ENOSYS. Some functions are actually named
  4209. | something starting with __ and the normal name is an alias. */
  4210. | #if defined __stub__getpty || defined __stub____getpty
  4211. | choke me
  4212. | #endif
  4213. |
  4214. | int
  4215. | main ()
  4216. | {
  4217. | return _getpty ();
  4218. | ;
  4219. | return 0;
  4220. | }
  4221. configure:4999: result: no
  4222. configure:4999: checking for grantpt
  4223. configure:4999: gcc -o conftest conftest.c >&5
  4224. configure:4999: $? = 0
  4225. configure:4999: result: yes
  4226. configure:4999: checking for setitimer
  4227. configure:4999: gcc -o conftest conftest.c >&5
  4228. configure:4999: $? = 0
  4229. configure:4999: result: yes
  4230. configure:4999: checking for usleep
  4231. configure:4999: gcc -o conftest conftest.c >&5
  4232. configure:4999: $? = 0
  4233. configure:4999: result: yes
  4234. configure:5011: checking for gettimeofday
  4235. configure:5011: gcc -o conftest conftest.c >&5
  4236. configure:5011: $? = 0
  4237. configure:5011: result: yes
  4238. configure:5023: checking for random
  4239. configure:5023: gcc -o conftest conftest.c >&5
  4240. configure:5023: $? = 0
  4241. configure:5023: result: yes
  4242. configure:5035: checking for gethostname
  4243. configure:5035: gcc -o conftest conftest.c >&5
  4244. configure:5035: $? = 0
  4245. configure:5035: result: yes
  4246. configure:5044: checking for setlocale
  4247. configure:5044: gcc -o conftest conftest.c >&5
  4248. configure:5044: $? = 0
  4249. configure:5044: result: yes
  4250. configure:5099: checking for getpseudotty in -lseq
  4251. configure:5124: gcc -o conftest conftest.c -lseq >&5
  4252. ld: library not found for -lseq
  4253. collect2: ld returned 1 exit status
  4254. configure:5124: $? = 1
  4255. configure: failed program was:
  4256. | /* confdefs.h */
  4257. | #define PACKAGE_NAME "xboard"
  4258. | #define PACKAGE_TARNAME "xboard"
  4259. | #define PACKAGE_VERSION "4.5.2a"
  4260. | #define PACKAGE_STRING "xboard 4.5.2a"
  4261. | #define PACKAGE_BUGREPORT "bug-xboard@gnu.org"
  4262. | #define PACKAGE_URL ""
  4263. | #define PACKAGE "xboard"
  4264. | #define VERSION "4.5.2a"
  4265. | #define YYTEXT_POINTER 1
  4266. | #define REMOTE_SHELL "rsh"
  4267. | #define STDC_HEADERS 1
  4268. | #define TIME_WITH_SYS_TIME 1
  4269. | #define HAVE_SYS_WAIT_H 1
  4270. | #define HAVE_DIRENT_H 1
  4271. | #define RETSIGTYPE void
  4272. | #define HAVE_SYS_TYPES_H 1
  4273. | #define HAVE_SYS_STAT_H 1
  4274. | #define HAVE_STDLIB_H 1
  4275. | #define HAVE_STRING_H 1
  4276. | #define HAVE_MEMORY_H 1
  4277. | #define HAVE_STRINGS_H 1
  4278. | #define HAVE_INTTYPES_H 1
  4279. | #define HAVE_STDINT_H 1
  4280. | #define HAVE_UNISTD_H 1
  4281. | #define HAVE_SYS_TIME_H 1
  4282. | #define HAVE_STRING_H 1
  4283. | #define HAVE_UNISTD_H 1
  4284. | #define HAVE_FCNTL_H 1
  4285. | #define HAVE_SYS_SOCKET_H 1
  4286. | #define HAVE_GRANTPT 1
  4287. | #define HAVE_SETITIMER 1
  4288. | #define HAVE_USLEEP 1
  4289. | #define HAVE_GETTIMEOFDAY 1
  4290. | #define HAVE_RANDOM 1
  4291. | #define HAVE_GETHOSTNAME 1
  4292. | /* end confdefs.h. */
  4293. |
  4294. | /* Override any GCC internal prototype to avoid an error.
  4295. | Use char because int might match the return type of a GCC
  4296. | builtin and then its argument prototype would still apply. */
  4297. | #ifdef __cplusplus
  4298. | extern "C"
  4299. | #endif
  4300. | char getpseudotty ();
  4301. | int
  4302. | main ()
  4303. | {
  4304. | return getpseudotty ();
  4305. | ;
  4306. | return 0;
  4307. | }
  4308. configure:5133: result: no
  4309. configure:5146: checking for X
  4310. configure:5335: result: libraries /usr/X11R6/lib, headers /usr/X11R6/include
  4311. configure:5355: checking whether -R must be followed by a space
  4312. configure:5371: gcc -o conftest conftest.c -R/usr/X11R6/lib >&5
  4313. configure:5371: $? = 0
  4314. configure:5372: result: no
  4315. configure:5434: gcc -o conftest conftest.c -L/usr/X11R6/lib -R/usr/X11R6/lib -lX11 >&5
  4316. configure:5434: $? = 0
  4317. configure:5532: checking for gethostbyname
  4318. configure:5532: gcc -o conftest conftest.c >&5
  4319. configure:5532: $? = 0
  4320. configure:5532: result: yes
  4321. configure:5629: checking for connect
  4322. configure:5629: gcc -o conftest conftest.c >&5
  4323. configure:5629: $? = 0
  4324. configure:5629: result: yes
  4325. configure:5678: checking for remove
  4326. configure:5678: gcc -o conftest conftest.c >&5
  4327. configure:5678: $? = 0
  4328. configure:5678: result: yes
  4329. configure:5727: checking for shmat
  4330. configure:5727: gcc -o conftest conftest.c >&5
  4331. configure:5727: $? = 0
  4332. configure:5727: result: yes
  4333. configure:5785: checking for IceConnectionNumber in -lICE
  4334. configure:5810: gcc -o conftest -L/usr/X11R6/lib conftest.c -lICE >&5
  4335. configure:5810: $? = 0
  4336. configure:5819: result: yes
  4337. configure:5836: checking X11/Intrinsic.h usability
  4338. configure:5836: gcc -c conftest.c >&5
  4339. conftest.c:71:27: error: X11/Intrinsic.h: No such file or directory
  4340. configure:5836: $? = 1
  4341. configure: failed program was:
  4342. | /* confdefs.h */
  4343. | #define PACKAGE_NAME "xboard"
  4344. | #define PACKAGE_TARNAME "xboard"
  4345. | #define PACKAGE_VERSION "4.5.2a"
  4346. | #define PACKAGE_STRING "xboard 4.5.2a"
  4347. | #define PACKAGE_BUGREPORT "bug-xboard@gnu.org"
  4348. | #define PACKAGE_URL ""
  4349. | #define PACKAGE "xboard"
  4350. | #define VERSION "4.5.2a"
  4351. | #define YYTEXT_POINTER 1
  4352. | #define REMOTE_SHELL "rsh"
  4353. | #define STDC_HEADERS 1
  4354. | #define TIME_WITH_SYS_TIME 1
  4355. | #define HAVE_SYS_WAIT_H 1
  4356. | #define HAVE_DIRENT_H 1
  4357. | #define RETSIGTYPE void
  4358. | #define HAVE_SYS_TYPES_H 1
  4359. | #define HAVE_SYS_STAT_H 1
  4360. | #define HAVE_STDLIB_H 1
  4361. | #define HAVE_STRING_H 1
  4362. | #define HAVE_MEMORY_H 1
  4363. | #define HAVE_STRINGS_H 1
  4364. | #define HAVE_INTTYPES_H 1
  4365. | #define HAVE_STDINT_H 1
  4366. | #define HAVE_UNISTD_H 1
  4367. | #define HAVE_SYS_TIME_H 1
  4368. | #define HAVE_STRING_H 1
  4369. | #define HAVE_UNISTD_H 1
  4370. | #define HAVE_FCNTL_H 1
  4371. | #define HAVE_SYS_SOCKET_H 1
  4372. | #define HAVE_GRANTPT 1
  4373. | #define HAVE_SETITIMER 1
  4374. | #define HAVE_USLEEP 1
  4375. | #define HAVE_GETTIMEOFDAY 1
  4376. | #define HAVE_RANDOM 1
  4377. | #define HAVE_GETHOSTNAME 1
  4378. | /* end confdefs.h. */
  4379. | #include <stdio.h>
  4380. | #ifdef HAVE_SYS_TYPES_H
  4381. | # include <sys/types.h>
  4382. | #endif
  4383. | #ifdef HAVE_SYS_STAT_H
  4384. | # include <sys/stat.h>
  4385. | #endif
  4386. | #ifdef STDC_HEADERS
  4387. | # include <stdlib.h>
  4388. | # include <stddef.h>
  4389. | #else
  4390. | # ifdef HAVE_STDLIB_H
  4391. | # include <stdlib.h>
  4392. | # endif
  4393. | #endif
  4394. | #ifdef HAVE_STRING_H
  4395. | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  4396. | # include <memory.h>
  4397. | # endif
  4398. | # include <string.h>
  4399. | #endif
  4400. | #ifdef HAVE_STRINGS_H
  4401. | # include <strings.h>
  4402. | #endif
  4403. | #ifdef HAVE_INTTYPES_H
  4404. | # include <inttypes.h>
  4405. | #endif
  4406. | #ifdef HAVE_STDINT_H
  4407. | # include <stdint.h>
  4408. | #endif
  4409. | #ifdef HAVE_UNISTD_H
  4410. | # include <unistd.h>
  4411. | #endif
  4412. | #include <X11/Intrinsic.h>
  4413. configure:5836: result: no
  4414. configure:5836: checking X11/Intrinsic.h presence
  4415. configure:5836: gcc -E conftest.c
  4416. conftest.c:38:27: error: X11/Intrinsic.h: No such file or directory
  4417. configure:5836: $? = 1
  4418. configure: failed program was:
  4419. | /* confdefs.h */
  4420. | #define PACKAGE_NAME "xboard"
  4421. | #define PACKAGE_TARNAME "xboard"
  4422. | #define PACKAGE_VERSION "4.5.2a"
  4423. | #define PACKAGE_STRING "xboard 4.5.2a"
  4424. | #define PACKAGE_BUGREPORT "bug-xboard@gnu.org"
  4425. | #define PACKAGE_URL ""
  4426. | #define PACKAGE "xboard"
  4427. | #define VERSION "4.5.2a"
  4428. | #define YYTEXT_POINTER 1
  4429. | #define REMOTE_SHELL "rsh"
  4430. | #define STDC_HEADERS 1
  4431. | #define TIME_WITH_SYS_TIME 1
  4432. | #define HAVE_SYS_WAIT_H 1
  4433. | #define HAVE_DIRENT_H 1
  4434. | #define RETSIGTYPE void
  4435. | #define HAVE_SYS_TYPES_H 1
  4436. | #define HAVE_SYS_STAT_H 1
  4437. | #define HAVE_STDLIB_H 1
  4438. | #define HAVE_STRING_H 1
  4439. | #define HAVE_MEMORY_H 1
  4440. | #define HAVE_STRINGS_H 1
  4441. | #define HAVE_INTTYPES_H 1
  4442. | #define HAVE_STDINT_H 1
  4443. | #define HAVE_UNISTD_H 1
  4444. | #define HAVE_SYS_TIME_H 1
  4445. | #define HAVE_STRING_H 1
  4446. | #define HAVE_UNISTD_H 1
  4447. | #define HAVE_FCNTL_H 1
  4448. | #define HAVE_SYS_SOCKET_H 1
  4449. | #define HAVE_GRANTPT 1
  4450. | #define HAVE_SETITIMER 1
  4451. | #define HAVE_USLEEP 1
  4452. | #define HAVE_GETTIMEOFDAY 1
  4453. | #define HAVE_RANDOM 1
  4454. | #define HAVE_GETHOSTNAME 1
  4455. | /* end confdefs.h. */
  4456. | #include <X11/Intrinsic.h>
  4457. configure:5836: result: no
  4458. configure:5836: checking for X11/Intrinsic.h
  4459. configure:5836: result: no
  4460.  
  4461. ## ---------------- ##
  4462. ## Cache variables. ##
  4463. ## ---------------- ##
  4464.  
  4465. ac_cv_c_compiler_gnu=yes
  4466. ac_cv_env_CC_set=
  4467. ac_cv_env_CC_value=
  4468. ac_cv_env_CFLAGS_set=
  4469. ac_cv_env_CFLAGS_value=
  4470. ac_cv_env_CPPFLAGS_set=
  4471. ac_cv_env_CPPFLAGS_value=
  4472. ac_cv_env_CPP_set=
  4473. ac_cv_env_CPP_value=
  4474. ac_cv_env_LDFLAGS_set=
  4475. ac_cv_env_LDFLAGS_value=
  4476. ac_cv_env_LIBS_set=
  4477. ac_cv_env_LIBS_value=
  4478. ac_cv_env_XMKMF_set=
  4479. ac_cv_env_XMKMF_value=
  4480. ac_cv_env_build_alias_set=
  4481. ac_cv_env_build_alias_value=
  4482. ac_cv_env_host_alias_set=
  4483. ac_cv_env_host_alias_value=
  4484. ac_cv_env_target_alias_set=
  4485. ac_cv_env_target_alias_value=
  4486. ac_cv_func__getpty=no
  4487. ac_cv_func_connect=yes
  4488. ac_cv_func_gethostbyname=yes
  4489. ac_cv_func_gethostname=yes
  4490. ac_cv_func_gettimeofday=yes
  4491. ac_cv_func_grantpt=yes
  4492. ac_cv_func_random=yes
  4493. ac_cv_func_remove=yes
  4494. ac_cv_func_setitimer=yes
  4495. ac_cv_func_setlocale=yes
  4496. ac_cv_func_shmat=yes
  4497. ac_cv_func_usleep=yes
  4498. ac_cv_have_x='have_x=yes ac_x_includes='\''/usr/X11R6/include'\'' ac_x_libraries='\''/usr/X11R6/lib'\'''
  4499. ac_cv_header_X11_Intrinsic_h=no
  4500. ac_cv_header_dirent_dirent_h=yes
  4501. ac_cv_header_fcntl_h=yes
  4502. ac_cv_header_inttypes_h=yes
  4503. ac_cv_header_memory_h=yes
  4504. ac_cv_header_stdc=yes
  4505. ac_cv_header_stddef_h=yes
  4506. ac_cv_header_stdint_h=yes
  4507. ac_cv_header_stdlib_h=yes
  4508. ac_cv_header_string_h=yes
  4509. ac_cv_header_strings_h=yes
  4510. ac_cv_header_stropts_h=no
  4511. ac_cv_header_sys_socket_h=yes
  4512. ac_cv_header_sys_stat_h=yes
  4513. ac_cv_header_sys_systeminfo_h=no
  4514. ac_cv_header_sys_time_h=yes
  4515. ac_cv_header_sys_types_h=yes
  4516. ac_cv_header_sys_wait_h=yes
  4517. ac_cv_header_time=yes
  4518. ac_cv_header_unistd_h=yes
  4519. ac_cv_lib_ICE_IceConnectionNumber=yes
  4520. ac_cv_lib_lex=-ll
  4521. ac_cv_lib_seq_getpseudotty=no
  4522. ac_cv_objext=o
  4523. ac_cv_path_AWKPATH=/usr/bin/awk
  4524. ac_cv_path_EGREP='/usr/bin/grep -E'
  4525. ac_cv_path_GREP=/usr/bin/grep
  4526. ac_cv_path_PERLPATH=/usr/bin/perl
  4527. ac_cv_path_install='/usr/bin/install -c'
  4528. ac_cv_prog_AWK=awk
  4529. ac_cv_prog_CPP='gcc -E'
  4530. ac_cv_prog_LEX=flex
  4531. ac_cv_prog_MINFO=makeinfo
  4532. ac_cv_prog_NROFF='nroff -man'
  4533. ac_cv_prog_RSH=rsh
  4534. ac_cv_prog_ac_ct_CC=gcc
  4535. ac_cv_prog_cc_c89=
  4536. ac_cv_prog_cc_g=yes
  4537. ac_cv_prog_cc_gcc_c_o=yes
  4538. ac_cv_prog_lex_root=lex.yy
  4539. ac_cv_prog_lex_yytext_pointer=yes
  4540. ac_cv_prog_make_make_set=yes
  4541. ac_cv_search_opendir='none required'
  4542. ac_cv_search_strerror='none required'
  4543. ac_cv_type_signal=void
  4544. am_cv_CC_dependencies_compiler_type=gcc3
  4545.  
  4546. ## ----------------- ##
  4547. ## Output variables. ##
  4548. ## ----------------- ##
  4549.  
  4550. ACLOCAL='${SHELL} /sw/src/fink.build/xboard-4.5.2a/missing --run aclocal-1.11'
  4551. AMDEPBACKSLASH='\'
  4552. AMDEP_FALSE='#'
  4553. AMDEP_TRUE=''
  4554. AMTAR='${SHELL} /sw/src/fink.build/xboard-4.5.2a/missing --run tar'
  4555. AM_BACKSLASH='\'
  4556. AM_DEFAULT_VERBOSITY='0'
  4557. AUTOCONF='${SHELL} /sw/src/fink.build/xboard-4.5.2a/missing --run autoconf'
  4558. AUTOHEADER='${SHELL} /sw/src/fink.build/xboard-4.5.2a/missing --run autoheader'
  4559. AUTOMAKE='${SHELL} /sw/src/fink.build/xboard-4.5.2a/missing --run automake-1.11'
  4560. AWK='awk'
  4561. AWKPATH='/usr/bin/awk'
  4562. CC='gcc'
  4563. CCDEPMODE='depmode=gcc3'
  4564. CFLAGS=' '
  4565. CONF_CFLAGS=''
  4566. CONF_LDFLAGS=''
  4567. CPP='gcc -E'
  4568. CPPFLAGS=''
  4569. CYGPATH_W='echo'
  4570. DEFS=''
  4571. DEPDIR='.deps'
  4572. ECHO_C='\c'
  4573. ECHO_N=''
  4574. ECHO_T=''
  4575. EGREP='/usr/bin/grep -E'
  4576. EXEEXT=''
  4577. GREP='/usr/bin/grep'
  4578. INSTALL_DATA='${INSTALL} -m 644'
  4579. INSTALL_PROGRAM='${INSTALL}'
  4580. INSTALL_SCRIPT='${INSTALL}'
  4581. INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
  4582. LDFLAGS=''
  4583. LEX='flex'
  4584. LEXLIB='-ll'
  4585. LEX_OUTPUT_ROOT='lex.yy'
  4586. LIBOBJS=''
  4587. LIBS=''
  4588. LTLIBOBJS=''
  4589. MAKEINFO='${SHELL} /sw/src/fink.build/xboard-4.5.2a/missing --run makeinfo'
  4590. MINFO='makeinfo'
  4591. MKDIR_P='./install-sh -c -d'
  4592. NROFF='nroff -man'
  4593. NROFFFLAGS=''
  4594. OBJEXT='o'
  4595. PACKAGE='xboard'
  4596. PACKAGE_BUGREPORT='bug-xboard@gnu.org'
  4597. PACKAGE_NAME='xboard'
  4598. PACKAGE_STRING='xboard 4.5.2a'
  4599. PACKAGE_TARNAME='xboard'
  4600. PACKAGE_URL=''
  4601. PACKAGE_VERSION='4.5.2a'
  4602. PATH_SEPARATOR=':'
  4603. PERLPATH='/usr/bin/perl'
  4604. POST_XMULIB=''
  4605. PRE_XMULIB=''
  4606. RSH='rsh'
  4607. SET_MAKE=''
  4608. SHELL='/bin/sh'
  4609. STRIP=''
  4610. VERSION='4.5.2a'
  4611. XAW_LIBS=''
  4612. XMKMF=''
  4613. X_CFLAGS=' -I/usr/X11R6/include'
  4614. X_EXTRA_LIBS=''
  4615. X_LIBS=' -L/usr/X11R6/lib -R/usr/X11R6/lib'
  4616. X_PRE_LIBS=' -lSM -lICE'
  4617. ZIPPY_FALSE=''
  4618. ZIPPY_TRUE=''
  4619. ac_ct_CC='gcc'
  4620. am__EXEEXT_FALSE=''
  4621. am__EXEEXT_TRUE=''
  4622. am__fastdepCC_FALSE='#'
  4623. am__fastdepCC_TRUE=''
  4624. am__include='include'
  4625. am__isrc=''
  4626. am__leading_dot='.'
  4627. am__quote=''
  4628. am__tar='${AMTAR} chof - "$$tardir"'
  4629. am__untar='${AMTAR} xf -'
  4630. bindir='${exec_prefix}/bin'
  4631. build=''
  4632. build_alias=''
  4633. build_cpu=''
  4634. build_os=''
  4635. build_vendor=''
  4636. datadir='${datarootdir}'
  4637. datarootdir='${prefix}/share'
  4638. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  4639. dvidir='${docdir}'
  4640. exec_prefix='NONE'
  4641. host=''
  4642. host_alias=''
  4643. host_cpu=''
  4644. host_os=''
  4645. host_vendor=''
  4646. htmldir='${docdir}'
  4647. includedir='${prefix}/include'
  4648. infodir='${datarootdir}/info'
  4649. install_sh='${SHELL} /sw/src/fink.build/xboard-4.5.2a/install-sh'
  4650. libdir='${exec_prefix}/lib'
  4651. libexecdir='${exec_prefix}/libexec'
  4652. localedir='${datarootdir}/locale'
  4653. localstatedir='${prefix}/var'
  4654. mandir='${datarootdir}/man'
  4655. mkdir_p='$(top_builddir)/./install-sh -c -d'
  4656. oldincludedir='/usr/include'
  4657. pdfdir='${docdir}'
  4658. prefix='NONE'
  4659. program_transform_name='s,x,x,'
  4660. psdir='${docdir}'
  4661. sbindir='${exec_prefix}/sbin'
  4662. sharedstatedir='${prefix}/com'
  4663. sysconfdir='${prefix}/etc'
  4664. target_alias=''
  4665.  
  4666. ## ----------- ##
  4667. ## confdefs.h. ##
  4668. ## ----------- ##
  4669.  
  4670. /* confdefs.h */
  4671. #define PACKAGE_NAME "xboard"
  4672. #define PACKAGE_TARNAME "xboard"
  4673. #define PACKAGE_VERSION "4.5.2a"
  4674. #define PACKAGE_STRING "xboard 4.5.2a"
  4675. #define PACKAGE_BUGREPORT "bug-xboard@gnu.org"
  4676. #define PACKAGE_URL ""
  4677. #define PACKAGE "xboard"
  4678. #define VERSION "4.5.2a"
  4679. #define YYTEXT_POINTER 1
  4680. #define REMOTE_SHELL "rsh"
  4681. #define STDC_HEADERS 1
  4682. #define TIME_WITH_SYS_TIME 1
  4683. #define HAVE_SYS_WAIT_H 1
  4684. #define HAVE_DIRENT_H 1
  4685. #define RETSIGTYPE void
  4686. #define HAVE_SYS_TYPES_H 1
  4687. #define HAVE_SYS_STAT_H 1
  4688. #define HAVE_STDLIB_H 1
  4689. #define HAVE_STRING_H 1
  4690. #define HAVE_MEMORY_H 1
  4691. #define HAVE_STRINGS_H 1
  4692. #define HAVE_INTTYPES_H 1
  4693. #define HAVE_STDINT_H 1
  4694. #define HAVE_UNISTD_H 1
  4695. #define HAVE_SYS_TIME_H 1
  4696. #define HAVE_STRING_H 1
  4697. #define HAVE_UNISTD_H 1
  4698. #define HAVE_FCNTL_H 1
  4699. #define HAVE_SYS_SOCKET_H 1
  4700. #define HAVE_GRANTPT 1
  4701. #define HAVE_SETITIMER 1
  4702. #define HAVE_USLEEP 1
  4703. #define HAVE_GETTIMEOFDAY 1
  4704. #define HAVE_RANDOM 1
  4705. #define HAVE_GETHOSTNAME 1
  4706.  
  4707. configure: exit 1
Add Comment
Please, Sign In to add comment