Guest User

Untitled

a guest
Oct 30th, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 234.27 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 GNU Hurd configure 0.9, which was
  5. generated by GNU Autoconf 2.69. Invocation command line was
  6.  
  7. $ ../configure --prefix=
  8.  
  9. ## --------- ##
  10. ## Platform. ##
  11. ## --------- ##
  12.  
  13. hostname = debian
  14. uname -m = i686-AT386
  15. uname -r = 0.9
  16. uname -s = GNU
  17. uname -v = GNU-Mach 1.8+git20190109-486/Hurd-0.9
  18.  
  19. /usr/bin/uname -p = unknown
  20. /bin/uname -X = unknown
  21.  
  22. /bin/arch = unknown
  23. /usr/bin/arch -k = unknown
  24. /usr/convex/getsysinfo = unknown
  25. /usr/bin/hostinfo = unknown
  26. /bin/machine = unknown
  27. /usr/bin/oslevel = unknown
  28. /bin/universe = unknown
  29.  
  30. PATH: /usr/local/bin
  31. PATH: /usr/bin
  32. PATH: /bin
  33. PATH: /usr/local/games
  34. PATH: /usr/games
  35.  
  36.  
  37. ## ----------- ##
  38. ## Core tests. ##
  39. ## ----------- ##
  40.  
  41. configure:2330: checking build system type
  42. configure:2344: result: i686-unknown-gnu0.9
  43. configure:2364: checking host system type
  44. configure:2377: result: i686-unknown-gnu0.9
  45. configure:2487: checking for a BSD-compatible install
  46. configure:2555: result: /bin/bash /home/pruebas/hurd/install-sh -c -C
  47. configure:2570: checking for gawk
  48. configure:2586: found /usr/bin/gawk
  49. configure:2597: result: gawk
  50. configure:2608: checking for a sed that does not truncate output
  51. configure:2672: result: /bin/sed
  52. configure:2734: checking for gcc
  53. configure:2750: found /usr/bin/gcc
  54. configure:2761: result: gcc
  55. configure:2990: checking for C compiler version
  56. configure:2999: gcc --version >&5
  57. gcc (Debian 9.2.1-12) 9.2.1 20191022
  58. Copyright (C) 2019 Free Software Foundation, Inc.
  59. This is free software; see the source for copying conditions. There is NO
  60. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  61.  
  62. configure:3010: $? = 0
  63. configure:2999: gcc -v >&5
  64. Using built-in specs.
  65. COLLECT_GCC=gcc
  66. COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-gnu/9/lto-wrapper
  67. Target: i686-gnu
  68. Configured with: ../src/configure -v --with-pkgversion='Debian 9.2.1-12' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=i686-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --disable-libitm --disable-libsanitizer --enable-plugin --enable-default-pie --with-system-zlib --disable-libphobos --enable-multiarch --disable-werror --with-arch=i586 --with-tune=generic --enable-checking=release --build=i686-gnu --host=i686-gnu --target=i686-gnu
  69. Thread model: posix
  70. gcc version 9.2.1 20191022 (Debian 9.2.1-12)
  71. configure:3010: $? = 0
  72. configure:2999: gcc -V >&5
  73. gcc: error: unrecognized command line option '-V'
  74. gcc: fatal error: no input files
  75. compilation terminated.
  76. configure:3010: $? = 1
  77. configure:2999: gcc -qversion >&5
  78. gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?
  79. gcc: fatal error: no input files
  80. compilation terminated.
  81. configure:3010: $? = 1
  82. configure:3030: gcc -o conftest conftest.c >&5
  83. configure:3034: $? = 0
  84. configure:3053: checking whether the C compiler works
  85. configure:3075: gcc conftest.c >&5
  86. configure:3079: $? = 0
  87. configure:3127: result: yes
  88. configure:3130: checking for C compiler default output file name
  89. configure:3132: result: a.out
  90. configure:3138: checking for suffix of executables
  91. configure:3145: gcc -o conftest conftest.c >&5
  92. configure:3149: $? = 0
  93. configure:3171: result:
  94. configure:3193: checking whether we are cross compiling
  95. configure:3201: gcc -o conftest conftest.c >&5
  96. configure:3205: $? = 0
  97. configure:3212: ./conftest
  98. configure:3216: $? = 0
  99. configure:3231: result: no
  100. configure:3204: checking for suffix of object files
  101. configure:3226: gcc -c conftest.c >&5
  102. configure:3230: $? = 0
  103. configure:3251: result: o
  104. configure:3255: checking whether we are using the GNU C compiler
  105. configure:3274: gcc -c conftest.c >&5
  106. configure:3274: $? = 0
  107. configure:3283: result: yes
  108. configure:3292: checking whether gcc accepts -g
  109. configure:3312: gcc -c -g conftest.c >&5
  110. configure:3312: $? = 0
  111. configure:3353: result: yes
  112. configure:3370: checking for gcc option to accept ISO C89
  113. configure:3433: gcc -c -g -O2 conftest.c >&5
  114. configure:3433: $? = 0
  115. configure:3446: result: none needed
  116. configure:3514: checking for ld
  117. configure:3530: found /usr/bin/ld
  118. configure:3541: result: ld
  119. configure:3606: checking for objcopy
  120. configure:3622: found /usr/bin/objcopy
  121. configure:3633: result: objcopy
  122. configure:3698: checking for ar
  123. configure:3714: found /usr/bin/ar
  124. configure:3725: result: ar
  125. configure:3790: checking for ranlib
  126. configure:3806: found /usr/bin/ranlib
  127. configure:3817: result: ranlib
  128. configure:3882: checking for mig
  129. configure:3898: found /usr/bin/mig
  130. configure:3909: result: mig
  131. configure:3943: checking whether mig supports the retcode keyword
  132. configure:3959: CC=gcc mig -n conftest.defs 1>&5
  133. configure:3962: $? = 0
  134. configure:3970: result: yes
  135. configure:3978: checking for ld --version-script
  136. configure:3997: eval $CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5 1>&5
  137. configure:4000: $? = 0
  138. configure:4006: gcc -g -O2 -shared -o conftest.so conftest.o
  139. -nostartfiles -nostdlib
  140. -Wl,--version-script,conftest.map
  141. 1>&5
  142. configure:4009: $? = 0
  143. configure:4017: result: yes
  144. configure:4021: checking for libio
  145. configure:4041: gcc -c -g -O2 conftest.c >&5
  146. conftest.c:12:3: error: #error No libio found.
  147. 12 | # error No libio found.
  148. | ^~~~~
  149. configure:4041: $? = 1
  150. configure: failed program was:
  151. | /* confdefs.h */
  152. | #define PACKAGE_NAME "GNU Hurd"
  153. | #define PACKAGE_TARNAME "hurd"
  154. | #define PACKAGE_VERSION "0.9"
  155. | #define PACKAGE_STRING "GNU Hurd 0.9"
  156. | #define PACKAGE_BUGREPORT "[email protected]"
  157. | #define PACKAGE_URL "http://www.gnu.org/software/hurd/"
  158. | #define HAVE_MIG_RETCODE 1
  159. | /* end confdefs.h. */
  160. | #include <stdio.h>
  161. | #ifndef _STDIO_USES_IOSTREAM
  162. | # error No libio found.
  163. | #endif
  164. | int
  165. | main ()
  166. | {
  167. |
  168. | ;
  169. | return 0;
  170. | }
  171. configure:4048: result: no
  172. configure:4066: checking for file_exec_paths
  173. configure:4066: gcc -o conftest -g -O2 conftest.c >&5
  174. configure:4066: $? = 0
  175. configure:4066: result: yes
  176. configure:4066: checking for exec_exec_paths
  177. configure:4066: gcc -o conftest -g -O2 conftest.c >&5
  178. configure:4066: $? = 0
  179. configure:4066: result: yes
  180. configure:4066: checking for _hurd_exec_paths
  181. configure:4066: gcc -o conftest -g -O2 conftest.c >&5
  182. configure:4066: $? = 0
  183. configure:4066: result: yes
  184. configure:4079: checking for file_futimens
  185. configure:4079: gcc -o conftest -g -O2 conftest.c >&5
  186. /usr/bin/ld: /tmp/cccOQwSO.o: in function `main':
  187. /home/pruebas/hurd/build/conftest.c:47: undefined reference to `file_futimens'
  188. collect2: error: ld returned 1 exit status
  189. configure:4079: $? = 1
  190. configure: failed program was:
  191. | /* confdefs.h */
  192. | #define PACKAGE_NAME "GNU Hurd"
  193. | #define PACKAGE_TARNAME "hurd"
  194. | #define PACKAGE_VERSION "0.9"
  195. | #define PACKAGE_STRING "GNU Hurd 0.9"
  196. | #define PACKAGE_BUGREPORT "[email protected]"
  197. | #define PACKAGE_URL "http://www.gnu.org/software/hurd/"
  198. | #define HAVE_MIG_RETCODE 1
  199. | #define HAVE_FILE_EXEC_PATHS 1
  200. | #define HAVE_EXEC_EXEC_PATHS 1
  201. | #define HAVE__HURD_EXEC_PATHS 1
  202. | /* end confdefs.h. */
  203. | /* Define file_futimens to an innocuous variant, in case <limits.h> declares file_futimens.
  204. | For example, HP-UX 11i <limits.h> declares gettimeofday. */
  205. | #define file_futimens innocuous_file_futimens
  206. |
  207. | /* System header to define __stub macros and hopefully few prototypes,
  208. | which can conflict with char file_futimens (); below.
  209. | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  210. | <limits.h> exists even on freestanding compilers. */
  211. |
  212. | #ifdef __STDC__
  213. | # include <limits.h>
  214. | #else
  215. | # include <assert.h>
  216. | #endif
  217. |
  218. | #undef file_futimens
  219. |
  220. | /* Override any GCC internal prototype to avoid an error.
  221. | Use char because int might match the return type of a GCC
  222. | builtin and then its argument prototype would still apply. */
  223. | #ifdef __cplusplus
  224. | extern "C"
  225. | #endif
  226. | char file_futimens ();
  227. | /* The GNU C library defines this for functions which it implements
  228. | to always fail with ENOSYS. Some functions are actually named
  229. | something starting with __ and the normal name is an alias. */
  230. | #if defined __stub_file_futimens || defined __stub___file_futimens
  231. | choke me
  232. | #endif
  233. |
  234. | int
  235. | main ()
  236. | {
  237. | return file_futimens ();
  238. | ;
  239. | return 0;
  240. | }
  241. configure:4079: result: no
  242. configure:4093: checking for crypt in -lcrypt
  243. configure:4121: gcc -o conftest -g -O2 conftest.c -lcrypt >&5
  244. configure:4121: $? = 0
  245. configure:4130: result: yes
  246. configure:4143: checking for -fgnu89-inline
  247. configure:4158: gcc -g -O2 -S -std=gnu99 -fgnu89-inline
  248. -o conftest.s conftest.c 1>&5
  249. conftest.c:3:1: warning: return type defaults to 'int' [-Wimplicit-int]
  250. 3 | main () { return 0;}
  251. | ^~~~
  252. configure:4161: $? = 0
  253. configure:4170: result: yes
  254. configure:4197: checking how to run the C preprocessor
  255. configure:4228: gcc -E conftest.c
  256. configure:4228: $? = 0
  257. configure:4242: gcc -E conftest.c
  258. conftest.c:16:10: fatal error: ac_nonexistent.h: No such file or directory
  259. 16 | #include <ac_nonexistent.h>
  260. | ^~~~~~~~~~~~~~~~~~
  261. compilation terminated.
  262. configure:4242: $? = 1
  263. configure: failed program was:
  264. | /* confdefs.h */
  265. | #define PACKAGE_NAME "GNU Hurd"
  266. | #define PACKAGE_TARNAME "hurd"
  267. | #define PACKAGE_VERSION "0.9"
  268. | #define PACKAGE_STRING "GNU Hurd 0.9"
  269. | #define PACKAGE_BUGREPORT "[email protected]"
  270. | #define PACKAGE_URL "http://www.gnu.org/software/hurd/"
  271. | #define HAVE_MIG_RETCODE 1
  272. | #define HAVE_FILE_EXEC_PATHS 1
  273. | #define HAVE_EXEC_EXEC_PATHS 1
  274. | #define HAVE__HURD_EXEC_PATHS 1
  275. | #define UTIME_NOW -1
  276. | #define UTIME_OMIT -2
  277. | #define HAVE_LIBCRYPT 1
  278. | /* end confdefs.h. */
  279. | #include <ac_nonexistent.h>
  280. configure:4267: result: gcc -E
  281. configure:4287: gcc -E conftest.c
  282. configure:4287: $? = 0
  283. configure:4301: gcc -E conftest.c
  284. conftest.c:16:10: fatal error: ac_nonexistent.h: No such file or directory
  285. 16 | #include <ac_nonexistent.h>
  286. | ^~~~~~~~~~~~~~~~~~
  287. compilation terminated.
  288. configure:4301: $? = 1
  289. configure: failed program was:
  290. | /* confdefs.h */
  291. | #define PACKAGE_NAME "GNU Hurd"
  292. | #define PACKAGE_TARNAME "hurd"
  293. | #define PACKAGE_VERSION "0.9"
  294. | #define PACKAGE_STRING "GNU Hurd 0.9"
  295. | #define PACKAGE_BUGREPORT "[email protected]"
  296. | #define PACKAGE_URL "http://www.gnu.org/software/hurd/"
  297. | #define HAVE_MIG_RETCODE 1
  298. | #define HAVE_FILE_EXEC_PATHS 1
  299. | #define HAVE_EXEC_EXEC_PATHS 1
  300. | #define HAVE__HURD_EXEC_PATHS 1
  301. | #define UTIME_NOW -1
  302. | #define UTIME_OMIT -2
  303. | #define HAVE_LIBCRYPT 1
  304. | /* end confdefs.h. */
  305. | #include <ac_nonexistent.h>
  306. configure:4330: checking for grep that handles long lines and -e
  307. configure:4388: result: /bin/grep
  308. configure:4393: checking for egrep
  309. configure:4455: result: /bin/grep -E
  310. configure:4460: checking for ANSI C header files
  311. configure:4480: gcc -c -g -O2 conftest.c >&5
  312. configure:4480: $? = 0
  313. configure:4553: gcc -o conftest -g -O2 conftest.c >&5
  314. configure:4553: $? = 0
  315. configure:4553: ./conftest
  316. configure:4553: $? = 0
  317. configure:4564: result: yes
  318. configure:4577: checking for sys/types.h
  319. configure:4577: gcc -c -g -O2 conftest.c >&5
  320. configure:4577: $? = 0
  321. configure:4577: result: yes
  322. configure:4577: checking for sys/stat.h
  323. configure:4577: gcc -c -g -O2 conftest.c >&5
  324. configure:4577: $? = 0
  325. configure:4577: result: yes
  326. configure:4577: checking for stdlib.h
  327. configure:4577: gcc -c -g -O2 conftest.c >&5
  328. configure:4577: $? = 0
  329. configure:4577: result: yes
  330. configure:4577: checking for string.h
  331. configure:4577: gcc -c -g -O2 conftest.c >&5
  332. configure:4577: $? = 0
  333. configure:4577: result: yes
  334. configure:4577: checking for memory.h
  335. configure:4577: gcc -c -g -O2 conftest.c >&5
  336. configure:4577: $? = 0
  337. configure:4577: result: yes
  338. configure:4577: checking for strings.h
  339. configure:4577: gcc -c -g -O2 conftest.c >&5
  340. configure:4577: $? = 0
  341. configure:4577: result: yes
  342. configure:4577: checking for inttypes.h
  343. configure:4577: gcc -c -g -O2 conftest.c >&5
  344. configure:4577: $? = 0
  345. configure:4577: result: yes
  346. configure:4577: checking for stdint.h
  347. configure:4577: gcc -c -g -O2 conftest.c >&5
  348. configure:4577: $? = 0
  349. configure:4577: result: yes
  350. configure:4577: checking for unistd.h
  351. configure:4577: gcc -c -g -O2 conftest.c >&5
  352. configure:4577: $? = 0
  353. configure:4577: result: yes
  354. configure:4591: checking parted/parted.h usability
  355. configure:4591: gcc -c -g -O2 conftest.c >&5
  356. configure:4591: $? = 0
  357. configure:4591: result: yes
  358. configure:4591: checking parted/parted.h presence
  359. configure:4591: gcc -E conftest.c
  360. configure:4591: $? = 0
  361. configure:4591: result: yes
  362. configure:4591: checking for parted/parted.h
  363. configure:4591: result: yes
  364. configure:4605: checking for ped_device_read in -lparted
  365. configure:4633: gcc -o conftest -g -O2 conftest.c -lparted >&5
  366. configure:4633: $? = 0
  367. configure:4642: result: yes
  368. configure:4660: checking for uuid_generate in -luuid
  369. configure:4688: gcc -o conftest -g -O2 conftest.c -luuid -lparted >&5
  370. configure:4688: $? = 0
  371. configure:4697: result: yes
  372. configure:4715: checking for dlopen in -ldl
  373. configure:4743: gcc -o conftest -g -O2 conftest.c -ldl -luuid -lparted >&5
  374. configure:4743: $? = 0
  375. configure:4752: result: yes
  376. configure:4786: checking for BZ2_bzCompress in -lbz2
  377. configure:4814: gcc -o conftest -g -O2 conftest.c -lbz2 -ldl -luuid -lparted >&5
  378. configure:4814: $? = 0
  379. configure:4823: result: yes
  380. configure:4846: checking for deflate in -lz
  381. configure:4874: gcc -o conftest -g -O2 conftest.c -lz -ldl -luuid -lparted >&5
  382. configure:4874: $? = 0
  383. configure:4883: result: yes
  384. configure:4910: checking boot store types
  385. configure:4912: result: device remap part bunzip2 gunzip
  386. configure:4925: checking for initscr in -lncursesw
  387. configure:4953: gcc -o conftest -g -O2 conftest.c -lncursesw -ldl -luuid -lparted >&5
  388. configure:4953: $? = 0
  389. configure:4962: result: yes
  390. configure:4986: checking for ncursesw include dir
  391. configure:5000: result: /usr/include/ncursesw
  392. configure:5017: checking for flex
  393. configure:5033: found /usr/bin/flex
  394. configure:5044: result: flex
  395. configure:5082: flex conftest.l
  396. configure:5086: $? = 0
  397. configure:5088: checking lex output file root
  398. configure:5102: result: lex.yy
  399. configure:5107: checking lex library
  400. configure:5124: gcc -o conftest -g -O2 conftest.c -ldl -luuid -lparted >&5
  401. /usr/bin/ld: /tmp/ccABkCwv.o: in function `input':
  402. /home/pruebas/hurd/build/lex.yy.c:1180: undefined reference to `yywrap'
  403. /usr/bin/ld: /tmp/ccABkCwv.o: in function `yylex':
  404. /home/pruebas/hurd/build/lex.yy.c:871: undefined reference to `yywrap'
  405. /usr/bin/ld: /tmp/ccABkCwv.o: in function `main':
  406. /home/pruebas/hurd/build/conftest.l:17: undefined reference to `yywrap'
  407. collect2: error: ld returned 1 exit status
  408. configure:5124: $? = 1
  409. configure: failed program was:
  410. | /* confdefs.h */
  411. | #define PACKAGE_NAME "GNU Hurd"
  412. | #define PACKAGE_TARNAME "hurd"
  413. | #define PACKAGE_VERSION "0.9"
  414. | #define PACKAGE_STRING "GNU Hurd 0.9"
  415. | #define PACKAGE_BUGREPORT "[email protected]"
  416. | #define PACKAGE_URL "http://www.gnu.org/software/hurd/"
  417. | #define HAVE_MIG_RETCODE 1
  418. | #define HAVE_FILE_EXEC_PATHS 1
  419. | #define HAVE_EXEC_EXEC_PATHS 1
  420. | #define HAVE__HURD_EXEC_PATHS 1
  421. | #define UTIME_NOW -1
  422. | #define UTIME_OMIT -2
  423. | #define HAVE_LIBCRYPT 1
  424. | #define STDC_HEADERS 1
  425. | #define HAVE_SYS_TYPES_H 1
  426. | #define HAVE_SYS_STAT_H 1
  427. | #define HAVE_STDLIB_H 1
  428. | #define HAVE_STRING_H 1
  429. | #define HAVE_MEMORY_H 1
  430. | #define HAVE_STRINGS_H 1
  431. | #define HAVE_INTTYPES_H 1
  432. | #define HAVE_STDINT_H 1
  433. | #define HAVE_UNISTD_H 1
  434. | #define HAVE_PARTED_PARTED_H 1
  435. | #define HAVE_LIBPARTED 1
  436. | #define HAVE_LIBUUID 1
  437. | #define HAVE_LIBDL 1
  438. | /* end confdefs.h. */
  439. |
  440. | #line 3 "lex.yy.c"
  441. |
  442. | #define YY_INT_ALIGNED short int
  443. |
  444. | /* A lexical scanner generated by flex */
  445. |
  446. | #define FLEX_SCANNER
  447. | #define YY_FLEX_MAJOR_VERSION 2
  448. | #define YY_FLEX_MINOR_VERSION 6
  449. | #define YY_FLEX_SUBMINOR_VERSION 4
  450. | #if YY_FLEX_SUBMINOR_VERSION > 0
  451. | #define FLEX_BETA
  452. | #endif
  453. |
  454. | /* First, we deal with platform-specific or compiler-specific issues. */
  455. |
  456. | /* begin standard C headers. */
  457. | #include <stdio.h>
  458. | #include <string.h>
  459. | #include <errno.h>
  460. | #include <stdlib.h>
  461. |
  462. | /* end standard C headers. */
  463. |
  464. | /* flex integer type definitions */
  465. |
  466. | #ifndef FLEXINT_H
  467. | #define FLEXINT_H
  468. |
  469. | /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
  470. |
  471. | #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
  472. |
  473. | /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
  474. | * if you want the limit (max/min) macros for int types.
  475. | */
  476. | #ifndef __STDC_LIMIT_MACROS
  477. | #define __STDC_LIMIT_MACROS 1
  478. | #endif
  479. |
  480. | #include <inttypes.h>
  481. | typedef int8_t flex_int8_t;
  482. | typedef uint8_t flex_uint8_t;
  483. | typedef int16_t flex_int16_t;
  484. | typedef uint16_t flex_uint16_t;
  485. | typedef int32_t flex_int32_t;
  486. | typedef uint32_t flex_uint32_t;
  487. | #else
  488. | typedef signed char flex_int8_t;
  489. | typedef short int flex_int16_t;
  490. | typedef int flex_int32_t;
  491. | typedef unsigned char flex_uint8_t;
  492. | typedef unsigned short int flex_uint16_t;
  493. | typedef unsigned int flex_uint32_t;
  494. |
  495. | /* Limits of integral types. */
  496. | #ifndef INT8_MIN
  497. | #define INT8_MIN (-128)
  498. | #endif
  499. | #ifndef INT16_MIN
  500. | #define INT16_MIN (-32767-1)
  501. | #endif
  502. | #ifndef INT32_MIN
  503. | #define INT32_MIN (-2147483647-1)
  504. | #endif
  505. | #ifndef INT8_MAX
  506. | #define INT8_MAX (127)
  507. | #endif
  508. | #ifndef INT16_MAX
  509. | #define INT16_MAX (32767)
  510. | #endif
  511. | #ifndef INT32_MAX
  512. | #define INT32_MAX (2147483647)
  513. | #endif
  514. | #ifndef UINT8_MAX
  515. | #define UINT8_MAX (255U)
  516. | #endif
  517. | #ifndef UINT16_MAX
  518. | #define UINT16_MAX (65535U)
  519. | #endif
  520. | #ifndef UINT32_MAX
  521. | #define UINT32_MAX (4294967295U)
  522. | #endif
  523. |
  524. | #ifndef SIZE_MAX
  525. | #define SIZE_MAX (~(size_t)0)
  526. | #endif
  527. |
  528. | #endif /* ! C99 */
  529. |
  530. | #endif /* ! FLEXINT_H */
  531. |
  532. | /* begin standard C++ headers. */
  533. |
  534. | /* TODO: this is always defined, so inline it */
  535. | #define yyconst const
  536. |
  537. | #if defined(__GNUC__) && __GNUC__ >= 3
  538. | #define yynoreturn __attribute__((__noreturn__))
  539. | #else
  540. | #define yynoreturn
  541. | #endif
  542. |
  543. | /* Returned upon end-of-file. */
  544. | #define YY_NULL 0
  545. |
  546. | /* Promotes a possibly negative, possibly signed char to an
  547. | * integer in range [0..255] for use as an array index.
  548. | */
  549. | #define YY_SC_TO_UI(c) ((YY_CHAR) (c))
  550. |
  551. | /* Enter a start condition. This macro really ought to take a parameter,
  552. | * but we do it the disgusting crufty way forced on us by the ()-less
  553. | * definition of BEGIN.
  554. | */
  555. | #define BEGIN (yy_start) = 1 + 2 *
  556. | /* Translate the current start state into a value that can be later handed
  557. | * to BEGIN to return to the state. The YYSTATE alias is for lex
  558. | * compatibility.
  559. | */
  560. | #define YY_START (((yy_start) - 1) / 2)
  561. | #define YYSTATE YY_START
  562. | /* Action number for EOF rule of a given start state. */
  563. | #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  564. | /* Special action meaning "start processing a new file". */
  565. | #define YY_NEW_FILE yyrestart( yyin )
  566. | #define YY_END_OF_BUFFER_CHAR 0
  567. |
  568. | /* Size of default input buffer. */
  569. | #ifndef YY_BUF_SIZE
  570. | #ifdef __ia64__
  571. | /* On IA-64, the buffer size is 16k, not 8k.
  572. | * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
  573. | * Ditto for the __ia64__ case accordingly.
  574. | */
  575. | #define YY_BUF_SIZE 32768
  576. | #else
  577. | #define YY_BUF_SIZE 16384
  578. | #endif /* __ia64__ */
  579. | #endif
  580. |
  581. | /* The state buf must be large enough to hold one state per character in the main buffer.
  582. | */
  583. | #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
  584. |
  585. | #ifndef YY_TYPEDEF_YY_BUFFER_STATE
  586. | #define YY_TYPEDEF_YY_BUFFER_STATE
  587. | typedef struct yy_buffer_state *YY_BUFFER_STATE;
  588. | #endif
  589. |
  590. | #ifndef YY_TYPEDEF_YY_SIZE_T
  591. | #define YY_TYPEDEF_YY_SIZE_T
  592. | typedef size_t yy_size_t;
  593. | #endif
  594. |
  595. | extern int yyleng;
  596. |
  597. | extern FILE *yyin, *yyout;
  598. |
  599. | #define EOB_ACT_CONTINUE_SCAN 0
  600. | #define EOB_ACT_END_OF_FILE 1
  601. | #define EOB_ACT_LAST_MATCH 2
  602. |
  603. | #define YY_LESS_LINENO(n)
  604. | #define YY_LINENO_REWIND_TO(ptr)
  605. |
  606. | /* Return all but the first "n" matched characters back to the input stream. */
  607. | #define yyless(n) \
  608. | do \
  609. | { \
  610. | /* Undo effects of setting up yytext. */ \
  611. | int yyless_macro_arg = (n); \
  612. | YY_LESS_LINENO(yyless_macro_arg);\
  613. | *yy_cp = (yy_hold_char); \
  614. | YY_RESTORE_YY_MORE_OFFSET \
  615. | (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
  616. | YY_DO_BEFORE_ACTION; /* set up yytext again */ \
  617. | } \
  618. | while ( 0 )
  619. | #define unput(c) yyunput( c, (yytext_ptr) )
  620. |
  621. | #ifndef YY_STRUCT_YY_BUFFER_STATE
  622. | #define YY_STRUCT_YY_BUFFER_STATE
  623. | struct yy_buffer_state
  624. | {
  625. | FILE *yy_input_file;
  626. |
  627. | char *yy_ch_buf; /* input buffer */
  628. | char *yy_buf_pos; /* current position in input buffer */
  629. |
  630. | /* Size of input buffer in bytes, not including room for EOB
  631. | * characters.
  632. | */
  633. | int yy_buf_size;
  634. |
  635. | /* Number of characters read into yy_ch_buf, not including EOB
  636. | * characters.
  637. | */
  638. | int yy_n_chars;
  639. |
  640. | /* Whether we "own" the buffer - i.e., we know we created it,
  641. | * and can realloc() it to grow it, and should free() it to
  642. | * delete it.
  643. | */
  644. | int yy_is_our_buffer;
  645. |
  646. | /* Whether this is an "interactive" input source; if so, and
  647. | * if we're using stdio for input, then we want to use getc()
  648. | * instead of fread(), to make sure we stop fetching input after
  649. | * each newline.
  650. | */
  651. | int yy_is_interactive;
  652. |
  653. | /* Whether we're considered to be at the beginning of a line.
  654. | * If so, '^' rules will be active on the next match, otherwise
  655. | * not.
  656. | */
  657. | int yy_at_bol;
  658. |
  659. | int yy_bs_lineno; /**< The line count. */
  660. | int yy_bs_column; /**< The column count. */
  661. |
  662. | /* Whether to try to fill the input buffer when we reach the
  663. | * end of it.
  664. | */
  665. | int yy_fill_buffer;
  666. |
  667. | int yy_buffer_status;
  668. |
  669. | #define YY_BUFFER_NEW 0
  670. | #define YY_BUFFER_NORMAL 1
  671. | /* When an EOF's been seen but there's still some text to process
  672. | * then we mark the buffer as YY_EOF_PENDING, to indicate that we
  673. | * shouldn't try reading from the input source any more. We might
  674. | * still have a bunch of tokens to match, though, because of
  675. | * possible backing-up.
  676. | *
  677. | * When we actually see the EOF, we change the status to "new"
  678. | * (via yyrestart()), so that the user can continue scanning by
  679. | * just pointing yyin at a new input file.
  680. | */
  681. | #define YY_BUFFER_EOF_PENDING 2
  682. |
  683. | };
  684. | #endif /* !YY_STRUCT_YY_BUFFER_STATE */
  685. |
  686. | /* Stack of input buffers. */
  687. | static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
  688. | static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
  689. | static YY_BUFFER_STATE * yy_buffer_stack = NULL; /**< Stack as an array. */
  690. |
  691. | /* We provide macros for accessing buffer states in case in the
  692. | * future we want to put the buffer states in a more general
  693. | * "scanner state".
  694. | *
  695. | * Returns the top of the stack, or NULL.
  696. | */
  697. | #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
  698. | ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
  699. | : NULL)
  700. | /* Same as previous macro, but useful when we know that the buffer stack is not
  701. | * NULL or when we need an lvalue. For internal use only.
  702. | */
  703. | #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
  704. |
  705. | /* yy_hold_char holds the character lost when yytext is formed. */
  706. | static char yy_hold_char;
  707. | static int yy_n_chars; /* number of characters read into yy_ch_buf */
  708. | int yyleng;
  709. |
  710. | /* Points to current character in buffer. */
  711. | static char *yy_c_buf_p = NULL;
  712. | static int yy_init = 0; /* whether we need to initialize */
  713. | static int yy_start = 0; /* start state number */
  714. |
  715. | /* Flag which is used to allow yywrap()'s to do buffer switches
  716. | * instead of setting up a fresh yyin. A bit of a hack ...
  717. | */
  718. | static int yy_did_buffer_switch_on_eof;
  719. |
  720. | void yyrestart ( FILE *input_file );
  721. | void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer );
  722. | YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size );
  723. | void yy_delete_buffer ( YY_BUFFER_STATE b );
  724. | void yy_flush_buffer ( YY_BUFFER_STATE b );
  725. | void yypush_buffer_state ( YY_BUFFER_STATE new_buffer );
  726. | void yypop_buffer_state ( void );
  727. |
  728. | static void yyensure_buffer_stack ( void );
  729. | static void yy_load_buffer_state ( void );
  730. | static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file );
  731. | #define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER )
  732. |
  733. | YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size );
  734. | YY_BUFFER_STATE yy_scan_string ( const char *yy_str );
  735. | YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len );
  736. |
  737. | void *yyalloc ( yy_size_t );
  738. | void *yyrealloc ( void *, yy_size_t );
  739. | void yyfree ( void * );
  740. |
  741. | #define yy_new_buffer yy_create_buffer
  742. | #define yy_set_interactive(is_interactive) \
  743. | { \
  744. | if ( ! YY_CURRENT_BUFFER ){ \
  745. | yyensure_buffer_stack (); \
  746. | YY_CURRENT_BUFFER_LVALUE = \
  747. | yy_create_buffer( yyin, YY_BUF_SIZE ); \
  748. | } \
  749. | YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
  750. | }
  751. | #define yy_set_bol(at_bol) \
  752. | { \
  753. | if ( ! YY_CURRENT_BUFFER ){\
  754. | yyensure_buffer_stack (); \
  755. | YY_CURRENT_BUFFER_LVALUE = \
  756. | yy_create_buffer( yyin, YY_BUF_SIZE ); \
  757. | } \
  758. | YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
  759. | }
  760. | #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
  761. |
  762. | /* Begin user sect3 */
  763. | typedef flex_uint8_t YY_CHAR;
  764. |
  765. | FILE *yyin = NULL, *yyout = NULL;
  766. |
  767. | typedef int yy_state_type;
  768. |
  769. | extern int yylineno;
  770. | int yylineno = 1;
  771. |
  772. | extern char *yytext;
  773. | #ifdef yytext_ptr
  774. | #undef yytext_ptr
  775. | #endif
  776. | #define yytext_ptr yytext
  777. |
  778. | static yy_state_type yy_get_previous_state ( void );
  779. | static yy_state_type yy_try_NUL_trans ( yy_state_type current_state );
  780. | static int yy_get_next_buffer ( void );
  781. | static void yynoreturn yy_fatal_error ( const char* msg );
  782. |
  783. | /* Done after the current pattern has been matched and before the
  784. | * corresponding action - sets up yytext.
  785. | */
  786. | #define YY_DO_BEFORE_ACTION \
  787. | (yytext_ptr) = yy_bp; \
  788. | (yytext_ptr) -= (yy_more_len); \
  789. | yyleng = (int) (yy_cp - (yytext_ptr)); \
  790. | (yy_hold_char) = *yy_cp; \
  791. | *yy_cp = '\0'; \
  792. | (yy_c_buf_p) = yy_cp;
  793. | #define YY_NUM_RULES 8
  794. | #define YY_END_OF_BUFFER 9
  795. | /* This struct is not used in this scanner,
  796. | but its presence is necessary. */
  797. | struct yy_trans_info
  798. | {
  799. | flex_int32_t yy_verify;
  800. | flex_int32_t yy_nxt;
  801. | };
  802. | static const flex_int16_t yy_acclist[23] =
  803. | { 0,
  804. | 9, 7, 8, 8, 1, 7, 8, 2, 7, 8,
  805. | 3, 7, 8, 4, 7, 8, 5, 7, 8, 6,
  806. | 7, 8
  807. | } ;
  808. |
  809. | static const flex_int16_t yy_accept[14] =
  810. | { 0,
  811. | 1, 1, 1, 2, 4, 5, 8, 11, 14, 17,
  812. | 20, 23, 23
  813. | } ;
  814. |
  815. | static const YY_CHAR yy_ec[256] =
  816. | { 0,
  817. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
  818. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  819. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  820. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  821. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  822. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  823. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  824. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  825. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  826. | 1, 1, 1, 1, 1, 1, 3, 4, 5, 6,
  827. |
  828. | 7, 8, 1, 1, 1, 1, 1, 1, 1, 1,
  829. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  830. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  831. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  832. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  833. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  834. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  835. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  836. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  837. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  838. |
  839. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  840. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  841. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  842. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  843. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  844. | 1, 1, 1, 1, 1
  845. | } ;
  846. |
  847. | static const YY_CHAR yy_meta[9] =
  848. | { 0,
  849. | 1, 1, 1, 1, 1, 1, 1, 1
  850. | } ;
  851. |
  852. | static const flex_int16_t yy_base[13] =
  853. | { 0,
  854. | 0, 0, 9, 10, 10, 10, 10, 10, 10, 10,
  855. | 10, 10
  856. | } ;
  857. |
  858. | static const flex_int16_t yy_def[13] =
  859. | { 0,
  860. | 12, 1, 12, 12, 12, 12, 12, 12, 12, 12,
  861. | 12, 0
  862. | } ;
  863. |
  864. | static const flex_int16_t yy_nxt[19] =
  865. | { 0,
  866. | 4, 5, 6, 7, 8, 9, 10, 11, 12, 3,
  867. | 12, 12, 12, 12, 12, 12, 12, 12
  868. | } ;
  869. |
  870. | static const flex_int16_t yy_chk[19] =
  871. | { 0,
  872. | 1, 1, 1, 1, 1, 1, 1, 1, 3, 12,
  873. | 12, 12, 12, 12, 12, 12, 12, 12
  874. | } ;
  875. |
  876. | extern int yy_flex_debug;
  877. | int yy_flex_debug = 0;
  878. |
  879. | static yy_state_type *yy_state_buf=0, *yy_state_ptr=0;
  880. | static char *yy_full_match;
  881. | static int yy_lp;
  882. | #define REJECT \
  883. | { \
  884. | *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ \
  885. | yy_cp = (yy_full_match); /* restore poss. backed-over text */ \
  886. | ++(yy_lp); \
  887. | goto find_rule; \
  888. | }
  889. |
  890. | static int yy_more_flag = 0;
  891. | static int yy_more_len = 0;
  892. | #define yymore() ((yy_more_flag) = 1)
  893. | #define YY_MORE_ADJ (yy_more_len)
  894. | #define YY_RESTORE_YY_MORE_OFFSET
  895. | char *yytext;
  896. | #line 1 "conftest.l"
  897. | #line 460 "lex.yy.c"
  898. |
  899. | #define INITIAL 0
  900. |
  901. | #ifndef YY_NO_UNISTD_H
  902. | /* Special case for "unistd.h", since it is non-ANSI. We include it way
  903. | * down here because we want the user's section 1 to have been scanned first.
  904. | * The user has a chance to override it with an option.
  905. | */
  906. | #include <unistd.h>
  907. | #endif
  908. |
  909. | #ifndef YY_EXTRA_TYPE
  910. | #define YY_EXTRA_TYPE void *
  911. | #endif
  912. |
  913. | static int yy_init_globals ( void );
  914. |
  915. | /* Accessor methods to globals.
  916. | These are made visible to non-reentrant scanners for convenience. */
  917. |
  918. | int yylex_destroy ( void );
  919. |
  920. | int yyget_debug ( void );
  921. |
  922. | void yyset_debug ( int debug_flag );
  923. |
  924. | YY_EXTRA_TYPE yyget_extra ( void );
  925. |
  926. | void yyset_extra ( YY_EXTRA_TYPE user_defined );
  927. |
  928. | FILE *yyget_in ( void );
  929. |
  930. | void yyset_in ( FILE * _in_str );
  931. |
  932. | FILE *yyget_out ( void );
  933. |
  934. | void yyset_out ( FILE * _out_str );
  935. |
  936. | int yyget_leng ( void );
  937. |
  938. | char *yyget_text ( void );
  939. |
  940. | int yyget_lineno ( void );
  941. |
  942. | void yyset_lineno ( int _line_number );
  943. |
  944. | /* Macros after this point can all be overridden by user definitions in
  945. | * section 1.
  946. | */
  947. |
  948. | #ifndef YY_SKIP_YYWRAP
  949. | #ifdef __cplusplus
  950. | extern "C" int yywrap ( void );
  951. | #else
  952. | extern int yywrap ( void );
  953. | #endif
  954. | #endif
  955. |
  956. | #ifndef YY_NO_UNPUT
  957. |
  958. | static void yyunput ( int c, char *buf_ptr );
  959. |
  960. | #endif
  961. |
  962. | #ifndef yytext_ptr
  963. | static void yy_flex_strncpy ( char *, const char *, int );
  964. | #endif
  965. |
  966. | #ifdef YY_NEED_STRLEN
  967. | static int yy_flex_strlen ( const char * );
  968. | #endif
  969. |
  970. | #ifndef YY_NO_INPUT
  971. | #ifdef __cplusplus
  972. | static int yyinput ( void );
  973. | #else
  974. | static int input ( void );
  975. | #endif
  976. |
  977. | #endif
  978. |
  979. | /* Amount of stuff to slurp up with each read. */
  980. | #ifndef YY_READ_BUF_SIZE
  981. | #ifdef __ia64__
  982. | /* On IA-64, the buffer size is 16k, not 8k */
  983. | #define YY_READ_BUF_SIZE 16384
  984. | #else
  985. | #define YY_READ_BUF_SIZE 8192
  986. | #endif /* __ia64__ */
  987. | #endif
  988. |
  989. | /* Copy whatever the last rule matched to the standard output. */
  990. | #ifndef ECHO
  991. | /* This used to be an fputs(), but since the string might contain NUL's,
  992. | * we now use fwrite().
  993. | */
  994. | #define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
  995. | #endif
  996. |
  997. | /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
  998. | * is returned in "result".
  999. | */
  1000. | #ifndef YY_INPUT
  1001. | #define YY_INPUT(buf,result,max_size) \
  1002. | if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
  1003. | { \
  1004. | int c = '*'; \
  1005. | int n; \
  1006. | for ( n = 0; n < max_size && \
  1007. | (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
  1008. | buf[n] = (char) c; \
  1009. | if ( c == '\n' ) \
  1010. | buf[n++] = (char) c; \
  1011. | if ( c == EOF && ferror( yyin ) ) \
  1012. | YY_FATAL_ERROR( "input in flex scanner failed" ); \
  1013. | result = n; \
  1014. | } \
  1015. | else \
  1016. | { \
  1017. | errno=0; \
  1018. | while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
  1019. | { \
  1020. | if( errno != EINTR) \
  1021. | { \
  1022. | YY_FATAL_ERROR( "input in flex scanner failed" ); \
  1023. | break; \
  1024. | } \
  1025. | errno=0; \
  1026. | clearerr(yyin); \
  1027. | } \
  1028. | }\
  1029. | \
  1030. |
  1031. | #endif
  1032. |
  1033. | /* No semi-colon after return; correct usage is to write "yyterminate();" -
  1034. | * we don't want an extra ';' after the "return" because that will cause
  1035. | * some compilers to complain about unreachable statements.
  1036. | */
  1037. | #ifndef yyterminate
  1038. | #define yyterminate() return YY_NULL
  1039. | #endif
  1040. |
  1041. | /* Number of entries by which start-condition stack grows. */
  1042. | #ifndef YY_START_STACK_INCR
  1043. | #define YY_START_STACK_INCR 25
  1044. | #endif
  1045. |
  1046. | /* Report a fatal error. */
  1047. | #ifndef YY_FATAL_ERROR
  1048. | #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
  1049. | #endif
  1050. |
  1051. | /* end tables serialization structures and prototypes */
  1052. |
  1053. | /* Default declaration of generated scanner - a define so the user can
  1054. | * easily add parameters.
  1055. | */
  1056. | #ifndef YY_DECL
  1057. | #define YY_DECL_IS_OURS 1
  1058. |
  1059. | extern int yylex (void);
  1060. |
  1061. | #define YY_DECL int yylex (void)
  1062. | #endif /* !YY_DECL */
  1063. |
  1064. | /* Code executed at the beginning of each rule, after yytext and yyleng
  1065. | * have been set up.
  1066. | */
  1067. | #ifndef YY_USER_ACTION
  1068. | #define YY_USER_ACTION
  1069. | #endif
  1070. |
  1071. | /* Code executed at the end of each rule. */
  1072. | #ifndef YY_BREAK
  1073. | #define YY_BREAK /*LINTED*/break;
  1074. | #endif
  1075. |
  1076. | #define YY_RULE_SETUP \
  1077. | YY_USER_ACTION
  1078. |
  1079. | /** The main scanner function which does all the work.
  1080. | */
  1081. | YY_DECL
  1082. | {
  1083. | yy_state_type yy_current_state;
  1084. | char *yy_cp, *yy_bp;
  1085. | int yy_act;
  1086. |
  1087. | if ( !(yy_init) )
  1088. | {
  1089. | (yy_init) = 1;
  1090. |
  1091. | #ifdef YY_USER_INIT
  1092. | YY_USER_INIT;
  1093. | #endif
  1094. |
  1095. | /* Create the reject buffer large enough to save one state per allowed character. */
  1096. | if ( ! (yy_state_buf) )
  1097. | (yy_state_buf) = (yy_state_type *)yyalloc(YY_STATE_BUF_SIZE );
  1098. | if ( ! (yy_state_buf) )
  1099. | YY_FATAL_ERROR( "out of dynamic memory in yylex()" );
  1100. |
  1101. | if ( ! (yy_start) )
  1102. | (yy_start) = 1; /* first start state */
  1103. |
  1104. | if ( ! yyin )
  1105. | yyin = stdin;
  1106. |
  1107. | if ( ! yyout )
  1108. | yyout = stdout;
  1109. |
  1110. | if ( ! YY_CURRENT_BUFFER ) {
  1111. | yyensure_buffer_stack ();
  1112. | YY_CURRENT_BUFFER_LVALUE =
  1113. | yy_create_buffer( yyin, YY_BUF_SIZE );
  1114. | }
  1115. |
  1116. | yy_load_buffer_state( );
  1117. | }
  1118. |
  1119. | {
  1120. | #line 1 "conftest.l"
  1121. |
  1122. | #line 685 "lex.yy.c"
  1123. |
  1124. | while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
  1125. | {
  1126. | (yy_more_len) = 0;
  1127. | if ( (yy_more_flag) )
  1128. | {
  1129. | (yy_more_len) = (int) ((yy_c_buf_p) - (yytext_ptr));
  1130. | (yy_more_flag) = 0;
  1131. | }
  1132. | yy_cp = (yy_c_buf_p);
  1133. |
  1134. | /* Support of yytext. */
  1135. | *yy_cp = (yy_hold_char);
  1136. |
  1137. | /* yy_bp points to the position in yy_ch_buf of the start of
  1138. | * the current run.
  1139. | */
  1140. | yy_bp = yy_cp;
  1141. |
  1142. | yy_current_state = (yy_start);
  1143. |
  1144. | (yy_state_ptr) = (yy_state_buf);
  1145. | *(yy_state_ptr)++ = yy_current_state;
  1146. |
  1147. | yy_match:
  1148. | do
  1149. | {
  1150. | YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
  1151. | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  1152. | {
  1153. | yy_current_state = (int) yy_def[yy_current_state];
  1154. | if ( yy_current_state >= 13 )
  1155. | yy_c = yy_meta[yy_c];
  1156. | }
  1157. | yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  1158. | *(yy_state_ptr)++ = yy_current_state;
  1159. | ++yy_cp;
  1160. | }
  1161. | while ( yy_base[yy_current_state] != 10 );
  1162. |
  1163. | yy_find_action:
  1164. | yy_current_state = *--(yy_state_ptr);
  1165. | (yy_lp) = yy_accept[yy_current_state];
  1166. |
  1167. | find_rule: /* we branch to this label when backing up */
  1168. |
  1169. | for ( ; ; ) /* until we find what rule we matched */
  1170. | {
  1171. | if ( (yy_lp) && (yy_lp) < yy_accept[yy_current_state + 1] )
  1172. | {
  1173. | yy_act = yy_acclist[(yy_lp)];
  1174. | {
  1175. | (yy_full_match) = yy_cp;
  1176. | break;
  1177. | }
  1178. | }
  1179. | --yy_cp;
  1180. | yy_current_state = *--(yy_state_ptr);
  1181. | (yy_lp) = yy_accept[yy_current_state];
  1182. | }
  1183. |
  1184. | YY_DO_BEFORE_ACTION;
  1185. |
  1186. | do_action: /* This label is used only to access EOF actions. */
  1187. |
  1188. | switch ( yy_act )
  1189. | { /* beginning of action switch */
  1190. | case 1:
  1191. | YY_RULE_SETUP
  1192. | #line 2 "conftest.l"
  1193. | { ECHO; }
  1194. | YY_BREAK
  1195. | case 2:
  1196. | YY_RULE_SETUP
  1197. | #line 3 "conftest.l"
  1198. | { REJECT; }
  1199. | YY_BREAK
  1200. | case 3:
  1201. | YY_RULE_SETUP
  1202. | #line 4 "conftest.l"
  1203. | { yymore (); }
  1204. | YY_BREAK
  1205. | case 4:
  1206. | YY_RULE_SETUP
  1207. | #line 5 "conftest.l"
  1208. | { yyless (1); }
  1209. | YY_BREAK
  1210. | case 5:
  1211. | YY_RULE_SETUP
  1212. | #line 6 "conftest.l"
  1213. | { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
  1214. | yyless ((input () != 0)); }
  1215. | YY_BREAK
  1216. | case 6:
  1217. | YY_RULE_SETUP
  1218. | #line 8 "conftest.l"
  1219. | { unput (yytext[0]); }
  1220. | YY_BREAK
  1221. | case 7:
  1222. | YY_RULE_SETUP
  1223. | #line 9 "conftest.l"
  1224. | { BEGIN INITIAL; }
  1225. | YY_BREAK
  1226. | case 8:
  1227. | YY_RULE_SETUP
  1228. | #line 10 "conftest.l"
  1229. | ECHO;
  1230. | YY_BREAK
  1231. | #line 794 "lex.yy.c"
  1232. | case YY_STATE_EOF(INITIAL):
  1233. | yyterminate();
  1234. |
  1235. | case YY_END_OF_BUFFER:
  1236. | {
  1237. | /* Amount of text matched not including the EOB char. */
  1238. | int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
  1239. |
  1240. | /* Undo the effects of YY_DO_BEFORE_ACTION. */
  1241. | *yy_cp = (yy_hold_char);
  1242. | YY_RESTORE_YY_MORE_OFFSET
  1243. |
  1244. | if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
  1245. | {
  1246. | /* We're scanning a new file or input source. It's
  1247. | * possible that this happened because the user
  1248. | * just pointed yyin at a new source and called
  1249. | * yylex(). If so, then we have to assure
  1250. | * consistency between YY_CURRENT_BUFFER and our
  1251. | * globals. Here is the right place to do so, because
  1252. | * this is the first action (other than possibly a
  1253. | * back-up) that will match for the new input source.
  1254. | */
  1255. | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  1256. | YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
  1257. | YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
  1258. | }
  1259. |
  1260. | /* Note that here we test for yy_c_buf_p "<=" to the position
  1261. | * of the first EOB in the buffer, since yy_c_buf_p will
  1262. | * already have been incremented past the NUL character
  1263. | * (since all states make transitions on EOB to the
  1264. | * end-of-buffer state). Contrast this with the test
  1265. | * in input().
  1266. | */
  1267. | if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
  1268. | { /* This was really a NUL. */
  1269. | yy_state_type yy_next_state;
  1270. |
  1271. | (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
  1272. |
  1273. | yy_current_state = yy_get_previous_state( );
  1274. |
  1275. | /* Okay, we're now positioned to make the NUL
  1276. | * transition. We couldn't have
  1277. | * yy_get_previous_state() go ahead and do it
  1278. | * for us because it doesn't know how to deal
  1279. | * with the possibility of jamming (and we don't
  1280. | * want to build jamming into it because then it
  1281. | * will run more slowly).
  1282. | */
  1283. |
  1284. | yy_next_state = yy_try_NUL_trans( yy_current_state );
  1285. |
  1286. | yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  1287. |
  1288. | if ( yy_next_state )
  1289. | {
  1290. | /* Consume the NUL. */
  1291. | yy_cp = ++(yy_c_buf_p);
  1292. | yy_current_state = yy_next_state;
  1293. | goto yy_match;
  1294. | }
  1295. |
  1296. | else
  1297. | {
  1298. | yy_cp = (yy_c_buf_p);
  1299. | goto yy_find_action;
  1300. | }
  1301. | }
  1302. |
  1303. | else switch ( yy_get_next_buffer( ) )
  1304. | {
  1305. | case EOB_ACT_END_OF_FILE:
  1306. | {
  1307. | (yy_did_buffer_switch_on_eof) = 0;
  1308. |
  1309. | if ( yywrap( ) )
  1310. | {
  1311. | /* Note: because we've taken care in
  1312. | * yy_get_next_buffer() to have set up
  1313. | * yytext, we can now set up
  1314. | * yy_c_buf_p so that if some total
  1315. | * hoser (like flex itself) wants to
  1316. | * call the scanner after we return the
  1317. | * YY_NULL, it'll still work - another
  1318. | * YY_NULL will get returned.
  1319. | */
  1320. | (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
  1321. |
  1322. | yy_act = YY_STATE_EOF(YY_START);
  1323. | goto do_action;
  1324. | }
  1325. |
  1326. | else
  1327. | {
  1328. | if ( ! (yy_did_buffer_switch_on_eof) )
  1329. | YY_NEW_FILE;
  1330. | }
  1331. | break;
  1332. | }
  1333. |
  1334. | case EOB_ACT_CONTINUE_SCAN:
  1335. | (yy_c_buf_p) =
  1336. | (yytext_ptr) + yy_amount_of_matched_text;
  1337. |
  1338. | yy_current_state = yy_get_previous_state( );
  1339. |
  1340. | yy_cp = (yy_c_buf_p);
  1341. | yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  1342. | goto yy_match;
  1343. |
  1344. | case EOB_ACT_LAST_MATCH:
  1345. | (yy_c_buf_p) =
  1346. | &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
  1347. |
  1348. | yy_current_state = yy_get_previous_state( );
  1349. |
  1350. | yy_cp = (yy_c_buf_p);
  1351. | yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  1352. | goto yy_find_action;
  1353. | }
  1354. | break;
  1355. | }
  1356. |
  1357. | default:
  1358. | YY_FATAL_ERROR(
  1359. | "fatal flex scanner internal error--no action found" );
  1360. | } /* end of action switch */
  1361. | } /* end of scanning one token */
  1362. | } /* end of user's declarations */
  1363. | } /* end of yylex */
  1364. |
  1365. | /* yy_get_next_buffer - try to read in a new buffer
  1366. | *
  1367. | * Returns a code representing an action:
  1368. | * EOB_ACT_LAST_MATCH -
  1369. | * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
  1370. | * EOB_ACT_END_OF_FILE - end of file
  1371. | */
  1372. | static int yy_get_next_buffer (void)
  1373. | {
  1374. | char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
  1375. | char *source = (yytext_ptr);
  1376. | int number_to_move, i;
  1377. | int ret_val;
  1378. |
  1379. | if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
  1380. | YY_FATAL_ERROR(
  1381. | "fatal flex scanner internal error--end of buffer missed" );
  1382. |
  1383. | if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
  1384. | { /* Don't try to fill the buffer, so this is an EOF. */
  1385. | if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
  1386. | {
  1387. | /* We matched a single character, the EOB, so
  1388. | * treat this as a final EOF.
  1389. | */
  1390. | return EOB_ACT_END_OF_FILE;
  1391. | }
  1392. |
  1393. | else
  1394. | {
  1395. | /* We matched some text prior to the EOB, first
  1396. | * process it.
  1397. | */
  1398. | return EOB_ACT_LAST_MATCH;
  1399. | }
  1400. | }
  1401. |
  1402. | /* Try to read more data. */
  1403. |
  1404. | /* First move last chars to start of buffer. */
  1405. | number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr) - 1);
  1406. |
  1407. | for ( i = 0; i < number_to_move; ++i )
  1408. | *(dest++) = *(source++);
  1409. |
  1410. | if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
  1411. | /* don't do the read, it's not guaranteed to return an EOF,
  1412. | * just force an EOF
  1413. | */
  1414. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
  1415. |
  1416. | else
  1417. | {
  1418. | int num_to_read =
  1419. | YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
  1420. |
  1421. | while ( num_to_read <= 0 )
  1422. | { /* Not enough room in the buffer - grow it. */
  1423. |
  1424. | YY_FATAL_ERROR(
  1425. | "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
  1426. |
  1427. | }
  1428. |
  1429. | if ( num_to_read > YY_READ_BUF_SIZE )
  1430. | num_to_read = YY_READ_BUF_SIZE;
  1431. |
  1432. | /* Read in more data. */
  1433. | YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
  1434. | (yy_n_chars), num_to_read );
  1435. |
  1436. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  1437. | }
  1438. |
  1439. | if ( (yy_n_chars) == 0 )
  1440. | {
  1441. | if ( number_to_move == YY_MORE_ADJ )
  1442. | {
  1443. | ret_val = EOB_ACT_END_OF_FILE;
  1444. | yyrestart( yyin );
  1445. | }
  1446. |
  1447. | else
  1448. | {
  1449. | ret_val = EOB_ACT_LAST_MATCH;
  1450. | YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
  1451. | YY_BUFFER_EOF_PENDING;
  1452. | }
  1453. | }
  1454. |
  1455. | else
  1456. | ret_val = EOB_ACT_CONTINUE_SCAN;
  1457. |
  1458. | if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
  1459. | /* Extend the array by 50%, plus the number we really need. */
  1460. | int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
  1461. | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
  1462. | (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size );
  1463. | if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
  1464. | YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
  1465. | /* "- 2" to take care of EOB's */
  1466. | YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
  1467. | }
  1468. |
  1469. | (yy_n_chars) += number_to_move;
  1470. | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
  1471. | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
  1472. |
  1473. | (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
  1474. |
  1475. | return ret_val;
  1476. | }
  1477. |
  1478. | /* yy_get_previous_state - get the state just before the EOB char was reached */
  1479. |
  1480. | static yy_state_type yy_get_previous_state (void)
  1481. | {
  1482. | yy_state_type yy_current_state;
  1483. | char *yy_cp;
  1484. |
  1485. | yy_current_state = (yy_start);
  1486. |
  1487. | (yy_state_ptr) = (yy_state_buf);
  1488. | *(yy_state_ptr)++ = yy_current_state;
  1489. |
  1490. | for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
  1491. | {
  1492. | YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
  1493. | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  1494. | {
  1495. | yy_current_state = (int) yy_def[yy_current_state];
  1496. | if ( yy_current_state >= 13 )
  1497. | yy_c = yy_meta[yy_c];
  1498. | }
  1499. | yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  1500. | *(yy_state_ptr)++ = yy_current_state;
  1501. | }
  1502. |
  1503. | return yy_current_state;
  1504. | }
  1505. |
  1506. | /* yy_try_NUL_trans - try to make a transition on the NUL character
  1507. | *
  1508. | * synopsis
  1509. | * next_state = yy_try_NUL_trans( current_state );
  1510. | */
  1511. | static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
  1512. | {
  1513. | int yy_is_jam;
  1514. |
  1515. | YY_CHAR yy_c = 1;
  1516. | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  1517. | {
  1518. | yy_current_state = (int) yy_def[yy_current_state];
  1519. | if ( yy_current_state >= 13 )
  1520. | yy_c = yy_meta[yy_c];
  1521. | }
  1522. | yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  1523. | yy_is_jam = (yy_current_state == 12);
  1524. | if ( ! yy_is_jam )
  1525. | *(yy_state_ptr)++ = yy_current_state;
  1526. |
  1527. | return yy_is_jam ? 0 : yy_current_state;
  1528. | }
  1529. |
  1530. | #ifndef YY_NO_UNPUT
  1531. |
  1532. | static void yyunput (int c, char * yy_bp )
  1533. | {
  1534. | char *yy_cp;
  1535. |
  1536. | yy_cp = (yy_c_buf_p);
  1537. |
  1538. | /* undo effects of setting up yytext */
  1539. | *yy_cp = (yy_hold_char);
  1540. |
  1541. | if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
  1542. | { /* need to shift things up to make room */
  1543. | /* +2 for EOB chars. */
  1544. | int number_to_move = (yy_n_chars) + 2;
  1545. | char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
  1546. | YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
  1547. | char *source =
  1548. | &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
  1549. |
  1550. | while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
  1551. | *--dest = *--source;
  1552. |
  1553. | yy_cp += (int) (dest - source);
  1554. | yy_bp += (int) (dest - source);
  1555. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
  1556. | (yy_n_chars) = (int) YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
  1557. |
  1558. | if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
  1559. | YY_FATAL_ERROR( "flex scanner push-back overflow" );
  1560. | }
  1561. |
  1562. | *--yy_cp = (char) c;
  1563. |
  1564. | (yytext_ptr) = yy_bp;
  1565. | (yy_hold_char) = *yy_cp;
  1566. | (yy_c_buf_p) = yy_cp;
  1567. | }
  1568. |
  1569. | #endif
  1570. |
  1571. | #ifndef YY_NO_INPUT
  1572. | #ifdef __cplusplus
  1573. | static int yyinput (void)
  1574. | #else
  1575. | static int input (void)
  1576. | #endif
  1577. |
  1578. | {
  1579. | int c;
  1580. |
  1581. | *(yy_c_buf_p) = (yy_hold_char);
  1582. |
  1583. | if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
  1584. | {
  1585. | /* yy_c_buf_p now points to the character we want to return.
  1586. | * If this occurs *before* the EOB characters, then it's a
  1587. | * valid NUL; if not, then we've hit the end of the buffer.
  1588. | */
  1589. | if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
  1590. | /* This was really a NUL. */
  1591. | *(yy_c_buf_p) = '\0';
  1592. |
  1593. | else
  1594. | { /* need more input */
  1595. | int offset = (int) ((yy_c_buf_p) - (yytext_ptr));
  1596. | ++(yy_c_buf_p);
  1597. |
  1598. | switch ( yy_get_next_buffer( ) )
  1599. | {
  1600. | case EOB_ACT_LAST_MATCH:
  1601. | /* This happens because yy_g_n_b()
  1602. | * sees that we've accumulated a
  1603. | * token and flags that we need to
  1604. | * try matching the token before
  1605. | * proceeding. But for input(),
  1606. | * there's no matching to consider.
  1607. | * So convert the EOB_ACT_LAST_MATCH
  1608. | * to EOB_ACT_END_OF_FILE.
  1609. | */
  1610. |
  1611. | /* Reset buffer status. */
  1612. | yyrestart( yyin );
  1613. |
  1614. | /*FALLTHROUGH*/
  1615. |
  1616. | case EOB_ACT_END_OF_FILE:
  1617. | {
  1618. | if ( yywrap( ) )
  1619. | return 0;
  1620. |
  1621. | if ( ! (yy_did_buffer_switch_on_eof) )
  1622. | YY_NEW_FILE;
  1623. | #ifdef __cplusplus
  1624. | return yyinput();
  1625. | #else
  1626. | return input();
  1627. | #endif
  1628. | }
  1629. |
  1630. | case EOB_ACT_CONTINUE_SCAN:
  1631. | (yy_c_buf_p) = (yytext_ptr) + offset;
  1632. | break;
  1633. | }
  1634. | }
  1635. | }
  1636. |
  1637. | c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
  1638. | *(yy_c_buf_p) = '\0'; /* preserve yytext */
  1639. | (yy_hold_char) = *++(yy_c_buf_p);
  1640. |
  1641. | return c;
  1642. | }
  1643. | #endif /* ifndef YY_NO_INPUT */
  1644. |
  1645. | /** Immediately switch to a different input stream.
  1646. | * @param input_file A readable stream.
  1647. | *
  1648. | * @note This function does not reset the start condition to @c INITIAL .
  1649. | */
  1650. | void yyrestart (FILE * input_file )
  1651. | {
  1652. |
  1653. | if ( ! YY_CURRENT_BUFFER ){
  1654. | yyensure_buffer_stack ();
  1655. | YY_CURRENT_BUFFER_LVALUE =
  1656. | yy_create_buffer( yyin, YY_BUF_SIZE );
  1657. | }
  1658. |
  1659. | yy_init_buffer( YY_CURRENT_BUFFER, input_file );
  1660. | yy_load_buffer_state( );
  1661. | }
  1662. |
  1663. | /** Switch to a different input buffer.
  1664. | * @param new_buffer The new input buffer.
  1665. | *
  1666. | */
  1667. | void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
  1668. | {
  1669. |
  1670. | /* TODO. We should be able to replace this entire function body
  1671. | * with
  1672. | * yypop_buffer_state();
  1673. | * yypush_buffer_state(new_buffer);
  1674. | */
  1675. | yyensure_buffer_stack ();
  1676. | if ( YY_CURRENT_BUFFER == new_buffer )
  1677. | return;
  1678. |
  1679. | if ( YY_CURRENT_BUFFER )
  1680. | {
  1681. | /* Flush out information for old buffer. */
  1682. | *(yy_c_buf_p) = (yy_hold_char);
  1683. | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
  1684. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  1685. | }
  1686. |
  1687. | YY_CURRENT_BUFFER_LVALUE = new_buffer;
  1688. | yy_load_buffer_state( );
  1689. |
  1690. | /* We don't actually know whether we did this switch during
  1691. | * EOF (yywrap()) processing, but the only time this flag
  1692. | * is looked at is after yywrap() is called, so it's safe
  1693. | * to go ahead and always set it.
  1694. | */
  1695. | (yy_did_buffer_switch_on_eof) = 1;
  1696. | }
  1697. |
  1698. | static void yy_load_buffer_state (void)
  1699. | {
  1700. | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  1701. | (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
  1702. | yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
  1703. | (yy_hold_char) = *(yy_c_buf_p);
  1704. | }
  1705. |
  1706. | /** Allocate and initialize an input buffer state.
  1707. | * @param file A readable stream.
  1708. | * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
  1709. | *
  1710. | * @return the allocated buffer state.
  1711. | */
  1712. | YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
  1713. | {
  1714. | YY_BUFFER_STATE b;
  1715. |
  1716. | b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
  1717. | if ( ! b )
  1718. | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  1719. |
  1720. | b->yy_buf_size = size;
  1721. |
  1722. | /* yy_ch_buf has to be 2 characters longer than the size given because
  1723. | * we need to put in 2 end-of-buffer characters.
  1724. | */
  1725. | b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) );
  1726. | if ( ! b->yy_ch_buf )
  1727. | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  1728. |
  1729. | b->yy_is_our_buffer = 1;
  1730. |
  1731. | yy_init_buffer( b, file );
  1732. |
  1733. | return b;
  1734. | }
  1735. |
  1736. | /** Destroy the buffer.
  1737. | * @param b a buffer created with yy_create_buffer()
  1738. | *
  1739. | */
  1740. | void yy_delete_buffer (YY_BUFFER_STATE b )
  1741. | {
  1742. |
  1743. | if ( ! b )
  1744. | return;
  1745. |
  1746. | if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
  1747. | YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
  1748. |
  1749. | if ( b->yy_is_our_buffer )
  1750. | yyfree( (void *) b->yy_ch_buf );
  1751. |
  1752. | yyfree( (void *) b );
  1753. | }
  1754. |
  1755. | /* Initializes or reinitializes a buffer.
  1756. | * This function is sometimes called more than once on the same buffer,
  1757. | * such as during a yyrestart() or at EOF.
  1758. | */
  1759. | static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
  1760. |
  1761. | {
  1762. | int oerrno = errno;
  1763. |
  1764. | yy_flush_buffer( b );
  1765. |
  1766. | b->yy_input_file = file;
  1767. | b->yy_fill_buffer = 1;
  1768. |
  1769. | /* If b is the current buffer, then yy_init_buffer was _probably_
  1770. | * called from yyrestart() or through yy_get_next_buffer.
  1771. | * In that case, we don't want to reset the lineno or column.
  1772. | */
  1773. | if (b != YY_CURRENT_BUFFER){
  1774. | b->yy_bs_lineno = 1;
  1775. | b->yy_bs_column = 0;
  1776. | }
  1777. |
  1778. | b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
  1779. |
  1780. | errno = oerrno;
  1781. | }
  1782. |
  1783. | /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
  1784. | * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
  1785. | *
  1786. | */
  1787. | void yy_flush_buffer (YY_BUFFER_STATE b )
  1788. | {
  1789. | if ( ! b )
  1790. | return;
  1791. |
  1792. | b->yy_n_chars = 0;
  1793. |
  1794. | /* We always need two end-of-buffer characters. The first causes
  1795. | * a transition to the end-of-buffer state. The second causes
  1796. | * a jam in that state.
  1797. | */
  1798. | b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
  1799. | b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
  1800. |
  1801. | b->yy_buf_pos = &b->yy_ch_buf[0];
  1802. |
  1803. | b->yy_at_bol = 1;
  1804. | b->yy_buffer_status = YY_BUFFER_NEW;
  1805. |
  1806. | if ( b == YY_CURRENT_BUFFER )
  1807. | yy_load_buffer_state( );
  1808. | }
  1809. |
  1810. | /** Pushes the new state onto the stack. The new state becomes
  1811. | * the current state. This function will allocate the stack
  1812. | * if necessary.
  1813. | * @param new_buffer The new state.
  1814. | *
  1815. | */
  1816. | void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
  1817. | {
  1818. | if (new_buffer == NULL)
  1819. | return;
  1820. |
  1821. | yyensure_buffer_stack();
  1822. |
  1823. | /* This block is copied from yy_switch_to_buffer. */
  1824. | if ( YY_CURRENT_BUFFER )
  1825. | {
  1826. | /* Flush out information for old buffer. */
  1827. | *(yy_c_buf_p) = (yy_hold_char);
  1828. | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
  1829. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  1830. | }
  1831. |
  1832. | /* Only push if top exists. Otherwise, replace top. */
  1833. | if (YY_CURRENT_BUFFER)
  1834. | (yy_buffer_stack_top)++;
  1835. | YY_CURRENT_BUFFER_LVALUE = new_buffer;
  1836. |
  1837. | /* copied from yy_switch_to_buffer. */
  1838. | yy_load_buffer_state( );
  1839. | (yy_did_buffer_switch_on_eof) = 1;
  1840. | }
  1841. |
  1842. | /** Removes and deletes the top of the stack, if present.
  1843. | * The next element becomes the new top.
  1844. | *
  1845. | */
  1846. | void yypop_buffer_state (void)
  1847. | {
  1848. | if (!YY_CURRENT_BUFFER)
  1849. | return;
  1850. |
  1851. | yy_delete_buffer(YY_CURRENT_BUFFER );
  1852. | YY_CURRENT_BUFFER_LVALUE = NULL;
  1853. | if ((yy_buffer_stack_top) > 0)
  1854. | --(yy_buffer_stack_top);
  1855. |
  1856. | if (YY_CURRENT_BUFFER) {
  1857. | yy_load_buffer_state( );
  1858. | (yy_did_buffer_switch_on_eof) = 1;
  1859. | }
  1860. | }
  1861. |
  1862. | /* Allocates the stack if it does not exist.
  1863. | * Guarantees space for at least one push.
  1864. | */
  1865. | static void yyensure_buffer_stack (void)
  1866. | {
  1867. | yy_size_t num_to_alloc;
  1868. |
  1869. | if (!(yy_buffer_stack)) {
  1870. |
  1871. | /* First allocation is just for 2 elements, since we don't know if this
  1872. | * scanner will even need a stack. We use 2 instead of 1 to avoid an
  1873. | * immediate realloc on the next call.
  1874. | */
  1875. | num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
  1876. | (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
  1877. | (num_to_alloc * sizeof(struct yy_buffer_state*)
  1878. | );
  1879. | if ( ! (yy_buffer_stack) )
  1880. | YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
  1881. |
  1882. | memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
  1883. |
  1884. | (yy_buffer_stack_max) = num_to_alloc;
  1885. | (yy_buffer_stack_top) = 0;
  1886. | return;
  1887. | }
  1888. |
  1889. | if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
  1890. |
  1891. | /* Increase the buffer to prepare for a possible push. */
  1892. | yy_size_t grow_size = 8 /* arbitrary grow size */;
  1893. |
  1894. | num_to_alloc = (yy_buffer_stack_max) + grow_size;
  1895. | (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
  1896. | ((yy_buffer_stack),
  1897. | num_to_alloc * sizeof(struct yy_buffer_state*)
  1898. | );
  1899. | if ( ! (yy_buffer_stack) )
  1900. | YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
  1901. |
  1902. | /* zero only the new slots.*/
  1903. | memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
  1904. | (yy_buffer_stack_max) = num_to_alloc;
  1905. | }
  1906. | }
  1907. |
  1908. | /** Setup the input buffer state to scan directly from a user-specified character buffer.
  1909. | * @param base the character buffer
  1910. | * @param size the size in bytes of the character buffer
  1911. | *
  1912. | * @return the newly allocated buffer state object.
  1913. | */
  1914. | YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
  1915. | {
  1916. | YY_BUFFER_STATE b;
  1917. |
  1918. | if ( size < 2 ||
  1919. | base[size-2] != YY_END_OF_BUFFER_CHAR ||
  1920. | base[size-1] != YY_END_OF_BUFFER_CHAR )
  1921. | /* They forgot to leave room for the EOB's. */
  1922. | return NULL;
  1923. |
  1924. | b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
  1925. | if ( ! b )
  1926. | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
  1927. |
  1928. | b->yy_buf_size = (int) (size - 2); /* "- 2" to take care of EOB's */
  1929. | b->yy_buf_pos = b->yy_ch_buf = base;
  1930. | b->yy_is_our_buffer = 0;
  1931. | b->yy_input_file = NULL;
  1932. | b->yy_n_chars = b->yy_buf_size;
  1933. | b->yy_is_interactive = 0;
  1934. | b->yy_at_bol = 1;
  1935. | b->yy_fill_buffer = 0;
  1936. | b->yy_buffer_status = YY_BUFFER_NEW;
  1937. |
  1938. | yy_switch_to_buffer( b );
  1939. |
  1940. | return b;
  1941. | }
  1942. |
  1943. | /** Setup the input buffer state to scan a string. The next call to yylex() will
  1944. | * scan from a @e copy of @a str.
  1945. | * @param yystr a NUL-terminated string to scan
  1946. | *
  1947. | * @return the newly allocated buffer state object.
  1948. | * @note If you want to scan bytes that may contain NUL values, then use
  1949. | * yy_scan_bytes() instead.
  1950. | */
  1951. | YY_BUFFER_STATE yy_scan_string (const char * yystr )
  1952. | {
  1953. |
  1954. | return yy_scan_bytes( yystr, (int) strlen(yystr) );
  1955. | }
  1956. |
  1957. | /** Setup the input buffer state to scan the given bytes. The next call to yylex() will
  1958. | * scan from a @e copy of @a bytes.
  1959. | * @param yybytes the byte buffer to scan
  1960. | * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
  1961. | *
  1962. | * @return the newly allocated buffer state object.
  1963. | */
  1964. | YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, int _yybytes_len )
  1965. | {
  1966. | YY_BUFFER_STATE b;
  1967. | char *buf;
  1968. | yy_size_t n;
  1969. | int i;
  1970. |
  1971. | /* Get memory for full buffer, including space for trailing EOB's. */
  1972. | n = (yy_size_t) (_yybytes_len + 2);
  1973. | buf = (char *) yyalloc( n );
  1974. | if ( ! buf )
  1975. | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
  1976. |
  1977. | for ( i = 0; i < _yybytes_len; ++i )
  1978. | buf[i] = yybytes[i];
  1979. |
  1980. | buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
  1981. |
  1982. | b = yy_scan_buffer( buf, n );
  1983. | if ( ! b )
  1984. | YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
  1985. |
  1986. | /* It's okay to grow etc. this buffer, and we should throw it
  1987. | * away when we're done.
  1988. | */
  1989. | b->yy_is_our_buffer = 1;
  1990. |
  1991. | return b;
  1992. | }
  1993. |
  1994. | #ifndef YY_EXIT_FAILURE
  1995. | #define YY_EXIT_FAILURE 2
  1996. | #endif
  1997. |
  1998. | static void yynoreturn yy_fatal_error (const char* msg )
  1999. | {
  2000. | fprintf( stderr, "%s\n", msg );
  2001. | exit( YY_EXIT_FAILURE );
  2002. | }
  2003. |
  2004. | /* Redefine yyless() so it works in section 3 code. */
  2005. |
  2006. | #undef yyless
  2007. | #define yyless(n) \
  2008. | do \
  2009. | { \
  2010. | /* Undo effects of setting up yytext. */ \
  2011. | int yyless_macro_arg = (n); \
  2012. | YY_LESS_LINENO(yyless_macro_arg);\
  2013. | yytext[yyleng] = (yy_hold_char); \
  2014. | (yy_c_buf_p) = yytext + yyless_macro_arg; \
  2015. | (yy_hold_char) = *(yy_c_buf_p); \
  2016. | *(yy_c_buf_p) = '\0'; \
  2017. | yyleng = yyless_macro_arg; \
  2018. | } \
  2019. | while ( 0 )
  2020. |
  2021. | /* Accessor methods (get/set functions) to struct members. */
  2022. |
  2023. | /** Get the current line number.
  2024. | *
  2025. | */
  2026. | int yyget_lineno (void)
  2027. | {
  2028. |
  2029. | return yylineno;
  2030. | }
  2031. |
  2032. | /** Get the input stream.
  2033. | *
  2034. | */
  2035. | FILE *yyget_in (void)
  2036. | {
  2037. | return yyin;
  2038. | }
  2039. |
  2040. | /** Get the output stream.
  2041. | *
  2042. | */
  2043. | FILE *yyget_out (void)
  2044. | {
  2045. | return yyout;
  2046. | }
  2047. |
  2048. | /** Get the length of the current token.
  2049. | *
  2050. | */
  2051. | int yyget_leng (void)
  2052. | {
  2053. | return yyleng;
  2054. | }
  2055. |
  2056. | /** Get the current token.
  2057. | *
  2058. | */
  2059. |
  2060. | char *yyget_text (void)
  2061. | {
  2062. | return yytext;
  2063. | }
  2064. |
  2065. | /** Set the current line number.
  2066. | * @param _line_number line number
  2067. | *
  2068. | */
  2069. | void yyset_lineno (int _line_number )
  2070. | {
  2071. |
  2072. | yylineno = _line_number;
  2073. | }
  2074. |
  2075. | /** Set the input stream. This does not discard the current
  2076. | * input buffer.
  2077. | * @param _in_str A readable stream.
  2078. | *
  2079. | * @see yy_switch_to_buffer
  2080. | */
  2081. | void yyset_in (FILE * _in_str )
  2082. | {
  2083. | yyin = _in_str ;
  2084. | }
  2085. |
  2086. | void yyset_out (FILE * _out_str )
  2087. | {
  2088. | yyout = _out_str ;
  2089. | }
  2090. |
  2091. | int yyget_debug (void)
  2092. | {
  2093. | return yy_flex_debug;
  2094. | }
  2095. |
  2096. | void yyset_debug (int _bdebug )
  2097. | {
  2098. | yy_flex_debug = _bdebug ;
  2099. | }
  2100. |
  2101. | static int yy_init_globals (void)
  2102. | {
  2103. | /* Initialization is the same as for the non-reentrant scanner.
  2104. | * This function is called from yylex_destroy(), so don't allocate here.
  2105. | */
  2106. |
  2107. | (yy_buffer_stack) = NULL;
  2108. | (yy_buffer_stack_top) = 0;
  2109. | (yy_buffer_stack_max) = 0;
  2110. | (yy_c_buf_p) = NULL;
  2111. | (yy_init) = 0;
  2112. | (yy_start) = 0;
  2113. |
  2114. | (yy_state_buf) = 0;
  2115. | (yy_state_ptr) = 0;
  2116. | (yy_full_match) = 0;
  2117. | (yy_lp) = 0;
  2118. |
  2119. | /* Defined in main.c */
  2120. | #ifdef YY_STDINIT
  2121. | yyin = stdin;
  2122. | yyout = stdout;
  2123. | #else
  2124. | yyin = NULL;
  2125. | yyout = NULL;
  2126. | #endif
  2127. |
  2128. | /* For future reference: Set errno on error, since we are called by
  2129. | * yylex_init()
  2130. | */
  2131. | return 0;
  2132. | }
  2133. |
  2134. | /* yylex_destroy is for both reentrant and non-reentrant scanners. */
  2135. | int yylex_destroy (void)
  2136. | {
  2137. |
  2138. | /* Pop the buffer stack, destroying each element. */
  2139. | while(YY_CURRENT_BUFFER){
  2140. | yy_delete_buffer( YY_CURRENT_BUFFER );
  2141. | YY_CURRENT_BUFFER_LVALUE = NULL;
  2142. | yypop_buffer_state();
  2143. | }
  2144. |
  2145. | /* Destroy the stack itself. */
  2146. | yyfree((yy_buffer_stack) );
  2147. | (yy_buffer_stack) = NULL;
  2148. |
  2149. | yyfree ( (yy_state_buf) );
  2150. | (yy_state_buf) = NULL;
  2151. |
  2152. | /* Reset the globals. This is important in a non-reentrant scanner so the next time
  2153. | * yylex() is called, initialization will occur. */
  2154. | yy_init_globals( );
  2155. |
  2156. | return 0;
  2157. | }
  2158. |
  2159. | /*
  2160. | * Internal utility routines.
  2161. | */
  2162. |
  2163. | #ifndef yytext_ptr
  2164. | static void yy_flex_strncpy (char* s1, const char * s2, int n )
  2165. | {
  2166. |
  2167. | int i;
  2168. | for ( i = 0; i < n; ++i )
  2169. | s1[i] = s2[i];
  2170. | }
  2171. | #endif
  2172. |
  2173. | #ifdef YY_NEED_STRLEN
  2174. | static int yy_flex_strlen (const char * s )
  2175. | {
  2176. | int n;
  2177. | for ( n = 0; s[n]; ++n )
  2178. | ;
  2179. |
  2180. | return n;
  2181. | }
  2182. | #endif
  2183. |
  2184. | void *yyalloc (yy_size_t size )
  2185. | {
  2186. | return malloc(size);
  2187. | }
  2188. |
  2189. | void *yyrealloc (void * ptr, yy_size_t size )
  2190. | {
  2191. |
  2192. | /* The cast to (char *) in the following accommodates both
  2193. | * implementations that use char* generic pointers, and those
  2194. | * that use void* generic pointers. It works with the latter
  2195. | * because both ANSI C and C++ allow castless assignment from
  2196. | * any pointer type to void*, and deal with argument conversions
  2197. | * as though doing an assignment.
  2198. | */
  2199. | return realloc(ptr, size);
  2200. | }
  2201. |
  2202. | void yyfree (void * ptr )
  2203. | {
  2204. | free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
  2205. | }
  2206. |
  2207. | #define YYTABLES_NAME "yytables"
  2208. |
  2209. | #line 10 "conftest.l"
  2210. |
  2211. | #ifdef YYTEXT_POINTER
  2212. | extern char *yytext;
  2213. | #endif
  2214. | int
  2215. | main (void)
  2216. | {
  2217. | return ! yylex () + ! yywrap ();
  2218. | }
  2219. configure:5124: gcc -o conftest -g -O2 conftest.c -lfl -ldl -luuid -lparted >&5
  2220. /usr/bin/ld: cannot find -lfl
  2221. collect2: error: ld returned 1 exit status
  2222. configure:5124: $? = 1
  2223. configure: failed program was:
  2224. | /* confdefs.h */
  2225. | #define PACKAGE_NAME "GNU Hurd"
  2226. | #define PACKAGE_TARNAME "hurd"
  2227. | #define PACKAGE_VERSION "0.9"
  2228. | #define PACKAGE_STRING "GNU Hurd 0.9"
  2229. | #define PACKAGE_BUGREPORT "[email protected]"
  2230. | #define PACKAGE_URL "http://www.gnu.org/software/hurd/"
  2231. | #define HAVE_MIG_RETCODE 1
  2232. | #define HAVE_FILE_EXEC_PATHS 1
  2233. | #define HAVE_EXEC_EXEC_PATHS 1
  2234. | #define HAVE__HURD_EXEC_PATHS 1
  2235. | #define UTIME_NOW -1
  2236. | #define UTIME_OMIT -2
  2237. | #define HAVE_LIBCRYPT 1
  2238. | #define STDC_HEADERS 1
  2239. | #define HAVE_SYS_TYPES_H 1
  2240. | #define HAVE_SYS_STAT_H 1
  2241. | #define HAVE_STDLIB_H 1
  2242. | #define HAVE_STRING_H 1
  2243. | #define HAVE_MEMORY_H 1
  2244. | #define HAVE_STRINGS_H 1
  2245. | #define HAVE_INTTYPES_H 1
  2246. | #define HAVE_STDINT_H 1
  2247. | #define HAVE_UNISTD_H 1
  2248. | #define HAVE_PARTED_PARTED_H 1
  2249. | #define HAVE_LIBPARTED 1
  2250. | #define HAVE_LIBUUID 1
  2251. | #define HAVE_LIBDL 1
  2252. | /* end confdefs.h. */
  2253. |
  2254. | #line 3 "lex.yy.c"
  2255. |
  2256. | #define YY_INT_ALIGNED short int
  2257. |
  2258. | /* A lexical scanner generated by flex */
  2259. |
  2260. | #define FLEX_SCANNER
  2261. | #define YY_FLEX_MAJOR_VERSION 2
  2262. | #define YY_FLEX_MINOR_VERSION 6
  2263. | #define YY_FLEX_SUBMINOR_VERSION 4
  2264. | #if YY_FLEX_SUBMINOR_VERSION > 0
  2265. | #define FLEX_BETA
  2266. | #endif
  2267. |
  2268. | /* First, we deal with platform-specific or compiler-specific issues. */
  2269. |
  2270. | /* begin standard C headers. */
  2271. | #include <stdio.h>
  2272. | #include <string.h>
  2273. | #include <errno.h>
  2274. | #include <stdlib.h>
  2275. |
  2276. | /* end standard C headers. */
  2277. |
  2278. | /* flex integer type definitions */
  2279. |
  2280. | #ifndef FLEXINT_H
  2281. | #define FLEXINT_H
  2282. |
  2283. | /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
  2284. |
  2285. | #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
  2286. |
  2287. | /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
  2288. | * if you want the limit (max/min) macros for int types.
  2289. | */
  2290. | #ifndef __STDC_LIMIT_MACROS
  2291. | #define __STDC_LIMIT_MACROS 1
  2292. | #endif
  2293. |
  2294. | #include <inttypes.h>
  2295. | typedef int8_t flex_int8_t;
  2296. | typedef uint8_t flex_uint8_t;
  2297. | typedef int16_t flex_int16_t;
  2298. | typedef uint16_t flex_uint16_t;
  2299. | typedef int32_t flex_int32_t;
  2300. | typedef uint32_t flex_uint32_t;
  2301. | #else
  2302. | typedef signed char flex_int8_t;
  2303. | typedef short int flex_int16_t;
  2304. | typedef int flex_int32_t;
  2305. | typedef unsigned char flex_uint8_t;
  2306. | typedef unsigned short int flex_uint16_t;
  2307. | typedef unsigned int flex_uint32_t;
  2308. |
  2309. | /* Limits of integral types. */
  2310. | #ifndef INT8_MIN
  2311. | #define INT8_MIN (-128)
  2312. | #endif
  2313. | #ifndef INT16_MIN
  2314. | #define INT16_MIN (-32767-1)
  2315. | #endif
  2316. | #ifndef INT32_MIN
  2317. | #define INT32_MIN (-2147483647-1)
  2318. | #endif
  2319. | #ifndef INT8_MAX
  2320. | #define INT8_MAX (127)
  2321. | #endif
  2322. | #ifndef INT16_MAX
  2323. | #define INT16_MAX (32767)
  2324. | #endif
  2325. | #ifndef INT32_MAX
  2326. | #define INT32_MAX (2147483647)
  2327. | #endif
  2328. | #ifndef UINT8_MAX
  2329. | #define UINT8_MAX (255U)
  2330. | #endif
  2331. | #ifndef UINT16_MAX
  2332. | #define UINT16_MAX (65535U)
  2333. | #endif
  2334. | #ifndef UINT32_MAX
  2335. | #define UINT32_MAX (4294967295U)
  2336. | #endif
  2337. |
  2338. | #ifndef SIZE_MAX
  2339. | #define SIZE_MAX (~(size_t)0)
  2340. | #endif
  2341. |
  2342. | #endif /* ! C99 */
  2343. |
  2344. | #endif /* ! FLEXINT_H */
  2345. |
  2346. | /* begin standard C++ headers. */
  2347. |
  2348. | /* TODO: this is always defined, so inline it */
  2349. | #define yyconst const
  2350. |
  2351. | #if defined(__GNUC__) && __GNUC__ >= 3
  2352. | #define yynoreturn __attribute__((__noreturn__))
  2353. | #else
  2354. | #define yynoreturn
  2355. | #endif
  2356. |
  2357. | /* Returned upon end-of-file. */
  2358. | #define YY_NULL 0
  2359. |
  2360. | /* Promotes a possibly negative, possibly signed char to an
  2361. | * integer in range [0..255] for use as an array index.
  2362. | */
  2363. | #define YY_SC_TO_UI(c) ((YY_CHAR) (c))
  2364. |
  2365. | /* Enter a start condition. This macro really ought to take a parameter,
  2366. | * but we do it the disgusting crufty way forced on us by the ()-less
  2367. | * definition of BEGIN.
  2368. | */
  2369. | #define BEGIN (yy_start) = 1 + 2 *
  2370. | /* Translate the current start state into a value that can be later handed
  2371. | * to BEGIN to return to the state. The YYSTATE alias is for lex
  2372. | * compatibility.
  2373. | */
  2374. | #define YY_START (((yy_start) - 1) / 2)
  2375. | #define YYSTATE YY_START
  2376. | /* Action number for EOF rule of a given start state. */
  2377. | #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  2378. | /* Special action meaning "start processing a new file". */
  2379. | #define YY_NEW_FILE yyrestart( yyin )
  2380. | #define YY_END_OF_BUFFER_CHAR 0
  2381. |
  2382. | /* Size of default input buffer. */
  2383. | #ifndef YY_BUF_SIZE
  2384. | #ifdef __ia64__
  2385. | /* On IA-64, the buffer size is 16k, not 8k.
  2386. | * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
  2387. | * Ditto for the __ia64__ case accordingly.
  2388. | */
  2389. | #define YY_BUF_SIZE 32768
  2390. | #else
  2391. | #define YY_BUF_SIZE 16384
  2392. | #endif /* __ia64__ */
  2393. | #endif
  2394. |
  2395. | /* The state buf must be large enough to hold one state per character in the main buffer.
  2396. | */
  2397. | #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
  2398. |
  2399. | #ifndef YY_TYPEDEF_YY_BUFFER_STATE
  2400. | #define YY_TYPEDEF_YY_BUFFER_STATE
  2401. | typedef struct yy_buffer_state *YY_BUFFER_STATE;
  2402. | #endif
  2403. |
  2404. | #ifndef YY_TYPEDEF_YY_SIZE_T
  2405. | #define YY_TYPEDEF_YY_SIZE_T
  2406. | typedef size_t yy_size_t;
  2407. | #endif
  2408. |
  2409. | extern int yyleng;
  2410. |
  2411. | extern FILE *yyin, *yyout;
  2412. |
  2413. | #define EOB_ACT_CONTINUE_SCAN 0
  2414. | #define EOB_ACT_END_OF_FILE 1
  2415. | #define EOB_ACT_LAST_MATCH 2
  2416. |
  2417. | #define YY_LESS_LINENO(n)
  2418. | #define YY_LINENO_REWIND_TO(ptr)
  2419. |
  2420. | /* Return all but the first "n" matched characters back to the input stream. */
  2421. | #define yyless(n) \
  2422. | do \
  2423. | { \
  2424. | /* Undo effects of setting up yytext. */ \
  2425. | int yyless_macro_arg = (n); \
  2426. | YY_LESS_LINENO(yyless_macro_arg);\
  2427. | *yy_cp = (yy_hold_char); \
  2428. | YY_RESTORE_YY_MORE_OFFSET \
  2429. | (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
  2430. | YY_DO_BEFORE_ACTION; /* set up yytext again */ \
  2431. | } \
  2432. | while ( 0 )
  2433. | #define unput(c) yyunput( c, (yytext_ptr) )
  2434. |
  2435. | #ifndef YY_STRUCT_YY_BUFFER_STATE
  2436. | #define YY_STRUCT_YY_BUFFER_STATE
  2437. | struct yy_buffer_state
  2438. | {
  2439. | FILE *yy_input_file;
  2440. |
  2441. | char *yy_ch_buf; /* input buffer */
  2442. | char *yy_buf_pos; /* current position in input buffer */
  2443. |
  2444. | /* Size of input buffer in bytes, not including room for EOB
  2445. | * characters.
  2446. | */
  2447. | int yy_buf_size;
  2448. |
  2449. | /* Number of characters read into yy_ch_buf, not including EOB
  2450. | * characters.
  2451. | */
  2452. | int yy_n_chars;
  2453. |
  2454. | /* Whether we "own" the buffer - i.e., we know we created it,
  2455. | * and can realloc() it to grow it, and should free() it to
  2456. | * delete it.
  2457. | */
  2458. | int yy_is_our_buffer;
  2459. |
  2460. | /* Whether this is an "interactive" input source; if so, and
  2461. | * if we're using stdio for input, then we want to use getc()
  2462. | * instead of fread(), to make sure we stop fetching input after
  2463. | * each newline.
  2464. | */
  2465. | int yy_is_interactive;
  2466. |
  2467. | /* Whether we're considered to be at the beginning of a line.
  2468. | * If so, '^' rules will be active on the next match, otherwise
  2469. | * not.
  2470. | */
  2471. | int yy_at_bol;
  2472. |
  2473. | int yy_bs_lineno; /**< The line count. */
  2474. | int yy_bs_column; /**< The column count. */
  2475. |
  2476. | /* Whether to try to fill the input buffer when we reach the
  2477. | * end of it.
  2478. | */
  2479. | int yy_fill_buffer;
  2480. |
  2481. | int yy_buffer_status;
  2482. |
  2483. | #define YY_BUFFER_NEW 0
  2484. | #define YY_BUFFER_NORMAL 1
  2485. | /* When an EOF's been seen but there's still some text to process
  2486. | * then we mark the buffer as YY_EOF_PENDING, to indicate that we
  2487. | * shouldn't try reading from the input source any more. We might
  2488. | * still have a bunch of tokens to match, though, because of
  2489. | * possible backing-up.
  2490. | *
  2491. | * When we actually see the EOF, we change the status to "new"
  2492. | * (via yyrestart()), so that the user can continue scanning by
  2493. | * just pointing yyin at a new input file.
  2494. | */
  2495. | #define YY_BUFFER_EOF_PENDING 2
  2496. |
  2497. | };
  2498. | #endif /* !YY_STRUCT_YY_BUFFER_STATE */
  2499. |
  2500. | /* Stack of input buffers. */
  2501. | static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
  2502. | static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
  2503. | static YY_BUFFER_STATE * yy_buffer_stack = NULL; /**< Stack as an array. */
  2504. |
  2505. | /* We provide macros for accessing buffer states in case in the
  2506. | * future we want to put the buffer states in a more general
  2507. | * "scanner state".
  2508. | *
  2509. | * Returns the top of the stack, or NULL.
  2510. | */
  2511. | #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
  2512. | ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
  2513. | : NULL)
  2514. | /* Same as previous macro, but useful when we know that the buffer stack is not
  2515. | * NULL or when we need an lvalue. For internal use only.
  2516. | */
  2517. | #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
  2518. |
  2519. | /* yy_hold_char holds the character lost when yytext is formed. */
  2520. | static char yy_hold_char;
  2521. | static int yy_n_chars; /* number of characters read into yy_ch_buf */
  2522. | int yyleng;
  2523. |
  2524. | /* Points to current character in buffer. */
  2525. | static char *yy_c_buf_p = NULL;
  2526. | static int yy_init = 0; /* whether we need to initialize */
  2527. | static int yy_start = 0; /* start state number */
  2528. |
  2529. | /* Flag which is used to allow yywrap()'s to do buffer switches
  2530. | * instead of setting up a fresh yyin. A bit of a hack ...
  2531. | */
  2532. | static int yy_did_buffer_switch_on_eof;
  2533. |
  2534. | void yyrestart ( FILE *input_file );
  2535. | void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer );
  2536. | YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size );
  2537. | void yy_delete_buffer ( YY_BUFFER_STATE b );
  2538. | void yy_flush_buffer ( YY_BUFFER_STATE b );
  2539. | void yypush_buffer_state ( YY_BUFFER_STATE new_buffer );
  2540. | void yypop_buffer_state ( void );
  2541. |
  2542. | static void yyensure_buffer_stack ( void );
  2543. | static void yy_load_buffer_state ( void );
  2544. | static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file );
  2545. | #define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER )
  2546. |
  2547. | YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size );
  2548. | YY_BUFFER_STATE yy_scan_string ( const char *yy_str );
  2549. | YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len );
  2550. |
  2551. | void *yyalloc ( yy_size_t );
  2552. | void *yyrealloc ( void *, yy_size_t );
  2553. | void yyfree ( void * );
  2554. |
  2555. | #define yy_new_buffer yy_create_buffer
  2556. | #define yy_set_interactive(is_interactive) \
  2557. | { \
  2558. | if ( ! YY_CURRENT_BUFFER ){ \
  2559. | yyensure_buffer_stack (); \
  2560. | YY_CURRENT_BUFFER_LVALUE = \
  2561. | yy_create_buffer( yyin, YY_BUF_SIZE ); \
  2562. | } \
  2563. | YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
  2564. | }
  2565. | #define yy_set_bol(at_bol) \
  2566. | { \
  2567. | if ( ! YY_CURRENT_BUFFER ){\
  2568. | yyensure_buffer_stack (); \
  2569. | YY_CURRENT_BUFFER_LVALUE = \
  2570. | yy_create_buffer( yyin, YY_BUF_SIZE ); \
  2571. | } \
  2572. | YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
  2573. | }
  2574. | #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
  2575. |
  2576. | /* Begin user sect3 */
  2577. | typedef flex_uint8_t YY_CHAR;
  2578. |
  2579. | FILE *yyin = NULL, *yyout = NULL;
  2580. |
  2581. | typedef int yy_state_type;
  2582. |
  2583. | extern int yylineno;
  2584. | int yylineno = 1;
  2585. |
  2586. | extern char *yytext;
  2587. | #ifdef yytext_ptr
  2588. | #undef yytext_ptr
  2589. | #endif
  2590. | #define yytext_ptr yytext
  2591. |
  2592. | static yy_state_type yy_get_previous_state ( void );
  2593. | static yy_state_type yy_try_NUL_trans ( yy_state_type current_state );
  2594. | static int yy_get_next_buffer ( void );
  2595. | static void yynoreturn yy_fatal_error ( const char* msg );
  2596. |
  2597. | /* Done after the current pattern has been matched and before the
  2598. | * corresponding action - sets up yytext.
  2599. | */
  2600. | #define YY_DO_BEFORE_ACTION \
  2601. | (yytext_ptr) = yy_bp; \
  2602. | (yytext_ptr) -= (yy_more_len); \
  2603. | yyleng = (int) (yy_cp - (yytext_ptr)); \
  2604. | (yy_hold_char) = *yy_cp; \
  2605. | *yy_cp = '\0'; \
  2606. | (yy_c_buf_p) = yy_cp;
  2607. | #define YY_NUM_RULES 8
  2608. | #define YY_END_OF_BUFFER 9
  2609. | /* This struct is not used in this scanner,
  2610. | but its presence is necessary. */
  2611. | struct yy_trans_info
  2612. | {
  2613. | flex_int32_t yy_verify;
  2614. | flex_int32_t yy_nxt;
  2615. | };
  2616. | static const flex_int16_t yy_acclist[23] =
  2617. | { 0,
  2618. | 9, 7, 8, 8, 1, 7, 8, 2, 7, 8,
  2619. | 3, 7, 8, 4, 7, 8, 5, 7, 8, 6,
  2620. | 7, 8
  2621. | } ;
  2622. |
  2623. | static const flex_int16_t yy_accept[14] =
  2624. | { 0,
  2625. | 1, 1, 1, 2, 4, 5, 8, 11, 14, 17,
  2626. | 20, 23, 23
  2627. | } ;
  2628. |
  2629. | static const YY_CHAR yy_ec[256] =
  2630. | { 0,
  2631. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
  2632. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2633. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2634. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2635. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2636. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2637. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2638. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2639. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2640. | 1, 1, 1, 1, 1, 1, 3, 4, 5, 6,
  2641. |
  2642. | 7, 8, 1, 1, 1, 1, 1, 1, 1, 1,
  2643. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2644. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2645. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2646. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2647. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2648. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2649. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2650. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2651. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2652. |
  2653. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2654. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2655. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2656. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2657. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  2658. | 1, 1, 1, 1, 1
  2659. | } ;
  2660. |
  2661. | static const YY_CHAR yy_meta[9] =
  2662. | { 0,
  2663. | 1, 1, 1, 1, 1, 1, 1, 1
  2664. | } ;
  2665. |
  2666. | static const flex_int16_t yy_base[13] =
  2667. | { 0,
  2668. | 0, 0, 9, 10, 10, 10, 10, 10, 10, 10,
  2669. | 10, 10
  2670. | } ;
  2671. |
  2672. | static const flex_int16_t yy_def[13] =
  2673. | { 0,
  2674. | 12, 1, 12, 12, 12, 12, 12, 12, 12, 12,
  2675. | 12, 0
  2676. | } ;
  2677. |
  2678. | static const flex_int16_t yy_nxt[19] =
  2679. | { 0,
  2680. | 4, 5, 6, 7, 8, 9, 10, 11, 12, 3,
  2681. | 12, 12, 12, 12, 12, 12, 12, 12
  2682. | } ;
  2683. |
  2684. | static const flex_int16_t yy_chk[19] =
  2685. | { 0,
  2686. | 1, 1, 1, 1, 1, 1, 1, 1, 3, 12,
  2687. | 12, 12, 12, 12, 12, 12, 12, 12
  2688. | } ;
  2689. |
  2690. | extern int yy_flex_debug;
  2691. | int yy_flex_debug = 0;
  2692. |
  2693. | static yy_state_type *yy_state_buf=0, *yy_state_ptr=0;
  2694. | static char *yy_full_match;
  2695. | static int yy_lp;
  2696. | #define REJECT \
  2697. | { \
  2698. | *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ \
  2699. | yy_cp = (yy_full_match); /* restore poss. backed-over text */ \
  2700. | ++(yy_lp); \
  2701. | goto find_rule; \
  2702. | }
  2703. |
  2704. | static int yy_more_flag = 0;
  2705. | static int yy_more_len = 0;
  2706. | #define yymore() ((yy_more_flag) = 1)
  2707. | #define YY_MORE_ADJ (yy_more_len)
  2708. | #define YY_RESTORE_YY_MORE_OFFSET
  2709. | char *yytext;
  2710. | #line 1 "conftest.l"
  2711. | #line 460 "lex.yy.c"
  2712. |
  2713. | #define INITIAL 0
  2714. |
  2715. | #ifndef YY_NO_UNISTD_H
  2716. | /* Special case for "unistd.h", since it is non-ANSI. We include it way
  2717. | * down here because we want the user's section 1 to have been scanned first.
  2718. | * The user has a chance to override it with an option.
  2719. | */
  2720. | #include <unistd.h>
  2721. | #endif
  2722. |
  2723. | #ifndef YY_EXTRA_TYPE
  2724. | #define YY_EXTRA_TYPE void *
  2725. | #endif
  2726. |
  2727. | static int yy_init_globals ( void );
  2728. |
  2729. | /* Accessor methods to globals.
  2730. | These are made visible to non-reentrant scanners for convenience. */
  2731. |
  2732. | int yylex_destroy ( void );
  2733. |
  2734. | int yyget_debug ( void );
  2735. |
  2736. | void yyset_debug ( int debug_flag );
  2737. |
  2738. | YY_EXTRA_TYPE yyget_extra ( void );
  2739. |
  2740. | void yyset_extra ( YY_EXTRA_TYPE user_defined );
  2741. |
  2742. | FILE *yyget_in ( void );
  2743. |
  2744. | void yyset_in ( FILE * _in_str );
  2745. |
  2746. | FILE *yyget_out ( void );
  2747. |
  2748. | void yyset_out ( FILE * _out_str );
  2749. |
  2750. | int yyget_leng ( void );
  2751. |
  2752. | char *yyget_text ( void );
  2753. |
  2754. | int yyget_lineno ( void );
  2755. |
  2756. | void yyset_lineno ( int _line_number );
  2757. |
  2758. | /* Macros after this point can all be overridden by user definitions in
  2759. | * section 1.
  2760. | */
  2761. |
  2762. | #ifndef YY_SKIP_YYWRAP
  2763. | #ifdef __cplusplus
  2764. | extern "C" int yywrap ( void );
  2765. | #else
  2766. | extern int yywrap ( void );
  2767. | #endif
  2768. | #endif
  2769. |
  2770. | #ifndef YY_NO_UNPUT
  2771. |
  2772. | static void yyunput ( int c, char *buf_ptr );
  2773. |
  2774. | #endif
  2775. |
  2776. | #ifndef yytext_ptr
  2777. | static void yy_flex_strncpy ( char *, const char *, int );
  2778. | #endif
  2779. |
  2780. | #ifdef YY_NEED_STRLEN
  2781. | static int yy_flex_strlen ( const char * );
  2782. | #endif
  2783. |
  2784. | #ifndef YY_NO_INPUT
  2785. | #ifdef __cplusplus
  2786. | static int yyinput ( void );
  2787. | #else
  2788. | static int input ( void );
  2789. | #endif
  2790. |
  2791. | #endif
  2792. |
  2793. | /* Amount of stuff to slurp up with each read. */
  2794. | #ifndef YY_READ_BUF_SIZE
  2795. | #ifdef __ia64__
  2796. | /* On IA-64, the buffer size is 16k, not 8k */
  2797. | #define YY_READ_BUF_SIZE 16384
  2798. | #else
  2799. | #define YY_READ_BUF_SIZE 8192
  2800. | #endif /* __ia64__ */
  2801. | #endif
  2802. |
  2803. | /* Copy whatever the last rule matched to the standard output. */
  2804. | #ifndef ECHO
  2805. | /* This used to be an fputs(), but since the string might contain NUL's,
  2806. | * we now use fwrite().
  2807. | */
  2808. | #define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
  2809. | #endif
  2810. |
  2811. | /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
  2812. | * is returned in "result".
  2813. | */
  2814. | #ifndef YY_INPUT
  2815. | #define YY_INPUT(buf,result,max_size) \
  2816. | if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
  2817. | { \
  2818. | int c = '*'; \
  2819. | int n; \
  2820. | for ( n = 0; n < max_size && \
  2821. | (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
  2822. | buf[n] = (char) c; \
  2823. | if ( c == '\n' ) \
  2824. | buf[n++] = (char) c; \
  2825. | if ( c == EOF && ferror( yyin ) ) \
  2826. | YY_FATAL_ERROR( "input in flex scanner failed" ); \
  2827. | result = n; \
  2828. | } \
  2829. | else \
  2830. | { \
  2831. | errno=0; \
  2832. | while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
  2833. | { \
  2834. | if( errno != EINTR) \
  2835. | { \
  2836. | YY_FATAL_ERROR( "input in flex scanner failed" ); \
  2837. | break; \
  2838. | } \
  2839. | errno=0; \
  2840. | clearerr(yyin); \
  2841. | } \
  2842. | }\
  2843. | \
  2844. |
  2845. | #endif
  2846. |
  2847. | /* No semi-colon after return; correct usage is to write "yyterminate();" -
  2848. | * we don't want an extra ';' after the "return" because that will cause
  2849. | * some compilers to complain about unreachable statements.
  2850. | */
  2851. | #ifndef yyterminate
  2852. | #define yyterminate() return YY_NULL
  2853. | #endif
  2854. |
  2855. | /* Number of entries by which start-condition stack grows. */
  2856. | #ifndef YY_START_STACK_INCR
  2857. | #define YY_START_STACK_INCR 25
  2858. | #endif
  2859. |
  2860. | /* Report a fatal error. */
  2861. | #ifndef YY_FATAL_ERROR
  2862. | #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
  2863. | #endif
  2864. |
  2865. | /* end tables serialization structures and prototypes */
  2866. |
  2867. | /* Default declaration of generated scanner - a define so the user can
  2868. | * easily add parameters.
  2869. | */
  2870. | #ifndef YY_DECL
  2871. | #define YY_DECL_IS_OURS 1
  2872. |
  2873. | extern int yylex (void);
  2874. |
  2875. | #define YY_DECL int yylex (void)
  2876. | #endif /* !YY_DECL */
  2877. |
  2878. | /* Code executed at the beginning of each rule, after yytext and yyleng
  2879. | * have been set up.
  2880. | */
  2881. | #ifndef YY_USER_ACTION
  2882. | #define YY_USER_ACTION
  2883. | #endif
  2884. |
  2885. | /* Code executed at the end of each rule. */
  2886. | #ifndef YY_BREAK
  2887. | #define YY_BREAK /*LINTED*/break;
  2888. | #endif
  2889. |
  2890. | #define YY_RULE_SETUP \
  2891. | YY_USER_ACTION
  2892. |
  2893. | /** The main scanner function which does all the work.
  2894. | */
  2895. | YY_DECL
  2896. | {
  2897. | yy_state_type yy_current_state;
  2898. | char *yy_cp, *yy_bp;
  2899. | int yy_act;
  2900. |
  2901. | if ( !(yy_init) )
  2902. | {
  2903. | (yy_init) = 1;
  2904. |
  2905. | #ifdef YY_USER_INIT
  2906. | YY_USER_INIT;
  2907. | #endif
  2908. |
  2909. | /* Create the reject buffer large enough to save one state per allowed character. */
  2910. | if ( ! (yy_state_buf) )
  2911. | (yy_state_buf) = (yy_state_type *)yyalloc(YY_STATE_BUF_SIZE );
  2912. | if ( ! (yy_state_buf) )
  2913. | YY_FATAL_ERROR( "out of dynamic memory in yylex()" );
  2914. |
  2915. | if ( ! (yy_start) )
  2916. | (yy_start) = 1; /* first start state */
  2917. |
  2918. | if ( ! yyin )
  2919. | yyin = stdin;
  2920. |
  2921. | if ( ! yyout )
  2922. | yyout = stdout;
  2923. |
  2924. | if ( ! YY_CURRENT_BUFFER ) {
  2925. | yyensure_buffer_stack ();
  2926. | YY_CURRENT_BUFFER_LVALUE =
  2927. | yy_create_buffer( yyin, YY_BUF_SIZE );
  2928. | }
  2929. |
  2930. | yy_load_buffer_state( );
  2931. | }
  2932. |
  2933. | {
  2934. | #line 1 "conftest.l"
  2935. |
  2936. | #line 685 "lex.yy.c"
  2937. |
  2938. | while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
  2939. | {
  2940. | (yy_more_len) = 0;
  2941. | if ( (yy_more_flag) )
  2942. | {
  2943. | (yy_more_len) = (int) ((yy_c_buf_p) - (yytext_ptr));
  2944. | (yy_more_flag) = 0;
  2945. | }
  2946. | yy_cp = (yy_c_buf_p);
  2947. |
  2948. | /* Support of yytext. */
  2949. | *yy_cp = (yy_hold_char);
  2950. |
  2951. | /* yy_bp points to the position in yy_ch_buf of the start of
  2952. | * the current run.
  2953. | */
  2954. | yy_bp = yy_cp;
  2955. |
  2956. | yy_current_state = (yy_start);
  2957. |
  2958. | (yy_state_ptr) = (yy_state_buf);
  2959. | *(yy_state_ptr)++ = yy_current_state;
  2960. |
  2961. | yy_match:
  2962. | do
  2963. | {
  2964. | YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
  2965. | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  2966. | {
  2967. | yy_current_state = (int) yy_def[yy_current_state];
  2968. | if ( yy_current_state >= 13 )
  2969. | yy_c = yy_meta[yy_c];
  2970. | }
  2971. | yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  2972. | *(yy_state_ptr)++ = yy_current_state;
  2973. | ++yy_cp;
  2974. | }
  2975. | while ( yy_base[yy_current_state] != 10 );
  2976. |
  2977. | yy_find_action:
  2978. | yy_current_state = *--(yy_state_ptr);
  2979. | (yy_lp) = yy_accept[yy_current_state];
  2980. |
  2981. | find_rule: /* we branch to this label when backing up */
  2982. |
  2983. | for ( ; ; ) /* until we find what rule we matched */
  2984. | {
  2985. | if ( (yy_lp) && (yy_lp) < yy_accept[yy_current_state + 1] )
  2986. | {
  2987. | yy_act = yy_acclist[(yy_lp)];
  2988. | {
  2989. | (yy_full_match) = yy_cp;
  2990. | break;
  2991. | }
  2992. | }
  2993. | --yy_cp;
  2994. | yy_current_state = *--(yy_state_ptr);
  2995. | (yy_lp) = yy_accept[yy_current_state];
  2996. | }
  2997. |
  2998. | YY_DO_BEFORE_ACTION;
  2999. |
  3000. | do_action: /* This label is used only to access EOF actions. */
  3001. |
  3002. | switch ( yy_act )
  3003. | { /* beginning of action switch */
  3004. | case 1:
  3005. | YY_RULE_SETUP
  3006. | #line 2 "conftest.l"
  3007. | { ECHO; }
  3008. | YY_BREAK
  3009. | case 2:
  3010. | YY_RULE_SETUP
  3011. | #line 3 "conftest.l"
  3012. | { REJECT; }
  3013. | YY_BREAK
  3014. | case 3:
  3015. | YY_RULE_SETUP
  3016. | #line 4 "conftest.l"
  3017. | { yymore (); }
  3018. | YY_BREAK
  3019. | case 4:
  3020. | YY_RULE_SETUP
  3021. | #line 5 "conftest.l"
  3022. | { yyless (1); }
  3023. | YY_BREAK
  3024. | case 5:
  3025. | YY_RULE_SETUP
  3026. | #line 6 "conftest.l"
  3027. | { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
  3028. | yyless ((input () != 0)); }
  3029. | YY_BREAK
  3030. | case 6:
  3031. | YY_RULE_SETUP
  3032. | #line 8 "conftest.l"
  3033. | { unput (yytext[0]); }
  3034. | YY_BREAK
  3035. | case 7:
  3036. | YY_RULE_SETUP
  3037. | #line 9 "conftest.l"
  3038. | { BEGIN INITIAL; }
  3039. | YY_BREAK
  3040. | case 8:
  3041. | YY_RULE_SETUP
  3042. | #line 10 "conftest.l"
  3043. | ECHO;
  3044. | YY_BREAK
  3045. | #line 794 "lex.yy.c"
  3046. | case YY_STATE_EOF(INITIAL):
  3047. | yyterminate();
  3048. |
  3049. | case YY_END_OF_BUFFER:
  3050. | {
  3051. | /* Amount of text matched not including the EOB char. */
  3052. | int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
  3053. |
  3054. | /* Undo the effects of YY_DO_BEFORE_ACTION. */
  3055. | *yy_cp = (yy_hold_char);
  3056. | YY_RESTORE_YY_MORE_OFFSET
  3057. |
  3058. | if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
  3059. | {
  3060. | /* We're scanning a new file or input source. It's
  3061. | * possible that this happened because the user
  3062. | * just pointed yyin at a new source and called
  3063. | * yylex(). If so, then we have to assure
  3064. | * consistency between YY_CURRENT_BUFFER and our
  3065. | * globals. Here is the right place to do so, because
  3066. | * this is the first action (other than possibly a
  3067. | * back-up) that will match for the new input source.
  3068. | */
  3069. | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  3070. | YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
  3071. | YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
  3072. | }
  3073. |
  3074. | /* Note that here we test for yy_c_buf_p "<=" to the position
  3075. | * of the first EOB in the buffer, since yy_c_buf_p will
  3076. | * already have been incremented past the NUL character
  3077. | * (since all states make transitions on EOB to the
  3078. | * end-of-buffer state). Contrast this with the test
  3079. | * in input().
  3080. | */
  3081. | if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
  3082. | { /* This was really a NUL. */
  3083. | yy_state_type yy_next_state;
  3084. |
  3085. | (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
  3086. |
  3087. | yy_current_state = yy_get_previous_state( );
  3088. |
  3089. | /* Okay, we're now positioned to make the NUL
  3090. | * transition. We couldn't have
  3091. | * yy_get_previous_state() go ahead and do it
  3092. | * for us because it doesn't know how to deal
  3093. | * with the possibility of jamming (and we don't
  3094. | * want to build jamming into it because then it
  3095. | * will run more slowly).
  3096. | */
  3097. |
  3098. | yy_next_state = yy_try_NUL_trans( yy_current_state );
  3099. |
  3100. | yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  3101. |
  3102. | if ( yy_next_state )
  3103. | {
  3104. | /* Consume the NUL. */
  3105. | yy_cp = ++(yy_c_buf_p);
  3106. | yy_current_state = yy_next_state;
  3107. | goto yy_match;
  3108. | }
  3109. |
  3110. | else
  3111. | {
  3112. | yy_cp = (yy_c_buf_p);
  3113. | goto yy_find_action;
  3114. | }
  3115. | }
  3116. |
  3117. | else switch ( yy_get_next_buffer( ) )
  3118. | {
  3119. | case EOB_ACT_END_OF_FILE:
  3120. | {
  3121. | (yy_did_buffer_switch_on_eof) = 0;
  3122. |
  3123. | if ( yywrap( ) )
  3124. | {
  3125. | /* Note: because we've taken care in
  3126. | * yy_get_next_buffer() to have set up
  3127. | * yytext, we can now set up
  3128. | * yy_c_buf_p so that if some total
  3129. | * hoser (like flex itself) wants to
  3130. | * call the scanner after we return the
  3131. | * YY_NULL, it'll still work - another
  3132. | * YY_NULL will get returned.
  3133. | */
  3134. | (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
  3135. |
  3136. | yy_act = YY_STATE_EOF(YY_START);
  3137. | goto do_action;
  3138. | }
  3139. |
  3140. | else
  3141. | {
  3142. | if ( ! (yy_did_buffer_switch_on_eof) )
  3143. | YY_NEW_FILE;
  3144. | }
  3145. | break;
  3146. | }
  3147. |
  3148. | case EOB_ACT_CONTINUE_SCAN:
  3149. | (yy_c_buf_p) =
  3150. | (yytext_ptr) + yy_amount_of_matched_text;
  3151. |
  3152. | yy_current_state = yy_get_previous_state( );
  3153. |
  3154. | yy_cp = (yy_c_buf_p);
  3155. | yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  3156. | goto yy_match;
  3157. |
  3158. | case EOB_ACT_LAST_MATCH:
  3159. | (yy_c_buf_p) =
  3160. | &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
  3161. |
  3162. | yy_current_state = yy_get_previous_state( );
  3163. |
  3164. | yy_cp = (yy_c_buf_p);
  3165. | yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  3166. | goto yy_find_action;
  3167. | }
  3168. | break;
  3169. | }
  3170. |
  3171. | default:
  3172. | YY_FATAL_ERROR(
  3173. | "fatal flex scanner internal error--no action found" );
  3174. | } /* end of action switch */
  3175. | } /* end of scanning one token */
  3176. | } /* end of user's declarations */
  3177. | } /* end of yylex */
  3178. |
  3179. | /* yy_get_next_buffer - try to read in a new buffer
  3180. | *
  3181. | * Returns a code representing an action:
  3182. | * EOB_ACT_LAST_MATCH -
  3183. | * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
  3184. | * EOB_ACT_END_OF_FILE - end of file
  3185. | */
  3186. | static int yy_get_next_buffer (void)
  3187. | {
  3188. | char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
  3189. | char *source = (yytext_ptr);
  3190. | int number_to_move, i;
  3191. | int ret_val;
  3192. |
  3193. | if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
  3194. | YY_FATAL_ERROR(
  3195. | "fatal flex scanner internal error--end of buffer missed" );
  3196. |
  3197. | if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
  3198. | { /* Don't try to fill the buffer, so this is an EOF. */
  3199. | if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
  3200. | {
  3201. | /* We matched a single character, the EOB, so
  3202. | * treat this as a final EOF.
  3203. | */
  3204. | return EOB_ACT_END_OF_FILE;
  3205. | }
  3206. |
  3207. | else
  3208. | {
  3209. | /* We matched some text prior to the EOB, first
  3210. | * process it.
  3211. | */
  3212. | return EOB_ACT_LAST_MATCH;
  3213. | }
  3214. | }
  3215. |
  3216. | /* Try to read more data. */
  3217. |
  3218. | /* First move last chars to start of buffer. */
  3219. | number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr) - 1);
  3220. |
  3221. | for ( i = 0; i < number_to_move; ++i )
  3222. | *(dest++) = *(source++);
  3223. |
  3224. | if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
  3225. | /* don't do the read, it's not guaranteed to return an EOF,
  3226. | * just force an EOF
  3227. | */
  3228. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
  3229. |
  3230. | else
  3231. | {
  3232. | int num_to_read =
  3233. | YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
  3234. |
  3235. | while ( num_to_read <= 0 )
  3236. | { /* Not enough room in the buffer - grow it. */
  3237. |
  3238. | YY_FATAL_ERROR(
  3239. | "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
  3240. |
  3241. | }
  3242. |
  3243. | if ( num_to_read > YY_READ_BUF_SIZE )
  3244. | num_to_read = YY_READ_BUF_SIZE;
  3245. |
  3246. | /* Read in more data. */
  3247. | YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
  3248. | (yy_n_chars), num_to_read );
  3249. |
  3250. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  3251. | }
  3252. |
  3253. | if ( (yy_n_chars) == 0 )
  3254. | {
  3255. | if ( number_to_move == YY_MORE_ADJ )
  3256. | {
  3257. | ret_val = EOB_ACT_END_OF_FILE;
  3258. | yyrestart( yyin );
  3259. | }
  3260. |
  3261. | else
  3262. | {
  3263. | ret_val = EOB_ACT_LAST_MATCH;
  3264. | YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
  3265. | YY_BUFFER_EOF_PENDING;
  3266. | }
  3267. | }
  3268. |
  3269. | else
  3270. | ret_val = EOB_ACT_CONTINUE_SCAN;
  3271. |
  3272. | if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
  3273. | /* Extend the array by 50%, plus the number we really need. */
  3274. | int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
  3275. | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
  3276. | (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size );
  3277. | if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
  3278. | YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
  3279. | /* "- 2" to take care of EOB's */
  3280. | YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
  3281. | }
  3282. |
  3283. | (yy_n_chars) += number_to_move;
  3284. | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
  3285. | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
  3286. |
  3287. | (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
  3288. |
  3289. | return ret_val;
  3290. | }
  3291. |
  3292. | /* yy_get_previous_state - get the state just before the EOB char was reached */
  3293. |
  3294. | static yy_state_type yy_get_previous_state (void)
  3295. | {
  3296. | yy_state_type yy_current_state;
  3297. | char *yy_cp;
  3298. |
  3299. | yy_current_state = (yy_start);
  3300. |
  3301. | (yy_state_ptr) = (yy_state_buf);
  3302. | *(yy_state_ptr)++ = yy_current_state;
  3303. |
  3304. | for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
  3305. | {
  3306. | YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
  3307. | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  3308. | {
  3309. | yy_current_state = (int) yy_def[yy_current_state];
  3310. | if ( yy_current_state >= 13 )
  3311. | yy_c = yy_meta[yy_c];
  3312. | }
  3313. | yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  3314. | *(yy_state_ptr)++ = yy_current_state;
  3315. | }
  3316. |
  3317. | return yy_current_state;
  3318. | }
  3319. |
  3320. | /* yy_try_NUL_trans - try to make a transition on the NUL character
  3321. | *
  3322. | * synopsis
  3323. | * next_state = yy_try_NUL_trans( current_state );
  3324. | */
  3325. | static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
  3326. | {
  3327. | int yy_is_jam;
  3328. |
  3329. | YY_CHAR yy_c = 1;
  3330. | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  3331. | {
  3332. | yy_current_state = (int) yy_def[yy_current_state];
  3333. | if ( yy_current_state >= 13 )
  3334. | yy_c = yy_meta[yy_c];
  3335. | }
  3336. | yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  3337. | yy_is_jam = (yy_current_state == 12);
  3338. | if ( ! yy_is_jam )
  3339. | *(yy_state_ptr)++ = yy_current_state;
  3340. |
  3341. | return yy_is_jam ? 0 : yy_current_state;
  3342. | }
  3343. |
  3344. | #ifndef YY_NO_UNPUT
  3345. |
  3346. | static void yyunput (int c, char * yy_bp )
  3347. | {
  3348. | char *yy_cp;
  3349. |
  3350. | yy_cp = (yy_c_buf_p);
  3351. |
  3352. | /* undo effects of setting up yytext */
  3353. | *yy_cp = (yy_hold_char);
  3354. |
  3355. | if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
  3356. | { /* need to shift things up to make room */
  3357. | /* +2 for EOB chars. */
  3358. | int number_to_move = (yy_n_chars) + 2;
  3359. | char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
  3360. | YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
  3361. | char *source =
  3362. | &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
  3363. |
  3364. | while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
  3365. | *--dest = *--source;
  3366. |
  3367. | yy_cp += (int) (dest - source);
  3368. | yy_bp += (int) (dest - source);
  3369. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
  3370. | (yy_n_chars) = (int) YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
  3371. |
  3372. | if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
  3373. | YY_FATAL_ERROR( "flex scanner push-back overflow" );
  3374. | }
  3375. |
  3376. | *--yy_cp = (char) c;
  3377. |
  3378. | (yytext_ptr) = yy_bp;
  3379. | (yy_hold_char) = *yy_cp;
  3380. | (yy_c_buf_p) = yy_cp;
  3381. | }
  3382. |
  3383. | #endif
  3384. |
  3385. | #ifndef YY_NO_INPUT
  3386. | #ifdef __cplusplus
  3387. | static int yyinput (void)
  3388. | #else
  3389. | static int input (void)
  3390. | #endif
  3391. |
  3392. | {
  3393. | int c;
  3394. |
  3395. | *(yy_c_buf_p) = (yy_hold_char);
  3396. |
  3397. | if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
  3398. | {
  3399. | /* yy_c_buf_p now points to the character we want to return.
  3400. | * If this occurs *before* the EOB characters, then it's a
  3401. | * valid NUL; if not, then we've hit the end of the buffer.
  3402. | */
  3403. | if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
  3404. | /* This was really a NUL. */
  3405. | *(yy_c_buf_p) = '\0';
  3406. |
  3407. | else
  3408. | { /* need more input */
  3409. | int offset = (int) ((yy_c_buf_p) - (yytext_ptr));
  3410. | ++(yy_c_buf_p);
  3411. |
  3412. | switch ( yy_get_next_buffer( ) )
  3413. | {
  3414. | case EOB_ACT_LAST_MATCH:
  3415. | /* This happens because yy_g_n_b()
  3416. | * sees that we've accumulated a
  3417. | * token and flags that we need to
  3418. | * try matching the token before
  3419. | * proceeding. But for input(),
  3420. | * there's no matching to consider.
  3421. | * So convert the EOB_ACT_LAST_MATCH
  3422. | * to EOB_ACT_END_OF_FILE.
  3423. | */
  3424. |
  3425. | /* Reset buffer status. */
  3426. | yyrestart( yyin );
  3427. |
  3428. | /*FALLTHROUGH*/
  3429. |
  3430. | case EOB_ACT_END_OF_FILE:
  3431. | {
  3432. | if ( yywrap( ) )
  3433. | return 0;
  3434. |
  3435. | if ( ! (yy_did_buffer_switch_on_eof) )
  3436. | YY_NEW_FILE;
  3437. | #ifdef __cplusplus
  3438. | return yyinput();
  3439. | #else
  3440. | return input();
  3441. | #endif
  3442. | }
  3443. |
  3444. | case EOB_ACT_CONTINUE_SCAN:
  3445. | (yy_c_buf_p) = (yytext_ptr) + offset;
  3446. | break;
  3447. | }
  3448. | }
  3449. | }
  3450. |
  3451. | c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
  3452. | *(yy_c_buf_p) = '\0'; /* preserve yytext */
  3453. | (yy_hold_char) = *++(yy_c_buf_p);
  3454. |
  3455. | return c;
  3456. | }
  3457. | #endif /* ifndef YY_NO_INPUT */
  3458. |
  3459. | /** Immediately switch to a different input stream.
  3460. | * @param input_file A readable stream.
  3461. | *
  3462. | * @note This function does not reset the start condition to @c INITIAL .
  3463. | */
  3464. | void yyrestart (FILE * input_file )
  3465. | {
  3466. |
  3467. | if ( ! YY_CURRENT_BUFFER ){
  3468. | yyensure_buffer_stack ();
  3469. | YY_CURRENT_BUFFER_LVALUE =
  3470. | yy_create_buffer( yyin, YY_BUF_SIZE );
  3471. | }
  3472. |
  3473. | yy_init_buffer( YY_CURRENT_BUFFER, input_file );
  3474. | yy_load_buffer_state( );
  3475. | }
  3476. |
  3477. | /** Switch to a different input buffer.
  3478. | * @param new_buffer The new input buffer.
  3479. | *
  3480. | */
  3481. | void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
  3482. | {
  3483. |
  3484. | /* TODO. We should be able to replace this entire function body
  3485. | * with
  3486. | * yypop_buffer_state();
  3487. | * yypush_buffer_state(new_buffer);
  3488. | */
  3489. | yyensure_buffer_stack ();
  3490. | if ( YY_CURRENT_BUFFER == new_buffer )
  3491. | return;
  3492. |
  3493. | if ( YY_CURRENT_BUFFER )
  3494. | {
  3495. | /* Flush out information for old buffer. */
  3496. | *(yy_c_buf_p) = (yy_hold_char);
  3497. | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
  3498. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  3499. | }
  3500. |
  3501. | YY_CURRENT_BUFFER_LVALUE = new_buffer;
  3502. | yy_load_buffer_state( );
  3503. |
  3504. | /* We don't actually know whether we did this switch during
  3505. | * EOF (yywrap()) processing, but the only time this flag
  3506. | * is looked at is after yywrap() is called, so it's safe
  3507. | * to go ahead and always set it.
  3508. | */
  3509. | (yy_did_buffer_switch_on_eof) = 1;
  3510. | }
  3511. |
  3512. | static void yy_load_buffer_state (void)
  3513. | {
  3514. | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  3515. | (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
  3516. | yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
  3517. | (yy_hold_char) = *(yy_c_buf_p);
  3518. | }
  3519. |
  3520. | /** Allocate and initialize an input buffer state.
  3521. | * @param file A readable stream.
  3522. | * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
  3523. | *
  3524. | * @return the allocated buffer state.
  3525. | */
  3526. | YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
  3527. | {
  3528. | YY_BUFFER_STATE b;
  3529. |
  3530. | b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
  3531. | if ( ! b )
  3532. | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  3533. |
  3534. | b->yy_buf_size = size;
  3535. |
  3536. | /* yy_ch_buf has to be 2 characters longer than the size given because
  3537. | * we need to put in 2 end-of-buffer characters.
  3538. | */
  3539. | b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) );
  3540. | if ( ! b->yy_ch_buf )
  3541. | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  3542. |
  3543. | b->yy_is_our_buffer = 1;
  3544. |
  3545. | yy_init_buffer( b, file );
  3546. |
  3547. | return b;
  3548. | }
  3549. |
  3550. | /** Destroy the buffer.
  3551. | * @param b a buffer created with yy_create_buffer()
  3552. | *
  3553. | */
  3554. | void yy_delete_buffer (YY_BUFFER_STATE b )
  3555. | {
  3556. |
  3557. | if ( ! b )
  3558. | return;
  3559. |
  3560. | if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
  3561. | YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
  3562. |
  3563. | if ( b->yy_is_our_buffer )
  3564. | yyfree( (void *) b->yy_ch_buf );
  3565. |
  3566. | yyfree( (void *) b );
  3567. | }
  3568. |
  3569. | /* Initializes or reinitializes a buffer.
  3570. | * This function is sometimes called more than once on the same buffer,
  3571. | * such as during a yyrestart() or at EOF.
  3572. | */
  3573. | static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
  3574. |
  3575. | {
  3576. | int oerrno = errno;
  3577. |
  3578. | yy_flush_buffer( b );
  3579. |
  3580. | b->yy_input_file = file;
  3581. | b->yy_fill_buffer = 1;
  3582. |
  3583. | /* If b is the current buffer, then yy_init_buffer was _probably_
  3584. | * called from yyrestart() or through yy_get_next_buffer.
  3585. | * In that case, we don't want to reset the lineno or column.
  3586. | */
  3587. | if (b != YY_CURRENT_BUFFER){
  3588. | b->yy_bs_lineno = 1;
  3589. | b->yy_bs_column = 0;
  3590. | }
  3591. |
  3592. | b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
  3593. |
  3594. | errno = oerrno;
  3595. | }
  3596. |
  3597. | /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
  3598. | * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
  3599. | *
  3600. | */
  3601. | void yy_flush_buffer (YY_BUFFER_STATE b )
  3602. | {
  3603. | if ( ! b )
  3604. | return;
  3605. |
  3606. | b->yy_n_chars = 0;
  3607. |
  3608. | /* We always need two end-of-buffer characters. The first causes
  3609. | * a transition to the end-of-buffer state. The second causes
  3610. | * a jam in that state.
  3611. | */
  3612. | b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
  3613. | b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
  3614. |
  3615. | b->yy_buf_pos = &b->yy_ch_buf[0];
  3616. |
  3617. | b->yy_at_bol = 1;
  3618. | b->yy_buffer_status = YY_BUFFER_NEW;
  3619. |
  3620. | if ( b == YY_CURRENT_BUFFER )
  3621. | yy_load_buffer_state( );
  3622. | }
  3623. |
  3624. | /** Pushes the new state onto the stack. The new state becomes
  3625. | * the current state. This function will allocate the stack
  3626. | * if necessary.
  3627. | * @param new_buffer The new state.
  3628. | *
  3629. | */
  3630. | void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
  3631. | {
  3632. | if (new_buffer == NULL)
  3633. | return;
  3634. |
  3635. | yyensure_buffer_stack();
  3636. |
  3637. | /* This block is copied from yy_switch_to_buffer. */
  3638. | if ( YY_CURRENT_BUFFER )
  3639. | {
  3640. | /* Flush out information for old buffer. */
  3641. | *(yy_c_buf_p) = (yy_hold_char);
  3642. | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
  3643. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  3644. | }
  3645. |
  3646. | /* Only push if top exists. Otherwise, replace top. */
  3647. | if (YY_CURRENT_BUFFER)
  3648. | (yy_buffer_stack_top)++;
  3649. | YY_CURRENT_BUFFER_LVALUE = new_buffer;
  3650. |
  3651. | /* copied from yy_switch_to_buffer. */
  3652. | yy_load_buffer_state( );
  3653. | (yy_did_buffer_switch_on_eof) = 1;
  3654. | }
  3655. |
  3656. | /** Removes and deletes the top of the stack, if present.
  3657. | * The next element becomes the new top.
  3658. | *
  3659. | */
  3660. | void yypop_buffer_state (void)
  3661. | {
  3662. | if (!YY_CURRENT_BUFFER)
  3663. | return;
  3664. |
  3665. | yy_delete_buffer(YY_CURRENT_BUFFER );
  3666. | YY_CURRENT_BUFFER_LVALUE = NULL;
  3667. | if ((yy_buffer_stack_top) > 0)
  3668. | --(yy_buffer_stack_top);
  3669. |
  3670. | if (YY_CURRENT_BUFFER) {
  3671. | yy_load_buffer_state( );
  3672. | (yy_did_buffer_switch_on_eof) = 1;
  3673. | }
  3674. | }
  3675. |
  3676. | /* Allocates the stack if it does not exist.
  3677. | * Guarantees space for at least one push.
  3678. | */
  3679. | static void yyensure_buffer_stack (void)
  3680. | {
  3681. | yy_size_t num_to_alloc;
  3682. |
  3683. | if (!(yy_buffer_stack)) {
  3684. |
  3685. | /* First allocation is just for 2 elements, since we don't know if this
  3686. | * scanner will even need a stack. We use 2 instead of 1 to avoid an
  3687. | * immediate realloc on the next call.
  3688. | */
  3689. | num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
  3690. | (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
  3691. | (num_to_alloc * sizeof(struct yy_buffer_state*)
  3692. | );
  3693. | if ( ! (yy_buffer_stack) )
  3694. | YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
  3695. |
  3696. | memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
  3697. |
  3698. | (yy_buffer_stack_max) = num_to_alloc;
  3699. | (yy_buffer_stack_top) = 0;
  3700. | return;
  3701. | }
  3702. |
  3703. | if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
  3704. |
  3705. | /* Increase the buffer to prepare for a possible push. */
  3706. | yy_size_t grow_size = 8 /* arbitrary grow size */;
  3707. |
  3708. | num_to_alloc = (yy_buffer_stack_max) + grow_size;
  3709. | (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
  3710. | ((yy_buffer_stack),
  3711. | num_to_alloc * sizeof(struct yy_buffer_state*)
  3712. | );
  3713. | if ( ! (yy_buffer_stack) )
  3714. | YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
  3715. |
  3716. | /* zero only the new slots.*/
  3717. | memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
  3718. | (yy_buffer_stack_max) = num_to_alloc;
  3719. | }
  3720. | }
  3721. |
  3722. | /** Setup the input buffer state to scan directly from a user-specified character buffer.
  3723. | * @param base the character buffer
  3724. | * @param size the size in bytes of the character buffer
  3725. | *
  3726. | * @return the newly allocated buffer state object.
  3727. | */
  3728. | YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
  3729. | {
  3730. | YY_BUFFER_STATE b;
  3731. |
  3732. | if ( size < 2 ||
  3733. | base[size-2] != YY_END_OF_BUFFER_CHAR ||
  3734. | base[size-1] != YY_END_OF_BUFFER_CHAR )
  3735. | /* They forgot to leave room for the EOB's. */
  3736. | return NULL;
  3737. |
  3738. | b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
  3739. | if ( ! b )
  3740. | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
  3741. |
  3742. | b->yy_buf_size = (int) (size - 2); /* "- 2" to take care of EOB's */
  3743. | b->yy_buf_pos = b->yy_ch_buf = base;
  3744. | b->yy_is_our_buffer = 0;
  3745. | b->yy_input_file = NULL;
  3746. | b->yy_n_chars = b->yy_buf_size;
  3747. | b->yy_is_interactive = 0;
  3748. | b->yy_at_bol = 1;
  3749. | b->yy_fill_buffer = 0;
  3750. | b->yy_buffer_status = YY_BUFFER_NEW;
  3751. |
  3752. | yy_switch_to_buffer( b );
  3753. |
  3754. | return b;
  3755. | }
  3756. |
  3757. | /** Setup the input buffer state to scan a string. The next call to yylex() will
  3758. | * scan from a @e copy of @a str.
  3759. | * @param yystr a NUL-terminated string to scan
  3760. | *
  3761. | * @return the newly allocated buffer state object.
  3762. | * @note If you want to scan bytes that may contain NUL values, then use
  3763. | * yy_scan_bytes() instead.
  3764. | */
  3765. | YY_BUFFER_STATE yy_scan_string (const char * yystr )
  3766. | {
  3767. |
  3768. | return yy_scan_bytes( yystr, (int) strlen(yystr) );
  3769. | }
  3770. |
  3771. | /** Setup the input buffer state to scan the given bytes. The next call to yylex() will
  3772. | * scan from a @e copy of @a bytes.
  3773. | * @param yybytes the byte buffer to scan
  3774. | * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
  3775. | *
  3776. | * @return the newly allocated buffer state object.
  3777. | */
  3778. | YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, int _yybytes_len )
  3779. | {
  3780. | YY_BUFFER_STATE b;
  3781. | char *buf;
  3782. | yy_size_t n;
  3783. | int i;
  3784. |
  3785. | /* Get memory for full buffer, including space for trailing EOB's. */
  3786. | n = (yy_size_t) (_yybytes_len + 2);
  3787. | buf = (char *) yyalloc( n );
  3788. | if ( ! buf )
  3789. | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
  3790. |
  3791. | for ( i = 0; i < _yybytes_len; ++i )
  3792. | buf[i] = yybytes[i];
  3793. |
  3794. | buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
  3795. |
  3796. | b = yy_scan_buffer( buf, n );
  3797. | if ( ! b )
  3798. | YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
  3799. |
  3800. | /* It's okay to grow etc. this buffer, and we should throw it
  3801. | * away when we're done.
  3802. | */
  3803. | b->yy_is_our_buffer = 1;
  3804. |
  3805. | return b;
  3806. | }
  3807. |
  3808. | #ifndef YY_EXIT_FAILURE
  3809. | #define YY_EXIT_FAILURE 2
  3810. | #endif
  3811. |
  3812. | static void yynoreturn yy_fatal_error (const char* msg )
  3813. | {
  3814. | fprintf( stderr, "%s\n", msg );
  3815. | exit( YY_EXIT_FAILURE );
  3816. | }
  3817. |
  3818. | /* Redefine yyless() so it works in section 3 code. */
  3819. |
  3820. | #undef yyless
  3821. | #define yyless(n) \
  3822. | do \
  3823. | { \
  3824. | /* Undo effects of setting up yytext. */ \
  3825. | int yyless_macro_arg = (n); \
  3826. | YY_LESS_LINENO(yyless_macro_arg);\
  3827. | yytext[yyleng] = (yy_hold_char); \
  3828. | (yy_c_buf_p) = yytext + yyless_macro_arg; \
  3829. | (yy_hold_char) = *(yy_c_buf_p); \
  3830. | *(yy_c_buf_p) = '\0'; \
  3831. | yyleng = yyless_macro_arg; \
  3832. | } \
  3833. | while ( 0 )
  3834. |
  3835. | /* Accessor methods (get/set functions) to struct members. */
  3836. |
  3837. | /** Get the current line number.
  3838. | *
  3839. | */
  3840. | int yyget_lineno (void)
  3841. | {
  3842. |
  3843. | return yylineno;
  3844. | }
  3845. |
  3846. | /** Get the input stream.
  3847. | *
  3848. | */
  3849. | FILE *yyget_in (void)
  3850. | {
  3851. | return yyin;
  3852. | }
  3853. |
  3854. | /** Get the output stream.
  3855. | *
  3856. | */
  3857. | FILE *yyget_out (void)
  3858. | {
  3859. | return yyout;
  3860. | }
  3861. |
  3862. | /** Get the length of the current token.
  3863. | *
  3864. | */
  3865. | int yyget_leng (void)
  3866. | {
  3867. | return yyleng;
  3868. | }
  3869. |
  3870. | /** Get the current token.
  3871. | *
  3872. | */
  3873. |
  3874. | char *yyget_text (void)
  3875. | {
  3876. | return yytext;
  3877. | }
  3878. |
  3879. | /** Set the current line number.
  3880. | * @param _line_number line number
  3881. | *
  3882. | */
  3883. | void yyset_lineno (int _line_number )
  3884. | {
  3885. |
  3886. | yylineno = _line_number;
  3887. | }
  3888. |
  3889. | /** Set the input stream. This does not discard the current
  3890. | * input buffer.
  3891. | * @param _in_str A readable stream.
  3892. | *
  3893. | * @see yy_switch_to_buffer
  3894. | */
  3895. | void yyset_in (FILE * _in_str )
  3896. | {
  3897. | yyin = _in_str ;
  3898. | }
  3899. |
  3900. | void yyset_out (FILE * _out_str )
  3901. | {
  3902. | yyout = _out_str ;
  3903. | }
  3904. |
  3905. | int yyget_debug (void)
  3906. | {
  3907. | return yy_flex_debug;
  3908. | }
  3909. |
  3910. | void yyset_debug (int _bdebug )
  3911. | {
  3912. | yy_flex_debug = _bdebug ;
  3913. | }
  3914. |
  3915. | static int yy_init_globals (void)
  3916. | {
  3917. | /* Initialization is the same as for the non-reentrant scanner.
  3918. | * This function is called from yylex_destroy(), so don't allocate here.
  3919. | */
  3920. |
  3921. | (yy_buffer_stack) = NULL;
  3922. | (yy_buffer_stack_top) = 0;
  3923. | (yy_buffer_stack_max) = 0;
  3924. | (yy_c_buf_p) = NULL;
  3925. | (yy_init) = 0;
  3926. | (yy_start) = 0;
  3927. |
  3928. | (yy_state_buf) = 0;
  3929. | (yy_state_ptr) = 0;
  3930. | (yy_full_match) = 0;
  3931. | (yy_lp) = 0;
  3932. |
  3933. | /* Defined in main.c */
  3934. | #ifdef YY_STDINIT
  3935. | yyin = stdin;
  3936. | yyout = stdout;
  3937. | #else
  3938. | yyin = NULL;
  3939. | yyout = NULL;
  3940. | #endif
  3941. |
  3942. | /* For future reference: Set errno on error, since we are called by
  3943. | * yylex_init()
  3944. | */
  3945. | return 0;
  3946. | }
  3947. |
  3948. | /* yylex_destroy is for both reentrant and non-reentrant scanners. */
  3949. | int yylex_destroy (void)
  3950. | {
  3951. |
  3952. | /* Pop the buffer stack, destroying each element. */
  3953. | while(YY_CURRENT_BUFFER){
  3954. | yy_delete_buffer( YY_CURRENT_BUFFER );
  3955. | YY_CURRENT_BUFFER_LVALUE = NULL;
  3956. | yypop_buffer_state();
  3957. | }
  3958. |
  3959. | /* Destroy the stack itself. */
  3960. | yyfree((yy_buffer_stack) );
  3961. | (yy_buffer_stack) = NULL;
  3962. |
  3963. | yyfree ( (yy_state_buf) );
  3964. | (yy_state_buf) = NULL;
  3965. |
  3966. | /* Reset the globals. This is important in a non-reentrant scanner so the next time
  3967. | * yylex() is called, initialization will occur. */
  3968. | yy_init_globals( );
  3969. |
  3970. | return 0;
  3971. | }
  3972. |
  3973. | /*
  3974. | * Internal utility routines.
  3975. | */
  3976. |
  3977. | #ifndef yytext_ptr
  3978. | static void yy_flex_strncpy (char* s1, const char * s2, int n )
  3979. | {
  3980. |
  3981. | int i;
  3982. | for ( i = 0; i < n; ++i )
  3983. | s1[i] = s2[i];
  3984. | }
  3985. | #endif
  3986. |
  3987. | #ifdef YY_NEED_STRLEN
  3988. | static int yy_flex_strlen (const char * s )
  3989. | {
  3990. | int n;
  3991. | for ( n = 0; s[n]; ++n )
  3992. | ;
  3993. |
  3994. | return n;
  3995. | }
  3996. | #endif
  3997. |
  3998. | void *yyalloc (yy_size_t size )
  3999. | {
  4000. | return malloc(size);
  4001. | }
  4002. |
  4003. | void *yyrealloc (void * ptr, yy_size_t size )
  4004. | {
  4005. |
  4006. | /* The cast to (char *) in the following accommodates both
  4007. | * implementations that use char* generic pointers, and those
  4008. | * that use void* generic pointers. It works with the latter
  4009. | * because both ANSI C and C++ allow castless assignment from
  4010. | * any pointer type to void*, and deal with argument conversions
  4011. | * as though doing an assignment.
  4012. | */
  4013. | return realloc(ptr, size);
  4014. | }
  4015. |
  4016. | void yyfree (void * ptr )
  4017. | {
  4018. | free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
  4019. | }
  4020. |
  4021. | #define YYTABLES_NAME "yytables"
  4022. |
  4023. | #line 10 "conftest.l"
  4024. |
  4025. | #ifdef YYTEXT_POINTER
  4026. | extern char *yytext;
  4027. | #endif
  4028. | int
  4029. | main (void)
  4030. | {
  4031. | return ! yylex () + ! yywrap ();
  4032. | }
  4033. configure:5124: gcc -o conftest -g -O2 conftest.c -ll -ldl -luuid -lparted >&5
  4034. /usr/bin/ld: cannot find -ll
  4035. collect2: error: ld returned 1 exit status
  4036. configure:5124: $? = 1
  4037. configure: failed program was:
  4038. | /* confdefs.h */
  4039. | #define PACKAGE_NAME "GNU Hurd"
  4040. | #define PACKAGE_TARNAME "hurd"
  4041. | #define PACKAGE_VERSION "0.9"
  4042. | #define PACKAGE_STRING "GNU Hurd 0.9"
  4043. | #define PACKAGE_BUGREPORT "[email protected]"
  4044. | #define PACKAGE_URL "http://www.gnu.org/software/hurd/"
  4045. | #define HAVE_MIG_RETCODE 1
  4046. | #define HAVE_FILE_EXEC_PATHS 1
  4047. | #define HAVE_EXEC_EXEC_PATHS 1
  4048. | #define HAVE__HURD_EXEC_PATHS 1
  4049. | #define UTIME_NOW -1
  4050. | #define UTIME_OMIT -2
  4051. | #define HAVE_LIBCRYPT 1
  4052. | #define STDC_HEADERS 1
  4053. | #define HAVE_SYS_TYPES_H 1
  4054. | #define HAVE_SYS_STAT_H 1
  4055. | #define HAVE_STDLIB_H 1
  4056. | #define HAVE_STRING_H 1
  4057. | #define HAVE_MEMORY_H 1
  4058. | #define HAVE_STRINGS_H 1
  4059. | #define HAVE_INTTYPES_H 1
  4060. | #define HAVE_STDINT_H 1
  4061. | #define HAVE_UNISTD_H 1
  4062. | #define HAVE_PARTED_PARTED_H 1
  4063. | #define HAVE_LIBPARTED 1
  4064. | #define HAVE_LIBUUID 1
  4065. | #define HAVE_LIBDL 1
  4066. | /* end confdefs.h. */
  4067. |
  4068. | #line 3 "lex.yy.c"
  4069. |
  4070. | #define YY_INT_ALIGNED short int
  4071. |
  4072. | /* A lexical scanner generated by flex */
  4073. |
  4074. | #define FLEX_SCANNER
  4075. | #define YY_FLEX_MAJOR_VERSION 2
  4076. | #define YY_FLEX_MINOR_VERSION 6
  4077. | #define YY_FLEX_SUBMINOR_VERSION 4
  4078. | #if YY_FLEX_SUBMINOR_VERSION > 0
  4079. | #define FLEX_BETA
  4080. | #endif
  4081. |
  4082. | /* First, we deal with platform-specific or compiler-specific issues. */
  4083. |
  4084. | /* begin standard C headers. */
  4085. | #include <stdio.h>
  4086. | #include <string.h>
  4087. | #include <errno.h>
  4088. | #include <stdlib.h>
  4089. |
  4090. | /* end standard C headers. */
  4091. |
  4092. | /* flex integer type definitions */
  4093. |
  4094. | #ifndef FLEXINT_H
  4095. | #define FLEXINT_H
  4096. |
  4097. | /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
  4098. |
  4099. | #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
  4100. |
  4101. | /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
  4102. | * if you want the limit (max/min) macros for int types.
  4103. | */
  4104. | #ifndef __STDC_LIMIT_MACROS
  4105. | #define __STDC_LIMIT_MACROS 1
  4106. | #endif
  4107. |
  4108. | #include <inttypes.h>
  4109. | typedef int8_t flex_int8_t;
  4110. | typedef uint8_t flex_uint8_t;
  4111. | typedef int16_t flex_int16_t;
  4112. | typedef uint16_t flex_uint16_t;
  4113. | typedef int32_t flex_int32_t;
  4114. | typedef uint32_t flex_uint32_t;
  4115. | #else
  4116. | typedef signed char flex_int8_t;
  4117. | typedef short int flex_int16_t;
  4118. | typedef int flex_int32_t;
  4119. | typedef unsigned char flex_uint8_t;
  4120. | typedef unsigned short int flex_uint16_t;
  4121. | typedef unsigned int flex_uint32_t;
  4122. |
  4123. | /* Limits of integral types. */
  4124. | #ifndef INT8_MIN
  4125. | #define INT8_MIN (-128)
  4126. | #endif
  4127. | #ifndef INT16_MIN
  4128. | #define INT16_MIN (-32767-1)
  4129. | #endif
  4130. | #ifndef INT32_MIN
  4131. | #define INT32_MIN (-2147483647-1)
  4132. | #endif
  4133. | #ifndef INT8_MAX
  4134. | #define INT8_MAX (127)
  4135. | #endif
  4136. | #ifndef INT16_MAX
  4137. | #define INT16_MAX (32767)
  4138. | #endif
  4139. | #ifndef INT32_MAX
  4140. | #define INT32_MAX (2147483647)
  4141. | #endif
  4142. | #ifndef UINT8_MAX
  4143. | #define UINT8_MAX (255U)
  4144. | #endif
  4145. | #ifndef UINT16_MAX
  4146. | #define UINT16_MAX (65535U)
  4147. | #endif
  4148. | #ifndef UINT32_MAX
  4149. | #define UINT32_MAX (4294967295U)
  4150. | #endif
  4151. |
  4152. | #ifndef SIZE_MAX
  4153. | #define SIZE_MAX (~(size_t)0)
  4154. | #endif
  4155. |
  4156. | #endif /* ! C99 */
  4157. |
  4158. | #endif /* ! FLEXINT_H */
  4159. |
  4160. | /* begin standard C++ headers. */
  4161. |
  4162. | /* TODO: this is always defined, so inline it */
  4163. | #define yyconst const
  4164. |
  4165. | #if defined(__GNUC__) && __GNUC__ >= 3
  4166. | #define yynoreturn __attribute__((__noreturn__))
  4167. | #else
  4168. | #define yynoreturn
  4169. | #endif
  4170. |
  4171. | /* Returned upon end-of-file. */
  4172. | #define YY_NULL 0
  4173. |
  4174. | /* Promotes a possibly negative, possibly signed char to an
  4175. | * integer in range [0..255] for use as an array index.
  4176. | */
  4177. | #define YY_SC_TO_UI(c) ((YY_CHAR) (c))
  4178. |
  4179. | /* Enter a start condition. This macro really ought to take a parameter,
  4180. | * but we do it the disgusting crufty way forced on us by the ()-less
  4181. | * definition of BEGIN.
  4182. | */
  4183. | #define BEGIN (yy_start) = 1 + 2 *
  4184. | /* Translate the current start state into a value that can be later handed
  4185. | * to BEGIN to return to the state. The YYSTATE alias is for lex
  4186. | * compatibility.
  4187. | */
  4188. | #define YY_START (((yy_start) - 1) / 2)
  4189. | #define YYSTATE YY_START
  4190. | /* Action number for EOF rule of a given start state. */
  4191. | #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  4192. | /* Special action meaning "start processing a new file". */
  4193. | #define YY_NEW_FILE yyrestart( yyin )
  4194. | #define YY_END_OF_BUFFER_CHAR 0
  4195. |
  4196. | /* Size of default input buffer. */
  4197. | #ifndef YY_BUF_SIZE
  4198. | #ifdef __ia64__
  4199. | /* On IA-64, the buffer size is 16k, not 8k.
  4200. | * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
  4201. | * Ditto for the __ia64__ case accordingly.
  4202. | */
  4203. | #define YY_BUF_SIZE 32768
  4204. | #else
  4205. | #define YY_BUF_SIZE 16384
  4206. | #endif /* __ia64__ */
  4207. | #endif
  4208. |
  4209. | /* The state buf must be large enough to hold one state per character in the main buffer.
  4210. | */
  4211. | #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
  4212. |
  4213. | #ifndef YY_TYPEDEF_YY_BUFFER_STATE
  4214. | #define YY_TYPEDEF_YY_BUFFER_STATE
  4215. | typedef struct yy_buffer_state *YY_BUFFER_STATE;
  4216. | #endif
  4217. |
  4218. | #ifndef YY_TYPEDEF_YY_SIZE_T
  4219. | #define YY_TYPEDEF_YY_SIZE_T
  4220. | typedef size_t yy_size_t;
  4221. | #endif
  4222. |
  4223. | extern int yyleng;
  4224. |
  4225. | extern FILE *yyin, *yyout;
  4226. |
  4227. | #define EOB_ACT_CONTINUE_SCAN 0
  4228. | #define EOB_ACT_END_OF_FILE 1
  4229. | #define EOB_ACT_LAST_MATCH 2
  4230. |
  4231. | #define YY_LESS_LINENO(n)
  4232. | #define YY_LINENO_REWIND_TO(ptr)
  4233. |
  4234. | /* Return all but the first "n" matched characters back to the input stream. */
  4235. | #define yyless(n) \
  4236. | do \
  4237. | { \
  4238. | /* Undo effects of setting up yytext. */ \
  4239. | int yyless_macro_arg = (n); \
  4240. | YY_LESS_LINENO(yyless_macro_arg);\
  4241. | *yy_cp = (yy_hold_char); \
  4242. | YY_RESTORE_YY_MORE_OFFSET \
  4243. | (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
  4244. | YY_DO_BEFORE_ACTION; /* set up yytext again */ \
  4245. | } \
  4246. | while ( 0 )
  4247. | #define unput(c) yyunput( c, (yytext_ptr) )
  4248. |
  4249. | #ifndef YY_STRUCT_YY_BUFFER_STATE
  4250. | #define YY_STRUCT_YY_BUFFER_STATE
  4251. | struct yy_buffer_state
  4252. | {
  4253. | FILE *yy_input_file;
  4254. |
  4255. | char *yy_ch_buf; /* input buffer */
  4256. | char *yy_buf_pos; /* current position in input buffer */
  4257. |
  4258. | /* Size of input buffer in bytes, not including room for EOB
  4259. | * characters.
  4260. | */
  4261. | int yy_buf_size;
  4262. |
  4263. | /* Number of characters read into yy_ch_buf, not including EOB
  4264. | * characters.
  4265. | */
  4266. | int yy_n_chars;
  4267. |
  4268. | /* Whether we "own" the buffer - i.e., we know we created it,
  4269. | * and can realloc() it to grow it, and should free() it to
  4270. | * delete it.
  4271. | */
  4272. | int yy_is_our_buffer;
  4273. |
  4274. | /* Whether this is an "interactive" input source; if so, and
  4275. | * if we're using stdio for input, then we want to use getc()
  4276. | * instead of fread(), to make sure we stop fetching input after
  4277. | * each newline.
  4278. | */
  4279. | int yy_is_interactive;
  4280. |
  4281. | /* Whether we're considered to be at the beginning of a line.
  4282. | * If so, '^' rules will be active on the next match, otherwise
  4283. | * not.
  4284. | */
  4285. | int yy_at_bol;
  4286. |
  4287. | int yy_bs_lineno; /**< The line count. */
  4288. | int yy_bs_column; /**< The column count. */
  4289. |
  4290. | /* Whether to try to fill the input buffer when we reach the
  4291. | * end of it.
  4292. | */
  4293. | int yy_fill_buffer;
  4294. |
  4295. | int yy_buffer_status;
  4296. |
  4297. | #define YY_BUFFER_NEW 0
  4298. | #define YY_BUFFER_NORMAL 1
  4299. | /* When an EOF's been seen but there's still some text to process
  4300. | * then we mark the buffer as YY_EOF_PENDING, to indicate that we
  4301. | * shouldn't try reading from the input source any more. We might
  4302. | * still have a bunch of tokens to match, though, because of
  4303. | * possible backing-up.
  4304. | *
  4305. | * When we actually see the EOF, we change the status to "new"
  4306. | * (via yyrestart()), so that the user can continue scanning by
  4307. | * just pointing yyin at a new input file.
  4308. | */
  4309. | #define YY_BUFFER_EOF_PENDING 2
  4310. |
  4311. | };
  4312. | #endif /* !YY_STRUCT_YY_BUFFER_STATE */
  4313. |
  4314. | /* Stack of input buffers. */
  4315. | static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
  4316. | static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
  4317. | static YY_BUFFER_STATE * yy_buffer_stack = NULL; /**< Stack as an array. */
  4318. |
  4319. | /* We provide macros for accessing buffer states in case in the
  4320. | * future we want to put the buffer states in a more general
  4321. | * "scanner state".
  4322. | *
  4323. | * Returns the top of the stack, or NULL.
  4324. | */
  4325. | #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
  4326. | ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
  4327. | : NULL)
  4328. | /* Same as previous macro, but useful when we know that the buffer stack is not
  4329. | * NULL or when we need an lvalue. For internal use only.
  4330. | */
  4331. | #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
  4332. |
  4333. | /* yy_hold_char holds the character lost when yytext is formed. */
  4334. | static char yy_hold_char;
  4335. | static int yy_n_chars; /* number of characters read into yy_ch_buf */
  4336. | int yyleng;
  4337. |
  4338. | /* Points to current character in buffer. */
  4339. | static char *yy_c_buf_p = NULL;
  4340. | static int yy_init = 0; /* whether we need to initialize */
  4341. | static int yy_start = 0; /* start state number */
  4342. |
  4343. | /* Flag which is used to allow yywrap()'s to do buffer switches
  4344. | * instead of setting up a fresh yyin. A bit of a hack ...
  4345. | */
  4346. | static int yy_did_buffer_switch_on_eof;
  4347. |
  4348. | void yyrestart ( FILE *input_file );
  4349. | void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer );
  4350. | YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size );
  4351. | void yy_delete_buffer ( YY_BUFFER_STATE b );
  4352. | void yy_flush_buffer ( YY_BUFFER_STATE b );
  4353. | void yypush_buffer_state ( YY_BUFFER_STATE new_buffer );
  4354. | void yypop_buffer_state ( void );
  4355. |
  4356. | static void yyensure_buffer_stack ( void );
  4357. | static void yy_load_buffer_state ( void );
  4358. | static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file );
  4359. | #define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER )
  4360. |
  4361. | YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size );
  4362. | YY_BUFFER_STATE yy_scan_string ( const char *yy_str );
  4363. | YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len );
  4364. |
  4365. | void *yyalloc ( yy_size_t );
  4366. | void *yyrealloc ( void *, yy_size_t );
  4367. | void yyfree ( void * );
  4368. |
  4369. | #define yy_new_buffer yy_create_buffer
  4370. | #define yy_set_interactive(is_interactive) \
  4371. | { \
  4372. | if ( ! YY_CURRENT_BUFFER ){ \
  4373. | yyensure_buffer_stack (); \
  4374. | YY_CURRENT_BUFFER_LVALUE = \
  4375. | yy_create_buffer( yyin, YY_BUF_SIZE ); \
  4376. | } \
  4377. | YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
  4378. | }
  4379. | #define yy_set_bol(at_bol) \
  4380. | { \
  4381. | if ( ! YY_CURRENT_BUFFER ){\
  4382. | yyensure_buffer_stack (); \
  4383. | YY_CURRENT_BUFFER_LVALUE = \
  4384. | yy_create_buffer( yyin, YY_BUF_SIZE ); \
  4385. | } \
  4386. | YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
  4387. | }
  4388. | #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
  4389. |
  4390. | /* Begin user sect3 */
  4391. | typedef flex_uint8_t YY_CHAR;
  4392. |
  4393. | FILE *yyin = NULL, *yyout = NULL;
  4394. |
  4395. | typedef int yy_state_type;
  4396. |
  4397. | extern int yylineno;
  4398. | int yylineno = 1;
  4399. |
  4400. | extern char *yytext;
  4401. | #ifdef yytext_ptr
  4402. | #undef yytext_ptr
  4403. | #endif
  4404. | #define yytext_ptr yytext
  4405. |
  4406. | static yy_state_type yy_get_previous_state ( void );
  4407. | static yy_state_type yy_try_NUL_trans ( yy_state_type current_state );
  4408. | static int yy_get_next_buffer ( void );
  4409. | static void yynoreturn yy_fatal_error ( const char* msg );
  4410. |
  4411. | /* Done after the current pattern has been matched and before the
  4412. | * corresponding action - sets up yytext.
  4413. | */
  4414. | #define YY_DO_BEFORE_ACTION \
  4415. | (yytext_ptr) = yy_bp; \
  4416. | (yytext_ptr) -= (yy_more_len); \
  4417. | yyleng = (int) (yy_cp - (yytext_ptr)); \
  4418. | (yy_hold_char) = *yy_cp; \
  4419. | *yy_cp = '\0'; \
  4420. | (yy_c_buf_p) = yy_cp;
  4421. | #define YY_NUM_RULES 8
  4422. | #define YY_END_OF_BUFFER 9
  4423. | /* This struct is not used in this scanner,
  4424. | but its presence is necessary. */
  4425. | struct yy_trans_info
  4426. | {
  4427. | flex_int32_t yy_verify;
  4428. | flex_int32_t yy_nxt;
  4429. | };
  4430. | static const flex_int16_t yy_acclist[23] =
  4431. | { 0,
  4432. | 9, 7, 8, 8, 1, 7, 8, 2, 7, 8,
  4433. | 3, 7, 8, 4, 7, 8, 5, 7, 8, 6,
  4434. | 7, 8
  4435. | } ;
  4436. |
  4437. | static const flex_int16_t yy_accept[14] =
  4438. | { 0,
  4439. | 1, 1, 1, 2, 4, 5, 8, 11, 14, 17,
  4440. | 20, 23, 23
  4441. | } ;
  4442. |
  4443. | static const YY_CHAR yy_ec[256] =
  4444. | { 0,
  4445. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
  4446. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4447. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4448. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4449. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4450. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4451. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4452. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4453. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4454. | 1, 1, 1, 1, 1, 1, 3, 4, 5, 6,
  4455. |
  4456. | 7, 8, 1, 1, 1, 1, 1, 1, 1, 1,
  4457. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4458. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4459. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4460. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4461. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4462. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4463. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4464. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4465. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4466. |
  4467. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4468. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4469. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4470. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4471. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  4472. | 1, 1, 1, 1, 1
  4473. | } ;
  4474. |
  4475. | static const YY_CHAR yy_meta[9] =
  4476. | { 0,
  4477. | 1, 1, 1, 1, 1, 1, 1, 1
  4478. | } ;
  4479. |
  4480. | static const flex_int16_t yy_base[13] =
  4481. | { 0,
  4482. | 0, 0, 9, 10, 10, 10, 10, 10, 10, 10,
  4483. | 10, 10
  4484. | } ;
  4485. |
  4486. | static const flex_int16_t yy_def[13] =
  4487. | { 0,
  4488. | 12, 1, 12, 12, 12, 12, 12, 12, 12, 12,
  4489. | 12, 0
  4490. | } ;
  4491. |
  4492. | static const flex_int16_t yy_nxt[19] =
  4493. | { 0,
  4494. | 4, 5, 6, 7, 8, 9, 10, 11, 12, 3,
  4495. | 12, 12, 12, 12, 12, 12, 12, 12
  4496. | } ;
  4497. |
  4498. | static const flex_int16_t yy_chk[19] =
  4499. | { 0,
  4500. | 1, 1, 1, 1, 1, 1, 1, 1, 3, 12,
  4501. | 12, 12, 12, 12, 12, 12, 12, 12
  4502. | } ;
  4503. |
  4504. | extern int yy_flex_debug;
  4505. | int yy_flex_debug = 0;
  4506. |
  4507. | static yy_state_type *yy_state_buf=0, *yy_state_ptr=0;
  4508. | static char *yy_full_match;
  4509. | static int yy_lp;
  4510. | #define REJECT \
  4511. | { \
  4512. | *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ \
  4513. | yy_cp = (yy_full_match); /* restore poss. backed-over text */ \
  4514. | ++(yy_lp); \
  4515. | goto find_rule; \
  4516. | }
  4517. |
  4518. | static int yy_more_flag = 0;
  4519. | static int yy_more_len = 0;
  4520. | #define yymore() ((yy_more_flag) = 1)
  4521. | #define YY_MORE_ADJ (yy_more_len)
  4522. | #define YY_RESTORE_YY_MORE_OFFSET
  4523. | char *yytext;
  4524. | #line 1 "conftest.l"
  4525. | #line 460 "lex.yy.c"
  4526. |
  4527. | #define INITIAL 0
  4528. |
  4529. | #ifndef YY_NO_UNISTD_H
  4530. | /* Special case for "unistd.h", since it is non-ANSI. We include it way
  4531. | * down here because we want the user's section 1 to have been scanned first.
  4532. | * The user has a chance to override it with an option.
  4533. | */
  4534. | #include <unistd.h>
  4535. | #endif
  4536. |
  4537. | #ifndef YY_EXTRA_TYPE
  4538. | #define YY_EXTRA_TYPE void *
  4539. | #endif
  4540. |
  4541. | static int yy_init_globals ( void );
  4542. |
  4543. | /* Accessor methods to globals.
  4544. | These are made visible to non-reentrant scanners for convenience. */
  4545. |
  4546. | int yylex_destroy ( void );
  4547. |
  4548. | int yyget_debug ( void );
  4549. |
  4550. | void yyset_debug ( int debug_flag );
  4551. |
  4552. | YY_EXTRA_TYPE yyget_extra ( void );
  4553. |
  4554. | void yyset_extra ( YY_EXTRA_TYPE user_defined );
  4555. |
  4556. | FILE *yyget_in ( void );
  4557. |
  4558. | void yyset_in ( FILE * _in_str );
  4559. |
  4560. | FILE *yyget_out ( void );
  4561. |
  4562. | void yyset_out ( FILE * _out_str );
  4563. |
  4564. | int yyget_leng ( void );
  4565. |
  4566. | char *yyget_text ( void );
  4567. |
  4568. | int yyget_lineno ( void );
  4569. |
  4570. | void yyset_lineno ( int _line_number );
  4571. |
  4572. | /* Macros after this point can all be overridden by user definitions in
  4573. | * section 1.
  4574. | */
  4575. |
  4576. | #ifndef YY_SKIP_YYWRAP
  4577. | #ifdef __cplusplus
  4578. | extern "C" int yywrap ( void );
  4579. | #else
  4580. | extern int yywrap ( void );
  4581. | #endif
  4582. | #endif
  4583. |
  4584. | #ifndef YY_NO_UNPUT
  4585. |
  4586. | static void yyunput ( int c, char *buf_ptr );
  4587. |
  4588. | #endif
  4589. |
  4590. | #ifndef yytext_ptr
  4591. | static void yy_flex_strncpy ( char *, const char *, int );
  4592. | #endif
  4593. |
  4594. | #ifdef YY_NEED_STRLEN
  4595. | static int yy_flex_strlen ( const char * );
  4596. | #endif
  4597. |
  4598. | #ifndef YY_NO_INPUT
  4599. | #ifdef __cplusplus
  4600. | static int yyinput ( void );
  4601. | #else
  4602. | static int input ( void );
  4603. | #endif
  4604. |
  4605. | #endif
  4606. |
  4607. | /* Amount of stuff to slurp up with each read. */
  4608. | #ifndef YY_READ_BUF_SIZE
  4609. | #ifdef __ia64__
  4610. | /* On IA-64, the buffer size is 16k, not 8k */
  4611. | #define YY_READ_BUF_SIZE 16384
  4612. | #else
  4613. | #define YY_READ_BUF_SIZE 8192
  4614. | #endif /* __ia64__ */
  4615. | #endif
  4616. |
  4617. | /* Copy whatever the last rule matched to the standard output. */
  4618. | #ifndef ECHO
  4619. | /* This used to be an fputs(), but since the string might contain NUL's,
  4620. | * we now use fwrite().
  4621. | */
  4622. | #define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
  4623. | #endif
  4624. |
  4625. | /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
  4626. | * is returned in "result".
  4627. | */
  4628. | #ifndef YY_INPUT
  4629. | #define YY_INPUT(buf,result,max_size) \
  4630. | if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
  4631. | { \
  4632. | int c = '*'; \
  4633. | int n; \
  4634. | for ( n = 0; n < max_size && \
  4635. | (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
  4636. | buf[n] = (char) c; \
  4637. | if ( c == '\n' ) \
  4638. | buf[n++] = (char) c; \
  4639. | if ( c == EOF && ferror( yyin ) ) \
  4640. | YY_FATAL_ERROR( "input in flex scanner failed" ); \
  4641. | result = n; \
  4642. | } \
  4643. | else \
  4644. | { \
  4645. | errno=0; \
  4646. | while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
  4647. | { \
  4648. | if( errno != EINTR) \
  4649. | { \
  4650. | YY_FATAL_ERROR( "input in flex scanner failed" ); \
  4651. | break; \
  4652. | } \
  4653. | errno=0; \
  4654. | clearerr(yyin); \
  4655. | } \
  4656. | }\
  4657. | \
  4658. |
  4659. | #endif
  4660. |
  4661. | /* No semi-colon after return; correct usage is to write "yyterminate();" -
  4662. | * we don't want an extra ';' after the "return" because that will cause
  4663. | * some compilers to complain about unreachable statements.
  4664. | */
  4665. | #ifndef yyterminate
  4666. | #define yyterminate() return YY_NULL
  4667. | #endif
  4668. |
  4669. | /* Number of entries by which start-condition stack grows. */
  4670. | #ifndef YY_START_STACK_INCR
  4671. | #define YY_START_STACK_INCR 25
  4672. | #endif
  4673. |
  4674. | /* Report a fatal error. */
  4675. | #ifndef YY_FATAL_ERROR
  4676. | #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
  4677. | #endif
  4678. |
  4679. | /* end tables serialization structures and prototypes */
  4680. |
  4681. | /* Default declaration of generated scanner - a define so the user can
  4682. | * easily add parameters.
  4683. | */
  4684. | #ifndef YY_DECL
  4685. | #define YY_DECL_IS_OURS 1
  4686. |
  4687. | extern int yylex (void);
  4688. |
  4689. | #define YY_DECL int yylex (void)
  4690. | #endif /* !YY_DECL */
  4691. |
  4692. | /* Code executed at the beginning of each rule, after yytext and yyleng
  4693. | * have been set up.
  4694. | */
  4695. | #ifndef YY_USER_ACTION
  4696. | #define YY_USER_ACTION
  4697. | #endif
  4698. |
  4699. | /* Code executed at the end of each rule. */
  4700. | #ifndef YY_BREAK
  4701. | #define YY_BREAK /*LINTED*/break;
  4702. | #endif
  4703. |
  4704. | #define YY_RULE_SETUP \
  4705. | YY_USER_ACTION
  4706. |
  4707. | /** The main scanner function which does all the work.
  4708. | */
  4709. | YY_DECL
  4710. | {
  4711. | yy_state_type yy_current_state;
  4712. | char *yy_cp, *yy_bp;
  4713. | int yy_act;
  4714. |
  4715. | if ( !(yy_init) )
  4716. | {
  4717. | (yy_init) = 1;
  4718. |
  4719. | #ifdef YY_USER_INIT
  4720. | YY_USER_INIT;
  4721. | #endif
  4722. |
  4723. | /* Create the reject buffer large enough to save one state per allowed character. */
  4724. | if ( ! (yy_state_buf) )
  4725. | (yy_state_buf) = (yy_state_type *)yyalloc(YY_STATE_BUF_SIZE );
  4726. | if ( ! (yy_state_buf) )
  4727. | YY_FATAL_ERROR( "out of dynamic memory in yylex()" );
  4728. |
  4729. | if ( ! (yy_start) )
  4730. | (yy_start) = 1; /* first start state */
  4731. |
  4732. | if ( ! yyin )
  4733. | yyin = stdin;
  4734. |
  4735. | if ( ! yyout )
  4736. | yyout = stdout;
  4737. |
  4738. | if ( ! YY_CURRENT_BUFFER ) {
  4739. | yyensure_buffer_stack ();
  4740. | YY_CURRENT_BUFFER_LVALUE =
  4741. | yy_create_buffer( yyin, YY_BUF_SIZE );
  4742. | }
  4743. |
  4744. | yy_load_buffer_state( );
  4745. | }
  4746. |
  4747. | {
  4748. | #line 1 "conftest.l"
  4749. |
  4750. | #line 685 "lex.yy.c"
  4751. |
  4752. | while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
  4753. | {
  4754. | (yy_more_len) = 0;
  4755. | if ( (yy_more_flag) )
  4756. | {
  4757. | (yy_more_len) = (int) ((yy_c_buf_p) - (yytext_ptr));
  4758. | (yy_more_flag) = 0;
  4759. | }
  4760. | yy_cp = (yy_c_buf_p);
  4761. |
  4762. | /* Support of yytext. */
  4763. | *yy_cp = (yy_hold_char);
  4764. |
  4765. | /* yy_bp points to the position in yy_ch_buf of the start of
  4766. | * the current run.
  4767. | */
  4768. | yy_bp = yy_cp;
  4769. |
  4770. | yy_current_state = (yy_start);
  4771. |
  4772. | (yy_state_ptr) = (yy_state_buf);
  4773. | *(yy_state_ptr)++ = yy_current_state;
  4774. |
  4775. | yy_match:
  4776. | do
  4777. | {
  4778. | YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
  4779. | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  4780. | {
  4781. | yy_current_state = (int) yy_def[yy_current_state];
  4782. | if ( yy_current_state >= 13 )
  4783. | yy_c = yy_meta[yy_c];
  4784. | }
  4785. | yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  4786. | *(yy_state_ptr)++ = yy_current_state;
  4787. | ++yy_cp;
  4788. | }
  4789. | while ( yy_base[yy_current_state] != 10 );
  4790. |
  4791. | yy_find_action:
  4792. | yy_current_state = *--(yy_state_ptr);
  4793. | (yy_lp) = yy_accept[yy_current_state];
  4794. |
  4795. | find_rule: /* we branch to this label when backing up */
  4796. |
  4797. | for ( ; ; ) /* until we find what rule we matched */
  4798. | {
  4799. | if ( (yy_lp) && (yy_lp) < yy_accept[yy_current_state + 1] )
  4800. | {
  4801. | yy_act = yy_acclist[(yy_lp)];
  4802. | {
  4803. | (yy_full_match) = yy_cp;
  4804. | break;
  4805. | }
  4806. | }
  4807. | --yy_cp;
  4808. | yy_current_state = *--(yy_state_ptr);
  4809. | (yy_lp) = yy_accept[yy_current_state];
  4810. | }
  4811. |
  4812. | YY_DO_BEFORE_ACTION;
  4813. |
  4814. | do_action: /* This label is used only to access EOF actions. */
  4815. |
  4816. | switch ( yy_act )
  4817. | { /* beginning of action switch */
  4818. | case 1:
  4819. | YY_RULE_SETUP
  4820. | #line 2 "conftest.l"
  4821. | { ECHO; }
  4822. | YY_BREAK
  4823. | case 2:
  4824. | YY_RULE_SETUP
  4825. | #line 3 "conftest.l"
  4826. | { REJECT; }
  4827. | YY_BREAK
  4828. | case 3:
  4829. | YY_RULE_SETUP
  4830. | #line 4 "conftest.l"
  4831. | { yymore (); }
  4832. | YY_BREAK
  4833. | case 4:
  4834. | YY_RULE_SETUP
  4835. | #line 5 "conftest.l"
  4836. | { yyless (1); }
  4837. | YY_BREAK
  4838. | case 5:
  4839. | YY_RULE_SETUP
  4840. | #line 6 "conftest.l"
  4841. | { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
  4842. | yyless ((input () != 0)); }
  4843. | YY_BREAK
  4844. | case 6:
  4845. | YY_RULE_SETUP
  4846. | #line 8 "conftest.l"
  4847. | { unput (yytext[0]); }
  4848. | YY_BREAK
  4849. | case 7:
  4850. | YY_RULE_SETUP
  4851. | #line 9 "conftest.l"
  4852. | { BEGIN INITIAL; }
  4853. | YY_BREAK
  4854. | case 8:
  4855. | YY_RULE_SETUP
  4856. | #line 10 "conftest.l"
  4857. | ECHO;
  4858. | YY_BREAK
  4859. | #line 794 "lex.yy.c"
  4860. | case YY_STATE_EOF(INITIAL):
  4861. | yyterminate();
  4862. |
  4863. | case YY_END_OF_BUFFER:
  4864. | {
  4865. | /* Amount of text matched not including the EOB char. */
  4866. | int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
  4867. |
  4868. | /* Undo the effects of YY_DO_BEFORE_ACTION. */
  4869. | *yy_cp = (yy_hold_char);
  4870. | YY_RESTORE_YY_MORE_OFFSET
  4871. |
  4872. | if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
  4873. | {
  4874. | /* We're scanning a new file or input source. It's
  4875. | * possible that this happened because the user
  4876. | * just pointed yyin at a new source and called
  4877. | * yylex(). If so, then we have to assure
  4878. | * consistency between YY_CURRENT_BUFFER and our
  4879. | * globals. Here is the right place to do so, because
  4880. | * this is the first action (other than possibly a
  4881. | * back-up) that will match for the new input source.
  4882. | */
  4883. | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  4884. | YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
  4885. | YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
  4886. | }
  4887. |
  4888. | /* Note that here we test for yy_c_buf_p "<=" to the position
  4889. | * of the first EOB in the buffer, since yy_c_buf_p will
  4890. | * already have been incremented past the NUL character
  4891. | * (since all states make transitions on EOB to the
  4892. | * end-of-buffer state). Contrast this with the test
  4893. | * in input().
  4894. | */
  4895. | if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
  4896. | { /* This was really a NUL. */
  4897. | yy_state_type yy_next_state;
  4898. |
  4899. | (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
  4900. |
  4901. | yy_current_state = yy_get_previous_state( );
  4902. |
  4903. | /* Okay, we're now positioned to make the NUL
  4904. | * transition. We couldn't have
  4905. | * yy_get_previous_state() go ahead and do it
  4906. | * for us because it doesn't know how to deal
  4907. | * with the possibility of jamming (and we don't
  4908. | * want to build jamming into it because then it
  4909. | * will run more slowly).
  4910. | */
  4911. |
  4912. | yy_next_state = yy_try_NUL_trans( yy_current_state );
  4913. |
  4914. | yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  4915. |
  4916. | if ( yy_next_state )
  4917. | {
  4918. | /* Consume the NUL. */
  4919. | yy_cp = ++(yy_c_buf_p);
  4920. | yy_current_state = yy_next_state;
  4921. | goto yy_match;
  4922. | }
  4923. |
  4924. | else
  4925. | {
  4926. | yy_cp = (yy_c_buf_p);
  4927. | goto yy_find_action;
  4928. | }
  4929. | }
  4930. |
  4931. | else switch ( yy_get_next_buffer( ) )
  4932. | {
  4933. | case EOB_ACT_END_OF_FILE:
  4934. | {
  4935. | (yy_did_buffer_switch_on_eof) = 0;
  4936. |
  4937. | if ( yywrap( ) )
  4938. | {
  4939. | /* Note: because we've taken care in
  4940. | * yy_get_next_buffer() to have set up
  4941. | * yytext, we can now set up
  4942. | * yy_c_buf_p so that if some total
  4943. | * hoser (like flex itself) wants to
  4944. | * call the scanner after we return the
  4945. | * YY_NULL, it'll still work - another
  4946. | * YY_NULL will get returned.
  4947. | */
  4948. | (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
  4949. |
  4950. | yy_act = YY_STATE_EOF(YY_START);
  4951. | goto do_action;
  4952. | }
  4953. |
  4954. | else
  4955. | {
  4956. | if ( ! (yy_did_buffer_switch_on_eof) )
  4957. | YY_NEW_FILE;
  4958. | }
  4959. | break;
  4960. | }
  4961. |
  4962. | case EOB_ACT_CONTINUE_SCAN:
  4963. | (yy_c_buf_p) =
  4964. | (yytext_ptr) + yy_amount_of_matched_text;
  4965. |
  4966. | yy_current_state = yy_get_previous_state( );
  4967. |
  4968. | yy_cp = (yy_c_buf_p);
  4969. | yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  4970. | goto yy_match;
  4971. |
  4972. | case EOB_ACT_LAST_MATCH:
  4973. | (yy_c_buf_p) =
  4974. | &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
  4975. |
  4976. | yy_current_state = yy_get_previous_state( );
  4977. |
  4978. | yy_cp = (yy_c_buf_p);
  4979. | yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  4980. | goto yy_find_action;
  4981. | }
  4982. | break;
  4983. | }
  4984. |
  4985. | default:
  4986. | YY_FATAL_ERROR(
  4987. | "fatal flex scanner internal error--no action found" );
  4988. | } /* end of action switch */
  4989. | } /* end of scanning one token */
  4990. | } /* end of user's declarations */
  4991. | } /* end of yylex */
  4992. |
  4993. | /* yy_get_next_buffer - try to read in a new buffer
  4994. | *
  4995. | * Returns a code representing an action:
  4996. | * EOB_ACT_LAST_MATCH -
  4997. | * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
  4998. | * EOB_ACT_END_OF_FILE - end of file
  4999. | */
  5000. | static int yy_get_next_buffer (void)
  5001. | {
  5002. | char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
  5003. | char *source = (yytext_ptr);
  5004. | int number_to_move, i;
  5005. | int ret_val;
  5006. |
  5007. | if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
  5008. | YY_FATAL_ERROR(
  5009. | "fatal flex scanner internal error--end of buffer missed" );
  5010. |
  5011. | if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
  5012. | { /* Don't try to fill the buffer, so this is an EOF. */
  5013. | if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
  5014. | {
  5015. | /* We matched a single character, the EOB, so
  5016. | * treat this as a final EOF.
  5017. | */
  5018. | return EOB_ACT_END_OF_FILE;
  5019. | }
  5020. |
  5021. | else
  5022. | {
  5023. | /* We matched some text prior to the EOB, first
  5024. | * process it.
  5025. | */
  5026. | return EOB_ACT_LAST_MATCH;
  5027. | }
  5028. | }
  5029. |
  5030. | /* Try to read more data. */
  5031. |
  5032. | /* First move last chars to start of buffer. */
  5033. | number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr) - 1);
  5034. |
  5035. | for ( i = 0; i < number_to_move; ++i )
  5036. | *(dest++) = *(source++);
  5037. |
  5038. | if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
  5039. | /* don't do the read, it's not guaranteed to return an EOF,
  5040. | * just force an EOF
  5041. | */
  5042. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
  5043. |
  5044. | else
  5045. | {
  5046. | int num_to_read =
  5047. | YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
  5048. |
  5049. | while ( num_to_read <= 0 )
  5050. | { /* Not enough room in the buffer - grow it. */
  5051. |
  5052. | YY_FATAL_ERROR(
  5053. | "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
  5054. |
  5055. | }
  5056. |
  5057. | if ( num_to_read > YY_READ_BUF_SIZE )
  5058. | num_to_read = YY_READ_BUF_SIZE;
  5059. |
  5060. | /* Read in more data. */
  5061. | YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
  5062. | (yy_n_chars), num_to_read );
  5063. |
  5064. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  5065. | }
  5066. |
  5067. | if ( (yy_n_chars) == 0 )
  5068. | {
  5069. | if ( number_to_move == YY_MORE_ADJ )
  5070. | {
  5071. | ret_val = EOB_ACT_END_OF_FILE;
  5072. | yyrestart( yyin );
  5073. | }
  5074. |
  5075. | else
  5076. | {
  5077. | ret_val = EOB_ACT_LAST_MATCH;
  5078. | YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
  5079. | YY_BUFFER_EOF_PENDING;
  5080. | }
  5081. | }
  5082. |
  5083. | else
  5084. | ret_val = EOB_ACT_CONTINUE_SCAN;
  5085. |
  5086. | if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
  5087. | /* Extend the array by 50%, plus the number we really need. */
  5088. | int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
  5089. | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
  5090. | (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size );
  5091. | if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
  5092. | YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
  5093. | /* "- 2" to take care of EOB's */
  5094. | YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
  5095. | }
  5096. |
  5097. | (yy_n_chars) += number_to_move;
  5098. | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
  5099. | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
  5100. |
  5101. | (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
  5102. |
  5103. | return ret_val;
  5104. | }
  5105. |
  5106. | /* yy_get_previous_state - get the state just before the EOB char was reached */
  5107. |
  5108. | static yy_state_type yy_get_previous_state (void)
  5109. | {
  5110. | yy_state_type yy_current_state;
  5111. | char *yy_cp;
  5112. |
  5113. | yy_current_state = (yy_start);
  5114. |
  5115. | (yy_state_ptr) = (yy_state_buf);
  5116. | *(yy_state_ptr)++ = yy_current_state;
  5117. |
  5118. | for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
  5119. | {
  5120. | YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
  5121. | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  5122. | {
  5123. | yy_current_state = (int) yy_def[yy_current_state];
  5124. | if ( yy_current_state >= 13 )
  5125. | yy_c = yy_meta[yy_c];
  5126. | }
  5127. | yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  5128. | *(yy_state_ptr)++ = yy_current_state;
  5129. | }
  5130. |
  5131. | return yy_current_state;
  5132. | }
  5133. |
  5134. | /* yy_try_NUL_trans - try to make a transition on the NUL character
  5135. | *
  5136. | * synopsis
  5137. | * next_state = yy_try_NUL_trans( current_state );
  5138. | */
  5139. | static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
  5140. | {
  5141. | int yy_is_jam;
  5142. |
  5143. | YY_CHAR yy_c = 1;
  5144. | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  5145. | {
  5146. | yy_current_state = (int) yy_def[yy_current_state];
  5147. | if ( yy_current_state >= 13 )
  5148. | yy_c = yy_meta[yy_c];
  5149. | }
  5150. | yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  5151. | yy_is_jam = (yy_current_state == 12);
  5152. | if ( ! yy_is_jam )
  5153. | *(yy_state_ptr)++ = yy_current_state;
  5154. |
  5155. | return yy_is_jam ? 0 : yy_current_state;
  5156. | }
  5157. |
  5158. | #ifndef YY_NO_UNPUT
  5159. |
  5160. | static void yyunput (int c, char * yy_bp )
  5161. | {
  5162. | char *yy_cp;
  5163. |
  5164. | yy_cp = (yy_c_buf_p);
  5165. |
  5166. | /* undo effects of setting up yytext */
  5167. | *yy_cp = (yy_hold_char);
  5168. |
  5169. | if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
  5170. | { /* need to shift things up to make room */
  5171. | /* +2 for EOB chars. */
  5172. | int number_to_move = (yy_n_chars) + 2;
  5173. | char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
  5174. | YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
  5175. | char *source =
  5176. | &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
  5177. |
  5178. | while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
  5179. | *--dest = *--source;
  5180. |
  5181. | yy_cp += (int) (dest - source);
  5182. | yy_bp += (int) (dest - source);
  5183. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
  5184. | (yy_n_chars) = (int) YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
  5185. |
  5186. | if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
  5187. | YY_FATAL_ERROR( "flex scanner push-back overflow" );
  5188. | }
  5189. |
  5190. | *--yy_cp = (char) c;
  5191. |
  5192. | (yytext_ptr) = yy_bp;
  5193. | (yy_hold_char) = *yy_cp;
  5194. | (yy_c_buf_p) = yy_cp;
  5195. | }
  5196. |
  5197. | #endif
  5198. |
  5199. | #ifndef YY_NO_INPUT
  5200. | #ifdef __cplusplus
  5201. | static int yyinput (void)
  5202. | #else
  5203. | static int input (void)
  5204. | #endif
  5205. |
  5206. | {
  5207. | int c;
  5208. |
  5209. | *(yy_c_buf_p) = (yy_hold_char);
  5210. |
  5211. | if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
  5212. | {
  5213. | /* yy_c_buf_p now points to the character we want to return.
  5214. | * If this occurs *before* the EOB characters, then it's a
  5215. | * valid NUL; if not, then we've hit the end of the buffer.
  5216. | */
  5217. | if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
  5218. | /* This was really a NUL. */
  5219. | *(yy_c_buf_p) = '\0';
  5220. |
  5221. | else
  5222. | { /* need more input */
  5223. | int offset = (int) ((yy_c_buf_p) - (yytext_ptr));
  5224. | ++(yy_c_buf_p);
  5225. |
  5226. | switch ( yy_get_next_buffer( ) )
  5227. | {
  5228. | case EOB_ACT_LAST_MATCH:
  5229. | /* This happens because yy_g_n_b()
  5230. | * sees that we've accumulated a
  5231. | * token and flags that we need to
  5232. | * try matching the token before
  5233. | * proceeding. But for input(),
  5234. | * there's no matching to consider.
  5235. | * So convert the EOB_ACT_LAST_MATCH
  5236. | * to EOB_ACT_END_OF_FILE.
  5237. | */
  5238. |
  5239. | /* Reset buffer status. */
  5240. | yyrestart( yyin );
  5241. |
  5242. | /*FALLTHROUGH*/
  5243. |
  5244. | case EOB_ACT_END_OF_FILE:
  5245. | {
  5246. | if ( yywrap( ) )
  5247. | return 0;
  5248. |
  5249. | if ( ! (yy_did_buffer_switch_on_eof) )
  5250. | YY_NEW_FILE;
  5251. | #ifdef __cplusplus
  5252. | return yyinput();
  5253. | #else
  5254. | return input();
  5255. | #endif
  5256. | }
  5257. |
  5258. | case EOB_ACT_CONTINUE_SCAN:
  5259. | (yy_c_buf_p) = (yytext_ptr) + offset;
  5260. | break;
  5261. | }
  5262. | }
  5263. | }
  5264. |
  5265. | c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
  5266. | *(yy_c_buf_p) = '\0'; /* preserve yytext */
  5267. | (yy_hold_char) = *++(yy_c_buf_p);
  5268. |
  5269. | return c;
  5270. | }
  5271. | #endif /* ifndef YY_NO_INPUT */
  5272. |
  5273. | /** Immediately switch to a different input stream.
  5274. | * @param input_file A readable stream.
  5275. | *
  5276. | * @note This function does not reset the start condition to @c INITIAL .
  5277. | */
  5278. | void yyrestart (FILE * input_file )
  5279. | {
  5280. |
  5281. | if ( ! YY_CURRENT_BUFFER ){
  5282. | yyensure_buffer_stack ();
  5283. | YY_CURRENT_BUFFER_LVALUE =
  5284. | yy_create_buffer( yyin, YY_BUF_SIZE );
  5285. | }
  5286. |
  5287. | yy_init_buffer( YY_CURRENT_BUFFER, input_file );
  5288. | yy_load_buffer_state( );
  5289. | }
  5290. |
  5291. | /** Switch to a different input buffer.
  5292. | * @param new_buffer The new input buffer.
  5293. | *
  5294. | */
  5295. | void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
  5296. | {
  5297. |
  5298. | /* TODO. We should be able to replace this entire function body
  5299. | * with
  5300. | * yypop_buffer_state();
  5301. | * yypush_buffer_state(new_buffer);
  5302. | */
  5303. | yyensure_buffer_stack ();
  5304. | if ( YY_CURRENT_BUFFER == new_buffer )
  5305. | return;
  5306. |
  5307. | if ( YY_CURRENT_BUFFER )
  5308. | {
  5309. | /* Flush out information for old buffer. */
  5310. | *(yy_c_buf_p) = (yy_hold_char);
  5311. | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
  5312. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  5313. | }
  5314. |
  5315. | YY_CURRENT_BUFFER_LVALUE = new_buffer;
  5316. | yy_load_buffer_state( );
  5317. |
  5318. | /* We don't actually know whether we did this switch during
  5319. | * EOF (yywrap()) processing, but the only time this flag
  5320. | * is looked at is after yywrap() is called, so it's safe
  5321. | * to go ahead and always set it.
  5322. | */
  5323. | (yy_did_buffer_switch_on_eof) = 1;
  5324. | }
  5325. |
  5326. | static void yy_load_buffer_state (void)
  5327. | {
  5328. | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  5329. | (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
  5330. | yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
  5331. | (yy_hold_char) = *(yy_c_buf_p);
  5332. | }
  5333. |
  5334. | /** Allocate and initialize an input buffer state.
  5335. | * @param file A readable stream.
  5336. | * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
  5337. | *
  5338. | * @return the allocated buffer state.
  5339. | */
  5340. | YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
  5341. | {
  5342. | YY_BUFFER_STATE b;
  5343. |
  5344. | b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
  5345. | if ( ! b )
  5346. | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  5347. |
  5348. | b->yy_buf_size = size;
  5349. |
  5350. | /* yy_ch_buf has to be 2 characters longer than the size given because
  5351. | * we need to put in 2 end-of-buffer characters.
  5352. | */
  5353. | b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) );
  5354. | if ( ! b->yy_ch_buf )
  5355. | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  5356. |
  5357. | b->yy_is_our_buffer = 1;
  5358. |
  5359. | yy_init_buffer( b, file );
  5360. |
  5361. | return b;
  5362. | }
  5363. |
  5364. | /** Destroy the buffer.
  5365. | * @param b a buffer created with yy_create_buffer()
  5366. | *
  5367. | */
  5368. | void yy_delete_buffer (YY_BUFFER_STATE b )
  5369. | {
  5370. |
  5371. | if ( ! b )
  5372. | return;
  5373. |
  5374. | if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
  5375. | YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
  5376. |
  5377. | if ( b->yy_is_our_buffer )
  5378. | yyfree( (void *) b->yy_ch_buf );
  5379. |
  5380. | yyfree( (void *) b );
  5381. | }
  5382. |
  5383. | /* Initializes or reinitializes a buffer.
  5384. | * This function is sometimes called more than once on the same buffer,
  5385. | * such as during a yyrestart() or at EOF.
  5386. | */
  5387. | static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
  5388. |
  5389. | {
  5390. | int oerrno = errno;
  5391. |
  5392. | yy_flush_buffer( b );
  5393. |
  5394. | b->yy_input_file = file;
  5395. | b->yy_fill_buffer = 1;
  5396. |
  5397. | /* If b is the current buffer, then yy_init_buffer was _probably_
  5398. | * called from yyrestart() or through yy_get_next_buffer.
  5399. | * In that case, we don't want to reset the lineno or column.
  5400. | */
  5401. | if (b != YY_CURRENT_BUFFER){
  5402. | b->yy_bs_lineno = 1;
  5403. | b->yy_bs_column = 0;
  5404. | }
  5405. |
  5406. | b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
  5407. |
  5408. | errno = oerrno;
  5409. | }
  5410. |
  5411. | /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
  5412. | * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
  5413. | *
  5414. | */
  5415. | void yy_flush_buffer (YY_BUFFER_STATE b )
  5416. | {
  5417. | if ( ! b )
  5418. | return;
  5419. |
  5420. | b->yy_n_chars = 0;
  5421. |
  5422. | /* We always need two end-of-buffer characters. The first causes
  5423. | * a transition to the end-of-buffer state. The second causes
  5424. | * a jam in that state.
  5425. | */
  5426. | b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
  5427. | b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
  5428. |
  5429. | b->yy_buf_pos = &b->yy_ch_buf[0];
  5430. |
  5431. | b->yy_at_bol = 1;
  5432. | b->yy_buffer_status = YY_BUFFER_NEW;
  5433. |
  5434. | if ( b == YY_CURRENT_BUFFER )
  5435. | yy_load_buffer_state( );
  5436. | }
  5437. |
  5438. | /** Pushes the new state onto the stack. The new state becomes
  5439. | * the current state. This function will allocate the stack
  5440. | * if necessary.
  5441. | * @param new_buffer The new state.
  5442. | *
  5443. | */
  5444. | void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
  5445. | {
  5446. | if (new_buffer == NULL)
  5447. | return;
  5448. |
  5449. | yyensure_buffer_stack();
  5450. |
  5451. | /* This block is copied from yy_switch_to_buffer. */
  5452. | if ( YY_CURRENT_BUFFER )
  5453. | {
  5454. | /* Flush out information for old buffer. */
  5455. | *(yy_c_buf_p) = (yy_hold_char);
  5456. | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
  5457. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  5458. | }
  5459. |
  5460. | /* Only push if top exists. Otherwise, replace top. */
  5461. | if (YY_CURRENT_BUFFER)
  5462. | (yy_buffer_stack_top)++;
  5463. | YY_CURRENT_BUFFER_LVALUE = new_buffer;
  5464. |
  5465. | /* copied from yy_switch_to_buffer. */
  5466. | yy_load_buffer_state( );
  5467. | (yy_did_buffer_switch_on_eof) = 1;
  5468. | }
  5469. |
  5470. | /** Removes and deletes the top of the stack, if present.
  5471. | * The next element becomes the new top.
  5472. | *
  5473. | */
  5474. | void yypop_buffer_state (void)
  5475. | {
  5476. | if (!YY_CURRENT_BUFFER)
  5477. | return;
  5478. |
  5479. | yy_delete_buffer(YY_CURRENT_BUFFER );
  5480. | YY_CURRENT_BUFFER_LVALUE = NULL;
  5481. | if ((yy_buffer_stack_top) > 0)
  5482. | --(yy_buffer_stack_top);
  5483. |
  5484. | if (YY_CURRENT_BUFFER) {
  5485. | yy_load_buffer_state( );
  5486. | (yy_did_buffer_switch_on_eof) = 1;
  5487. | }
  5488. | }
  5489. |
  5490. | /* Allocates the stack if it does not exist.
  5491. | * Guarantees space for at least one push.
  5492. | */
  5493. | static void yyensure_buffer_stack (void)
  5494. | {
  5495. | yy_size_t num_to_alloc;
  5496. |
  5497. | if (!(yy_buffer_stack)) {
  5498. |
  5499. | /* First allocation is just for 2 elements, since we don't know if this
  5500. | * scanner will even need a stack. We use 2 instead of 1 to avoid an
  5501. | * immediate realloc on the next call.
  5502. | */
  5503. | num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
  5504. | (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
  5505. | (num_to_alloc * sizeof(struct yy_buffer_state*)
  5506. | );
  5507. | if ( ! (yy_buffer_stack) )
  5508. | YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
  5509. |
  5510. | memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
  5511. |
  5512. | (yy_buffer_stack_max) = num_to_alloc;
  5513. | (yy_buffer_stack_top) = 0;
  5514. | return;
  5515. | }
  5516. |
  5517. | if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
  5518. |
  5519. | /* Increase the buffer to prepare for a possible push. */
  5520. | yy_size_t grow_size = 8 /* arbitrary grow size */;
  5521. |
  5522. | num_to_alloc = (yy_buffer_stack_max) + grow_size;
  5523. | (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
  5524. | ((yy_buffer_stack),
  5525. | num_to_alloc * sizeof(struct yy_buffer_state*)
  5526. | );
  5527. | if ( ! (yy_buffer_stack) )
  5528. | YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
  5529. |
  5530. | /* zero only the new slots.*/
  5531. | memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
  5532. | (yy_buffer_stack_max) = num_to_alloc;
  5533. | }
  5534. | }
  5535. |
  5536. | /** Setup the input buffer state to scan directly from a user-specified character buffer.
  5537. | * @param base the character buffer
  5538. | * @param size the size in bytes of the character buffer
  5539. | *
  5540. | * @return the newly allocated buffer state object.
  5541. | */
  5542. | YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
  5543. | {
  5544. | YY_BUFFER_STATE b;
  5545. |
  5546. | if ( size < 2 ||
  5547. | base[size-2] != YY_END_OF_BUFFER_CHAR ||
  5548. | base[size-1] != YY_END_OF_BUFFER_CHAR )
  5549. | /* They forgot to leave room for the EOB's. */
  5550. | return NULL;
  5551. |
  5552. | b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
  5553. | if ( ! b )
  5554. | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
  5555. |
  5556. | b->yy_buf_size = (int) (size - 2); /* "- 2" to take care of EOB's */
  5557. | b->yy_buf_pos = b->yy_ch_buf = base;
  5558. | b->yy_is_our_buffer = 0;
  5559. | b->yy_input_file = NULL;
  5560. | b->yy_n_chars = b->yy_buf_size;
  5561. | b->yy_is_interactive = 0;
  5562. | b->yy_at_bol = 1;
  5563. | b->yy_fill_buffer = 0;
  5564. | b->yy_buffer_status = YY_BUFFER_NEW;
  5565. |
  5566. | yy_switch_to_buffer( b );
  5567. |
  5568. | return b;
  5569. | }
  5570. |
  5571. | /** Setup the input buffer state to scan a string. The next call to yylex() will
  5572. | * scan from a @e copy of @a str.
  5573. | * @param yystr a NUL-terminated string to scan
  5574. | *
  5575. | * @return the newly allocated buffer state object.
  5576. | * @note If you want to scan bytes that may contain NUL values, then use
  5577. | * yy_scan_bytes() instead.
  5578. | */
  5579. | YY_BUFFER_STATE yy_scan_string (const char * yystr )
  5580. | {
  5581. |
  5582. | return yy_scan_bytes( yystr, (int) strlen(yystr) );
  5583. | }
  5584. |
  5585. | /** Setup the input buffer state to scan the given bytes. The next call to yylex() will
  5586. | * scan from a @e copy of @a bytes.
  5587. | * @param yybytes the byte buffer to scan
  5588. | * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
  5589. | *
  5590. | * @return the newly allocated buffer state object.
  5591. | */
  5592. | YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, int _yybytes_len )
  5593. | {
  5594. | YY_BUFFER_STATE b;
  5595. | char *buf;
  5596. | yy_size_t n;
  5597. | int i;
  5598. |
  5599. | /* Get memory for full buffer, including space for trailing EOB's. */
  5600. | n = (yy_size_t) (_yybytes_len + 2);
  5601. | buf = (char *) yyalloc( n );
  5602. | if ( ! buf )
  5603. | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
  5604. |
  5605. | for ( i = 0; i < _yybytes_len; ++i )
  5606. | buf[i] = yybytes[i];
  5607. |
  5608. | buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
  5609. |
  5610. | b = yy_scan_buffer( buf, n );
  5611. | if ( ! b )
  5612. | YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
  5613. |
  5614. | /* It's okay to grow etc. this buffer, and we should throw it
  5615. | * away when we're done.
  5616. | */
  5617. | b->yy_is_our_buffer = 1;
  5618. |
  5619. | return b;
  5620. | }
  5621. |
  5622. | #ifndef YY_EXIT_FAILURE
  5623. | #define YY_EXIT_FAILURE 2
  5624. | #endif
  5625. |
  5626. | static void yynoreturn yy_fatal_error (const char* msg )
  5627. | {
  5628. | fprintf( stderr, "%s\n", msg );
  5629. | exit( YY_EXIT_FAILURE );
  5630. | }
  5631. |
  5632. | /* Redefine yyless() so it works in section 3 code. */
  5633. |
  5634. | #undef yyless
  5635. | #define yyless(n) \
  5636. | do \
  5637. | { \
  5638. | /* Undo effects of setting up yytext. */ \
  5639. | int yyless_macro_arg = (n); \
  5640. | YY_LESS_LINENO(yyless_macro_arg);\
  5641. | yytext[yyleng] = (yy_hold_char); \
  5642. | (yy_c_buf_p) = yytext + yyless_macro_arg; \
  5643. | (yy_hold_char) = *(yy_c_buf_p); \
  5644. | *(yy_c_buf_p) = '\0'; \
  5645. | yyleng = yyless_macro_arg; \
  5646. | } \
  5647. | while ( 0 )
  5648. |
  5649. | /* Accessor methods (get/set functions) to struct members. */
  5650. |
  5651. | /** Get the current line number.
  5652. | *
  5653. | */
  5654. | int yyget_lineno (void)
  5655. | {
  5656. |
  5657. | return yylineno;
  5658. | }
  5659. |
  5660. | /** Get the input stream.
  5661. | *
  5662. | */
  5663. | FILE *yyget_in (void)
  5664. | {
  5665. | return yyin;
  5666. | }
  5667. |
  5668. | /** Get the output stream.
  5669. | *
  5670. | */
  5671. | FILE *yyget_out (void)
  5672. | {
  5673. | return yyout;
  5674. | }
  5675. |
  5676. | /** Get the length of the current token.
  5677. | *
  5678. | */
  5679. | int yyget_leng (void)
  5680. | {
  5681. | return yyleng;
  5682. | }
  5683. |
  5684. | /** Get the current token.
  5685. | *
  5686. | */
  5687. |
  5688. | char *yyget_text (void)
  5689. | {
  5690. | return yytext;
  5691. | }
  5692. |
  5693. | /** Set the current line number.
  5694. | * @param _line_number line number
  5695. | *
  5696. | */
  5697. | void yyset_lineno (int _line_number )
  5698. | {
  5699. |
  5700. | yylineno = _line_number;
  5701. | }
  5702. |
  5703. | /** Set the input stream. This does not discard the current
  5704. | * input buffer.
  5705. | * @param _in_str A readable stream.
  5706. | *
  5707. | * @see yy_switch_to_buffer
  5708. | */
  5709. | void yyset_in (FILE * _in_str )
  5710. | {
  5711. | yyin = _in_str ;
  5712. | }
  5713. |
  5714. | void yyset_out (FILE * _out_str )
  5715. | {
  5716. | yyout = _out_str ;
  5717. | }
  5718. |
  5719. | int yyget_debug (void)
  5720. | {
  5721. | return yy_flex_debug;
  5722. | }
  5723. |
  5724. | void yyset_debug (int _bdebug )
  5725. | {
  5726. | yy_flex_debug = _bdebug ;
  5727. | }
  5728. |
  5729. | static int yy_init_globals (void)
  5730. | {
  5731. | /* Initialization is the same as for the non-reentrant scanner.
  5732. | * This function is called from yylex_destroy(), so don't allocate here.
  5733. | */
  5734. |
  5735. | (yy_buffer_stack) = NULL;
  5736. | (yy_buffer_stack_top) = 0;
  5737. | (yy_buffer_stack_max) = 0;
  5738. | (yy_c_buf_p) = NULL;
  5739. | (yy_init) = 0;
  5740. | (yy_start) = 0;
  5741. |
  5742. | (yy_state_buf) = 0;
  5743. | (yy_state_ptr) = 0;
  5744. | (yy_full_match) = 0;
  5745. | (yy_lp) = 0;
  5746. |
  5747. | /* Defined in main.c */
  5748. | #ifdef YY_STDINIT
  5749. | yyin = stdin;
  5750. | yyout = stdout;
  5751. | #else
  5752. | yyin = NULL;
  5753. | yyout = NULL;
  5754. | #endif
  5755. |
  5756. | /* For future reference: Set errno on error, since we are called by
  5757. | * yylex_init()
  5758. | */
  5759. | return 0;
  5760. | }
  5761. |
  5762. | /* yylex_destroy is for both reentrant and non-reentrant scanners. */
  5763. | int yylex_destroy (void)
  5764. | {
  5765. |
  5766. | /* Pop the buffer stack, destroying each element. */
  5767. | while(YY_CURRENT_BUFFER){
  5768. | yy_delete_buffer( YY_CURRENT_BUFFER );
  5769. | YY_CURRENT_BUFFER_LVALUE = NULL;
  5770. | yypop_buffer_state();
  5771. | }
  5772. |
  5773. | /* Destroy the stack itself. */
  5774. | yyfree((yy_buffer_stack) );
  5775. | (yy_buffer_stack) = NULL;
  5776. |
  5777. | yyfree ( (yy_state_buf) );
  5778. | (yy_state_buf) = NULL;
  5779. |
  5780. | /* Reset the globals. This is important in a non-reentrant scanner so the next time
  5781. | * yylex() is called, initialization will occur. */
  5782. | yy_init_globals( );
  5783. |
  5784. | return 0;
  5785. | }
  5786. |
  5787. | /*
  5788. | * Internal utility routines.
  5789. | */
  5790. |
  5791. | #ifndef yytext_ptr
  5792. | static void yy_flex_strncpy (char* s1, const char * s2, int n )
  5793. | {
  5794. |
  5795. | int i;
  5796. | for ( i = 0; i < n; ++i )
  5797. | s1[i] = s2[i];
  5798. | }
  5799. | #endif
  5800. |
  5801. | #ifdef YY_NEED_STRLEN
  5802. | static int yy_flex_strlen (const char * s )
  5803. | {
  5804. | int n;
  5805. | for ( n = 0; s[n]; ++n )
  5806. | ;
  5807. |
  5808. | return n;
  5809. | }
  5810. | #endif
  5811. |
  5812. | void *yyalloc (yy_size_t size )
  5813. | {
  5814. | return malloc(size);
  5815. | }
  5816. |
  5817. | void *yyrealloc (void * ptr, yy_size_t size )
  5818. | {
  5819. |
  5820. | /* The cast to (char *) in the following accommodates both
  5821. | * implementations that use char* generic pointers, and those
  5822. | * that use void* generic pointers. It works with the latter
  5823. | * because both ANSI C and C++ allow castless assignment from
  5824. | * any pointer type to void*, and deal with argument conversions
  5825. | * as though doing an assignment.
  5826. | */
  5827. | return realloc(ptr, size);
  5828. | }
  5829. |
  5830. | void yyfree (void * ptr )
  5831. | {
  5832. | free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
  5833. | }
  5834. |
  5835. | #define YYTABLES_NAME "yytables"
  5836. |
  5837. | #line 10 "conftest.l"
  5838. |
  5839. | #ifdef YYTEXT_POINTER
  5840. | extern char *yytext;
  5841. | #endif
  5842. | int
  5843. | main (void)
  5844. | {
  5845. | return ! yylex () + ! yywrap ();
  5846. | }
  5847. configure:5134: result: none needed
  5848. configure:5140: checking whether yytext is a pointer
  5849. configure:5160: gcc -o conftest -g -O2 conftest.c -ldl -luuid -lparted >&5
  5850. /usr/bin/ld: /tmp/ccUdTEY2.o: in function `input':
  5851. /home/pruebas/hurd/build/lex.yy.c:1180: undefined reference to `yywrap'
  5852. /usr/bin/ld: /tmp/ccUdTEY2.o: in function `yylex':
  5853. /home/pruebas/hurd/build/lex.yy.c:871: undefined reference to `yywrap'
  5854. /usr/bin/ld: /tmp/ccUdTEY2.o: in function `main':
  5855. /home/pruebas/hurd/build/conftest.l:17: undefined reference to `yywrap'
  5856. collect2: error: ld returned 1 exit status
  5857. configure:5160: $? = 1
  5858. configure: failed program was:
  5859. | /* confdefs.h */
  5860. | #define PACKAGE_NAME "GNU Hurd"
  5861. | #define PACKAGE_TARNAME "hurd"
  5862. | #define PACKAGE_VERSION "0.9"
  5863. | #define PACKAGE_STRING "GNU Hurd 0.9"
  5864. | #define PACKAGE_BUGREPORT "[email protected]"
  5865. | #define PACKAGE_URL "http://www.gnu.org/software/hurd/"
  5866. | #define HAVE_MIG_RETCODE 1
  5867. | #define HAVE_FILE_EXEC_PATHS 1
  5868. | #define HAVE_EXEC_EXEC_PATHS 1
  5869. | #define HAVE__HURD_EXEC_PATHS 1
  5870. | #define UTIME_NOW -1
  5871. | #define UTIME_OMIT -2
  5872. | #define HAVE_LIBCRYPT 1
  5873. | #define STDC_HEADERS 1
  5874. | #define HAVE_SYS_TYPES_H 1
  5875. | #define HAVE_SYS_STAT_H 1
  5876. | #define HAVE_STDLIB_H 1
  5877. | #define HAVE_STRING_H 1
  5878. | #define HAVE_MEMORY_H 1
  5879. | #define HAVE_STRINGS_H 1
  5880. | #define HAVE_INTTYPES_H 1
  5881. | #define HAVE_STDINT_H 1
  5882. | #define HAVE_UNISTD_H 1
  5883. | #define HAVE_PARTED_PARTED_H 1
  5884. | #define HAVE_LIBPARTED 1
  5885. | #define HAVE_LIBUUID 1
  5886. | #define HAVE_LIBDL 1
  5887. | /* end confdefs.h. */
  5888. |
  5889. | #define YYTEXT_POINTER 1
  5890. |
  5891. | #line 3 "lex.yy.c"
  5892. |
  5893. | #define YY_INT_ALIGNED short int
  5894. |
  5895. | /* A lexical scanner generated by flex */
  5896. |
  5897. | #define FLEX_SCANNER
  5898. | #define YY_FLEX_MAJOR_VERSION 2
  5899. | #define YY_FLEX_MINOR_VERSION 6
  5900. | #define YY_FLEX_SUBMINOR_VERSION 4
  5901. | #if YY_FLEX_SUBMINOR_VERSION > 0
  5902. | #define FLEX_BETA
  5903. | #endif
  5904. |
  5905. | /* First, we deal with platform-specific or compiler-specific issues. */
  5906. |
  5907. | /* begin standard C headers. */
  5908. | #include <stdio.h>
  5909. | #include <string.h>
  5910. | #include <errno.h>
  5911. | #include <stdlib.h>
  5912. |
  5913. | /* end standard C headers. */
  5914. |
  5915. | /* flex integer type definitions */
  5916. |
  5917. | #ifndef FLEXINT_H
  5918. | #define FLEXINT_H
  5919. |
  5920. | /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
  5921. |
  5922. | #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
  5923. |
  5924. | /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
  5925. | * if you want the limit (max/min) macros for int types.
  5926. | */
  5927. | #ifndef __STDC_LIMIT_MACROS
  5928. | #define __STDC_LIMIT_MACROS 1
  5929. | #endif
  5930. |
  5931. | #include <inttypes.h>
  5932. | typedef int8_t flex_int8_t;
  5933. | typedef uint8_t flex_uint8_t;
  5934. | typedef int16_t flex_int16_t;
  5935. | typedef uint16_t flex_uint16_t;
  5936. | typedef int32_t flex_int32_t;
  5937. | typedef uint32_t flex_uint32_t;
  5938. | #else
  5939. | typedef signed char flex_int8_t;
  5940. | typedef short int flex_int16_t;
  5941. | typedef int flex_int32_t;
  5942. | typedef unsigned char flex_uint8_t;
  5943. | typedef unsigned short int flex_uint16_t;
  5944. | typedef unsigned int flex_uint32_t;
  5945. |
  5946. | /* Limits of integral types. */
  5947. | #ifndef INT8_MIN
  5948. | #define INT8_MIN (-128)
  5949. | #endif
  5950. | #ifndef INT16_MIN
  5951. | #define INT16_MIN (-32767-1)
  5952. | #endif
  5953. | #ifndef INT32_MIN
  5954. | #define INT32_MIN (-2147483647-1)
  5955. | #endif
  5956. | #ifndef INT8_MAX
  5957. | #define INT8_MAX (127)
  5958. | #endif
  5959. | #ifndef INT16_MAX
  5960. | #define INT16_MAX (32767)
  5961. | #endif
  5962. | #ifndef INT32_MAX
  5963. | #define INT32_MAX (2147483647)
  5964. | #endif
  5965. | #ifndef UINT8_MAX
  5966. | #define UINT8_MAX (255U)
  5967. | #endif
  5968. | #ifndef UINT16_MAX
  5969. | #define UINT16_MAX (65535U)
  5970. | #endif
  5971. | #ifndef UINT32_MAX
  5972. | #define UINT32_MAX (4294967295U)
  5973. | #endif
  5974. |
  5975. | #ifndef SIZE_MAX
  5976. | #define SIZE_MAX (~(size_t)0)
  5977. | #endif
  5978. |
  5979. | #endif /* ! C99 */
  5980. |
  5981. | #endif /* ! FLEXINT_H */
  5982. |
  5983. | /* begin standard C++ headers. */
  5984. |
  5985. | /* TODO: this is always defined, so inline it */
  5986. | #define yyconst const
  5987. |
  5988. | #if defined(__GNUC__) && __GNUC__ >= 3
  5989. | #define yynoreturn __attribute__((__noreturn__))
  5990. | #else
  5991. | #define yynoreturn
  5992. | #endif
  5993. |
  5994. | /* Returned upon end-of-file. */
  5995. | #define YY_NULL 0
  5996. |
  5997. | /* Promotes a possibly negative, possibly signed char to an
  5998. | * integer in range [0..255] for use as an array index.
  5999. | */
  6000. | #define YY_SC_TO_UI(c) ((YY_CHAR) (c))
  6001. |
  6002. | /* Enter a start condition. This macro really ought to take a parameter,
  6003. | * but we do it the disgusting crufty way forced on us by the ()-less
  6004. | * definition of BEGIN.
  6005. | */
  6006. | #define BEGIN (yy_start) = 1 + 2 *
  6007. | /* Translate the current start state into a value that can be later handed
  6008. | * to BEGIN to return to the state. The YYSTATE alias is for lex
  6009. | * compatibility.
  6010. | */
  6011. | #define YY_START (((yy_start) - 1) / 2)
  6012. | #define YYSTATE YY_START
  6013. | /* Action number for EOF rule of a given start state. */
  6014. | #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  6015. | /* Special action meaning "start processing a new file". */
  6016. | #define YY_NEW_FILE yyrestart( yyin )
  6017. | #define YY_END_OF_BUFFER_CHAR 0
  6018. |
  6019. | /* Size of default input buffer. */
  6020. | #ifndef YY_BUF_SIZE
  6021. | #ifdef __ia64__
  6022. | /* On IA-64, the buffer size is 16k, not 8k.
  6023. | * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
  6024. | * Ditto for the __ia64__ case accordingly.
  6025. | */
  6026. | #define YY_BUF_SIZE 32768
  6027. | #else
  6028. | #define YY_BUF_SIZE 16384
  6029. | #endif /* __ia64__ */
  6030. | #endif
  6031. |
  6032. | /* The state buf must be large enough to hold one state per character in the main buffer.
  6033. | */
  6034. | #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
  6035. |
  6036. | #ifndef YY_TYPEDEF_YY_BUFFER_STATE
  6037. | #define YY_TYPEDEF_YY_BUFFER_STATE
  6038. | typedef struct yy_buffer_state *YY_BUFFER_STATE;
  6039. | #endif
  6040. |
  6041. | #ifndef YY_TYPEDEF_YY_SIZE_T
  6042. | #define YY_TYPEDEF_YY_SIZE_T
  6043. | typedef size_t yy_size_t;
  6044. | #endif
  6045. |
  6046. | extern int yyleng;
  6047. |
  6048. | extern FILE *yyin, *yyout;
  6049. |
  6050. | #define EOB_ACT_CONTINUE_SCAN 0
  6051. | #define EOB_ACT_END_OF_FILE 1
  6052. | #define EOB_ACT_LAST_MATCH 2
  6053. |
  6054. | #define YY_LESS_LINENO(n)
  6055. | #define YY_LINENO_REWIND_TO(ptr)
  6056. |
  6057. | /* Return all but the first "n" matched characters back to the input stream. */
  6058. | #define yyless(n) \
  6059. | do \
  6060. | { \
  6061. | /* Undo effects of setting up yytext. */ \
  6062. | int yyless_macro_arg = (n); \
  6063. | YY_LESS_LINENO(yyless_macro_arg);\
  6064. | *yy_cp = (yy_hold_char); \
  6065. | YY_RESTORE_YY_MORE_OFFSET \
  6066. | (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
  6067. | YY_DO_BEFORE_ACTION; /* set up yytext again */ \
  6068. | } \
  6069. | while ( 0 )
  6070. | #define unput(c) yyunput( c, (yytext_ptr) )
  6071. |
  6072. | #ifndef YY_STRUCT_YY_BUFFER_STATE
  6073. | #define YY_STRUCT_YY_BUFFER_STATE
  6074. | struct yy_buffer_state
  6075. | {
  6076. | FILE *yy_input_file;
  6077. |
  6078. | char *yy_ch_buf; /* input buffer */
  6079. | char *yy_buf_pos; /* current position in input buffer */
  6080. |
  6081. | /* Size of input buffer in bytes, not including room for EOB
  6082. | * characters.
  6083. | */
  6084. | int yy_buf_size;
  6085. |
  6086. | /* Number of characters read into yy_ch_buf, not including EOB
  6087. | * characters.
  6088. | */
  6089. | int yy_n_chars;
  6090. |
  6091. | /* Whether we "own" the buffer - i.e., we know we created it,
  6092. | * and can realloc() it to grow it, and should free() it to
  6093. | * delete it.
  6094. | */
  6095. | int yy_is_our_buffer;
  6096. |
  6097. | /* Whether this is an "interactive" input source; if so, and
  6098. | * if we're using stdio for input, then we want to use getc()
  6099. | * instead of fread(), to make sure we stop fetching input after
  6100. | * each newline.
  6101. | */
  6102. | int yy_is_interactive;
  6103. |
  6104. | /* Whether we're considered to be at the beginning of a line.
  6105. | * If so, '^' rules will be active on the next match, otherwise
  6106. | * not.
  6107. | */
  6108. | int yy_at_bol;
  6109. |
  6110. | int yy_bs_lineno; /**< The line count. */
  6111. | int yy_bs_column; /**< The column count. */
  6112. |
  6113. | /* Whether to try to fill the input buffer when we reach the
  6114. | * end of it.
  6115. | */
  6116. | int yy_fill_buffer;
  6117. |
  6118. | int yy_buffer_status;
  6119. |
  6120. | #define YY_BUFFER_NEW 0
  6121. | #define YY_BUFFER_NORMAL 1
  6122. | /* When an EOF's been seen but there's still some text to process
  6123. | * then we mark the buffer as YY_EOF_PENDING, to indicate that we
  6124. | * shouldn't try reading from the input source any more. We might
  6125. | * still have a bunch of tokens to match, though, because of
  6126. | * possible backing-up.
  6127. | *
  6128. | * When we actually see the EOF, we change the status to "new"
  6129. | * (via yyrestart()), so that the user can continue scanning by
  6130. | * just pointing yyin at a new input file.
  6131. | */
  6132. | #define YY_BUFFER_EOF_PENDING 2
  6133. |
  6134. | };
  6135. | #endif /* !YY_STRUCT_YY_BUFFER_STATE */
  6136. |
  6137. | /* Stack of input buffers. */
  6138. | static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
  6139. | static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
  6140. | static YY_BUFFER_STATE * yy_buffer_stack = NULL; /**< Stack as an array. */
  6141. |
  6142. | /* We provide macros for accessing buffer states in case in the
  6143. | * future we want to put the buffer states in a more general
  6144. | * "scanner state".
  6145. | *
  6146. | * Returns the top of the stack, or NULL.
  6147. | */
  6148. | #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
  6149. | ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
  6150. | : NULL)
  6151. | /* Same as previous macro, but useful when we know that the buffer stack is not
  6152. | * NULL or when we need an lvalue. For internal use only.
  6153. | */
  6154. | #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
  6155. |
  6156. | /* yy_hold_char holds the character lost when yytext is formed. */
  6157. | static char yy_hold_char;
  6158. | static int yy_n_chars; /* number of characters read into yy_ch_buf */
  6159. | int yyleng;
  6160. |
  6161. | /* Points to current character in buffer. */
  6162. | static char *yy_c_buf_p = NULL;
  6163. | static int yy_init = 0; /* whether we need to initialize */
  6164. | static int yy_start = 0; /* start state number */
  6165. |
  6166. | /* Flag which is used to allow yywrap()'s to do buffer switches
  6167. | * instead of setting up a fresh yyin. A bit of a hack ...
  6168. | */
  6169. | static int yy_did_buffer_switch_on_eof;
  6170. |
  6171. | void yyrestart ( FILE *input_file );
  6172. | void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer );
  6173. | YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size );
  6174. | void yy_delete_buffer ( YY_BUFFER_STATE b );
  6175. | void yy_flush_buffer ( YY_BUFFER_STATE b );
  6176. | void yypush_buffer_state ( YY_BUFFER_STATE new_buffer );
  6177. | void yypop_buffer_state ( void );
  6178. |
  6179. | static void yyensure_buffer_stack ( void );
  6180. | static void yy_load_buffer_state ( void );
  6181. | static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file );
  6182. | #define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER )
  6183. |
  6184. | YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size );
  6185. | YY_BUFFER_STATE yy_scan_string ( const char *yy_str );
  6186. | YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len );
  6187. |
  6188. | void *yyalloc ( yy_size_t );
  6189. | void *yyrealloc ( void *, yy_size_t );
  6190. | void yyfree ( void * );
  6191. |
  6192. | #define yy_new_buffer yy_create_buffer
  6193. | #define yy_set_interactive(is_interactive) \
  6194. | { \
  6195. | if ( ! YY_CURRENT_BUFFER ){ \
  6196. | yyensure_buffer_stack (); \
  6197. | YY_CURRENT_BUFFER_LVALUE = \
  6198. | yy_create_buffer( yyin, YY_BUF_SIZE ); \
  6199. | } \
  6200. | YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
  6201. | }
  6202. | #define yy_set_bol(at_bol) \
  6203. | { \
  6204. | if ( ! YY_CURRENT_BUFFER ){\
  6205. | yyensure_buffer_stack (); \
  6206. | YY_CURRENT_BUFFER_LVALUE = \
  6207. | yy_create_buffer( yyin, YY_BUF_SIZE ); \
  6208. | } \
  6209. | YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
  6210. | }
  6211. | #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
  6212. |
  6213. | /* Begin user sect3 */
  6214. | typedef flex_uint8_t YY_CHAR;
  6215. |
  6216. | FILE *yyin = NULL, *yyout = NULL;
  6217. |
  6218. | typedef int yy_state_type;
  6219. |
  6220. | extern int yylineno;
  6221. | int yylineno = 1;
  6222. |
  6223. | extern char *yytext;
  6224. | #ifdef yytext_ptr
  6225. | #undef yytext_ptr
  6226. | #endif
  6227. | #define yytext_ptr yytext
  6228. |
  6229. | static yy_state_type yy_get_previous_state ( void );
  6230. | static yy_state_type yy_try_NUL_trans ( yy_state_type current_state );
  6231. | static int yy_get_next_buffer ( void );
  6232. | static void yynoreturn yy_fatal_error ( const char* msg );
  6233. |
  6234. | /* Done after the current pattern has been matched and before the
  6235. | * corresponding action - sets up yytext.
  6236. | */
  6237. | #define YY_DO_BEFORE_ACTION \
  6238. | (yytext_ptr) = yy_bp; \
  6239. | (yytext_ptr) -= (yy_more_len); \
  6240. | yyleng = (int) (yy_cp - (yytext_ptr)); \
  6241. | (yy_hold_char) = *yy_cp; \
  6242. | *yy_cp = '\0'; \
  6243. | (yy_c_buf_p) = yy_cp;
  6244. | #define YY_NUM_RULES 8
  6245. | #define YY_END_OF_BUFFER 9
  6246. | /* This struct is not used in this scanner,
  6247. | but its presence is necessary. */
  6248. | struct yy_trans_info
  6249. | {
  6250. | flex_int32_t yy_verify;
  6251. | flex_int32_t yy_nxt;
  6252. | };
  6253. | static const flex_int16_t yy_acclist[23] =
  6254. | { 0,
  6255. | 9, 7, 8, 8, 1, 7, 8, 2, 7, 8,
  6256. | 3, 7, 8, 4, 7, 8, 5, 7, 8, 6,
  6257. | 7, 8
  6258. | } ;
  6259. |
  6260. | static const flex_int16_t yy_accept[14] =
  6261. | { 0,
  6262. | 1, 1, 1, 2, 4, 5, 8, 11, 14, 17,
  6263. | 20, 23, 23
  6264. | } ;
  6265. |
  6266. | static const YY_CHAR yy_ec[256] =
  6267. | { 0,
  6268. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
  6269. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6270. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6271. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6272. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6273. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6274. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6275. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6276. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6277. | 1, 1, 1, 1, 1, 1, 3, 4, 5, 6,
  6278. |
  6279. | 7, 8, 1, 1, 1, 1, 1, 1, 1, 1,
  6280. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6281. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6282. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6283. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6284. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6285. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6286. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6287. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6288. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6289. |
  6290. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6291. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6292. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6293. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6294. | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  6295. | 1, 1, 1, 1, 1
  6296. | } ;
  6297. |
  6298. | static const YY_CHAR yy_meta[9] =
  6299. | { 0,
  6300. | 1, 1, 1, 1, 1, 1, 1, 1
  6301. | } ;
  6302. |
  6303. | static const flex_int16_t yy_base[13] =
  6304. | { 0,
  6305. | 0, 0, 9, 10, 10, 10, 10, 10, 10, 10,
  6306. | 10, 10
  6307. | } ;
  6308. |
  6309. | static const flex_int16_t yy_def[13] =
  6310. | { 0,
  6311. | 12, 1, 12, 12, 12, 12, 12, 12, 12, 12,
  6312. | 12, 0
  6313. | } ;
  6314. |
  6315. | static const flex_int16_t yy_nxt[19] =
  6316. | { 0,
  6317. | 4, 5, 6, 7, 8, 9, 10, 11, 12, 3,
  6318. | 12, 12, 12, 12, 12, 12, 12, 12
  6319. | } ;
  6320. |
  6321. | static const flex_int16_t yy_chk[19] =
  6322. | { 0,
  6323. | 1, 1, 1, 1, 1, 1, 1, 1, 3, 12,
  6324. | 12, 12, 12, 12, 12, 12, 12, 12
  6325. | } ;
  6326. |
  6327. | extern int yy_flex_debug;
  6328. | int yy_flex_debug = 0;
  6329. |
  6330. | static yy_state_type *yy_state_buf=0, *yy_state_ptr=0;
  6331. | static char *yy_full_match;
  6332. | static int yy_lp;
  6333. | #define REJECT \
  6334. | { \
  6335. | *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ \
  6336. | yy_cp = (yy_full_match); /* restore poss. backed-over text */ \
  6337. | ++(yy_lp); \
  6338. | goto find_rule; \
  6339. | }
  6340. |
  6341. | static int yy_more_flag = 0;
  6342. | static int yy_more_len = 0;
  6343. | #define yymore() ((yy_more_flag) = 1)
  6344. | #define YY_MORE_ADJ (yy_more_len)
  6345. | #define YY_RESTORE_YY_MORE_OFFSET
  6346. | char *yytext;
  6347. | #line 1 "conftest.l"
  6348. | #line 460 "lex.yy.c"
  6349. |
  6350. | #define INITIAL 0
  6351. |
  6352. | #ifndef YY_NO_UNISTD_H
  6353. | /* Special case for "unistd.h", since it is non-ANSI. We include it way
  6354. | * down here because we want the user's section 1 to have been scanned first.
  6355. | * The user has a chance to override it with an option.
  6356. | */
  6357. | #include <unistd.h>
  6358. | #endif
  6359. |
  6360. | #ifndef YY_EXTRA_TYPE
  6361. | #define YY_EXTRA_TYPE void *
  6362. | #endif
  6363. |
  6364. | static int yy_init_globals ( void );
  6365. |
  6366. | /* Accessor methods to globals.
  6367. | These are made visible to non-reentrant scanners for convenience. */
  6368. |
  6369. | int yylex_destroy ( void );
  6370. |
  6371. | int yyget_debug ( void );
  6372. |
  6373. | void yyset_debug ( int debug_flag );
  6374. |
  6375. | YY_EXTRA_TYPE yyget_extra ( void );
  6376. |
  6377. | void yyset_extra ( YY_EXTRA_TYPE user_defined );
  6378. |
  6379. | FILE *yyget_in ( void );
  6380. |
  6381. | void yyset_in ( FILE * _in_str );
  6382. |
  6383. | FILE *yyget_out ( void );
  6384. |
  6385. | void yyset_out ( FILE * _out_str );
  6386. |
  6387. | int yyget_leng ( void );
  6388. |
  6389. | char *yyget_text ( void );
  6390. |
  6391. | int yyget_lineno ( void );
  6392. |
  6393. | void yyset_lineno ( int _line_number );
  6394. |
  6395. | /* Macros after this point can all be overridden by user definitions in
  6396. | * section 1.
  6397. | */
  6398. |
  6399. | #ifndef YY_SKIP_YYWRAP
  6400. | #ifdef __cplusplus
  6401. | extern "C" int yywrap ( void );
  6402. | #else
  6403. | extern int yywrap ( void );
  6404. | #endif
  6405. | #endif
  6406. |
  6407. | #ifndef YY_NO_UNPUT
  6408. |
  6409. | static void yyunput ( int c, char *buf_ptr );
  6410. |
  6411. | #endif
  6412. |
  6413. | #ifndef yytext_ptr
  6414. | static void yy_flex_strncpy ( char *, const char *, int );
  6415. | #endif
  6416. |
  6417. | #ifdef YY_NEED_STRLEN
  6418. | static int yy_flex_strlen ( const char * );
  6419. | #endif
  6420. |
  6421. | #ifndef YY_NO_INPUT
  6422. | #ifdef __cplusplus
  6423. | static int yyinput ( void );
  6424. | #else
  6425. | static int input ( void );
  6426. | #endif
  6427. |
  6428. | #endif
  6429. |
  6430. | /* Amount of stuff to slurp up with each read. */
  6431. | #ifndef YY_READ_BUF_SIZE
  6432. | #ifdef __ia64__
  6433. | /* On IA-64, the buffer size is 16k, not 8k */
  6434. | #define YY_READ_BUF_SIZE 16384
  6435. | #else
  6436. | #define YY_READ_BUF_SIZE 8192
  6437. | #endif /* __ia64__ */
  6438. | #endif
  6439. |
  6440. | /* Copy whatever the last rule matched to the standard output. */
  6441. | #ifndef ECHO
  6442. | /* This used to be an fputs(), but since the string might contain NUL's,
  6443. | * we now use fwrite().
  6444. | */
  6445. | #define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
  6446. | #endif
  6447. |
  6448. | /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
  6449. | * is returned in "result".
  6450. | */
  6451. | #ifndef YY_INPUT
  6452. | #define YY_INPUT(buf,result,max_size) \
  6453. | if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
  6454. | { \
  6455. | int c = '*'; \
  6456. | int n; \
  6457. | for ( n = 0; n < max_size && \
  6458. | (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
  6459. | buf[n] = (char) c; \
  6460. | if ( c == '\n' ) \
  6461. | buf[n++] = (char) c; \
  6462. | if ( c == EOF && ferror( yyin ) ) \
  6463. | YY_FATAL_ERROR( "input in flex scanner failed" ); \
  6464. | result = n; \
  6465. | } \
  6466. | else \
  6467. | { \
  6468. | errno=0; \
  6469. | while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
  6470. | { \
  6471. | if( errno != EINTR) \
  6472. | { \
  6473. | YY_FATAL_ERROR( "input in flex scanner failed" ); \
  6474. | break; \
  6475. | } \
  6476. | errno=0; \
  6477. | clearerr(yyin); \
  6478. | } \
  6479. | }\
  6480. | \
  6481. |
  6482. | #endif
  6483. |
  6484. | /* No semi-colon after return; correct usage is to write "yyterminate();" -
  6485. | * we don't want an extra ';' after the "return" because that will cause
  6486. | * some compilers to complain about unreachable statements.
  6487. | */
  6488. | #ifndef yyterminate
  6489. | #define yyterminate() return YY_NULL
  6490. | #endif
  6491. |
  6492. | /* Number of entries by which start-condition stack grows. */
  6493. | #ifndef YY_START_STACK_INCR
  6494. | #define YY_START_STACK_INCR 25
  6495. | #endif
  6496. |
  6497. | /* Report a fatal error. */
  6498. | #ifndef YY_FATAL_ERROR
  6499. | #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
  6500. | #endif
  6501. |
  6502. | /* end tables serialization structures and prototypes */
  6503. |
  6504. | /* Default declaration of generated scanner - a define so the user can
  6505. | * easily add parameters.
  6506. | */
  6507. | #ifndef YY_DECL
  6508. | #define YY_DECL_IS_OURS 1
  6509. |
  6510. | extern int yylex (void);
  6511. |
  6512. | #define YY_DECL int yylex (void)
  6513. | #endif /* !YY_DECL */
  6514. |
  6515. | /* Code executed at the beginning of each rule, after yytext and yyleng
  6516. | * have been set up.
  6517. | */
  6518. | #ifndef YY_USER_ACTION
  6519. | #define YY_USER_ACTION
  6520. | #endif
  6521. |
  6522. | /* Code executed at the end of each rule. */
  6523. | #ifndef YY_BREAK
  6524. | #define YY_BREAK /*LINTED*/break;
  6525. | #endif
  6526. |
  6527. | #define YY_RULE_SETUP \
  6528. | YY_USER_ACTION
  6529. |
  6530. | /** The main scanner function which does all the work.
  6531. | */
  6532. | YY_DECL
  6533. | {
  6534. | yy_state_type yy_current_state;
  6535. | char *yy_cp, *yy_bp;
  6536. | int yy_act;
  6537. |
  6538. | if ( !(yy_init) )
  6539. | {
  6540. | (yy_init) = 1;
  6541. |
  6542. | #ifdef YY_USER_INIT
  6543. | YY_USER_INIT;
  6544. | #endif
  6545. |
  6546. | /* Create the reject buffer large enough to save one state per allowed character. */
  6547. | if ( ! (yy_state_buf) )
  6548. | (yy_state_buf) = (yy_state_type *)yyalloc(YY_STATE_BUF_SIZE );
  6549. | if ( ! (yy_state_buf) )
  6550. | YY_FATAL_ERROR( "out of dynamic memory in yylex()" );
  6551. |
  6552. | if ( ! (yy_start) )
  6553. | (yy_start) = 1; /* first start state */
  6554. |
  6555. | if ( ! yyin )
  6556. | yyin = stdin;
  6557. |
  6558. | if ( ! yyout )
  6559. | yyout = stdout;
  6560. |
  6561. | if ( ! YY_CURRENT_BUFFER ) {
  6562. | yyensure_buffer_stack ();
  6563. | YY_CURRENT_BUFFER_LVALUE =
  6564. | yy_create_buffer( yyin, YY_BUF_SIZE );
  6565. | }
  6566. |
  6567. | yy_load_buffer_state( );
  6568. | }
  6569. |
  6570. | {
  6571. | #line 1 "conftest.l"
  6572. |
  6573. | #line 685 "lex.yy.c"
  6574. |
  6575. | while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
  6576. | {
  6577. | (yy_more_len) = 0;
  6578. | if ( (yy_more_flag) )
  6579. | {
  6580. | (yy_more_len) = (int) ((yy_c_buf_p) - (yytext_ptr));
  6581. | (yy_more_flag) = 0;
  6582. | }
  6583. | yy_cp = (yy_c_buf_p);
  6584. |
  6585. | /* Support of yytext. */
  6586. | *yy_cp = (yy_hold_char);
  6587. |
  6588. | /* yy_bp points to the position in yy_ch_buf of the start of
  6589. | * the current run.
  6590. | */
  6591. | yy_bp = yy_cp;
  6592. |
  6593. | yy_current_state = (yy_start);
  6594. |
  6595. | (yy_state_ptr) = (yy_state_buf);
  6596. | *(yy_state_ptr)++ = yy_current_state;
  6597. |
  6598. | yy_match:
  6599. | do
  6600. | {
  6601. | YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
  6602. | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  6603. | {
  6604. | yy_current_state = (int) yy_def[yy_current_state];
  6605. | if ( yy_current_state >= 13 )
  6606. | yy_c = yy_meta[yy_c];
  6607. | }
  6608. | yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  6609. | *(yy_state_ptr)++ = yy_current_state;
  6610. | ++yy_cp;
  6611. | }
  6612. | while ( yy_base[yy_current_state] != 10 );
  6613. |
  6614. | yy_find_action:
  6615. | yy_current_state = *--(yy_state_ptr);
  6616. | (yy_lp) = yy_accept[yy_current_state];
  6617. |
  6618. | find_rule: /* we branch to this label when backing up */
  6619. |
  6620. | for ( ; ; ) /* until we find what rule we matched */
  6621. | {
  6622. | if ( (yy_lp) && (yy_lp) < yy_accept[yy_current_state + 1] )
  6623. | {
  6624. | yy_act = yy_acclist[(yy_lp)];
  6625. | {
  6626. | (yy_full_match) = yy_cp;
  6627. | break;
  6628. | }
  6629. | }
  6630. | --yy_cp;
  6631. | yy_current_state = *--(yy_state_ptr);
  6632. | (yy_lp) = yy_accept[yy_current_state];
  6633. | }
  6634. |
  6635. | YY_DO_BEFORE_ACTION;
  6636. |
  6637. | do_action: /* This label is used only to access EOF actions. */
  6638. |
  6639. | switch ( yy_act )
  6640. | { /* beginning of action switch */
  6641. | case 1:
  6642. | YY_RULE_SETUP
  6643. | #line 2 "conftest.l"
  6644. | { ECHO; }
  6645. | YY_BREAK
  6646. | case 2:
  6647. | YY_RULE_SETUP
  6648. | #line 3 "conftest.l"
  6649. | { REJECT; }
  6650. | YY_BREAK
  6651. | case 3:
  6652. | YY_RULE_SETUP
  6653. | #line 4 "conftest.l"
  6654. | { yymore (); }
  6655. | YY_BREAK
  6656. | case 4:
  6657. | YY_RULE_SETUP
  6658. | #line 5 "conftest.l"
  6659. | { yyless (1); }
  6660. | YY_BREAK
  6661. | case 5:
  6662. | YY_RULE_SETUP
  6663. | #line 6 "conftest.l"
  6664. | { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
  6665. | yyless ((input () != 0)); }
  6666. | YY_BREAK
  6667. | case 6:
  6668. | YY_RULE_SETUP
  6669. | #line 8 "conftest.l"
  6670. | { unput (yytext[0]); }
  6671. | YY_BREAK
  6672. | case 7:
  6673. | YY_RULE_SETUP
  6674. | #line 9 "conftest.l"
  6675. | { BEGIN INITIAL; }
  6676. | YY_BREAK
  6677. | case 8:
  6678. | YY_RULE_SETUP
  6679. | #line 10 "conftest.l"
  6680. | ECHO;
  6681. | YY_BREAK
  6682. | #line 794 "lex.yy.c"
  6683. | case YY_STATE_EOF(INITIAL):
  6684. | yyterminate();
  6685. |
  6686. | case YY_END_OF_BUFFER:
  6687. | {
  6688. | /* Amount of text matched not including the EOB char. */
  6689. | int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
  6690. |
  6691. | /* Undo the effects of YY_DO_BEFORE_ACTION. */
  6692. | *yy_cp = (yy_hold_char);
  6693. | YY_RESTORE_YY_MORE_OFFSET
  6694. |
  6695. | if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
  6696. | {
  6697. | /* We're scanning a new file or input source. It's
  6698. | * possible that this happened because the user
  6699. | * just pointed yyin at a new source and called
  6700. | * yylex(). If so, then we have to assure
  6701. | * consistency between YY_CURRENT_BUFFER and our
  6702. | * globals. Here is the right place to do so, because
  6703. | * this is the first action (other than possibly a
  6704. | * back-up) that will match for the new input source.
  6705. | */
  6706. | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  6707. | YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
  6708. | YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
  6709. | }
  6710. |
  6711. | /* Note that here we test for yy_c_buf_p "<=" to the position
  6712. | * of the first EOB in the buffer, since yy_c_buf_p will
  6713. | * already have been incremented past the NUL character
  6714. | * (since all states make transitions on EOB to the
  6715. | * end-of-buffer state). Contrast this with the test
  6716. | * in input().
  6717. | */
  6718. | if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
  6719. | { /* This was really a NUL. */
  6720. | yy_state_type yy_next_state;
  6721. |
  6722. | (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
  6723. |
  6724. | yy_current_state = yy_get_previous_state( );
  6725. |
  6726. | /* Okay, we're now positioned to make the NUL
  6727. | * transition. We couldn't have
  6728. | * yy_get_previous_state() go ahead and do it
  6729. | * for us because it doesn't know how to deal
  6730. | * with the possibility of jamming (and we don't
  6731. | * want to build jamming into it because then it
  6732. | * will run more slowly).
  6733. | */
  6734. |
  6735. | yy_next_state = yy_try_NUL_trans( yy_current_state );
  6736. |
  6737. | yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  6738. |
  6739. | if ( yy_next_state )
  6740. | {
  6741. | /* Consume the NUL. */
  6742. | yy_cp = ++(yy_c_buf_p);
  6743. | yy_current_state = yy_next_state;
  6744. | goto yy_match;
  6745. | }
  6746. |
  6747. | else
  6748. | {
  6749. | yy_cp = (yy_c_buf_p);
  6750. | goto yy_find_action;
  6751. | }
  6752. | }
  6753. |
  6754. | else switch ( yy_get_next_buffer( ) )
  6755. | {
  6756. | case EOB_ACT_END_OF_FILE:
  6757. | {
  6758. | (yy_did_buffer_switch_on_eof) = 0;
  6759. |
  6760. | if ( yywrap( ) )
  6761. | {
  6762. | /* Note: because we've taken care in
  6763. | * yy_get_next_buffer() to have set up
  6764. | * yytext, we can now set up
  6765. | * yy_c_buf_p so that if some total
  6766. | * hoser (like flex itself) wants to
  6767. | * call the scanner after we return the
  6768. | * YY_NULL, it'll still work - another
  6769. | * YY_NULL will get returned.
  6770. | */
  6771. | (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
  6772. |
  6773. | yy_act = YY_STATE_EOF(YY_START);
  6774. | goto do_action;
  6775. | }
  6776. |
  6777. | else
  6778. | {
  6779. | if ( ! (yy_did_buffer_switch_on_eof) )
  6780. | YY_NEW_FILE;
  6781. | }
  6782. | break;
  6783. | }
  6784. |
  6785. | case EOB_ACT_CONTINUE_SCAN:
  6786. | (yy_c_buf_p) =
  6787. | (yytext_ptr) + yy_amount_of_matched_text;
  6788. |
  6789. | yy_current_state = yy_get_previous_state( );
  6790. |
  6791. | yy_cp = (yy_c_buf_p);
  6792. | yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  6793. | goto yy_match;
  6794. |
  6795. | case EOB_ACT_LAST_MATCH:
  6796. | (yy_c_buf_p) =
  6797. | &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
  6798. |
  6799. | yy_current_state = yy_get_previous_state( );
  6800. |
  6801. | yy_cp = (yy_c_buf_p);
  6802. | yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  6803. | goto yy_find_action;
  6804. | }
  6805. | break;
  6806. | }
  6807. |
  6808. | default:
  6809. | YY_FATAL_ERROR(
  6810. | "fatal flex scanner internal error--no action found" );
  6811. | } /* end of action switch */
  6812. | } /* end of scanning one token */
  6813. | } /* end of user's declarations */
  6814. | } /* end of yylex */
  6815. |
  6816. | /* yy_get_next_buffer - try to read in a new buffer
  6817. | *
  6818. | * Returns a code representing an action:
  6819. | * EOB_ACT_LAST_MATCH -
  6820. | * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
  6821. | * EOB_ACT_END_OF_FILE - end of file
  6822. | */
  6823. | static int yy_get_next_buffer (void)
  6824. | {
  6825. | char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
  6826. | char *source = (yytext_ptr);
  6827. | int number_to_move, i;
  6828. | int ret_val;
  6829. |
  6830. | if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
  6831. | YY_FATAL_ERROR(
  6832. | "fatal flex scanner internal error--end of buffer missed" );
  6833. |
  6834. | if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
  6835. | { /* Don't try to fill the buffer, so this is an EOF. */
  6836. | if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
  6837. | {
  6838. | /* We matched a single character, the EOB, so
  6839. | * treat this as a final EOF.
  6840. | */
  6841. | return EOB_ACT_END_OF_FILE;
  6842. | }
  6843. |
  6844. | else
  6845. | {
  6846. | /* We matched some text prior to the EOB, first
  6847. | * process it.
  6848. | */
  6849. | return EOB_ACT_LAST_MATCH;
  6850. | }
  6851. | }
  6852. |
  6853. | /* Try to read more data. */
  6854. |
  6855. | /* First move last chars to start of buffer. */
  6856. | number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr) - 1);
  6857. |
  6858. | for ( i = 0; i < number_to_move; ++i )
  6859. | *(dest++) = *(source++);
  6860. |
  6861. | if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
  6862. | /* don't do the read, it's not guaranteed to return an EOF,
  6863. | * just force an EOF
  6864. | */
  6865. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
  6866. |
  6867. | else
  6868. | {
  6869. | int num_to_read =
  6870. | YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
  6871. |
  6872. | while ( num_to_read <= 0 )
  6873. | { /* Not enough room in the buffer - grow it. */
  6874. |
  6875. | YY_FATAL_ERROR(
  6876. | "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
  6877. |
  6878. | }
  6879. |
  6880. | if ( num_to_read > YY_READ_BUF_SIZE )
  6881. | num_to_read = YY_READ_BUF_SIZE;
  6882. |
  6883. | /* Read in more data. */
  6884. | YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
  6885. | (yy_n_chars), num_to_read );
  6886. |
  6887. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  6888. | }
  6889. |
  6890. | if ( (yy_n_chars) == 0 )
  6891. | {
  6892. | if ( number_to_move == YY_MORE_ADJ )
  6893. | {
  6894. | ret_val = EOB_ACT_END_OF_FILE;
  6895. | yyrestart( yyin );
  6896. | }
  6897. |
  6898. | else
  6899. | {
  6900. | ret_val = EOB_ACT_LAST_MATCH;
  6901. | YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
  6902. | YY_BUFFER_EOF_PENDING;
  6903. | }
  6904. | }
  6905. |
  6906. | else
  6907. | ret_val = EOB_ACT_CONTINUE_SCAN;
  6908. |
  6909. | if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
  6910. | /* Extend the array by 50%, plus the number we really need. */
  6911. | int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
  6912. | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
  6913. | (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size );
  6914. | if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
  6915. | YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
  6916. | /* "- 2" to take care of EOB's */
  6917. | YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
  6918. | }
  6919. |
  6920. | (yy_n_chars) += number_to_move;
  6921. | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
  6922. | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
  6923. |
  6924. | (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
  6925. |
  6926. | return ret_val;
  6927. | }
  6928. |
  6929. | /* yy_get_previous_state - get the state just before the EOB char was reached */
  6930. |
  6931. | static yy_state_type yy_get_previous_state (void)
  6932. | {
  6933. | yy_state_type yy_current_state;
  6934. | char *yy_cp;
  6935. |
  6936. | yy_current_state = (yy_start);
  6937. |
  6938. | (yy_state_ptr) = (yy_state_buf);
  6939. | *(yy_state_ptr)++ = yy_current_state;
  6940. |
  6941. | for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
  6942. | {
  6943. | YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
  6944. | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  6945. | {
  6946. | yy_current_state = (int) yy_def[yy_current_state];
  6947. | if ( yy_current_state >= 13 )
  6948. | yy_c = yy_meta[yy_c];
  6949. | }
  6950. | yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  6951. | *(yy_state_ptr)++ = yy_current_state;
  6952. | }
  6953. |
  6954. | return yy_current_state;
  6955. | }
  6956. |
  6957. | /* yy_try_NUL_trans - try to make a transition on the NUL character
  6958. | *
  6959. | * synopsis
  6960. | * next_state = yy_try_NUL_trans( current_state );
  6961. | */
  6962. | static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
  6963. | {
  6964. | int yy_is_jam;
  6965. |
  6966. | YY_CHAR yy_c = 1;
  6967. | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  6968. | {
  6969. | yy_current_state = (int) yy_def[yy_current_state];
  6970. | if ( yy_current_state >= 13 )
  6971. | yy_c = yy_meta[yy_c];
  6972. | }
  6973. | yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
  6974. | yy_is_jam = (yy_current_state == 12);
  6975. | if ( ! yy_is_jam )
  6976. | *(yy_state_ptr)++ = yy_current_state;
  6977. |
  6978. | return yy_is_jam ? 0 : yy_current_state;
  6979. | }
  6980. |
  6981. | #ifndef YY_NO_UNPUT
  6982. |
  6983. | static void yyunput (int c, char * yy_bp )
  6984. | {
  6985. | char *yy_cp;
  6986. |
  6987. | yy_cp = (yy_c_buf_p);
  6988. |
  6989. | /* undo effects of setting up yytext */
  6990. | *yy_cp = (yy_hold_char);
  6991. |
  6992. | if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
  6993. | { /* need to shift things up to make room */
  6994. | /* +2 for EOB chars. */
  6995. | int number_to_move = (yy_n_chars) + 2;
  6996. | char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
  6997. | YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
  6998. | char *source =
  6999. | &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
  7000. |
  7001. | while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
  7002. | *--dest = *--source;
  7003. |
  7004. | yy_cp += (int) (dest - source);
  7005. | yy_bp += (int) (dest - source);
  7006. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
  7007. | (yy_n_chars) = (int) YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
  7008. |
  7009. | if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
  7010. | YY_FATAL_ERROR( "flex scanner push-back overflow" );
  7011. | }
  7012. |
  7013. | *--yy_cp = (char) c;
  7014. |
  7015. | (yytext_ptr) = yy_bp;
  7016. | (yy_hold_char) = *yy_cp;
  7017. | (yy_c_buf_p) = yy_cp;
  7018. | }
  7019. |
  7020. | #endif
  7021. |
  7022. | #ifndef YY_NO_INPUT
  7023. | #ifdef __cplusplus
  7024. | static int yyinput (void)
  7025. | #else
  7026. | static int input (void)
  7027. | #endif
  7028. |
  7029. | {
  7030. | int c;
  7031. |
  7032. | *(yy_c_buf_p) = (yy_hold_char);
  7033. |
  7034. | if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
  7035. | {
  7036. | /* yy_c_buf_p now points to the character we want to return.
  7037. | * If this occurs *before* the EOB characters, then it's a
  7038. | * valid NUL; if not, then we've hit the end of the buffer.
  7039. | */
  7040. | if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
  7041. | /* This was really a NUL. */
  7042. | *(yy_c_buf_p) = '\0';
  7043. |
  7044. | else
  7045. | { /* need more input */
  7046. | int offset = (int) ((yy_c_buf_p) - (yytext_ptr));
  7047. | ++(yy_c_buf_p);
  7048. |
  7049. | switch ( yy_get_next_buffer( ) )
  7050. | {
  7051. | case EOB_ACT_LAST_MATCH:
  7052. | /* This happens because yy_g_n_b()
  7053. | * sees that we've accumulated a
  7054. | * token and flags that we need to
  7055. | * try matching the token before
  7056. | * proceeding. But for input(),
  7057. | * there's no matching to consider.
  7058. | * So convert the EOB_ACT_LAST_MATCH
  7059. | * to EOB_ACT_END_OF_FILE.
  7060. | */
  7061. |
  7062. | /* Reset buffer status. */
  7063. | yyrestart( yyin );
  7064. |
  7065. | /*FALLTHROUGH*/
  7066. |
  7067. | case EOB_ACT_END_OF_FILE:
  7068. | {
  7069. | if ( yywrap( ) )
  7070. | return 0;
  7071. |
  7072. | if ( ! (yy_did_buffer_switch_on_eof) )
  7073. | YY_NEW_FILE;
  7074. | #ifdef __cplusplus
  7075. | return yyinput();
  7076. | #else
  7077. | return input();
  7078. | #endif
  7079. | }
  7080. |
  7081. | case EOB_ACT_CONTINUE_SCAN:
  7082. | (yy_c_buf_p) = (yytext_ptr) + offset;
  7083. | break;
  7084. | }
  7085. | }
  7086. | }
  7087. |
  7088. | c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
  7089. | *(yy_c_buf_p) = '\0'; /* preserve yytext */
  7090. | (yy_hold_char) = *++(yy_c_buf_p);
  7091. |
  7092. | return c;
  7093. | }
  7094. | #endif /* ifndef YY_NO_INPUT */
  7095. |
  7096. | /** Immediately switch to a different input stream.
  7097. | * @param input_file A readable stream.
  7098. | *
  7099. | * @note This function does not reset the start condition to @c INITIAL .
  7100. | */
  7101. | void yyrestart (FILE * input_file )
  7102. | {
  7103. |
  7104. | if ( ! YY_CURRENT_BUFFER ){
  7105. | yyensure_buffer_stack ();
  7106. | YY_CURRENT_BUFFER_LVALUE =
  7107. | yy_create_buffer( yyin, YY_BUF_SIZE );
  7108. | }
  7109. |
  7110. | yy_init_buffer( YY_CURRENT_BUFFER, input_file );
  7111. | yy_load_buffer_state( );
  7112. | }
  7113. |
  7114. | /** Switch to a different input buffer.
  7115. | * @param new_buffer The new input buffer.
  7116. | *
  7117. | */
  7118. | void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
  7119. | {
  7120. |
  7121. | /* TODO. We should be able to replace this entire function body
  7122. | * with
  7123. | * yypop_buffer_state();
  7124. | * yypush_buffer_state(new_buffer);
  7125. | */
  7126. | yyensure_buffer_stack ();
  7127. | if ( YY_CURRENT_BUFFER == new_buffer )
  7128. | return;
  7129. |
  7130. | if ( YY_CURRENT_BUFFER )
  7131. | {
  7132. | /* Flush out information for old buffer. */
  7133. | *(yy_c_buf_p) = (yy_hold_char);
  7134. | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
  7135. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  7136. | }
  7137. |
  7138. | YY_CURRENT_BUFFER_LVALUE = new_buffer;
  7139. | yy_load_buffer_state( );
  7140. |
  7141. | /* We don't actually know whether we did this switch during
  7142. | * EOF (yywrap()) processing, but the only time this flag
  7143. | * is looked at is after yywrap() is called, so it's safe
  7144. | * to go ahead and always set it.
  7145. | */
  7146. | (yy_did_buffer_switch_on_eof) = 1;
  7147. | }
  7148. |
  7149. | static void yy_load_buffer_state (void)
  7150. | {
  7151. | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  7152. | (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
  7153. | yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
  7154. | (yy_hold_char) = *(yy_c_buf_p);
  7155. | }
  7156. |
  7157. | /** Allocate and initialize an input buffer state.
  7158. | * @param file A readable stream.
  7159. | * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
  7160. | *
  7161. | * @return the allocated buffer state.
  7162. | */
  7163. | YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
  7164. | {
  7165. | YY_BUFFER_STATE b;
  7166. |
  7167. | b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
  7168. | if ( ! b )
  7169. | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  7170. |
  7171. | b->yy_buf_size = size;
  7172. |
  7173. | /* yy_ch_buf has to be 2 characters longer than the size given because
  7174. | * we need to put in 2 end-of-buffer characters.
  7175. | */
  7176. | b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) );
  7177. | if ( ! b->yy_ch_buf )
  7178. | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  7179. |
  7180. | b->yy_is_our_buffer = 1;
  7181. |
  7182. | yy_init_buffer( b, file );
  7183. |
  7184. | return b;
  7185. | }
  7186. |
  7187. | /** Destroy the buffer.
  7188. | * @param b a buffer created with yy_create_buffer()
  7189. | *
  7190. | */
  7191. | void yy_delete_buffer (YY_BUFFER_STATE b )
  7192. | {
  7193. |
  7194. | if ( ! b )
  7195. | return;
  7196. |
  7197. | if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
  7198. | YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
  7199. |
  7200. | if ( b->yy_is_our_buffer )
  7201. | yyfree( (void *) b->yy_ch_buf );
  7202. |
  7203. | yyfree( (void *) b );
  7204. | }
  7205. |
  7206. | /* Initializes or reinitializes a buffer.
  7207. | * This function is sometimes called more than once on the same buffer,
  7208. | * such as during a yyrestart() or at EOF.
  7209. | */
  7210. | static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
  7211. |
  7212. | {
  7213. | int oerrno = errno;
  7214. |
  7215. | yy_flush_buffer( b );
  7216. |
  7217. | b->yy_input_file = file;
  7218. | b->yy_fill_buffer = 1;
  7219. |
  7220. | /* If b is the current buffer, then yy_init_buffer was _probably_
  7221. | * called from yyrestart() or through yy_get_next_buffer.
  7222. | * In that case, we don't want to reset the lineno or column.
  7223. | */
  7224. | if (b != YY_CURRENT_BUFFER){
  7225. | b->yy_bs_lineno = 1;
  7226. | b->yy_bs_column = 0;
  7227. | }
  7228. |
  7229. | b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
  7230. |
  7231. | errno = oerrno;
  7232. | }
  7233. |
  7234. | /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
  7235. | * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
  7236. | *
  7237. | */
  7238. | void yy_flush_buffer (YY_BUFFER_STATE b )
  7239. | {
  7240. | if ( ! b )
  7241. | return;
  7242. |
  7243. | b->yy_n_chars = 0;
  7244. |
  7245. | /* We always need two end-of-buffer characters. The first causes
  7246. | * a transition to the end-of-buffer state. The second causes
  7247. | * a jam in that state.
  7248. | */
  7249. | b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
  7250. | b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
  7251. |
  7252. | b->yy_buf_pos = &b->yy_ch_buf[0];
  7253. |
  7254. | b->yy_at_bol = 1;
  7255. | b->yy_buffer_status = YY_BUFFER_NEW;
  7256. |
  7257. | if ( b == YY_CURRENT_BUFFER )
  7258. | yy_load_buffer_state( );
  7259. | }
  7260. |
  7261. | /** Pushes the new state onto the stack. The new state becomes
  7262. | * the current state. This function will allocate the stack
  7263. | * if necessary.
  7264. | * @param new_buffer The new state.
  7265. | *
  7266. | */
  7267. | void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
  7268. | {
  7269. | if (new_buffer == NULL)
  7270. | return;
  7271. |
  7272. | yyensure_buffer_stack();
  7273. |
  7274. | /* This block is copied from yy_switch_to_buffer. */
  7275. | if ( YY_CURRENT_BUFFER )
  7276. | {
  7277. | /* Flush out information for old buffer. */
  7278. | *(yy_c_buf_p) = (yy_hold_char);
  7279. | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
  7280. | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  7281. | }
  7282. |
  7283. | /* Only push if top exists. Otherwise, replace top. */
  7284. | if (YY_CURRENT_BUFFER)
  7285. | (yy_buffer_stack_top)++;
  7286. | YY_CURRENT_BUFFER_LVALUE = new_buffer;
  7287. |
  7288. | /* copied from yy_switch_to_buffer. */
  7289. | yy_load_buffer_state( );
  7290. | (yy_did_buffer_switch_on_eof) = 1;
  7291. | }
  7292. |
  7293. | /** Removes and deletes the top of the stack, if present.
  7294. | * The next element becomes the new top.
  7295. | *
  7296. | */
  7297. | void yypop_buffer_state (void)
  7298. | {
  7299. | if (!YY_CURRENT_BUFFER)
  7300. | return;
  7301. |
  7302. | yy_delete_buffer(YY_CURRENT_BUFFER );
  7303. | YY_CURRENT_BUFFER_LVALUE = NULL;
  7304. | if ((yy_buffer_stack_top) > 0)
  7305. | --(yy_buffer_stack_top);
  7306. |
  7307. | if (YY_CURRENT_BUFFER) {
  7308. | yy_load_buffer_state( );
  7309. | (yy_did_buffer_switch_on_eof) = 1;
  7310. | }
  7311. | }
  7312. |
  7313. | /* Allocates the stack if it does not exist.
  7314. | * Guarantees space for at least one push.
  7315. | */
  7316. | static void yyensure_buffer_stack (void)
  7317. | {
  7318. | yy_size_t num_to_alloc;
  7319. |
  7320. | if (!(yy_buffer_stack)) {
  7321. |
  7322. | /* First allocation is just for 2 elements, since we don't know if this
  7323. | * scanner will even need a stack. We use 2 instead of 1 to avoid an
  7324. | * immediate realloc on the next call.
  7325. | */
  7326. | num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
  7327. | (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
  7328. | (num_to_alloc * sizeof(struct yy_buffer_state*)
  7329. | );
  7330. | if ( ! (yy_buffer_stack) )
  7331. | YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
  7332. |
  7333. | memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
  7334. |
  7335. | (yy_buffer_stack_max) = num_to_alloc;
  7336. | (yy_buffer_stack_top) = 0;
  7337. | return;
  7338. | }
  7339. |
  7340. | if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
  7341. |
  7342. | /* Increase the buffer to prepare for a possible push. */
  7343. | yy_size_t grow_size = 8 /* arbitrary grow size */;
  7344. |
  7345. | num_to_alloc = (yy_buffer_stack_max) + grow_size;
  7346. | (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
  7347. | ((yy_buffer_stack),
  7348. | num_to_alloc * sizeof(struct yy_buffer_state*)
  7349. | );
  7350. | if ( ! (yy_buffer_stack) )
  7351. | YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
  7352. |
  7353. | /* zero only the new slots.*/
  7354. | memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
  7355. | (yy_buffer_stack_max) = num_to_alloc;
  7356. | }
  7357. | }
  7358. |
  7359. | /** Setup the input buffer state to scan directly from a user-specified character buffer.
  7360. | * @param base the character buffer
  7361. | * @param size the size in bytes of the character buffer
  7362. | *
  7363. | * @return the newly allocated buffer state object.
  7364. | */
  7365. | YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
  7366. | {
  7367. | YY_BUFFER_STATE b;
  7368. |
  7369. | if ( size < 2 ||
  7370. | base[size-2] != YY_END_OF_BUFFER_CHAR ||
  7371. | base[size-1] != YY_END_OF_BUFFER_CHAR )
  7372. | /* They forgot to leave room for the EOB's. */
  7373. | return NULL;
  7374. |
  7375. | b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
  7376. | if ( ! b )
  7377. | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
  7378. |
  7379. | b->yy_buf_size = (int) (size - 2); /* "- 2" to take care of EOB's */
  7380. | b->yy_buf_pos = b->yy_ch_buf = base;
  7381. | b->yy_is_our_buffer = 0;
  7382. | b->yy_input_file = NULL;
  7383. | b->yy_n_chars = b->yy_buf_size;
  7384. | b->yy_is_interactive = 0;
  7385. | b->yy_at_bol = 1;
  7386. | b->yy_fill_buffer = 0;
  7387. | b->yy_buffer_status = YY_BUFFER_NEW;
  7388. |
  7389. | yy_switch_to_buffer( b );
  7390. |
  7391. | return b;
  7392. | }
  7393. |
  7394. | /** Setup the input buffer state to scan a string. The next call to yylex() will
  7395. | * scan from a @e copy of @a str.
  7396. | * @param yystr a NUL-terminated string to scan
  7397. | *
  7398. | * @return the newly allocated buffer state object.
  7399. | * @note If you want to scan bytes that may contain NUL values, then use
  7400. | * yy_scan_bytes() instead.
  7401. | */
  7402. | YY_BUFFER_STATE yy_scan_string (const char * yystr )
  7403. | {
  7404. |
  7405. | return yy_scan_bytes( yystr, (int) strlen(yystr) );
  7406. | }
  7407. |
  7408. | /** Setup the input buffer state to scan the given bytes. The next call to yylex() will
  7409. | * scan from a @e copy of @a bytes.
  7410. | * @param yybytes the byte buffer to scan
  7411. | * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
  7412. | *
  7413. | * @return the newly allocated buffer state object.
  7414. | */
  7415. | YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, int _yybytes_len )
  7416. | {
  7417. | YY_BUFFER_STATE b;
  7418. | char *buf;
  7419. | yy_size_t n;
  7420. | int i;
  7421. |
  7422. | /* Get memory for full buffer, including space for trailing EOB's. */
  7423. | n = (yy_size_t) (_yybytes_len + 2);
  7424. | buf = (char *) yyalloc( n );
  7425. | if ( ! buf )
  7426. | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
  7427. |
  7428. | for ( i = 0; i < _yybytes_len; ++i )
  7429. | buf[i] = yybytes[i];
  7430. |
  7431. | buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
  7432. |
  7433. | b = yy_scan_buffer( buf, n );
  7434. | if ( ! b )
  7435. | YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
  7436. |
  7437. | /* It's okay to grow etc. this buffer, and we should throw it
  7438. | * away when we're done.
  7439. | */
  7440. | b->yy_is_our_buffer = 1;
  7441. |
  7442. | return b;
  7443. | }
  7444. |
  7445. | #ifndef YY_EXIT_FAILURE
  7446. | #define YY_EXIT_FAILURE 2
  7447. | #endif
  7448. |
  7449. | static void yynoreturn yy_fatal_error (const char* msg )
  7450. | {
  7451. | fprintf( stderr, "%s\n", msg );
  7452. | exit( YY_EXIT_FAILURE );
  7453. | }
  7454. |
  7455. | /* Redefine yyless() so it works in section 3 code. */
  7456. |
  7457. | #undef yyless
  7458. | #define yyless(n) \
  7459. | do \
  7460. | { \
  7461. | /* Undo effects of setting up yytext. */ \
  7462. | int yyless_macro_arg = (n); \
  7463. | YY_LESS_LINENO(yyless_macro_arg);\
  7464. | yytext[yyleng] = (yy_hold_char); \
  7465. | (yy_c_buf_p) = yytext + yyless_macro_arg; \
  7466. | (yy_hold_char) = *(yy_c_buf_p); \
  7467. | *(yy_c_buf_p) = '\0'; \
  7468. | yyleng = yyless_macro_arg; \
  7469. | } \
  7470. | while ( 0 )
  7471. |
  7472. | /* Accessor methods (get/set functions) to struct members. */
  7473. |
  7474. | /** Get the current line number.
  7475. | *
  7476. | */
  7477. | int yyget_lineno (void)
  7478. | {
  7479. |
  7480. | return yylineno;
  7481. | }
  7482. |
  7483. | /** Get the input stream.
  7484. | *
  7485. | */
  7486. | FILE *yyget_in (void)
  7487. | {
  7488. | return yyin;
  7489. | }
  7490. |
  7491. | /** Get the output stream.
  7492. | *
  7493. | */
  7494. | FILE *yyget_out (void)
  7495. | {
  7496. | return yyout;
  7497. | }
  7498. |
  7499. | /** Get the length of the current token.
  7500. | *
  7501. | */
  7502. | int yyget_leng (void)
  7503. | {
  7504. | return yyleng;
  7505. | }
  7506. |
  7507. | /** Get the current token.
  7508. | *
  7509. | */
  7510. |
  7511. | char *yyget_text (void)
  7512. | {
  7513. | return yytext;
  7514. | }
  7515. |
  7516. | /** Set the current line number.
  7517. | * @param _line_number line number
  7518. | *
  7519. | */
  7520. | void yyset_lineno (int _line_number )
  7521. | {
  7522. |
  7523. | yylineno = _line_number;
  7524. | }
  7525. |
  7526. | /** Set the input stream. This does not discard the current
  7527. | * input buffer.
  7528. | * @param _in_str A readable stream.
  7529. | *
  7530. | * @see yy_switch_to_buffer
  7531. | */
  7532. | void yyset_in (FILE * _in_str )
  7533. | {
  7534. | yyin = _in_str ;
  7535. | }
  7536. |
  7537. | void yyset_out (FILE * _out_str )
  7538. | {
  7539. | yyout = _out_str ;
  7540. | }
  7541. |
  7542. | int yyget_debug (void)
  7543. | {
  7544. | return yy_flex_debug;
  7545. | }
  7546. |
  7547. | void yyset_debug (int _bdebug )
  7548. | {
  7549. | yy_flex_debug = _bdebug ;
  7550. | }
  7551. |
  7552. | static int yy_init_globals (void)
  7553. | {
  7554. | /* Initialization is the same as for the non-reentrant scanner.
  7555. | * This function is called from yylex_destroy(), so don't allocate here.
  7556. | */
  7557. |
  7558. | (yy_buffer_stack) = NULL;
  7559. | (yy_buffer_stack_top) = 0;
  7560. | (yy_buffer_stack_max) = 0;
  7561. | (yy_c_buf_p) = NULL;
  7562. | (yy_init) = 0;
  7563. | (yy_start) = 0;
  7564. |
  7565. | (yy_state_buf) = 0;
  7566. | (yy_state_ptr) = 0;
  7567. | (yy_full_match) = 0;
  7568. | (yy_lp) = 0;
  7569. |
  7570. | /* Defined in main.c */
  7571. | #ifdef YY_STDINIT
  7572. | yyin = stdin;
  7573. | yyout = stdout;
  7574. | #else
  7575. | yyin = NULL;
  7576. | yyout = NULL;
  7577. | #endif
  7578. |
  7579. | /* For future reference: Set errno on error, since we are called by
  7580. | * yylex_init()
  7581. | */
  7582. | return 0;
  7583. | }
  7584. |
  7585. | /* yylex_destroy is for both reentrant and non-reentrant scanners. */
  7586. | int yylex_destroy (void)
  7587. | {
  7588. |
  7589. | /* Pop the buffer stack, destroying each element. */
  7590. | while(YY_CURRENT_BUFFER){
  7591. | yy_delete_buffer( YY_CURRENT_BUFFER );
  7592. | YY_CURRENT_BUFFER_LVALUE = NULL;
  7593. | yypop_buffer_state();
  7594. | }
  7595. |
  7596. | /* Destroy the stack itself. */
  7597. | yyfree((yy_buffer_stack) );
  7598. | (yy_buffer_stack) = NULL;
  7599. |
  7600. | yyfree ( (yy_state_buf) );
  7601. | (yy_state_buf) = NULL;
  7602. |
  7603. | /* Reset the globals. This is important in a non-reentrant scanner so the next time
  7604. | * yylex() is called, initialization will occur. */
  7605. | yy_init_globals( );
  7606. |
  7607. | return 0;
  7608. | }
  7609. |
  7610. | /*
  7611. | * Internal utility routines.
  7612. | */
  7613. |
  7614. | #ifndef yytext_ptr
  7615. | static void yy_flex_strncpy (char* s1, const char * s2, int n )
  7616. | {
  7617. |
  7618. | int i;
  7619. | for ( i = 0; i < n; ++i )
  7620. | s1[i] = s2[i];
  7621. | }
  7622. | #endif
  7623. |
  7624. | #ifdef YY_NEED_STRLEN
  7625. | static int yy_flex_strlen (const char * s )
  7626. | {
  7627. | int n;
  7628. | for ( n = 0; s[n]; ++n )
  7629. | ;
  7630. |
  7631. | return n;
  7632. | }
  7633. | #endif
  7634. |
  7635. | void *yyalloc (yy_size_t size )
  7636. | {
  7637. | return malloc(size);
  7638. | }
  7639. |
  7640. | void *yyrealloc (void * ptr, yy_size_t size )
  7641. | {
  7642. |
  7643. | /* The cast to (char *) in the following accommodates both
  7644. | * implementations that use char* generic pointers, and those
  7645. | * that use void* generic pointers. It works with the latter
  7646. | * because both ANSI C and C++ allow castless assignment from
  7647. | * any pointer type to void*, and deal with argument conversions
  7648. | * as though doing an assignment.
  7649. | */
  7650. | return realloc(ptr, size);
  7651. | }
  7652. |
  7653. | void yyfree (void * ptr )
  7654. | {
  7655. | free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
  7656. | }
  7657. |
  7658. | #define YYTABLES_NAME "yytables"
  7659. |
  7660. | #line 10 "conftest.l"
  7661. |
  7662. | #ifdef YYTEXT_POINTER
  7663. | extern char *yytext;
  7664. | #endif
  7665. | int
  7666. | main (void)
  7667. | {
  7668. | return ! yylex () + ! yywrap ();
  7669. | }
  7670. configure:5168: result: no
  7671. configure:5089: checking for bison
  7672. configure:5105: found /usr/bin/bison
  7673. configure:5116: result: bison -y
  7674. configure:5182: checking for pkg-config
  7675. configure:5200: found /usr/bin/pkg-config
  7676. configure:5212: result: /usr/bin/pkg-config
  7677. configure:5237: checking pkg-config is at least version 0.9.0
  7678. configure:5240: result: yes
  7679. configure:5259: checking for X11
  7680. configure:5266: $PKG_CONFIG --exists --print-errors "x11 xproto"
  7681. configure:5269: $? = 0
  7682. configure:5283: $PKG_CONFIG --exists --print-errors "x11 xproto"
  7683. configure:5286: $? = 0
  7684. configure:5324: result: yes
  7685. configure:5328: checking for xkb base
  7686. configure:5334: $PKG_CONFIG --exists --print-errors "xkeyboard-config"
  7687. configure:5337: $? = 0
  7688. configure:5349: result: /usr/share/X11/xkb
  7689. configure:5357: checking for X11 prefix
  7690. configure:5363: $PKG_CONFIG --exists --print-errors "x11"
  7691. configure:5366: $? = 0
  7692. configure:5378: result: /usr
  7693. configure:5387: checking X11/keysymdef.h usability
  7694. configure:5387: gcc -c -g -O2 conftest.c >&5
  7695. configure:5387: $? = 0
  7696. configure:5387: result: yes
  7697. configure:5387: checking X11/keysymdef.h presence
  7698. configure:5387: gcc -E conftest.c
  7699. configure:5387: $? = 0
  7700. configure:5387: result: yes
  7701. configure:5387: checking for X11/keysymdef.h
  7702. configure:5387: result: yes
  7703. configure:5389: checking for X11/keysymdef.h absolute location
  7704. configure:5395: gcc -E conftest.c
  7705. configure:5395: $? = 0
  7706. configure:5408: result: /usr/include/X11/keysymdef.h
  7707. configure:5425: checking whether AWK is usable
  7708. configure:5428: result: yes
  7709. configure:5446: checking rpc/types.h usability
  7710. configure:5446: gcc -c -g -O2 conftest.c >&5
  7711. configure:5446: $? = 0
  7712. configure:5446: result: yes
  7713. configure:5446: checking rpc/types.h presence
  7714. configure:5446: gcc -E conftest.c
  7715. configure:5446: $? = 0
  7716. configure:5446: result: yes
  7717. configure:5446: checking for rpc/types.h
  7718. configure:5446: result: yes
  7719. configure:5454: checking for library containing clnt_create
  7720. configure:5488: gcc -o conftest -g -O2 conftest.c -ldl -luuid -lparted >&5
  7721. configure:5488: $? = 0
  7722. configure:5505: result: none required
  7723. configure:5542: checking for libdaemon
  7724. configure:5549: $PKG_CONFIG --exists --print-errors "libdaemon"
  7725. configure:5552: $? = 0
  7726. configure:5566: $PKG_CONFIG --exists --print-errors "libdaemon"
  7727. configure:5569: $? = 0
  7728. configure:5607: result: yes
  7729. configure:5619: checking for struct thread_sched_info.last_processor
  7730. configure:5619: gcc -c -g -O2 conftest.c >&5
  7731. conftest.c: In function 'main':
  7732. conftest.c:68:33: error: storage size of 'ac_aggr' isn't known
  7733. 68 | static struct thread_sched_info ac_aggr;
  7734. | ^~~~~~~
  7735. configure:5619: $? = 1
  7736. configure: failed program was:
  7737. | /* confdefs.h */
  7738. | #define PACKAGE_NAME "GNU Hurd"
  7739. | #define PACKAGE_TARNAME "hurd"
  7740. | #define PACKAGE_VERSION "0.9"
  7741. | #define PACKAGE_STRING "GNU Hurd 0.9"
  7742. | #define PACKAGE_BUGREPORT "[email protected]"
  7743. | #define PACKAGE_URL "http://www.gnu.org/software/hurd/"
  7744. | #define HAVE_MIG_RETCODE 1
  7745. | #define HAVE_FILE_EXEC_PATHS 1
  7746. | #define HAVE_EXEC_EXEC_PATHS 1
  7747. | #define HAVE__HURD_EXEC_PATHS 1
  7748. | #define UTIME_NOW -1
  7749. | #define UTIME_OMIT -2
  7750. | #define HAVE_LIBCRYPT 1
  7751. | #define STDC_HEADERS 1
  7752. | #define HAVE_SYS_TYPES_H 1
  7753. | #define HAVE_SYS_STAT_H 1
  7754. | #define HAVE_STDLIB_H 1
  7755. | #define HAVE_STRING_H 1
  7756. | #define HAVE_MEMORY_H 1
  7757. | #define HAVE_STRINGS_H 1
  7758. | #define HAVE_INTTYPES_H 1
  7759. | #define HAVE_STDINT_H 1
  7760. | #define HAVE_UNISTD_H 1
  7761. | #define HAVE_PARTED_PARTED_H 1
  7762. | #define HAVE_LIBPARTED 1
  7763. | #define HAVE_LIBUUID 1
  7764. | #define HAVE_LIBDL 1
  7765. | #define X11_PREFIX "/usr"
  7766. | #define HAVE_DAEMON 1
  7767. | /* end confdefs.h. */
  7768. | #include <stdio.h>
  7769. | #ifdef HAVE_SYS_TYPES_H
  7770. | # include <sys/types.h>
  7771. | #endif
  7772. | #ifdef HAVE_SYS_STAT_H
  7773. | # include <sys/stat.h>
  7774. | #endif
  7775. | #ifdef STDC_HEADERS
  7776. | # include <stdlib.h>
  7777. | # include <stddef.h>
  7778. | #else
  7779. | # ifdef HAVE_STDLIB_H
  7780. | # include <stdlib.h>
  7781. | # endif
  7782. | #endif
  7783. | #ifdef HAVE_STRING_H
  7784. | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  7785. | # include <memory.h>
  7786. | # endif
  7787. | # include <string.h>
  7788. | #endif
  7789. | #ifdef HAVE_STRINGS_H
  7790. | # include <strings.h>
  7791. | #endif
  7792. | #ifdef HAVE_INTTYPES_H
  7793. | # include <inttypes.h>
  7794. | #endif
  7795. | #ifdef HAVE_STDINT_H
  7796. | # include <stdint.h>
  7797. | #endif
  7798. | #ifdef HAVE_UNISTD_H
  7799. | # include <unistd.h>
  7800. | #endif
  7801. | int
  7802. | main ()
  7803. | {
  7804. | static struct thread_sched_info ac_aggr;
  7805. | if (ac_aggr.last_processor)
  7806. | return 0;
  7807. | ;
  7808. | return 0;
  7809. | }
  7810. configure:5619: gcc -c -g -O2 conftest.c >&5
  7811. conftest.c: In function 'main':
  7812. conftest.c:68:33: error: storage size of 'ac_aggr' isn't known
  7813. 68 | static struct thread_sched_info ac_aggr;
  7814. | ^~~~~~~
  7815. configure:5619: $? = 1
  7816. configure: failed program was:
  7817. | /* confdefs.h */
  7818. | #define PACKAGE_NAME "GNU Hurd"
  7819. | #define PACKAGE_TARNAME "hurd"
  7820. | #define PACKAGE_VERSION "0.9"
  7821. | #define PACKAGE_STRING "GNU Hurd 0.9"
  7822. | #define PACKAGE_BUGREPORT "[email protected]"
  7823. | #define PACKAGE_URL "http://www.gnu.org/software/hurd/"
  7824. | #define HAVE_MIG_RETCODE 1
  7825. | #define HAVE_FILE_EXEC_PATHS 1
  7826. | #define HAVE_EXEC_EXEC_PATHS 1
  7827. | #define HAVE__HURD_EXEC_PATHS 1
  7828. | #define UTIME_NOW -1
  7829. | #define UTIME_OMIT -2
  7830. | #define HAVE_LIBCRYPT 1
  7831. | #define STDC_HEADERS 1
  7832. | #define HAVE_SYS_TYPES_H 1
  7833. | #define HAVE_SYS_STAT_H 1
  7834. | #define HAVE_STDLIB_H 1
  7835. | #define HAVE_STRING_H 1
  7836. | #define HAVE_MEMORY_H 1
  7837. | #define HAVE_STRINGS_H 1
  7838. | #define HAVE_INTTYPES_H 1
  7839. | #define HAVE_STDINT_H 1
  7840. | #define HAVE_UNISTD_H 1
  7841. | #define HAVE_PARTED_PARTED_H 1
  7842. | #define HAVE_LIBPARTED 1
  7843. | #define HAVE_LIBUUID 1
  7844. | #define HAVE_LIBDL 1
  7845. | #define X11_PREFIX "/usr"
  7846. | #define HAVE_DAEMON 1
  7847. | /* end confdefs.h. */
  7848. | #include <stdio.h>
  7849. | #ifdef HAVE_SYS_TYPES_H
  7850. | # include <sys/types.h>
  7851. | #endif
  7852. | #ifdef HAVE_SYS_STAT_H
  7853. | # include <sys/stat.h>
  7854. | #endif
  7855. | #ifdef STDC_HEADERS
  7856. | # include <stdlib.h>
  7857. | # include <stddef.h>
  7858. | #else
  7859. | # ifdef HAVE_STDLIB_H
  7860. | # include <stdlib.h>
  7861. | # endif
  7862. | #endif
  7863. | #ifdef HAVE_STRING_H
  7864. | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  7865. | # include <memory.h>
  7866. | # endif
  7867. | # include <string.h>
  7868. | #endif
  7869. | #ifdef HAVE_STRINGS_H
  7870. | # include <strings.h>
  7871. | #endif
  7872. | #ifdef HAVE_INTTYPES_H
  7873. | # include <inttypes.h>
  7874. | #endif
  7875. | #ifdef HAVE_STDINT_H
  7876. | # include <stdint.h>
  7877. | #endif
  7878. | #ifdef HAVE_UNISTD_H
  7879. | # include <unistd.h>
  7880. | #endif
  7881. | int
  7882. | main ()
  7883. | {
  7884. | static struct thread_sched_info ac_aggr;
  7885. | if (sizeof ac_aggr.last_processor)
  7886. | return 0;
  7887. | ;
  7888. | return 0;
  7889. | }
  7890. configure:5619: result: no
  7891. configure:5632: checking for libblkid
  7892. configure:5639: $PKG_CONFIG --exists --print-errors "blkid"
  7893. configure:5642: $? = 0
  7894. configure:5656: $PKG_CONFIG --exists --print-errors "blkid"
  7895. configure:5659: $? = 0
  7896. configure:5697: result: yes
  7897. configure:5737: checking for libgcrypt-config
  7898. configure:5755: found /usr/bin/libgcrypt-config
  7899. configure:5768: result: /usr/bin/libgcrypt-config
  7900. configure:5785: checking for LIBGCRYPT - version >= 1.6.0
  7901. configure:5819: result: yes (1.8.5)
  7902. configure:5831: checking LIBGCRYPT API version
  7903. configure:5834: result: okay
  7904. configure:5858: WARNING:
  7905. ***
  7906. *** The config script /usr/bin/libgcrypt-config was
  7907. *** built for i686-pc-gnu and thus may not match the
  7908. *** used host i686-unknown-gnu0.9.
  7909. *** You may want to use the configure option --with-libgcrypt-prefix
  7910. *** to specify a matching config script or use $SYSROOT.
  7911. ***
  7912. configure:5882: checking for liblwip
  7913. configure:5889: $PKG_CONFIG --exists --print-errors "lwip"
  7914. configure:5892: $? = 0
  7915. configure:5906: $PKG_CONFIG --exists --print-errors "lwip"
  7916. configure:5909: $? = 0
  7917. configure:5947: result: yes
  7918. configure:6099: creating ./config.status
  7919.  
  7920. ## ---------------------- ##
  7921. ## Running config.status. ##
  7922. ## ---------------------- ##
  7923.  
  7924. This file was extended by GNU Hurd config.status 0.9, which was
  7925. generated by GNU Autoconf 2.69. Invocation command line was
  7926.  
  7927. CONFIG_FILES =
  7928. CONFIG_HEADERS =
  7929. CONFIG_LINKS =
  7930. CONFIG_COMMANDS =
  7931. $ ./config.status
  7932.  
  7933. on debian
  7934.  
  7935. config.status:782: creating config.make
  7936. config.status:782: creating Makeconf
  7937. config.status:782: creating Makefile
  7938. config.status:782: creating acpi/Makefile
  7939. config.status:782: creating auth/Makefile
  7940. config.status:782: creating benchmarks/Makefile
  7941. config.status:782: creating boot/Makefile
  7942. config.status:782: creating config/Makefile
  7943. config.status:782: creating console-client/Makefile
  7944. config.status:782: creating console/Makefile
  7945. config.status:782: creating daemons/Makefile
  7946. config.status:782: creating defpager/Makefile
  7947. config.status:782: creating devnode/Makefile
  7948. config.status:782: creating doc/Makefile
  7949. config.status:782: creating eth-multiplexer/Makefile
  7950. config.status:782: creating exec/Makefile
  7951. config.status:782: creating ext2fs/Makefile
  7952. config.status:782: creating fatfs/Makefile
  7953. config.status:782: creating fstests/Makefile
  7954. config.status:782: creating ftpfs/Makefile
  7955. config.status:782: creating hostmux/Makefile
  7956. config.status:782: creating hurd/Makefile
  7957. config.status:782: creating include/Makefile
  7958. config.status:782: creating init/Makefile
  7959. config.status:782: creating isofs/Makefile
  7960. config.status:782: creating libbpf/Makefile
  7961. config.status:782: creating libcons/Makefile
  7962. config.status:782: creating libdirmgt/Makefile
  7963. config.status:782: creating libdiskfs/Makefile
  7964. config.status:782: creating libfshelp-tests/Makefile
  7965. config.status:782: creating libfshelp/Makefile
  7966. config.status:782: creating libftpconn/Makefile
  7967. config.status:782: creating libhurd-slab/Makefile
  7968. config.status:782: creating libhurdbugaddr/Makefile
  7969. config.status:782: creating libihash/Makefile
  7970. config.status:782: creating libiohelp/Makefile
  7971. config.status:782: creating libnetfs/Makefile
  7972. config.status:782: creating libpager/Makefile
  7973. config.status:782: creating libpipe/Makefile
  7974. config.status:782: creating libports/Makefile
  7975. config.status:782: creating libps/Makefile
  7976. config.status:782: creating libshouldbeinlibc/Makefile
  7977. config.status:782: creating libstore/Makefile
  7978. config.status:782: creating libthreads/Makefile
  7979. config.status:782: creating libtreefs/Makefile
  7980. config.status:782: creating libtrivfs/Makefile
  7981. config.status:782: creating login/Makefile
  7982. config.status:782: creating lwip/Makefile
  7983. config.status:782: creating mach-defpager/Makefile
  7984. config.status:782: creating nfs/Makefile
  7985. config.status:782: creating nfsd/Makefile
  7986. config.status:782: creating pci-arbiter/Makefile
  7987. config.status:782: creating pfinet/Makefile
  7988. config.status:782: creating pflocal/Makefile
  7989. config.status:782: creating proc/Makefile
  7990. config.status:782: creating procfs/Makefile
  7991. config.status:782: creating release/Makefile
  7992. config.status:782: creating shutdown/Makefile
  7993. config.status:782: creating startup/Makefile
  7994. config.status:782: creating storeio/Makefile
  7995. config.status:782: creating sutils/Makefile
  7996. config.status:782: creating term/Makefile
  7997. config.status:782: creating tmpfs/Makefile
  7998. config.status:782: creating trans/Makefile
  7999. config.status:782: creating usermux/Makefile
  8000. config.status:782: creating utils/Makefile
  8001.  
  8002. ## ---------------- ##
  8003. ## Cache variables. ##
  8004. ## ---------------- ##
  8005.  
  8006. ac_cv_build=i686-unknown-gnu0.9
  8007. ac_cv_c_compiler_gnu=yes
  8008. ac_cv_env_CC_set=
  8009. ac_cv_env_CC_value=
  8010. ac_cv_env_CFLAGS_set=
  8011. ac_cv_env_CFLAGS_value=
  8012. ac_cv_env_CPPFLAGS_set=
  8013. ac_cv_env_CPPFLAGS_value=
  8014. ac_cv_env_CPP_set=
  8015. ac_cv_env_CPP_value=
  8016. ac_cv_env_LDFLAGS_set=
  8017. ac_cv_env_LDFLAGS_value=
  8018. ac_cv_env_LIBS_set=
  8019. ac_cv_env_LIBS_value=
  8020. ac_cv_env_PKG_CONFIG_LIBDIR_set=
  8021. ac_cv_env_PKG_CONFIG_LIBDIR_value=
  8022. ac_cv_env_PKG_CONFIG_PATH_set=
  8023. ac_cv_env_PKG_CONFIG_PATH_value=
  8024. ac_cv_env_PKG_CONFIG_set=
  8025. ac_cv_env_PKG_CONFIG_value=
  8026. ac_cv_env_X11_CFLAGS_set=
  8027. ac_cv_env_X11_CFLAGS_value=
  8028. ac_cv_env_X11_LIBS_set=
  8029. ac_cv_env_X11_LIBS_value=
  8030. ac_cv_env_YACC_set=
  8031. ac_cv_env_YACC_value=
  8032. ac_cv_env_YFLAGS_set=
  8033. ac_cv_env_YFLAGS_value=
  8034. ac_cv_env_build_alias_set=
  8035. ac_cv_env_build_alias_value=
  8036. ac_cv_env_host_alias_set=
  8037. ac_cv_env_host_alias_value=
  8038. ac_cv_env_libblkid_CFLAGS_set=
  8039. ac_cv_env_libblkid_CFLAGS_value=
  8040. ac_cv_env_libblkid_LIBS_set=
  8041. ac_cv_env_libblkid_LIBS_value=
  8042. ac_cv_env_libdaemon_CFLAGS_set=
  8043. ac_cv_env_libdaemon_CFLAGS_value=
  8044. ac_cv_env_libdaemon_LIBS_set=
  8045. ac_cv_env_libdaemon_LIBS_value=
  8046. ac_cv_env_liblwip_CFLAGS_set=
  8047. ac_cv_env_liblwip_CFLAGS_value=
  8048. ac_cv_env_liblwip_LIBS_set=
  8049. ac_cv_env_liblwip_LIBS_value=
  8050. ac_cv_env_target_alias_set=
  8051. ac_cv_env_target_alias_value=
  8052. ac_cv_func__hurd_exec_paths=yes
  8053. ac_cv_func_exec_exec_paths=yes
  8054. ac_cv_func_file_exec_paths=yes
  8055. ac_cv_func_file_futimens=no
  8056. ac_cv_header_X11_keysymdef_h=yes
  8057. ac_cv_header_inttypes_h=yes
  8058. ac_cv_header_memory_h=yes
  8059. ac_cv_header_parted_parted_h=yes
  8060. ac_cv_header_rpc_types_h=yes
  8061. ac_cv_header_stdc=yes
  8062. ac_cv_header_stdint_h=yes
  8063. ac_cv_header_stdlib_h=yes
  8064. ac_cv_header_string_h=yes
  8065. ac_cv_header_strings_h=yes
  8066. ac_cv_header_sys_stat_h=yes
  8067. ac_cv_header_sys_types_h=yes
  8068. ac_cv_header_unistd_h=yes
  8069. ac_cv_host=i686-unknown-gnu0.9
  8070. ac_cv_lib_bz2_BZ2_bzCompress=yes
  8071. ac_cv_lib_crypt_crypt=yes
  8072. ac_cv_lib_dl_dlopen=yes
  8073. ac_cv_lib_lex='none needed'
  8074. ac_cv_lib_ncursesw_initscr=yes
  8075. ac_cv_lib_parted_ped_device_read=yes
  8076. ac_cv_lib_uuid_uuid_generate=yes
  8077. ac_cv_lib_z_deflate=yes
  8078. ac_cv_member_struct_thread_sched_info_last_processor=no
  8079. ac_cv_objext=o
  8080. ac_cv_path_EGREP='/bin/grep -E'
  8081. ac_cv_path_GREP=/bin/grep
  8082. ac_cv_path_LIBGCRYPT_CONFIG=/usr/bin/libgcrypt-config
  8083. ac_cv_path_SED=/bin/sed
  8084. ac_cv_path_ac_pt_PKG_CONFIG=/usr/bin/pkg-config
  8085. ac_cv_prog_AWK=gawk
  8086. ac_cv_prog_CPP='gcc -E'
  8087. ac_cv_prog_LEX=flex
  8088. ac_cv_prog_YACC='bison -y'
  8089. ac_cv_prog_ac_ct_AR=ar
  8090. ac_cv_prog_ac_ct_CC=gcc
  8091. ac_cv_prog_ac_ct_LD=ld
  8092. ac_cv_prog_ac_ct_MIG=mig
  8093. ac_cv_prog_ac_ct_OBJCOPY=objcopy
  8094. ac_cv_prog_ac_ct_RANLIB=ranlib
  8095. ac_cv_prog_cc_c89=
  8096. ac_cv_prog_cc_g=yes
  8097. ac_cv_prog_lex_root=lex.yy
  8098. ac_cv_prog_lex_yytext_pointer=no
  8099. ac_cv_search_clnt_create='none required'
  8100. hurd_cv_includedir_ncursesw=/usr/include/ncursesw
  8101. hurd_cv_ld_version_script_option=yes
  8102. hurd_cv_libio=no
  8103. hurd_cv_mig_retcode=yes
  8104. libc_cv_gnu89_inline=-fgnu89-inline
  8105. pkg_cv_X11_CFLAGS=
  8106. pkg_cv_X11_LIBS=-lX11
  8107. pkg_cv_X11_PREFIX=/usr
  8108. pkg_cv_XKB_BASE=/usr/share/X11/xkb
  8109. pkg_cv_libblkid_CFLAGS=-I/usr/include/blkid
  8110. pkg_cv_libblkid_LIBS=-lblkid
  8111. pkg_cv_libdaemon_CFLAGS=-D_REENTRANT
  8112. pkg_cv_libdaemon_LIBS=-ldaemon
  8113. pkg_cv_liblwip_CFLAGS=-I/usr/include/lwip
  8114. pkg_cv_liblwip_LIBS=-llwip
  8115.  
  8116. ## ----------------- ##
  8117. ## Output variables. ##
  8118. ## ----------------- ##
  8119.  
  8120. AR='ar'
  8121. AWK='gawk'
  8122. CC='gcc'
  8123. CFLAGS='-g -O2'
  8124. CPP='gcc -E'
  8125. CPPFLAGS=''
  8126. DEFS='-DPACKAGE_NAME=\"GNU\ Hurd\" -DPACKAGE_TARNAME=\"hurd\" -DPACKAGE_VERSION=\"0.9\" -DPACKAGE_STRING=\"GNU\ Hurd\ 0.9\" -DPACKAGE_BUGREPORT=\"[email protected]\" -DPACKAGE_URL=\"http://www.gnu.org/software/hurd/\" -DHAVE_MIG_RETCODE=1 -DHAVE_FILE_EXEC_PATHS=1 -DHAVE_EXEC_EXEC_PATHS=1 -DHAVE__HURD_EXEC_PATHS=1 -DUTIME_NOW=-1 -DUTIME_OMIT=-2 -DHAVE_LIBCRYPT=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_PARTED_PARTED_H=1 -DHAVE_LIBPARTED=1 -DHAVE_LIBUUID=1 -DHAVE_LIBDL=1 -DX11_PREFIX=\"/usr\" -DHAVE_DAEMON=1 -DHAVE_BLKID=1'
  8127. ECHO_C=''
  8128. ECHO_N='-n'
  8129. ECHO_T=''
  8130. EGREP='/bin/grep -E'
  8131. EXEEXT=''
  8132. GREP='/bin/grep'
  8133. HAVE_LIBBZ2='1'
  8134. HAVE_LIBCRYPT='1'
  8135. HAVE_LIBGCRYPT='yes'
  8136. HAVE_LIBLWIP='yes'
  8137. HAVE_LIBZ='1'
  8138. HAVE_SUN_RPC='yes'
  8139. INSTALL_DATA='${INSTALL} -m 644'
  8140. INSTALL_PROGRAM='${INSTALL}'
  8141. INSTALL_SCRIPT='${INSTALL}'
  8142. LD='ld'
  8143. LDFLAGS=''
  8144. LEX='flex'
  8145. LEXLIB=''
  8146. LEX_OUTPUT_ROOT='lex.yy'
  8147. LIBGCRYPT_CFLAGS=''
  8148. LIBGCRYPT_CONFIG='/usr/bin/libgcrypt-config'
  8149. LIBGCRYPT_LIBS='-lgcrypt'
  8150. LIBNCURSESW='-lncursesw'
  8151. LIBOBJS=''
  8152. LIBS='-ldl -luuid -lparted '
  8153. LTLIBOBJS=''
  8154. MIG='mig'
  8155. NCURSESW_INCLUDE='-I/usr/include/ncursesw'
  8156. OBJCOPY='objcopy'
  8157. OBJEXT='o'
  8158. PACKAGE_BUGREPORT='[email protected]'
  8159. PACKAGE_NAME='GNU Hurd'
  8160. PACKAGE_STRING='GNU Hurd 0.9'
  8161. PACKAGE_TARNAME='hurd'
  8162. PACKAGE_URL='http://www.gnu.org/software/hurd/'
  8163. PACKAGE_VERSION='0.9'
  8164. PARTED_LIBS='-lparted -luuid -ldl'
  8165. PATH_SEPARATOR=':'
  8166. PKG_CONFIG='/usr/bin/pkg-config'
  8167. PKG_CONFIG_LIBDIR=''
  8168. PKG_CONFIG_PATH=''
  8169. RANLIB='ranlib'
  8170. SED='/bin/sed'
  8171. SHELL='/bin/bash'
  8172. VERSIONING='no'
  8173. X11_CFLAGS=''
  8174. X11_KEYSYMDEF_H='/usr/include/X11/keysymdef.h'
  8175. X11_LIBS='-lX11'
  8176. XKB_BASE='/usr/share/X11/xkb'
  8177. YACC='bison -y'
  8178. YFLAGS=''
  8179. ac_ct_CC='gcc'
  8180. asm_syntax='i386'
  8181. bindir='${exec_prefix}/bin'
  8182. boot_store_types='device remap part bunzip2 gunzip'
  8183. build='i686-unknown-gnu0.9'
  8184. build_alias=''
  8185. build_cpu='i686'
  8186. build_os='gnu0.9'
  8187. build_vendor='unknown'
  8188. datadir='${datarootdir}'
  8189. datarootdir='${prefix}/share'
  8190. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  8191. dvidir='${docdir}'
  8192. enable_profile=''
  8193. enable_static_progs='ext2fs'
  8194. exec_prefix='${prefix}'
  8195. have_x11='yes'
  8196. host='i686-unknown-gnu0.9'
  8197. host_alias=''
  8198. host_cpu='i686'
  8199. host_os='gnu0.9'
  8200. host_vendor='unknown'
  8201. htmldir='${docdir}'
  8202. includedir='${prefix}/include'
  8203. infodir='${datarootdir}/info'
  8204. libblkid_CFLAGS='-I/usr/include/blkid'
  8205. libblkid_LIBS='-lblkid'
  8206. libc_cv_gnu89_inline='-fgnu89-inline'
  8207. libdaemon_CFLAGS='-D_REENTRANT'
  8208. libdaemon_LIBS='-ldaemon'
  8209. libdir='${exec_prefix}/lib'
  8210. libexecdir='${exec_prefix}/libexec'
  8211. liblwip_CFLAGS='-I/usr/include/lwip'
  8212. liblwip_LIBS='-llwip'
  8213. localedir='${datarootdir}/locale'
  8214. localstatedir='${prefix}/var'
  8215. mandir='${datarootdir}/man'
  8216. oldincludedir='/usr/include'
  8217. pdfdir='${docdir}'
  8218. prefix=''
  8219. program_transform_name='s,x,x,'
  8220. psdir='${docdir}'
  8221. runstatedir='${localstatedir}/run'
  8222. sbindir='${exec_prefix}/sbin'
  8223. sharedstatedir='${prefix}/com'
  8224. sysconfdir='${prefix}/etc'
  8225. target_alias=''
  8226.  
  8227. ## ----------- ##
  8228. ## confdefs.h. ##
  8229. ## ----------- ##
  8230.  
  8231. /* confdefs.h */
  8232. #define PACKAGE_NAME "GNU Hurd"
  8233. #define PACKAGE_TARNAME "hurd"
  8234. #define PACKAGE_VERSION "0.9"
  8235. #define PACKAGE_STRING "GNU Hurd 0.9"
  8236. #define PACKAGE_BUGREPORT "[email protected]"
  8237. #define PACKAGE_URL "http://www.gnu.org/software/hurd/"
  8238. #define HAVE_MIG_RETCODE 1
  8239. #define HAVE_FILE_EXEC_PATHS 1
  8240. #define HAVE_EXEC_EXEC_PATHS 1
  8241. #define HAVE__HURD_EXEC_PATHS 1
  8242. #define UTIME_NOW -1
  8243. #define UTIME_OMIT -2
  8244. #define HAVE_LIBCRYPT 1
  8245. #define STDC_HEADERS 1
  8246. #define HAVE_SYS_TYPES_H 1
  8247. #define HAVE_SYS_STAT_H 1
  8248. #define HAVE_STDLIB_H 1
  8249. #define HAVE_STRING_H 1
  8250. #define HAVE_MEMORY_H 1
  8251. #define HAVE_STRINGS_H 1
  8252. #define HAVE_INTTYPES_H 1
  8253. #define HAVE_STDINT_H 1
  8254. #define HAVE_UNISTD_H 1
  8255. #define HAVE_PARTED_PARTED_H 1
  8256. #define HAVE_LIBPARTED 1
  8257. #define HAVE_LIBUUID 1
  8258. #define HAVE_LIBDL 1
  8259. #define X11_PREFIX "/usr"
  8260. #define HAVE_DAEMON 1
  8261. #define HAVE_BLKID 1
  8262.  
  8263. configure: exit 0
Add Comment
Please, Sign In to add comment