Advertisement
Guest User

PCSC config.log

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