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 configure, which was |
---|
5 | generated by GNU Autoconf 2.69. Invocation command line was |
---|
6 | |
---|
7 | $ ./configure --prefix=/opt/local |
---|
8 | |
---|
9 | ## --------- ## |
---|
10 | ## Platform. ## |
---|
11 | ## --------- ## |
---|
12 | |
---|
13 | hostname = cyclica1.local |
---|
14 | uname -m = x86_64 |
---|
15 | uname -r = 13.3.0 |
---|
16 | uname -s = Darwin |
---|
17 | uname -v = Darwin Kernel Version 13.3.0: Tue Jun 3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64 |
---|
18 | |
---|
19 | /usr/bin/uname -p = i386 |
---|
20 | /bin/uname -X = unknown |
---|
21 | |
---|
22 | /bin/arch = unknown |
---|
23 | /usr/bin/arch -k = unknown |
---|
24 | /usr/convex/getsysinfo = unknown |
---|
25 | /usr/bin/hostinfo = Mach kernel version: |
---|
26 | Darwin Kernel Version 13.3.0: Tue Jun 3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64 |
---|
27 | Kernel configured for up to 8 processors. |
---|
28 | 4 processors are physically available. |
---|
29 | 8 processors are logically available. |
---|
30 | Processor type: i486 (Intel 80486) |
---|
31 | Processors active: 0 1 2 3 4 5 6 7 |
---|
32 | Primary memory available: 16.00 gigabytes |
---|
33 | Default processor set: 185 tasks, 917 threads, 8 processors |
---|
34 | Load average: 2.13, Mach factor: 5.86 |
---|
35 | /bin/machine = unknown |
---|
36 | /usr/bin/oslevel = unknown |
---|
37 | /bin/universe = unknown |
---|
38 | |
---|
39 | PATH: /opt/local/bin |
---|
40 | PATH: /opt/local/sbin |
---|
41 | PATH: /bin |
---|
42 | PATH: /sbin |
---|
43 | PATH: /usr/bin |
---|
44 | PATH: /usr/sbin |
---|
45 | |
---|
46 | |
---|
47 | ## ----------- ## |
---|
48 | ## Core tests. ## |
---|
49 | ## ----------- ## |
---|
50 | |
---|
51 | configure:2615: checking build system type |
---|
52 | configure:2629: result: i386-apple-darwin13.3.0 |
---|
53 | configure:2649: checking host system type |
---|
54 | configure:2662: result: i386-apple-darwin13.3.0 |
---|
55 | configure:2682: checking target system type |
---|
56 | configure:2695: result: i386-apple-darwin13.3.0 |
---|
57 | configure:2878: checking for gcc |
---|
58 | configure:2905: result: /usr/bin/clang |
---|
59 | configure:3134: checking for C compiler version |
---|
60 | configure:3143: /usr/bin/clang --version >&5 |
---|
61 | Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) |
---|
62 | Target: x86_64-apple-darwin13.3.0 |
---|
63 | Thread model: posix |
---|
64 | configure:3154: $? = 0 |
---|
65 | configure:3143: /usr/bin/clang -v >&5 |
---|
66 | Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) |
---|
67 | Target: x86_64-apple-darwin13.3.0 |
---|
68 | Thread model: posix |
---|
69 | configure:3154: $? = 0 |
---|
70 | configure:3143: /usr/bin/clang -V >&5 |
---|
71 | clang: error: argument to '-V' is missing (expected 1 value) |
---|
72 | clang: error: no input files |
---|
73 | configure:3154: $? = 1 |
---|
74 | configure:3143: /usr/bin/clang -qversion >&5 |
---|
75 | clang: error: unknown argument: '-qversion' [-Wunused-command-line-argument-hard-error-in-future] |
---|
76 | clang: note: this will be a hard error (cannot be downgraded to a warning) in the future |
---|
77 | clang: error: no input files |
---|
78 | configure:3154: $? = 1 |
---|
79 | configure:3174: checking whether the C compiler works |
---|
80 | configure:3196: /usr/bin/clang -fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386 -arch x86_64 -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 conftest.c >&5 |
---|
81 | configure:3200: $? = 0 |
---|
82 | configure:3248: result: yes |
---|
83 | configure:3251: checking for C compiler default output file name |
---|
84 | configure:3253: result: a.out |
---|
85 | configure:3259: checking for suffix of executables |
---|
86 | configure:3266: /usr/bin/clang -o conftest -fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386 -arch x86_64 -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 conftest.c >&5 |
---|
87 | configure:3270: $? = 0 |
---|
88 | configure:3292: result: |
---|
89 | configure:3314: checking whether we are cross compiling |
---|
90 | configure:3322: /usr/bin/clang -o conftest -fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386 -arch x86_64 -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 conftest.c >&5 |
---|
91 | configure:3326: $? = 0 |
---|
92 | configure:3333: ./conftest |
---|
93 | configure:3337: $? = 0 |
---|
94 | configure:3352: result: no |
---|
95 | configure:3357: checking for suffix of object files |
---|
96 | configure:3379: /usr/bin/clang -c -fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386 -arch x86_64 -I/opt/local/include conftest.c >&5 |
---|
97 | configure:3383: $? = 0 |
---|
98 | configure:3404: result: o |
---|
99 | configure:3408: checking whether we are using the GNU C compiler |
---|
100 | configure:3427: /usr/bin/clang -c -fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386 -arch x86_64 -I/opt/local/include conftest.c >&5 |
---|
101 | configure:3427: $? = 0 |
---|
102 | configure:3436: result: yes |
---|
103 | configure:3445: checking whether /usr/bin/clang accepts -g |
---|
104 | configure:3465: /usr/bin/clang -c -g -I/opt/local/include conftest.c >&5 |
---|
105 | configure:3465: $? = 0 |
---|
106 | configure:3506: result: yes |
---|
107 | configure:3523: checking for /usr/bin/clang option to accept ISO C89 |
---|
108 | configure:3586: /usr/bin/clang -c -fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386 -arch x86_64 -I/opt/local/include conftest.c >&5 |
---|
109 | configure:3586: $? = 0 |
---|
110 | configure:3599: result: none needed |
---|
111 | configure:3628: /usr/bin/clang -c -fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386 -arch x86_64 -fstack-protector-all -D_FORTIFY_SOURCE=2 -I/opt/local/include conftest.c >&5 |
---|
112 | configure:3628: $? = 0 |
---|
113 | configure:3630: Compiling with gcc -fstack-protector-all et al. |
---|
114 | configure:3660: /usr/bin/clang -o conftest -fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386 -arch x86_64 -fstack-protector-all -D_FORTIFY_SOURCE=2 -fPIE -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -pie -Wl,-z,relro -Wl,-z,now conftest.c >&5 |
---|
115 | clang: warning: argument unused during compilation: '-pie' |
---|
116 | conftest.c:10:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] |
---|
117 | void main () {} |
---|
118 | ^ |
---|
119 | conftest.c:10:1: note: change return type to 'int' |
---|
120 | void main () {} |
---|
121 | ^~~~ |
---|
122 | int |
---|
123 | 1 warning generated. |
---|
124 | ld: unknown option: -z |
---|
125 | conftest.c:10:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] |
---|
126 | void main () {} |
---|
127 | ^ |
---|
128 | conftest.c:10:1: note: change return type to 'int' |
---|
129 | void main () {} |
---|
130 | ^~~~ |
---|
131 | int |
---|
132 | 1 warning generated. |
---|
133 | clang: error: linker command failed with exit code 1 (use -v to see invocation) |
---|
134 | configure:3660: $? = 1 |
---|
135 | configure: failed program was: |
---|
136 | | /* confdefs.h */ |
---|
137 | | #define PACKAGE_NAME "" |
---|
138 | | #define PACKAGE_TARNAME "" |
---|
139 | | #define PACKAGE_VERSION "" |
---|
140 | | #define PACKAGE_STRING "" |
---|
141 | | #define PACKAGE_BUGREPORT "" |
---|
142 | | #define PACKAGE_URL "" |
---|
143 | | #define IS_DARWIN 1 |
---|
144 | | /* end confdefs.h. */ |
---|
145 | | void main () {} |
---|
146 | configure:3667: Compiler does not support -pie et al. |
---|
147 | configure:3697: /usr/bin/clang -c -fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386 -arch x86_64 -fstack-protector-all -D_FORTIFY_SOURCE=2 -c -fvisibility=hidden -I/opt/local/include conftest.c >&5 |
---|
148 | configure:3697: $? = 0 |
---|
149 | configure:3699: Compiling DSO PMDAs with gcc -fvisibility=hidden |
---|
150 | configure:3730: checking for dtrace |
---|
151 | configure:3746: found /usr/sbin/dtrace |
---|
152 | configure:3757: result: dtrace |
---|
153 | configure:3781: checking how to run the C preprocessor |
---|
154 | configure:3812: /usr/bin/clang -E -I/opt/local/include conftest.c |
---|
155 | configure:3812: $? = 0 |
---|
156 | configure:3826: /usr/bin/clang -E -I/opt/local/include conftest.c |
---|
157 | conftest.c:10:10: fatal error: 'ac_nonexistent.h' file not found |
---|
158 | #include <ac_nonexistent.h> |
---|
159 | ^ |
---|
160 | 1 error generated. |
---|
161 | configure:3826: $? = 1 |
---|
162 | configure: failed program was: |
---|
163 | | /* confdefs.h */ |
---|
164 | | #define PACKAGE_NAME "" |
---|
165 | | #define PACKAGE_TARNAME "" |
---|
166 | | #define PACKAGE_VERSION "" |
---|
167 | | #define PACKAGE_STRING "" |
---|
168 | | #define PACKAGE_BUGREPORT "" |
---|
169 | | #define PACKAGE_URL "" |
---|
170 | | #define IS_DARWIN 1 |
---|
171 | | /* end confdefs.h. */ |
---|
172 | | #include <ac_nonexistent.h> |
---|
173 | configure:3851: result: /usr/bin/clang -E |
---|
174 | configure:3871: /usr/bin/clang -E -I/opt/local/include conftest.c |
---|
175 | configure:3871: $? = 0 |
---|
176 | configure:3885: /usr/bin/clang -E -I/opt/local/include conftest.c |
---|
177 | conftest.c:10:10: fatal error: 'ac_nonexistent.h' file not found |
---|
178 | #include <ac_nonexistent.h> |
---|
179 | ^ |
---|
180 | 1 error generated. |
---|
181 | configure:3885: $? = 1 |
---|
182 | configure: failed program was: |
---|
183 | | /* confdefs.h */ |
---|
184 | | #define PACKAGE_NAME "" |
---|
185 | | #define PACKAGE_TARNAME "" |
---|
186 | | #define PACKAGE_VERSION "" |
---|
187 | | #define PACKAGE_STRING "" |
---|
188 | | #define PACKAGE_BUGREPORT "" |
---|
189 | | #define PACKAGE_URL "" |
---|
190 | | #define IS_DARWIN 1 |
---|
191 | | /* end confdefs.h. */ |
---|
192 | | #include <ac_nonexistent.h> |
---|
193 | configure:3914: checking for grep that handles long lines and -e |
---|
194 | configure:3972: result: /usr/bin/grep |
---|
195 | configure:3977: checking for egrep |
---|
196 | configure:4039: result: /usr/bin/grep -E |
---|
197 | configure:4044: checking for ANSI C header files |
---|
198 | configure:4064: /usr/bin/clang -c -fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386 -arch x86_64 -fstack-protector-all -D_FORTIFY_SOURCE=2 -I/opt/local/include conftest.c >&5 |
---|
199 | configure:4064: $? = 0 |
---|
200 | configure:4137: /usr/bin/clang -o conftest -fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386 -arch x86_64 -fstack-protector-all -D_FORTIFY_SOURCE=2 -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 conftest.c >&5 |
---|
201 | configure:4137: $? = 0 |
---|
202 | configure:4137: ./conftest |
---|
203 | configure:4137: $? = 0 |
---|
204 | configure:4148: result: yes |
---|
205 | configure:4161: checking for sys/types.h |
---|
206 | configure:4161: /usr/bin/clang -c -fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386 -arch x86_64 -fstack-protector-all -D_FORTIFY_SOURCE=2 -I/opt/local/include conftest.c >&5 |
---|
207 | configure:4161: $? = 0 |
---|
208 | configure:4161: result: yes |
---|
209 | configure:4161: checking for sys/stat.h |
---|
210 | configure:4161: /usr/bin/clang -c -fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386 -arch x86_64 -fstack-protector-all -D_FORTIFY_SOURCE=2 -I/opt/local/include conftest.c >&5 |
---|
211 | configure:4161: $? = 0 |
---|
212 | configure:4161: result: yes |
---|
213 | configure:4161: checking for stdlib.h |
---|
214 | configure:4161: /usr/bin/clang -c -fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386 -arch x86_64 -fstack-protector-all -D_FORTIFY_SOURCE=2 -I/opt/local/include conftest.c >&5 |
---|
215 | configure:4161: $? = 0 |
---|
216 | configure:4161: result: yes |
---|
217 | configure:4161: checking for string.h |
---|
218 | configure:4161: /usr/bin/clang -c -fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386 -arch x86_64 -fstack-protector-all -D_FORTIFY_SOURCE=2 -I/opt/local/include conftest.c >&5 |
---|
219 | configure:4161: $? = 0 |
---|
220 | configure:4161: result: yes |
---|
221 | configure:4161: checking for memory.h |
---|
222 | configure:4161: /usr/bin/clang -c -fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386 -arch x86_64 -fstack-protector-all -D_FORTIFY_SOURCE=2 -I/opt/local/include conftest.c >&5 |
---|
223 | configure:4161: $? = 0 |
---|
224 | configure:4161: result: yes |
---|
225 | configure:4161: checking for strings.h |
---|
226 | configure:4161: /usr/bin/clang -c -fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386 -arch x86_64 -fstack-protector-all -D_FORTIFY_SOURCE=2 -I/opt/local/include conftest.c >&5 |
---|
227 | configure:4161: $? = 0 |
---|
228 | configure:4161: result: yes |
---|
229 | configure:4161: checking for inttypes.h |
---|
230 | configure:4161: /usr/bin/clang -c -fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386 -arch x86_64 -fstack-protector-all -D_FORTIFY_SOURCE=2 -I/opt/local/include conftest.c >&5 |
---|
231 | configure:4161: $? = 0 |
---|
232 | configure:4161: result: yes |
---|
233 | configure:4161: checking for stdint.h |
---|
234 | configure:4161: /usr/bin/clang -c -fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386 -arch x86_64 -fstack-protector-all -D_FORTIFY_SOURCE=2 -I/opt/local/include conftest.c >&5 |
---|
235 | configure:4161: $? = 0 |
---|
236 | configure:4161: result: yes |
---|
237 | configure:4161: checking for unistd.h |
---|
238 | configure:4161: /usr/bin/clang -c -fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386 -arch x86_64 -fstack-protector-all -D_FORTIFY_SOURCE=2 -I/opt/local/include conftest.c >&5 |
---|
239 | configure:4161: $? = 0 |
---|
240 | configure:4161: result: yes |
---|
241 | configure:4175: checking sys/sdt.h usability |
---|
242 | configure:4175: /usr/bin/clang -c -fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386 -arch x86_64 -fstack-protector-all -D_FORTIFY_SOURCE=2 -I/opt/local/include conftest.c >&5 |
---|
243 | configure:4175: $? = 0 |
---|
244 | configure:4175: result: yes |
---|
245 | configure:4175: checking sys/sdt.h presence |
---|
246 | configure:4175: /usr/bin/clang -E -I/opt/local/include conftest.c |
---|
247 | configure:4175: $? = 0 |
---|
248 | configure:4175: result: yes |
---|
249 | configure:4175: checking for sys/sdt.h |
---|
250 | configure:4175: result: yes |
---|
251 | configure:4290: checking for pkg-config |
---|
252 | configure:4308: found /opt/local/bin/pkg-config |
---|
253 | configure:4320: result: /opt/local/bin/pkg-config |
---|
254 | configure:4345: checking pkg-config is at least version 0.9.0 |
---|
255 | configure:4348: result: yes |
---|
256 | configure:4364: checking for avahi |
---|
257 | configure:4371: $PKG_CONFIG --exists --print-errors "avahi-client" |
---|
258 | Package avahi-client was not found in the pkg-config search path. |
---|
259 | Perhaps you should add the directory containing `avahi-client.pc' |
---|
260 | to the PKG_CONFIG_PATH environment variable |
---|
261 | No package 'avahi-client' found |
---|
262 | configure:4374: $? = 1 |
---|
263 | configure:4388: $PKG_CONFIG --exists --print-errors "avahi-client" |
---|
264 | Package avahi-client was not found in the pkg-config search path. |
---|
265 | Perhaps you should add the directory containing `avahi-client.pc' |
---|
266 | to the PKG_CONFIG_PATH environment variable |
---|
267 | No package 'avahi-client' found |
---|
268 | configure:4391: $? = 1 |
---|
269 | configure:4405: result: no |
---|
270 | No package 'avahi-client' found |
---|
271 | configure:4477: checking avahi-client/publish.h usability |
---|
272 | configure:4477: /usr/bin/clang -c -fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386 -arch x86_64 -fstack-protector-all -D_FORTIFY_SOURCE=2 -I/opt/local/include conftest.c >&5 |
---|
273 | conftest.c:55:10: fatal error: 'avahi-client/publish.h' file not found |
---|
274 | #include <avahi-client/publish.h> |
---|
275 | ^ |
---|
276 | 1 error generated. |
---|
277 | configure:4477: $? = 1 |
---|
278 | configure: failed program was: |
---|
279 | | /* confdefs.h */ |
---|
280 | | #define PACKAGE_NAME "" |
---|
281 | | #define PACKAGE_TARNAME "" |
---|
282 | | #define PACKAGE_VERSION "" |
---|
283 | | #define PACKAGE_STRING "" |
---|
284 | | #define PACKAGE_BUGREPORT "" |
---|
285 | | #define PACKAGE_URL "" |
---|
286 | | #define IS_DARWIN 1 |
---|
287 | | #define STDC_HEADERS 1 |
---|
288 | | #define HAVE_SYS_TYPES_H 1 |
---|
289 | | #define HAVE_SYS_STAT_H 1 |
---|
290 | | #define HAVE_STDLIB_H 1 |
---|
291 | | #define HAVE_STRING_H 1 |
---|
292 | | #define HAVE_MEMORY_H 1 |
---|
293 | | #define HAVE_STRINGS_H 1 |
---|
294 | | #define HAVE_INTTYPES_H 1 |
---|
295 | | #define HAVE_STDINT_H 1 |
---|
296 | | #define HAVE_UNISTD_H 1 |
---|
297 | | #define HAVE_SYS_SDT_H 1 |
---|
298 | | #define HAVE_STATIC_PROBES 1 |
---|
299 | | /* end confdefs.h. */ |
---|
300 | | #include <stdio.h> |
---|
301 | | #ifdef HAVE_SYS_TYPES_H |
---|
302 | | # include <sys/types.h> |
---|
303 | | #endif |
---|
304 | | #ifdef HAVE_SYS_STAT_H |
---|
305 | | # include <sys/stat.h> |
---|
306 | | #endif |
---|
307 | | #ifdef STDC_HEADERS |
---|
308 | | # include <stdlib.h> |
---|
309 | | # include <stddef.h> |
---|
310 | | #else |
---|
311 | | # ifdef HAVE_STDLIB_H |
---|
312 | | # include <stdlib.h> |
---|
313 | | # endif |
---|
314 | | #endif |
---|
315 | | #ifdef HAVE_STRING_H |
---|
316 | | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
---|
317 | | # include <memory.h> |
---|
318 | | # endif |
---|
319 | | # include <string.h> |
---|
320 | | #endif |
---|
321 | | #ifdef HAVE_STRINGS_H |
---|
322 | | # include <strings.h> |
---|
323 | | #endif |
---|
324 | | #ifdef HAVE_INTTYPES_H |
---|
325 | | # include <inttypes.h> |
---|
326 | | #endif |
---|
327 | | #ifdef HAVE_STDINT_H |
---|
328 | | # include <stdint.h> |
---|
329 | | #endif |
---|
330 | | #ifdef HAVE_UNISTD_H |
---|
331 | | # include <unistd.h> |
---|
332 | | #endif |
---|
333 | | #include <avahi-client/publish.h> |
---|
334 | configure:4477: result: no |
---|
335 | configure:4477: checking avahi-client/publish.h presence |
---|
336 | configure:4477: /usr/bin/clang -E -I/opt/local/include conftest.c |
---|
337 | conftest.c:22:10: fatal error: 'avahi-client/publish.h' file not found |
---|
338 | #include <avahi-client/publish.h> |
---|
339 | ^ |
---|
340 | 1 error generated. |
---|
341 | configure:4477: $? = 1 |
---|
342 | configure: failed program was: |
---|
343 | | /* confdefs.h */ |
---|
344 | | #define PACKAGE_NAME "" |
---|
345 | | #define PACKAGE_TARNAME "" |
---|
346 | | #define PACKAGE_VERSION "" |
---|
347 | | #define PACKAGE_STRING "" |
---|
348 | | #define PACKAGE_BUGREPORT "" |
---|
349 | | #define PACKAGE_URL "" |
---|
350 | | #define IS_DARWIN 1 |
---|
351 | | #define STDC_HEADERS 1 |
---|
352 | | #define HAVE_SYS_TYPES_H 1 |
---|
353 | | #define HAVE_SYS_STAT_H 1 |
---|
354 | | #define HAVE_STDLIB_H 1 |
---|
355 | | #define HAVE_STRING_H 1 |
---|
356 | | #define HAVE_MEMORY_H 1 |
---|
357 | | #define HAVE_STRINGS_H 1 |
---|
358 | | #define HAVE_INTTYPES_H 1 |
---|
359 | | #define HAVE_STDINT_H 1 |
---|
360 | | #define HAVE_UNISTD_H 1 |
---|
361 | | #define HAVE_SYS_SDT_H 1 |
---|
362 | | #define HAVE_STATIC_PROBES 1 |
---|
363 | | /* end confdefs.h. */ |
---|
364 | | #include <avahi-client/publish.h> |
---|
365 | configure:4477: result: no |
---|
366 | configure:4477: checking for avahi-client/publish.h |
---|
367 | configure:4477: result: no |
---|
368 | configure:4491: checking avahi-common/alternative.h usability |
---|
369 | configure:4491: /usr/bin/clang -c -fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386 -arch x86_64 -fstack-protector-all -D_FORTIFY_SOURCE=2 -I/opt/local/include conftest.c >&5 |
---|
370 | conftest.c:55:10: fatal error: 'avahi-common/alternative.h' file not found |
---|
371 | #include <avahi-common/alternative.h> |
---|
372 | ^ |
---|
373 | 1 error generated. |
---|
374 | configure:4491: $? = 1 |
---|
375 | configure: failed program was: |
---|
376 | | /* confdefs.h */ |
---|
377 | | #define PACKAGE_NAME "" |
---|
378 | | #define PACKAGE_TARNAME "" |
---|
379 | | #define PACKAGE_VERSION "" |
---|
380 | | #define PACKAGE_STRING "" |
---|
381 | | #define PACKAGE_BUGREPORT "" |
---|
382 | | #define PACKAGE_URL "" |
---|
383 | | #define IS_DARWIN 1 |
---|
384 | | #define STDC_HEADERS 1 |
---|
385 | | #define HAVE_SYS_TYPES_H 1 |
---|
386 | | #define HAVE_SYS_STAT_H 1 |
---|
387 | | #define HAVE_STDLIB_H 1 |
---|
388 | | #define HAVE_STRING_H 1 |
---|
389 | | #define HAVE_MEMORY_H 1 |
---|
390 | | #define HAVE_STRINGS_H 1 |
---|
391 | | #define HAVE_INTTYPES_H 1 |
---|
392 | | #define HAVE_STDINT_H 1 |
---|
393 | | #define HAVE_UNISTD_H 1 |
---|
394 | | #define HAVE_SYS_SDT_H 1 |
---|
395 | | #define HAVE_STATIC_PROBES 1 |
---|
396 | | /* end confdefs.h. */ |
---|
397 | | #include <stdio.h> |
---|
398 | | #ifdef HAVE_SYS_TYPES_H |
---|
399 | | # include <sys/types.h> |
---|
400 | | #endif |
---|
401 | | #ifdef HAVE_SYS_STAT_H |
---|
402 | | # include <sys/stat.h> |
---|
403 | | #endif |
---|
404 | | #ifdef STDC_HEADERS |
---|
405 | | # include <stdlib.h> |
---|
406 | | # include <stddef.h> |
---|
407 | | #else |
---|
408 | | # ifdef HAVE_STDLIB_H |
---|
409 | | # include <stdlib.h> |
---|
410 | | # endif |
---|
411 | | #endif |
---|
412 | | #ifdef HAVE_STRING_H |
---|
413 | | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
---|
414 | | # include <memory.h> |
---|
415 | | # endif |
---|
416 | | # include <string.h> |
---|
417 | | #endif |
---|
418 | | #ifdef HAVE_STRINGS_H |
---|
419 | | # include <strings.h> |
---|
420 | | #endif |
---|
421 | | #ifdef HAVE_INTTYPES_H |
---|
422 | | # include <inttypes.h> |
---|
423 | | #endif |
---|
424 | | #ifdef HAVE_STDINT_H |
---|
425 | | # include <stdint.h> |
---|
426 | | #endif |
---|
427 | | #ifdef HAVE_UNISTD_H |
---|
428 | | # include <unistd.h> |
---|
429 | | #endif |
---|
430 | | #include <avahi-common/alternative.h> |
---|
431 | configure:4491: result: no |
---|
432 | configure:4491: checking avahi-common/alternative.h presence |
---|
433 | configure:4491: /usr/bin/clang -E -I/opt/local/include conftest.c |
---|
434 | conftest.c:22:10: fatal error: 'avahi-common/alternative.h' file not found |
---|
435 | #include <avahi-common/alternative.h> |
---|
436 | ^ |
---|
437 | 1 error generated. |
---|
438 | configure:4491: $? = 1 |
---|
439 | configure: failed program was: |
---|
440 | | /* confdefs.h */ |
---|
441 | | #define PACKAGE_NAME "" |
---|
442 | | #define PACKAGE_TARNAME "" |
---|
443 | | #define PACKAGE_VERSION "" |
---|
444 | | #define PACKAGE_STRING "" |
---|
445 | | #define PACKAGE_BUGREPORT "" |
---|
446 | | #define PACKAGE_URL "" |
---|
447 | | #define IS_DARWIN 1 |
---|
448 | | #define STDC_HEADERS 1 |
---|
449 | | #define HAVE_SYS_TYPES_H 1 |
---|
450 | | #define HAVE_SYS_STAT_H 1 |
---|
451 | | #define HAVE_STDLIB_H 1 |
---|
452 | | #define HAVE_STRING_H 1 |
---|
453 | | #define HAVE_MEMORY_H 1 |
---|
454 | | #define HAVE_STRINGS_H 1 |
---|
455 | | #define HAVE_INTTYPES_H 1 |
---|
456 | | #define HAVE_STDINT_H 1 |
---|
457 | | #define HAVE_UNISTD_H 1 |
---|
458 | | #define HAVE_SYS_SDT_H 1 |
---|
459 | | #define HAVE_STATIC_PROBES 1 |
---|
460 | | /* end confdefs.h. */ |
---|
461 | | #include <avahi-common/alternative.h> |
---|
462 | configure:4491: result: no |
---|
463 | configure:4491: checking for avahi-common/alternative.h |
---|
464 | configure:4491: result: no |
---|
465 | configure:4682: creating ./config.status |
---|
466 | |
---|
467 | ## ---------------------- ## |
---|
468 | ## Running config.status. ## |
---|
469 | ## ---------------------- ## |
---|
470 | |
---|
471 | This file was extended by config.status, which was |
---|
472 | generated by GNU Autoconf 2.69. Invocation command line was |
---|
473 | |
---|
474 | CONFIG_FILES = |
---|
475 | CONFIG_HEADERS = |
---|
476 | CONFIG_LINKS = |
---|
477 | CONFIG_COMMANDS = |
---|
478 | $ ./config.status |
---|
479 | |
---|
480 | on cyclica1.local |
---|
481 | |
---|
482 | config.status:1005: creating src/include/pcp/platform_defs.h |
---|
483 | config.status:1005: creating src/include/pcp/config.h |
---|
484 | config.status:1005: creating src/include/pcp/configsz.h |
---|
485 | configure:5846: checking for git |
---|
486 | configure:5862: found /opt/local/bin/git |
---|
487 | configure:5873: result: git |
---|
488 | configure:5890: checking for python |
---|
489 | configure:5906: found /opt/local/bin/python |
---|
490 | configure:5917: result: python |
---|
491 | configure:5943: checking for qmake-qt4 |
---|
492 | configure:5977: result: no |
---|
493 | configure:5943: checking for qmake |
---|
494 | configure:5977: result: no |
---|
495 | configure:6137: checking for C compiler version |
---|
496 | configure:6146: /usr/bin/clang --version >&5 |
---|
497 | Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) |
---|
498 | Target: x86_64-apple-darwin13.3.0 |
---|
499 | Thread model: posix |
---|
500 | configure:6157: $? = 0 |
---|
501 | configure:6146: /usr/bin/clang -v >&5 |
---|
502 | Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) |
---|
503 | Target: x86_64-apple-darwin13.3.0 |
---|
504 | Thread model: posix |
---|
505 | configure:6157: $? = 0 |
---|
506 | configure:6146: /usr/bin/clang -V >&5 |
---|
507 | clang: error: argument to '-V' is missing (expected 1 value) |
---|
508 | clang: error: no input files |
---|
509 | configure:6157: $? = 1 |
---|
510 | configure:6146: /usr/bin/clang -qversion >&5 |
---|
511 | clang: error: unknown argument: '-qversion' [-Wunused-command-line-argument-hard-error-in-future] |
---|
512 | clang: note: this will be a hard error (cannot be downgraded to a warning) in the future |
---|
513 | clang: error: no input files |
---|
514 | configure:6157: $? = 1 |
---|
515 | configure:6161: checking whether we are using the GNU C compiler |
---|
516 | configure:6189: result: yes |
---|
517 | configure:6198: checking whether /usr/bin/clang accepts -g |
---|
518 | configure:6259: result: yes |
---|
519 | configure:6276: checking for /usr/bin/clang option to accept ISO C89 |
---|
520 | configure:6352: result: none needed |
---|
521 | configure:6564: checking for C++ compiler version |
---|
522 | configure:6573: /usr/bin/clang++ --version >&5 |
---|
523 | Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) |
---|
524 | Target: x86_64-apple-darwin13.3.0 |
---|
525 | Thread model: posix |
---|
526 | configure:6584: $? = 0 |
---|
527 | configure:6573: /usr/bin/clang++ -v >&5 |
---|
528 | Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) |
---|
529 | Target: x86_64-apple-darwin13.3.0 |
---|
530 | Thread model: posix |
---|
531 | configure:6584: $? = 0 |
---|
532 | configure:6573: /usr/bin/clang++ -V >&5 |
---|
533 | clang: error: argument to '-V' is missing (expected 1 value) |
---|
534 | clang: error: no input files |
---|
535 | configure:6584: $? = 1 |
---|
536 | configure:6573: /usr/bin/clang++ -qversion >&5 |
---|
537 | clang: error: unknown argument: '-qversion' [-Wunused-command-line-argument-hard-error-in-future] |
---|
538 | clang: note: this will be a hard error (cannot be downgraded to a warning) in the future |
---|
539 | clang: error: no input files |
---|
540 | configure:6584: $? = 1 |
---|
541 | configure:6588: checking whether we are using the GNU C++ compiler |
---|
542 | configure:6607: /usr/bin/clang++ -c -pipe -Os -arch x86_64 -stdlib=libc++ -I/opt/local/include conftest.cpp >&5 |
---|
543 | configure:6607: $? = 0 |
---|
544 | configure:6616: result: yes |
---|
545 | configure:6625: checking whether /usr/bin/clang++ accepts -g |
---|
546 | configure:6645: /usr/bin/clang++ -c -g -I/opt/local/include conftest.cpp >&5 |
---|
547 | configure:6645: $? = 0 |
---|
548 | configure:6686: result: yes |
---|
549 | configure:6720: checking for gmake |
---|
550 | configure:6738: found /opt/local/bin/gmake |
---|
551 | configure:6750: result: /opt/local/bin/gmake |
---|
552 | configure:6939: checking for ld |
---|
553 | configure:6957: found /opt/local/bin/ld |
---|
554 | configure:6970: result: /opt/local/bin/ld |
---|
555 | configure:7008: checking for gtar |
---|
556 | configure:7041: result: no |
---|
557 | configure:7008: checking for tar |
---|
558 | configure:7026: found /usr/bin/tar |
---|
559 | configure:7038: result: /usr/bin/tar |
---|
560 | configure:7061: checking for gzip |
---|
561 | configure:7079: found /opt/local/bin/gzip |
---|
562 | configure:7092: result: /opt/local/bin/gzip |
---|
563 | configure:7111: checking for bzip2 |
---|
564 | configure:7129: found /opt/local/bin/bzip2 |
---|
565 | configure:7142: result: /opt/local/bin/bzip2 |
---|
566 | configure:7161: checking for lzma |
---|
567 | configure:7179: found /opt/local/bin/lzma |
---|
568 | configure:7192: result: /opt/local/bin/lzma |
---|
569 | configure:7211: checking for xz |
---|
570 | configure:7229: found /opt/local/bin/xz |
---|
571 | configure:7242: result: /opt/local/bin/xz |
---|
572 | configure:7258: checking for PackageMaker |
---|
573 | configure:7275: result: not found! |
---|
574 | configure:7277: WARNING: PackageMaker not found, mac packages will not be made |
---|
575 | configure:7292: checking for hdiutil |
---|
576 | configure:7310: found /usr/bin/hdiutil |
---|
577 | configure:7322: result: /usr/bin/hdiutil |
---|
578 | configure:7337: checking for mkinstallp |
---|
579 | configure:7370: result: no |
---|
580 | configure:7382: checking for pkgmk |
---|
581 | configure:7415: result: no |
---|
582 | configure:7427: checking for dlltool |
---|
583 | configure:7460: result: no |
---|
584 | configure:7472: checking for rpmbuild |
---|
585 | configure:7505: result: no |
---|
586 | configure:7518: checking for rpm |
---|
587 | configure:7551: result: no |
---|
588 | configure:7572: checking for pod2man |
---|
589 | configure:7590: found /opt/local/bin/pod2man |
---|
590 | configure:7602: result: /opt/local/bin/pod2man |
---|
591 | configure:7614: checking if ExtUtils::MakeMaker is installed |
---|
592 | configure:7619: result: yes |
---|
593 | configure:7634: checking for true |
---|
594 | configure:7652: found /usr/bin/true |
---|
595 | configure:7664: result: /usr/bin/true |
---|
596 | configure:7676: checking for makedepend |
---|
597 | configure:7707: result: /usr/bin/true |
---|
598 | configure:7722: checking for md5sum |
---|
599 | configure:7753: result: /usr/bin/true |
---|
600 | configure:7768: checking for dpkg |
---|
601 | configure:7801: result: no |
---|
602 | configure:7813: checking for makepkg |
---|
603 | configure:7846: result: no |
---|
604 | configure:7857: checking for publican |
---|
605 | configure:7890: result: no |
---|
606 | configure:7899: checking for dblatex |
---|
607 | configure:7932: result: no |
---|
608 | configure:7941: checking for xmlto |
---|
609 | configure:7974: result: no |
---|
610 | configure:8004: checking whether ln -s works |
---|
611 | configure:8008: result: yes |
---|
612 | configure:8023: checking for flex |
---|
613 | configure:8039: found /opt/local/bin/flex |
---|
614 | configure:8050: result: flex |
---|
615 | configure:8088: flex conftest.l |
---|
616 | configure:8092: $? = 0 |
---|
617 | configure:8094: checking lex output file root |
---|
618 | configure:8108: result: lex.yy |
---|
619 | configure:8113: checking lex library |
---|
620 | configure:8127: /usr/bin/clang -o conftest -O -fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386 -arch x86_64 -fstack-protector-all -D_FORTIFY_SOURCE=2 -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 conftest.c >&5 |
---|
621 | Undefined symbols for architecture i386: |
---|
622 | "_yywrap", referenced from: |
---|
623 | _yylex in conftest-16e9cd.o |
---|
624 | _main in conftest-16e9cd.o |
---|
625 | ld: symbol(s) not found for architecture i386 |
---|
626 | clang: error: linker command failed with exit code 1 (use -v to see invocation) |
---|
627 | configure:8127: $? = 1 |
---|
628 | configure: failed program was: |
---|
629 | | /* confdefs.h */ |
---|
630 | | #define PACKAGE_NAME "" |
---|
631 | | #define PACKAGE_TARNAME "" |
---|
632 | | #define PACKAGE_VERSION "" |
---|
633 | | #define PACKAGE_STRING "" |
---|
634 | | #define PACKAGE_BUGREPORT "" |
---|
635 | | #define PACKAGE_URL "" |
---|
636 | | #define IS_DARWIN 1 |
---|
637 | | #define STDC_HEADERS 1 |
---|
638 | | #define HAVE_SYS_TYPES_H 1 |
---|
639 | | #define HAVE_SYS_STAT_H 1 |
---|
640 | | #define HAVE_STDLIB_H 1 |
---|
641 | | #define HAVE_STRING_H 1 |
---|
642 | | #define HAVE_MEMORY_H 1 |
---|
643 | | #define HAVE_STRINGS_H 1 |
---|
644 | | #define HAVE_INTTYPES_H 1 |
---|
645 | | #define HAVE_STDINT_H 1 |
---|
646 | | #define HAVE_UNISTD_H 1 |
---|
647 | | #define HAVE_SYS_SDT_H 1 |
---|
648 | | #define HAVE_STATIC_PROBES 1 |
---|
649 | | /* end confdefs.h. */ |
---|
650 | | |
---|
651 | | #line 3 "lex.yy.c" |
---|
652 | | |
---|
653 | | #define YY_INT_ALIGNED short int |
---|
654 | | |
---|
655 | | /* A lexical scanner generated by flex */ |
---|
656 | | |
---|
657 | | #define FLEX_SCANNER |
---|
658 | | #define YY_FLEX_MAJOR_VERSION 2 |
---|
659 | | #define YY_FLEX_MINOR_VERSION 5 |
---|
660 | | #define YY_FLEX_SUBMINOR_VERSION 37 |
---|
661 | | #if YY_FLEX_SUBMINOR_VERSION > 0 |
---|
662 | | #define FLEX_BETA |
---|
663 | | #endif |
---|
664 | | |
---|
665 | | /* First, we deal with platform-specific or compiler-specific issues. */ |
---|
666 | | |
---|
667 | | /* begin standard C headers. */ |
---|
668 | | #include <stdio.h> |
---|
669 | | #include <string.h> |
---|
670 | | #include <errno.h> |
---|
671 | | #include <stdlib.h> |
---|
672 | | |
---|
673 | | /* end standard C headers. */ |
---|
674 | | |
---|
675 | | /* flex integer type definitions */ |
---|
676 | | |
---|
677 | | #ifndef FLEXINT_H |
---|
678 | | #define FLEXINT_H |
---|
679 | | |
---|
680 | | /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */ |
---|
681 | | |
---|
682 | | #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L |
---|
683 | | |
---|
684 | | /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, |
---|
685 | | * if you want the limit (max/min) macros for int types. |
---|
686 | | */ |
---|
687 | | #ifndef __STDC_LIMIT_MACROS |
---|
688 | | #define __STDC_LIMIT_MACROS 1 |
---|
689 | | #endif |
---|
690 | | |
---|
691 | | #include <inttypes.h> |
---|
692 | | typedef int8_t flex_int8_t; |
---|
693 | | typedef uint8_t flex_uint8_t; |
---|
694 | | typedef int16_t flex_int16_t; |
---|
695 | | typedef uint16_t flex_uint16_t; |
---|
696 | | typedef int32_t flex_int32_t; |
---|
697 | | typedef uint32_t flex_uint32_t; |
---|
698 | | #else |
---|
699 | | typedef signed char flex_int8_t; |
---|
700 | | typedef short int flex_int16_t; |
---|
701 | | typedef int flex_int32_t; |
---|
702 | | typedef unsigned char flex_uint8_t; |
---|
703 | | typedef unsigned short int flex_uint16_t; |
---|
704 | | typedef unsigned int flex_uint32_t; |
---|
705 | | |
---|
706 | | /* Limits of integral types. */ |
---|
707 | | #ifndef INT8_MIN |
---|
708 | | #define INT8_MIN (-128) |
---|
709 | | #endif |
---|
710 | | #ifndef INT16_MIN |
---|
711 | | #define INT16_MIN (-32767-1) |
---|
712 | | #endif |
---|
713 | | #ifndef INT32_MIN |
---|
714 | | #define INT32_MIN (-2147483647-1) |
---|
715 | | #endif |
---|
716 | | #ifndef INT8_MAX |
---|
717 | | #define INT8_MAX (127) |
---|
718 | | #endif |
---|
719 | | #ifndef INT16_MAX |
---|
720 | | #define INT16_MAX (32767) |
---|
721 | | #endif |
---|
722 | | #ifndef INT32_MAX |
---|
723 | | #define INT32_MAX (2147483647) |
---|
724 | | #endif |
---|
725 | | #ifndef UINT8_MAX |
---|
726 | | #define UINT8_MAX (255U) |
---|
727 | | #endif |
---|
728 | | #ifndef UINT16_MAX |
---|
729 | | #define UINT16_MAX (65535U) |
---|
730 | | #endif |
---|
731 | | #ifndef UINT32_MAX |
---|
732 | | #define UINT32_MAX (4294967295U) |
---|
733 | | #endif |
---|
734 | | |
---|
735 | | #endif /* ! C99 */ |
---|
736 | | |
---|
737 | | #endif /* ! FLEXINT_H */ |
---|
738 | | |
---|
739 | | #ifdef __cplusplus |
---|
740 | | |
---|
741 | | /* The "const" storage-class-modifier is valid. */ |
---|
742 | | #define YY_USE_CONST |
---|
743 | | |
---|
744 | | #else /* ! __cplusplus */ |
---|
745 | | |
---|
746 | | /* C99 requires __STDC__ to be defined as 1. */ |
---|
747 | | #if defined (__STDC__) |
---|
748 | | |
---|
749 | | #define YY_USE_CONST |
---|
750 | | |
---|
751 | | #endif /* defined (__STDC__) */ |
---|
752 | | #endif /* ! __cplusplus */ |
---|
753 | | |
---|
754 | | #ifdef YY_USE_CONST |
---|
755 | | #define yyconst const |
---|
756 | | #else |
---|
757 | | #define yyconst |
---|
758 | | #endif |
---|
759 | | |
---|
760 | | /* Returned upon end-of-file. */ |
---|
761 | | #define YY_NULL 0 |
---|
762 | | |
---|
763 | | /* Promotes a possibly negative, possibly signed char to an unsigned |
---|
764 | | * integer for use as an array index. If the signed char is negative, |
---|
765 | | * we want to instead treat it as an 8-bit unsigned char, hence the |
---|
766 | | * double cast. |
---|
767 | | */ |
---|
768 | | #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) |
---|
769 | | |
---|
770 | | /* Enter a start condition. This macro really ought to take a parameter, |
---|
771 | | * but we do it the disgusting crufty way forced on us by the ()-less |
---|
772 | | * definition of BEGIN. |
---|
773 | | */ |
---|
774 | | #define BEGIN (yy_start) = 1 + 2 * |
---|
775 | | |
---|
776 | | /* Translate the current start state into a value that can be later handed |
---|
777 | | * to BEGIN to return to the state. The YYSTATE alias is for lex |
---|
778 | | * compatibility. |
---|
779 | | */ |
---|
780 | | #define YY_START (((yy_start) - 1) / 2) |
---|
781 | | #define YYSTATE YY_START |
---|
782 | | |
---|
783 | | /* Action number for EOF rule of a given start state. */ |
---|
784 | | #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) |
---|
785 | | |
---|
786 | | /* Special action meaning "start processing a new file". */ |
---|
787 | | #define YY_NEW_FILE yyrestart(yyin ) |
---|
788 | | |
---|
789 | | #define YY_END_OF_BUFFER_CHAR 0 |
---|
790 | | |
---|
791 | | /* Size of default input buffer. */ |
---|
792 | | #ifndef YY_BUF_SIZE |
---|
793 | | #define YY_BUF_SIZE 16384 |
---|
794 | | #endif |
---|
795 | | |
---|
796 | | /* The state buf must be large enough to hold one state per character in the main buffer. |
---|
797 | | */ |
---|
798 | | #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
---|
799 | | |
---|
800 | | #ifndef YY_TYPEDEF_YY_BUFFER_STATE |
---|
801 | | #define YY_TYPEDEF_YY_BUFFER_STATE |
---|
802 | | typedef struct yy_buffer_state *YY_BUFFER_STATE; |
---|
803 | | #endif |
---|
804 | | |
---|
805 | | #ifndef YY_TYPEDEF_YY_SIZE_T |
---|
806 | | #define YY_TYPEDEF_YY_SIZE_T |
---|
807 | | typedef size_t yy_size_t; |
---|
808 | | #endif |
---|
809 | | |
---|
810 | | extern yy_size_t yyleng; |
---|
811 | | |
---|
812 | | extern FILE *yyin, *yyout; |
---|
813 | | |
---|
814 | | #define EOB_ACT_CONTINUE_SCAN 0 |
---|
815 | | #define EOB_ACT_END_OF_FILE 1 |
---|
816 | | #define EOB_ACT_LAST_MATCH 2 |
---|
817 | | |
---|
818 | | #define YY_LESS_LINENO(n) |
---|
819 | | |
---|
820 | | /* Return all but the first "n" matched characters back to the input stream. */ |
---|
821 | | #define yyless(n) \ |
---|
822 | | do \ |
---|
823 | | { \ |
---|
824 | | /* Undo effects of setting up yytext. */ \ |
---|
825 | | int yyless_macro_arg = (n); \ |
---|
826 | | YY_LESS_LINENO(yyless_macro_arg);\ |
---|
827 | | *yy_cp = (yy_hold_char); \ |
---|
828 | | YY_RESTORE_YY_MORE_OFFSET \ |
---|
829 | | (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ |
---|
830 | | YY_DO_BEFORE_ACTION; /* set up yytext again */ \ |
---|
831 | | } \ |
---|
832 | | while ( 0 ) |
---|
833 | | |
---|
834 | | #define unput(c) yyunput( c, (yytext_ptr) ) |
---|
835 | | |
---|
836 | | #ifndef YY_STRUCT_YY_BUFFER_STATE |
---|
837 | | #define YY_STRUCT_YY_BUFFER_STATE |
---|
838 | | struct yy_buffer_state |
---|
839 | | { |
---|
840 | | FILE *yy_input_file; |
---|
841 | | |
---|
842 | | char *yy_ch_buf; /* input buffer */ |
---|
843 | | char *yy_buf_pos; /* current position in input buffer */ |
---|
844 | | |
---|
845 | | /* Size of input buffer in bytes, not including room for EOB |
---|
846 | | * characters. |
---|
847 | | */ |
---|
848 | | yy_size_t yy_buf_size; |
---|
849 | | |
---|
850 | | /* Number of characters read into yy_ch_buf, not including EOB |
---|
851 | | * characters. |
---|
852 | | */ |
---|
853 | | yy_size_t yy_n_chars; |
---|
854 | | |
---|
855 | | /* Whether we "own" the buffer - i.e., we know we created it, |
---|
856 | | * and can realloc() it to grow it, and should free() it to |
---|
857 | | * delete it. |
---|
858 | | */ |
---|
859 | | int yy_is_our_buffer; |
---|
860 | | |
---|
861 | | /* Whether this is an "interactive" input source; if so, and |
---|
862 | | * if we're using stdio for input, then we want to use getc() |
---|
863 | | * instead of fread(), to make sure we stop fetching input after |
---|
864 | | * each newline. |
---|
865 | | */ |
---|
866 | | int yy_is_interactive; |
---|
867 | | |
---|
868 | | /* Whether we're considered to be at the beginning of a line. |
---|
869 | | * If so, '^' rules will be active on the next match, otherwise |
---|
870 | | * not. |
---|
871 | | */ |
---|
872 | | int yy_at_bol; |
---|
873 | | |
---|
874 | | int yy_bs_lineno; /**< The line count. */ |
---|
875 | | int yy_bs_column; /**< The column count. */ |
---|
876 | | |
---|
877 | | /* Whether to try to fill the input buffer when we reach the |
---|
878 | | * end of it. |
---|
879 | | */ |
---|
880 | | int yy_fill_buffer; |
---|
881 | | |
---|
882 | | int yy_buffer_status; |
---|
883 | | |
---|
884 | | #define YY_BUFFER_NEW 0 |
---|
885 | | #define YY_BUFFER_NORMAL 1 |
---|
886 | | /* When an EOF's been seen but there's still some text to process |
---|
887 | | * then we mark the buffer as YY_EOF_PENDING, to indicate that we |
---|
888 | | * shouldn't try reading from the input source any more. We might |
---|
889 | | * still have a bunch of tokens to match, though, because of |
---|
890 | | * possible backing-up. |
---|
891 | | * |
---|
892 | | * When we actually see the EOF, we change the status to "new" |
---|
893 | | * (via yyrestart()), so that the user can continue scanning by |
---|
894 | | * just pointing yyin at a new input file. |
---|
895 | | */ |
---|
896 | | #define YY_BUFFER_EOF_PENDING 2 |
---|
897 | | |
---|
898 | | }; |
---|
899 | | #endif /* !YY_STRUCT_YY_BUFFER_STATE */ |
---|
900 | | |
---|
901 | | /* Stack of input buffers. */ |
---|
902 | | static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */ |
---|
903 | | static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */ |
---|
904 | | static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */ |
---|
905 | | |
---|
906 | | /* We provide macros for accessing buffer states in case in the |
---|
907 | | * future we want to put the buffer states in a more general |
---|
908 | | * "scanner state". |
---|
909 | | * |
---|
910 | | * Returns the top of the stack, or NULL. |
---|
911 | | */ |
---|
912 | | #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ |
---|
913 | | ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ |
---|
914 | | : NULL) |
---|
915 | | |
---|
916 | | /* Same as previous macro, but useful when we know that the buffer stack is not |
---|
917 | | * NULL or when we need an lvalue. For internal use only. |
---|
918 | | */ |
---|
919 | | #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
---|
920 | | |
---|
921 | | /* yy_hold_char holds the character lost when yytext is formed. */ |
---|
922 | | static char yy_hold_char; |
---|
923 | | static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */ |
---|
924 | | yy_size_t yyleng; |
---|
925 | | |
---|
926 | | /* Points to current character in buffer. */ |
---|
927 | | static char *yy_c_buf_p = (char *) 0; |
---|
928 | | static int yy_init = 0; /* whether we need to initialize */ |
---|
929 | | static int yy_start = 0; /* start state number */ |
---|
930 | | |
---|
931 | | /* Flag which is used to allow yywrap()'s to do buffer switches |
---|
932 | | * instead of setting up a fresh yyin. A bit of a hack ... |
---|
933 | | */ |
---|
934 | | static int yy_did_buffer_switch_on_eof; |
---|
935 | | |
---|
936 | | void yyrestart (FILE *input_file ); |
---|
937 | | void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ); |
---|
938 | | YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ); |
---|
939 | | void yy_delete_buffer (YY_BUFFER_STATE b ); |
---|
940 | | void yy_flush_buffer (YY_BUFFER_STATE b ); |
---|
941 | | void yypush_buffer_state (YY_BUFFER_STATE new_buffer ); |
---|
942 | | void yypop_buffer_state (void ); |
---|
943 | | |
---|
944 | | static void yyensure_buffer_stack (void ); |
---|
945 | | static void yy_load_buffer_state (void ); |
---|
946 | | static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file ); |
---|
947 | | |
---|
948 | | #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER ) |
---|
949 | | |
---|
950 | | YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ); |
---|
951 | | YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ); |
---|
952 | | YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len ); |
---|
953 | | |
---|
954 | | void *yyalloc (yy_size_t ); |
---|
955 | | void *yyrealloc (void *,yy_size_t ); |
---|
956 | | void yyfree (void * ); |
---|
957 | | |
---|
958 | | #define yy_new_buffer yy_create_buffer |
---|
959 | | |
---|
960 | | #define yy_set_interactive(is_interactive) \ |
---|
961 | | { \ |
---|
962 | | if ( ! YY_CURRENT_BUFFER ){ \ |
---|
963 | | yyensure_buffer_stack (); \ |
---|
964 | | YY_CURRENT_BUFFER_LVALUE = \ |
---|
965 | | yy_create_buffer(yyin,YY_BUF_SIZE ); \ |
---|
966 | | } \ |
---|
967 | | YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ |
---|
968 | | } |
---|
969 | | |
---|
970 | | #define yy_set_bol(at_bol) \ |
---|
971 | | { \ |
---|
972 | | if ( ! YY_CURRENT_BUFFER ){\ |
---|
973 | | yyensure_buffer_stack (); \ |
---|
974 | | YY_CURRENT_BUFFER_LVALUE = \ |
---|
975 | | yy_create_buffer(yyin,YY_BUF_SIZE ); \ |
---|
976 | | } \ |
---|
977 | | YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ |
---|
978 | | } |
---|
979 | | |
---|
980 | | #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
---|
981 | | |
---|
982 | | /* Begin user sect3 */ |
---|
983 | | |
---|
984 | | typedef unsigned char YY_CHAR; |
---|
985 | | |
---|
986 | | FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; |
---|
987 | | |
---|
988 | | typedef int yy_state_type; |
---|
989 | | |
---|
990 | | extern int yylineno; |
---|
991 | | |
---|
992 | | int yylineno = 1; |
---|
993 | | |
---|
994 | | extern char *yytext; |
---|
995 | | #define yytext_ptr yytext |
---|
996 | | |
---|
997 | | static yy_state_type yy_get_previous_state (void ); |
---|
998 | | static yy_state_type yy_try_NUL_trans (yy_state_type current_state ); |
---|
999 | | static int yy_get_next_buffer (void ); |
---|
1000 | | static void yy_fatal_error (yyconst char msg[] ); |
---|
1001 | | |
---|
1002 | | /* Done after the current pattern has been matched and before the |
---|
1003 | | * corresponding action - sets up yytext. |
---|
1004 | | */ |
---|
1005 | | #define YY_DO_BEFORE_ACTION \ |
---|
1006 | | (yytext_ptr) = yy_bp; \ |
---|
1007 | | (yytext_ptr) -= (yy_more_len); \ |
---|
1008 | | yyleng = (size_t) (yy_cp - (yytext_ptr)); \ |
---|
1009 | | (yy_hold_char) = *yy_cp; \ |
---|
1010 | | *yy_cp = '\0'; \ |
---|
1011 | | (yy_c_buf_p) = yy_cp; |
---|
1012 | | |
---|
1013 | | #define YY_NUM_RULES 8 |
---|
1014 | | #define YY_END_OF_BUFFER 9 |
---|
1015 | | /* This struct is not used in this scanner, |
---|
1016 | | but its presence is necessary. */ |
---|
1017 | | struct yy_trans_info |
---|
1018 | | { |
---|
1019 | | flex_int32_t yy_verify; |
---|
1020 | | flex_int32_t yy_nxt; |
---|
1021 | | }; |
---|
1022 | | static yyconst flex_int16_t yy_acclist[23] = |
---|
1023 | | { 0, |
---|
1024 | | 9, 7, 8, 8, 1, 7, 8, 2, 7, 8, |
---|
1025 | | 3, 7, 8, 4, 7, 8, 5, 7, 8, 6, |
---|
1026 | | 7, 8 |
---|
1027 | | } ; |
---|
1028 | | |
---|
1029 | | static yyconst flex_int16_t yy_accept[14] = |
---|
1030 | | { 0, |
---|
1031 | | 1, 1, 1, 2, 4, 5, 8, 11, 14, 17, |
---|
1032 | | 20, 23, 23 |
---|
1033 | | } ; |
---|
1034 | | |
---|
1035 | | static yyconst flex_int32_t yy_ec[256] = |
---|
1036 | | { 0, |
---|
1037 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, |
---|
1038 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
1039 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
1040 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
1041 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
1042 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
1043 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
1044 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
1045 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
1046 | | 1, 1, 1, 1, 1, 1, 3, 4, 5, 6, |
---|
1047 | | |
---|
1048 | | 7, 8, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
1049 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
1050 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
1051 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
1052 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
1053 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
1054 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
1055 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
1056 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
1057 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
1058 | | |
---|
1059 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
1060 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
1061 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
1062 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
1063 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
1064 | | 1, 1, 1, 1, 1 |
---|
1065 | | } ; |
---|
1066 | | |
---|
1067 | | static yyconst flex_int32_t yy_meta[9] = |
---|
1068 | | { 0, |
---|
1069 | | 1, 1, 1, 1, 1, 1, 1, 1 |
---|
1070 | | } ; |
---|
1071 | | |
---|
1072 | | static yyconst flex_int16_t yy_base[13] = |
---|
1073 | | { 0, |
---|
1074 | | 0, 0, 9, 10, 10, 10, 10, 10, 10, 10, |
---|
1075 | | 10, 10 |
---|
1076 | | } ; |
---|
1077 | | |
---|
1078 | | static yyconst flex_int16_t yy_def[13] = |
---|
1079 | | { 0, |
---|
1080 | | 12, 1, 12, 12, 12, 12, 12, 12, 12, 12, |
---|
1081 | | 12, 0 |
---|
1082 | | } ; |
---|
1083 | | |
---|
1084 | | static yyconst flex_int16_t yy_nxt[19] = |
---|
1085 | | { 0, |
---|
1086 | | 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, |
---|
1087 | | 12, 12, 12, 12, 12, 12, 12, 12 |
---|
1088 | | } ; |
---|
1089 | | |
---|
1090 | | static yyconst flex_int16_t yy_chk[19] = |
---|
1091 | | { 0, |
---|
1092 | | 1, 1, 1, 1, 1, 1, 1, 1, 3, 12, |
---|
1093 | | 12, 12, 12, 12, 12, 12, 12, 12 |
---|
1094 | | } ; |
---|
1095 | | |
---|
1096 | | extern int yy_flex_debug; |
---|
1097 | | int yy_flex_debug = 0; |
---|
1098 | | |
---|
1099 | | static yy_state_type *yy_state_buf=0, *yy_state_ptr=0; |
---|
1100 | | static char *yy_full_match; |
---|
1101 | | static int yy_lp; |
---|
1102 | | #define REJECT \ |
---|
1103 | | { \ |
---|
1104 | | *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ \ |
---|
1105 | | yy_cp = (yy_full_match); /* restore poss. backed-over text */ \ |
---|
1106 | | ++(yy_lp); \ |
---|
1107 | | goto find_rule; \ |
---|
1108 | | } |
---|
1109 | | |
---|
1110 | | static int yy_more_flag = 0; |
---|
1111 | | static int yy_more_len = 0; |
---|
1112 | | #define yymore() ((yy_more_flag) = 1) |
---|
1113 | | #define YY_MORE_ADJ (yy_more_len) |
---|
1114 | | #define YY_RESTORE_YY_MORE_OFFSET |
---|
1115 | | char *yytext; |
---|
1116 | | #line 1 "conftest.l" |
---|
1117 | | #line 469 "lex.yy.c" |
---|
1118 | | |
---|
1119 | | #define INITIAL 0 |
---|
1120 | | |
---|
1121 | | #ifndef YY_NO_UNISTD_H |
---|
1122 | | /* Special case for "unistd.h", since it is non-ANSI. We include it way |
---|
1123 | | * down here because we want the user's section 1 to have been scanned first. |
---|
1124 | | * The user has a chance to override it with an option. |
---|
1125 | | */ |
---|
1126 | | #include <unistd.h> |
---|
1127 | | #endif |
---|
1128 | | |
---|
1129 | | #ifndef YY_EXTRA_TYPE |
---|
1130 | | #define YY_EXTRA_TYPE void * |
---|
1131 | | #endif |
---|
1132 | | |
---|
1133 | | static int yy_init_globals (void ); |
---|
1134 | | |
---|
1135 | | /* Accessor methods to globals. |
---|
1136 | | These are made visible to non-reentrant scanners for convenience. */ |
---|
1137 | | |
---|
1138 | | int yylex_destroy (void ); |
---|
1139 | | |
---|
1140 | | int yyget_debug (void ); |
---|
1141 | | |
---|
1142 | | void yyset_debug (int debug_flag ); |
---|
1143 | | |
---|
1144 | | YY_EXTRA_TYPE yyget_extra (void ); |
---|
1145 | | |
---|
1146 | | void yyset_extra (YY_EXTRA_TYPE user_defined ); |
---|
1147 | | |
---|
1148 | | FILE *yyget_in (void ); |
---|
1149 | | |
---|
1150 | | void yyset_in (FILE * in_str ); |
---|
1151 | | |
---|
1152 | | FILE *yyget_out (void ); |
---|
1153 | | |
---|
1154 | | void yyset_out (FILE * out_str ); |
---|
1155 | | |
---|
1156 | | yy_size_t yyget_leng (void ); |
---|
1157 | | |
---|
1158 | | char *yyget_text (void ); |
---|
1159 | | |
---|
1160 | | int yyget_lineno (void ); |
---|
1161 | | |
---|
1162 | | void yyset_lineno (int line_number ); |
---|
1163 | | |
---|
1164 | | /* Macros after this point can all be overridden by user definitions in |
---|
1165 | | * section 1. |
---|
1166 | | */ |
---|
1167 | | |
---|
1168 | | #ifndef YY_SKIP_YYWRAP |
---|
1169 | | #ifdef __cplusplus |
---|
1170 | | extern "C" int yywrap (void ); |
---|
1171 | | #else |
---|
1172 | | extern int yywrap (void ); |
---|
1173 | | #endif |
---|
1174 | | #endif |
---|
1175 | | |
---|
1176 | | static void yyunput (int c,char *buf_ptr ); |
---|
1177 | | |
---|
1178 | | #ifndef yytext_ptr |
---|
1179 | | static void yy_flex_strncpy (char *,yyconst char *,int ); |
---|
1180 | | #endif |
---|
1181 | | |
---|
1182 | | #ifdef YY_NEED_STRLEN |
---|
1183 | | static int yy_flex_strlen (yyconst char * ); |
---|
1184 | | #endif |
---|
1185 | | |
---|
1186 | | #ifndef YY_NO_INPUT |
---|
1187 | | |
---|
1188 | | #ifdef __cplusplus |
---|
1189 | | static int yyinput (void ); |
---|
1190 | | #else |
---|
1191 | | static int input (void ); |
---|
1192 | | #endif |
---|
1193 | | |
---|
1194 | | #endif |
---|
1195 | | |
---|
1196 | | /* Amount of stuff to slurp up with each read. */ |
---|
1197 | | #ifndef YY_READ_BUF_SIZE |
---|
1198 | | #define YY_READ_BUF_SIZE 8192 |
---|
1199 | | #endif |
---|
1200 | | |
---|
1201 | | /* Copy whatever the last rule matched to the standard output. */ |
---|
1202 | | #ifndef ECHO |
---|
1203 | | /* This used to be an fputs(), but since the string might contain NUL's, |
---|
1204 | | * we now use fwrite(). |
---|
1205 | | */ |
---|
1206 | | #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0) |
---|
1207 | | #endif |
---|
1208 | | |
---|
1209 | | /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, |
---|
1210 | | * is returned in "result". |
---|
1211 | | */ |
---|
1212 | | #ifndef YY_INPUT |
---|
1213 | | #define YY_INPUT(buf,result,max_size) \ |
---|
1214 | | if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ |
---|
1215 | | { \ |
---|
1216 | | int c = '*'; \ |
---|
1217 | | size_t n; \ |
---|
1218 | | for ( n = 0; n < max_size && \ |
---|
1219 | | (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ |
---|
1220 | | buf[n] = (char) c; \ |
---|
1221 | | if ( c == '\n' ) \ |
---|
1222 | | buf[n++] = (char) c; \ |
---|
1223 | | if ( c == EOF && ferror( yyin ) ) \ |
---|
1224 | | YY_FATAL_ERROR( "input in flex scanner failed" ); \ |
---|
1225 | | result = n; \ |
---|
1226 | | } \ |
---|
1227 | | else \ |
---|
1228 | | { \ |
---|
1229 | | errno=0; \ |
---|
1230 | | while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ |
---|
1231 | | { \ |
---|
1232 | | if( errno != EINTR) \ |
---|
1233 | | { \ |
---|
1234 | | YY_FATAL_ERROR( "input in flex scanner failed" ); \ |
---|
1235 | | break; \ |
---|
1236 | | } \ |
---|
1237 | | errno=0; \ |
---|
1238 | | clearerr(yyin); \ |
---|
1239 | | } \ |
---|
1240 | | }\ |
---|
1241 | | \ |
---|
1242 | | |
---|
1243 | | #endif |
---|
1244 | | |
---|
1245 | | /* No semi-colon after return; correct usage is to write "yyterminate();" - |
---|
1246 | | * we don't want an extra ';' after the "return" because that will cause |
---|
1247 | | * some compilers to complain about unreachable statements. |
---|
1248 | | */ |
---|
1249 | | #ifndef yyterminate |
---|
1250 | | #define yyterminate() return YY_NULL |
---|
1251 | | #endif |
---|
1252 | | |
---|
1253 | | /* Number of entries by which start-condition stack grows. */ |
---|
1254 | | #ifndef YY_START_STACK_INCR |
---|
1255 | | #define YY_START_STACK_INCR 25 |
---|
1256 | | #endif |
---|
1257 | | |
---|
1258 | | /* Report a fatal error. */ |
---|
1259 | | #ifndef YY_FATAL_ERROR |
---|
1260 | | #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) |
---|
1261 | | #endif |
---|
1262 | | |
---|
1263 | | /* end tables serialization structures and prototypes */ |
---|
1264 | | |
---|
1265 | | /* Default declaration of generated scanner - a define so the user can |
---|
1266 | | * easily add parameters. |
---|
1267 | | */ |
---|
1268 | | #ifndef YY_DECL |
---|
1269 | | #define YY_DECL_IS_OURS 1 |
---|
1270 | | |
---|
1271 | | extern int yylex (void); |
---|
1272 | | |
---|
1273 | | #define YY_DECL int yylex (void) |
---|
1274 | | #endif /* !YY_DECL */ |
---|
1275 | | |
---|
1276 | | /* Code executed at the beginning of each rule, after yytext and yyleng |
---|
1277 | | * have been set up. |
---|
1278 | | */ |
---|
1279 | | #ifndef YY_USER_ACTION |
---|
1280 | | #define YY_USER_ACTION |
---|
1281 | | #endif |
---|
1282 | | |
---|
1283 | | /* Code executed at the end of each rule. */ |
---|
1284 | | #ifndef YY_BREAK |
---|
1285 | | #define YY_BREAK break; |
---|
1286 | | #endif |
---|
1287 | | |
---|
1288 | | #define YY_RULE_SETUP \ |
---|
1289 | | YY_USER_ACTION |
---|
1290 | | |
---|
1291 | | /** The main scanner function which does all the work. |
---|
1292 | | */ |
---|
1293 | | YY_DECL |
---|
1294 | | { |
---|
1295 | | register yy_state_type yy_current_state; |
---|
1296 | | register char *yy_cp, *yy_bp; |
---|
1297 | | register int yy_act; |
---|
1298 | | |
---|
1299 | | #line 1 "conftest.l" |
---|
1300 | | |
---|
1301 | | #line 653 "lex.yy.c" |
---|
1302 | | |
---|
1303 | | if ( !(yy_init) ) |
---|
1304 | | { |
---|
1305 | | (yy_init) = 1; |
---|
1306 | | |
---|
1307 | | #ifdef YY_USER_INIT |
---|
1308 | | YY_USER_INIT; |
---|
1309 | | #endif |
---|
1310 | | |
---|
1311 | | /* Create the reject buffer large enough to save one state per allowed character. */ |
---|
1312 | | if ( ! (yy_state_buf) ) |
---|
1313 | | (yy_state_buf) = (yy_state_type *)yyalloc(YY_STATE_BUF_SIZE ); |
---|
1314 | | if ( ! (yy_state_buf) ) |
---|
1315 | | YY_FATAL_ERROR( "out of dynamic memory in yylex()" ); |
---|
1316 | | |
---|
1317 | | if ( ! (yy_start) ) |
---|
1318 | | (yy_start) = 1; /* first start state */ |
---|
1319 | | |
---|
1320 | | if ( ! yyin ) |
---|
1321 | | yyin = stdin; |
---|
1322 | | |
---|
1323 | | if ( ! yyout ) |
---|
1324 | | yyout = stdout; |
---|
1325 | | |
---|
1326 | | if ( ! YY_CURRENT_BUFFER ) { |
---|
1327 | | yyensure_buffer_stack (); |
---|
1328 | | YY_CURRENT_BUFFER_LVALUE = |
---|
1329 | | yy_create_buffer(yyin,YY_BUF_SIZE ); |
---|
1330 | | } |
---|
1331 | | |
---|
1332 | | yy_load_buffer_state( ); |
---|
1333 | | } |
---|
1334 | | |
---|
1335 | | while ( 1 ) /* loops until end-of-file is reached */ |
---|
1336 | | { |
---|
1337 | | (yy_more_len) = 0; |
---|
1338 | | if ( (yy_more_flag) ) |
---|
1339 | | { |
---|
1340 | | (yy_more_len) = (yy_c_buf_p) - (yytext_ptr); |
---|
1341 | | (yy_more_flag) = 0; |
---|
1342 | | } |
---|
1343 | | yy_cp = (yy_c_buf_p); |
---|
1344 | | |
---|
1345 | | /* Support of yytext. */ |
---|
1346 | | *yy_cp = (yy_hold_char); |
---|
1347 | | |
---|
1348 | | /* yy_bp points to the position in yy_ch_buf of the start of |
---|
1349 | | * the current run. |
---|
1350 | | */ |
---|
1351 | | yy_bp = yy_cp; |
---|
1352 | | |
---|
1353 | | yy_current_state = (yy_start); |
---|
1354 | | |
---|
1355 | | (yy_state_ptr) = (yy_state_buf); |
---|
1356 | | *(yy_state_ptr)++ = yy_current_state; |
---|
1357 | | |
---|
1358 | | yy_match: |
---|
1359 | | do |
---|
1360 | | { |
---|
1361 | | register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; |
---|
1362 | | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
---|
1363 | | { |
---|
1364 | | yy_current_state = (int) yy_def[yy_current_state]; |
---|
1365 | | if ( yy_current_state >= 13 ) |
---|
1366 | | yy_c = yy_meta[(unsigned int) yy_c]; |
---|
1367 | | } |
---|
1368 | | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; |
---|
1369 | | *(yy_state_ptr)++ = yy_current_state; |
---|
1370 | | ++yy_cp; |
---|
1371 | | } |
---|
1372 | | while ( yy_base[yy_current_state] != 10 ); |
---|
1373 | | |
---|
1374 | | yy_find_action: |
---|
1375 | | yy_current_state = *--(yy_state_ptr); |
---|
1376 | | (yy_lp) = yy_accept[yy_current_state]; |
---|
1377 | | find_rule: /* we branch to this label when backing up */ |
---|
1378 | | for ( ; ; ) /* until we find what rule we matched */ |
---|
1379 | | { |
---|
1380 | | if ( (yy_lp) && (yy_lp) < yy_accept[yy_current_state + 1] ) |
---|
1381 | | { |
---|
1382 | | yy_act = yy_acclist[(yy_lp)]; |
---|
1383 | | { |
---|
1384 | | (yy_full_match) = yy_cp; |
---|
1385 | | break; |
---|
1386 | | } |
---|
1387 | | } |
---|
1388 | | --yy_cp; |
---|
1389 | | yy_current_state = *--(yy_state_ptr); |
---|
1390 | | (yy_lp) = yy_accept[yy_current_state]; |
---|
1391 | | } |
---|
1392 | | |
---|
1393 | | YY_DO_BEFORE_ACTION; |
---|
1394 | | |
---|
1395 | | do_action: /* This label is used only to access EOF actions. */ |
---|
1396 | | |
---|
1397 | | switch ( yy_act ) |
---|
1398 | | { /* beginning of action switch */ |
---|
1399 | | case 1: |
---|
1400 | | YY_RULE_SETUP |
---|
1401 | | #line 2 "conftest.l" |
---|
1402 | | { ECHO; } |
---|
1403 | | YY_BREAK |
---|
1404 | | case 2: |
---|
1405 | | YY_RULE_SETUP |
---|
1406 | | #line 3 "conftest.l" |
---|
1407 | | { REJECT; } |
---|
1408 | | YY_BREAK |
---|
1409 | | case 3: |
---|
1410 | | YY_RULE_SETUP |
---|
1411 | | #line 4 "conftest.l" |
---|
1412 | | { yymore (); } |
---|
1413 | | YY_BREAK |
---|
1414 | | case 4: |
---|
1415 | | YY_RULE_SETUP |
---|
1416 | | #line 5 "conftest.l" |
---|
1417 | | { yyless (1); } |
---|
1418 | | YY_BREAK |
---|
1419 | | case 5: |
---|
1420 | | YY_RULE_SETUP |
---|
1421 | | #line 6 "conftest.l" |
---|
1422 | | { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ |
---|
1423 | | yyless ((input () != 0)); } |
---|
1424 | | YY_BREAK |
---|
1425 | | case 6: |
---|
1426 | | YY_RULE_SETUP |
---|
1427 | | #line 8 "conftest.l" |
---|
1428 | | { unput (yytext[0]); } |
---|
1429 | | YY_BREAK |
---|
1430 | | case 7: |
---|
1431 | | YY_RULE_SETUP |
---|
1432 | | #line 9 "conftest.l" |
---|
1433 | | { BEGIN INITIAL; } |
---|
1434 | | YY_BREAK |
---|
1435 | | case 8: |
---|
1436 | | YY_RULE_SETUP |
---|
1437 | | #line 10 "conftest.l" |
---|
1438 | | ECHO; |
---|
1439 | | YY_BREAK |
---|
1440 | | #line 792 "lex.yy.c" |
---|
1441 | | case YY_STATE_EOF(INITIAL): |
---|
1442 | | yyterminate(); |
---|
1443 | | |
---|
1444 | | case YY_END_OF_BUFFER: |
---|
1445 | | { |
---|
1446 | | /* Amount of text matched not including the EOB char. */ |
---|
1447 | | int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1; |
---|
1448 | | |
---|
1449 | | /* Undo the effects of YY_DO_BEFORE_ACTION. */ |
---|
1450 | | *yy_cp = (yy_hold_char); |
---|
1451 | | YY_RESTORE_YY_MORE_OFFSET |
---|
1452 | | |
---|
1453 | | if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) |
---|
1454 | | { |
---|
1455 | | /* We're scanning a new file or input source. It's |
---|
1456 | | * possible that this happened because the user |
---|
1457 | | * just pointed yyin at a new source and called |
---|
1458 | | * yylex(). If so, then we have to assure |
---|
1459 | | * consistency between YY_CURRENT_BUFFER and our |
---|
1460 | | * globals. Here is the right place to do so, because |
---|
1461 | | * this is the first action (other than possibly a |
---|
1462 | | * back-up) that will match for the new input source. |
---|
1463 | | */ |
---|
1464 | | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; |
---|
1465 | | YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; |
---|
1466 | | YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; |
---|
1467 | | } |
---|
1468 | | |
---|
1469 | | /* Note that here we test for yy_c_buf_p "<=" to the position |
---|
1470 | | * of the first EOB in the buffer, since yy_c_buf_p will |
---|
1471 | | * already have been incremented past the NUL character |
---|
1472 | | * (since all states make transitions on EOB to the |
---|
1473 | | * end-of-buffer state). Contrast this with the test |
---|
1474 | | * in input(). |
---|
1475 | | */ |
---|
1476 | | if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) |
---|
1477 | | { /* This was really a NUL. */ |
---|
1478 | | yy_state_type yy_next_state; |
---|
1479 | | |
---|
1480 | | (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; |
---|
1481 | | |
---|
1482 | | yy_current_state = yy_get_previous_state( ); |
---|
1483 | | |
---|
1484 | | /* Okay, we're now positioned to make the NUL |
---|
1485 | | * transition. We couldn't have |
---|
1486 | | * yy_get_previous_state() go ahead and do it |
---|
1487 | | * for us because it doesn't know how to deal |
---|
1488 | | * with the possibility of jamming (and we don't |
---|
1489 | | * want to build jamming into it because then it |
---|
1490 | | * will run more slowly). |
---|
1491 | | */ |
---|
1492 | | |
---|
1493 | | yy_next_state = yy_try_NUL_trans( yy_current_state ); |
---|
1494 | | |
---|
1495 | | yy_bp = (yytext_ptr) + YY_MORE_ADJ; |
---|
1496 | | |
---|
1497 | | if ( yy_next_state ) |
---|
1498 | | { |
---|
1499 | | /* Consume the NUL. */ |
---|
1500 | | yy_cp = ++(yy_c_buf_p); |
---|
1501 | | yy_current_state = yy_next_state; |
---|
1502 | | goto yy_match; |
---|
1503 | | } |
---|
1504 | | |
---|
1505 | | else |
---|
1506 | | { |
---|
1507 | | yy_cp = (yy_c_buf_p); |
---|
1508 | | goto yy_find_action; |
---|
1509 | | } |
---|
1510 | | } |
---|
1511 | | |
---|
1512 | | else switch ( yy_get_next_buffer( ) ) |
---|
1513 | | { |
---|
1514 | | case EOB_ACT_END_OF_FILE: |
---|
1515 | | { |
---|
1516 | | (yy_did_buffer_switch_on_eof) = 0; |
---|
1517 | | |
---|
1518 | | if ( yywrap( ) ) |
---|
1519 | | { |
---|
1520 | | /* Note: because we've taken care in |
---|
1521 | | * yy_get_next_buffer() to have set up |
---|
1522 | | * yytext, we can now set up |
---|
1523 | | * yy_c_buf_p so that if some total |
---|
1524 | | * hoser (like flex itself) wants to |
---|
1525 | | * call the scanner after we return the |
---|
1526 | | * YY_NULL, it'll still work - another |
---|
1527 | | * YY_NULL will get returned. |
---|
1528 | | */ |
---|
1529 | | (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; |
---|
1530 | | |
---|
1531 | | yy_act = YY_STATE_EOF(YY_START); |
---|
1532 | | goto do_action; |
---|
1533 | | } |
---|
1534 | | |
---|
1535 | | else |
---|
1536 | | { |
---|
1537 | | if ( ! (yy_did_buffer_switch_on_eof) ) |
---|
1538 | | YY_NEW_FILE; |
---|
1539 | | } |
---|
1540 | | break; |
---|
1541 | | } |
---|
1542 | | |
---|
1543 | | case EOB_ACT_CONTINUE_SCAN: |
---|
1544 | | (yy_c_buf_p) = |
---|
1545 | | (yytext_ptr) + yy_amount_of_matched_text; |
---|
1546 | | |
---|
1547 | | yy_current_state = yy_get_previous_state( ); |
---|
1548 | | |
---|
1549 | | yy_cp = (yy_c_buf_p); |
---|
1550 | | yy_bp = (yytext_ptr) + YY_MORE_ADJ; |
---|
1551 | | goto yy_match; |
---|
1552 | | |
---|
1553 | | case EOB_ACT_LAST_MATCH: |
---|
1554 | | (yy_c_buf_p) = |
---|
1555 | | &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; |
---|
1556 | | |
---|
1557 | | yy_current_state = yy_get_previous_state( ); |
---|
1558 | | |
---|
1559 | | yy_cp = (yy_c_buf_p); |
---|
1560 | | yy_bp = (yytext_ptr) + YY_MORE_ADJ; |
---|
1561 | | goto yy_find_action; |
---|
1562 | | } |
---|
1563 | | break; |
---|
1564 | | } |
---|
1565 | | |
---|
1566 | | default: |
---|
1567 | | YY_FATAL_ERROR( |
---|
1568 | | "fatal flex scanner internal error--no action found" ); |
---|
1569 | | } /* end of action switch */ |
---|
1570 | | } /* end of scanning one token */ |
---|
1571 | | } /* end of yylex */ |
---|
1572 | | |
---|
1573 | | /* yy_get_next_buffer - try to read in a new buffer |
---|
1574 | | * |
---|
1575 | | * Returns a code representing an action: |
---|
1576 | | * EOB_ACT_LAST_MATCH - |
---|
1577 | | * EOB_ACT_CONTINUE_SCAN - continue scanning from current position |
---|
1578 | | * EOB_ACT_END_OF_FILE - end of file |
---|
1579 | | */ |
---|
1580 | | static int yy_get_next_buffer (void) |
---|
1581 | | { |
---|
1582 | | register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; |
---|
1583 | | register char *source = (yytext_ptr); |
---|
1584 | | register int number_to_move, i; |
---|
1585 | | int ret_val; |
---|
1586 | | |
---|
1587 | | if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) |
---|
1588 | | YY_FATAL_ERROR( |
---|
1589 | | "fatal flex scanner internal error--end of buffer missed" ); |
---|
1590 | | |
---|
1591 | | if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) |
---|
1592 | | { /* Don't try to fill the buffer, so this is an EOF. */ |
---|
1593 | | if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 ) |
---|
1594 | | { |
---|
1595 | | /* We matched a single character, the EOB, so |
---|
1596 | | * treat this as a final EOF. |
---|
1597 | | */ |
---|
1598 | | return EOB_ACT_END_OF_FILE; |
---|
1599 | | } |
---|
1600 | | |
---|
1601 | | else |
---|
1602 | | { |
---|
1603 | | /* We matched some text prior to the EOB, first |
---|
1604 | | * process it. |
---|
1605 | | */ |
---|
1606 | | return EOB_ACT_LAST_MATCH; |
---|
1607 | | } |
---|
1608 | | } |
---|
1609 | | |
---|
1610 | | /* Try to read more data. */ |
---|
1611 | | |
---|
1612 | | /* First move last chars to start of buffer. */ |
---|
1613 | | number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1; |
---|
1614 | | |
---|
1615 | | for ( i = 0; i < number_to_move; ++i ) |
---|
1616 | | *(dest++) = *(source++); |
---|
1617 | | |
---|
1618 | | if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) |
---|
1619 | | /* don't do the read, it's not guaranteed to return an EOF, |
---|
1620 | | * just force an EOF |
---|
1621 | | */ |
---|
1622 | | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0; |
---|
1623 | | |
---|
1624 | | else |
---|
1625 | | { |
---|
1626 | | yy_size_t num_to_read = |
---|
1627 | | YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; |
---|
1628 | | |
---|
1629 | | while ( num_to_read <= 0 ) |
---|
1630 | | { /* Not enough room in the buffer - grow it. */ |
---|
1631 | | |
---|
1632 | | YY_FATAL_ERROR( |
---|
1633 | | "input buffer overflow, can't enlarge buffer because scanner uses REJECT" ); |
---|
1634 | | |
---|
1635 | | } |
---|
1636 | | |
---|
1637 | | if ( num_to_read > YY_READ_BUF_SIZE ) |
---|
1638 | | num_to_read = YY_READ_BUF_SIZE; |
---|
1639 | | |
---|
1640 | | /* Read in more data. */ |
---|
1641 | | YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), |
---|
1642 | | (yy_n_chars), num_to_read ); |
---|
1643 | | |
---|
1644 | | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); |
---|
1645 | | } |
---|
1646 | | |
---|
1647 | | if ( (yy_n_chars) == 0 ) |
---|
1648 | | { |
---|
1649 | | if ( number_to_move == YY_MORE_ADJ ) |
---|
1650 | | { |
---|
1651 | | ret_val = EOB_ACT_END_OF_FILE; |
---|
1652 | | yyrestart(yyin ); |
---|
1653 | | } |
---|
1654 | | |
---|
1655 | | else |
---|
1656 | | { |
---|
1657 | | ret_val = EOB_ACT_LAST_MATCH; |
---|
1658 | | YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = |
---|
1659 | | YY_BUFFER_EOF_PENDING; |
---|
1660 | | } |
---|
1661 | | } |
---|
1662 | | |
---|
1663 | | else |
---|
1664 | | ret_val = EOB_ACT_CONTINUE_SCAN; |
---|
1665 | | |
---|
1666 | | if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { |
---|
1667 | | /* Extend the array by 50%, plus the number we really need. */ |
---|
1668 | | yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); |
---|
1669 | | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ); |
---|
1670 | | if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) |
---|
1671 | | YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); |
---|
1672 | | } |
---|
1673 | | |
---|
1674 | | (yy_n_chars) += number_to_move; |
---|
1675 | | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; |
---|
1676 | | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; |
---|
1677 | | |
---|
1678 | | (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; |
---|
1679 | | |
---|
1680 | | return ret_val; |
---|
1681 | | } |
---|
1682 | | |
---|
1683 | | /* yy_get_previous_state - get the state just before the EOB char was reached */ |
---|
1684 | | |
---|
1685 | | static yy_state_type yy_get_previous_state (void) |
---|
1686 | | { |
---|
1687 | | register yy_state_type yy_current_state; |
---|
1688 | | register char *yy_cp; |
---|
1689 | | |
---|
1690 | | yy_current_state = (yy_start); |
---|
1691 | | |
---|
1692 | | (yy_state_ptr) = (yy_state_buf); |
---|
1693 | | *(yy_state_ptr)++ = yy_current_state; |
---|
1694 | | |
---|
1695 | | for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) |
---|
1696 | | { |
---|
1697 | | register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); |
---|
1698 | | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
---|
1699 | | { |
---|
1700 | | yy_current_state = (int) yy_def[yy_current_state]; |
---|
1701 | | if ( yy_current_state >= 13 ) |
---|
1702 | | yy_c = yy_meta[(unsigned int) yy_c]; |
---|
1703 | | } |
---|
1704 | | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; |
---|
1705 | | *(yy_state_ptr)++ = yy_current_state; |
---|
1706 | | } |
---|
1707 | | |
---|
1708 | | return yy_current_state; |
---|
1709 | | } |
---|
1710 | | |
---|
1711 | | /* yy_try_NUL_trans - try to make a transition on the NUL character |
---|
1712 | | * |
---|
1713 | | * synopsis |
---|
1714 | | * next_state = yy_try_NUL_trans( current_state ); |
---|
1715 | | */ |
---|
1716 | | static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) |
---|
1717 | | { |
---|
1718 | | register int yy_is_jam; |
---|
1719 | | |
---|
1720 | | register YY_CHAR yy_c = 1; |
---|
1721 | | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
---|
1722 | | { |
---|
1723 | | yy_current_state = (int) yy_def[yy_current_state]; |
---|
1724 | | if ( yy_current_state >= 13 ) |
---|
1725 | | yy_c = yy_meta[(unsigned int) yy_c]; |
---|
1726 | | } |
---|
1727 | | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; |
---|
1728 | | yy_is_jam = (yy_current_state == 12); |
---|
1729 | | if ( ! yy_is_jam ) |
---|
1730 | | *(yy_state_ptr)++ = yy_current_state; |
---|
1731 | | |
---|
1732 | | return yy_is_jam ? 0 : yy_current_state; |
---|
1733 | | } |
---|
1734 | | |
---|
1735 | | static void yyunput (int c, register char * yy_bp ) |
---|
1736 | | { |
---|
1737 | | register char *yy_cp; |
---|
1738 | | |
---|
1739 | | yy_cp = (yy_c_buf_p); |
---|
1740 | | |
---|
1741 | | /* undo effects of setting up yytext */ |
---|
1742 | | *yy_cp = (yy_hold_char); |
---|
1743 | | |
---|
1744 | | if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) |
---|
1745 | | { /* need to shift things up to make room */ |
---|
1746 | | /* +2 for EOB chars. */ |
---|
1747 | | register yy_size_t number_to_move = (yy_n_chars) + 2; |
---|
1748 | | register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ |
---|
1749 | | YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; |
---|
1750 | | register char *source = |
---|
1751 | | &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]; |
---|
1752 | | |
---|
1753 | | while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) |
---|
1754 | | *--dest = *--source; |
---|
1755 | | |
---|
1756 | | yy_cp += (int) (dest - source); |
---|
1757 | | yy_bp += (int) (dest - source); |
---|
1758 | | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = |
---|
1759 | | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size; |
---|
1760 | | |
---|
1761 | | if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) |
---|
1762 | | YY_FATAL_ERROR( "flex scanner push-back overflow" ); |
---|
1763 | | } |
---|
1764 | | |
---|
1765 | | *--yy_cp = (char) c; |
---|
1766 | | |
---|
1767 | | (yytext_ptr) = yy_bp; |
---|
1768 | | (yy_hold_char) = *yy_cp; |
---|
1769 | | (yy_c_buf_p) = yy_cp; |
---|
1770 | | } |
---|
1771 | | |
---|
1772 | | #ifndef YY_NO_INPUT |
---|
1773 | | #ifdef __cplusplus |
---|
1774 | | static int yyinput (void) |
---|
1775 | | #else |
---|
1776 | | static int input (void) |
---|
1777 | | #endif |
---|
1778 | | |
---|
1779 | | { |
---|
1780 | | int c; |
---|
1781 | | |
---|
1782 | | *(yy_c_buf_p) = (yy_hold_char); |
---|
1783 | | |
---|
1784 | | if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) |
---|
1785 | | { |
---|
1786 | | /* yy_c_buf_p now points to the character we want to return. |
---|
1787 | | * If this occurs *before* the EOB characters, then it's a |
---|
1788 | | * valid NUL; if not, then we've hit the end of the buffer. |
---|
1789 | | */ |
---|
1790 | | if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) |
---|
1791 | | /* This was really a NUL. */ |
---|
1792 | | *(yy_c_buf_p) = '\0'; |
---|
1793 | | |
---|
1794 | | else |
---|
1795 | | { /* need more input */ |
---|
1796 | | yy_size_t offset = (yy_c_buf_p) - (yytext_ptr); |
---|
1797 | | ++(yy_c_buf_p); |
---|
1798 | | |
---|
1799 | | switch ( yy_get_next_buffer( ) ) |
---|
1800 | | { |
---|
1801 | | case EOB_ACT_LAST_MATCH: |
---|
1802 | | /* This happens because yy_g_n_b() |
---|
1803 | | * sees that we've accumulated a |
---|
1804 | | * token and flags that we need to |
---|
1805 | | * try matching the token before |
---|
1806 | | * proceeding. But for input(), |
---|
1807 | | * there's no matching to consider. |
---|
1808 | | * So convert the EOB_ACT_LAST_MATCH |
---|
1809 | | * to EOB_ACT_END_OF_FILE. |
---|
1810 | | */ |
---|
1811 | | |
---|
1812 | | /* Reset buffer status. */ |
---|
1813 | | yyrestart(yyin ); |
---|
1814 | | |
---|
1815 | | /*FALLTHROUGH*/ |
---|
1816 | | |
---|
1817 | | case EOB_ACT_END_OF_FILE: |
---|
1818 | | { |
---|
1819 | | if ( yywrap( ) ) |
---|
1820 | | return EOF; |
---|
1821 | | |
---|
1822 | | if ( ! (yy_did_buffer_switch_on_eof) ) |
---|
1823 | | YY_NEW_FILE; |
---|
1824 | | #ifdef __cplusplus |
---|
1825 | | return yyinput(); |
---|
1826 | | #else |
---|
1827 | | return input(); |
---|
1828 | | #endif |
---|
1829 | | } |
---|
1830 | | |
---|
1831 | | case EOB_ACT_CONTINUE_SCAN: |
---|
1832 | | (yy_c_buf_p) = (yytext_ptr) + offset; |
---|
1833 | | break; |
---|
1834 | | } |
---|
1835 | | } |
---|
1836 | | } |
---|
1837 | | |
---|
1838 | | c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ |
---|
1839 | | *(yy_c_buf_p) = '\0'; /* preserve yytext */ |
---|
1840 | | (yy_hold_char) = *++(yy_c_buf_p); |
---|
1841 | | |
---|
1842 | | return c; |
---|
1843 | | } |
---|
1844 | | #endif /* ifndef YY_NO_INPUT */ |
---|
1845 | | |
---|
1846 | | /** Immediately switch to a different input stream. |
---|
1847 | | * @param input_file A readable stream. |
---|
1848 | | * |
---|
1849 | | * @note This function does not reset the start condition to @c INITIAL . |
---|
1850 | | */ |
---|
1851 | | void yyrestart (FILE * input_file ) |
---|
1852 | | { |
---|
1853 | | |
---|
1854 | | if ( ! YY_CURRENT_BUFFER ){ |
---|
1855 | | yyensure_buffer_stack (); |
---|
1856 | | YY_CURRENT_BUFFER_LVALUE = |
---|
1857 | | yy_create_buffer(yyin,YY_BUF_SIZE ); |
---|
1858 | | } |
---|
1859 | | |
---|
1860 | | yy_init_buffer(YY_CURRENT_BUFFER,input_file ); |
---|
1861 | | yy_load_buffer_state( ); |
---|
1862 | | } |
---|
1863 | | |
---|
1864 | | /** Switch to a different input buffer. |
---|
1865 | | * @param new_buffer The new input buffer. |
---|
1866 | | * |
---|
1867 | | */ |
---|
1868 | | void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ) |
---|
1869 | | { |
---|
1870 | | |
---|
1871 | | /* TODO. We should be able to replace this entire function body |
---|
1872 | | * with |
---|
1873 | | * yypop_buffer_state(); |
---|
1874 | | * yypush_buffer_state(new_buffer); |
---|
1875 | | */ |
---|
1876 | | yyensure_buffer_stack (); |
---|
1877 | | if ( YY_CURRENT_BUFFER == new_buffer ) |
---|
1878 | | return; |
---|
1879 | | |
---|
1880 | | if ( YY_CURRENT_BUFFER ) |
---|
1881 | | { |
---|
1882 | | /* Flush out information for old buffer. */ |
---|
1883 | | *(yy_c_buf_p) = (yy_hold_char); |
---|
1884 | | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); |
---|
1885 | | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); |
---|
1886 | | } |
---|
1887 | | |
---|
1888 | | YY_CURRENT_BUFFER_LVALUE = new_buffer; |
---|
1889 | | yy_load_buffer_state( ); |
---|
1890 | | |
---|
1891 | | /* We don't actually know whether we did this switch during |
---|
1892 | | * EOF (yywrap()) processing, but the only time this flag |
---|
1893 | | * is looked at is after yywrap() is called, so it's safe |
---|
1894 | | * to go ahead and always set it. |
---|
1895 | | */ |
---|
1896 | | (yy_did_buffer_switch_on_eof) = 1; |
---|
1897 | | } |
---|
1898 | | |
---|
1899 | | static void yy_load_buffer_state (void) |
---|
1900 | | { |
---|
1901 | | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; |
---|
1902 | | (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; |
---|
1903 | | yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; |
---|
1904 | | (yy_hold_char) = *(yy_c_buf_p); |
---|
1905 | | } |
---|
1906 | | |
---|
1907 | | /** Allocate and initialize an input buffer state. |
---|
1908 | | * @param file A readable stream. |
---|
1909 | | * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. |
---|
1910 | | * |
---|
1911 | | * @return the allocated buffer state. |
---|
1912 | | */ |
---|
1913 | | YY_BUFFER_STATE yy_create_buffer (FILE * file, int size ) |
---|
1914 | | { |
---|
1915 | | YY_BUFFER_STATE b; |
---|
1916 | | |
---|
1917 | | b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); |
---|
1918 | | if ( ! b ) |
---|
1919 | | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); |
---|
1920 | | |
---|
1921 | | b->yy_buf_size = size; |
---|
1922 | | |
---|
1923 | | /* yy_ch_buf has to be 2 characters longer than the size given because |
---|
1924 | | * we need to put in 2 end-of-buffer characters. |
---|
1925 | | */ |
---|
1926 | | b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 ); |
---|
1927 | | if ( ! b->yy_ch_buf ) |
---|
1928 | | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); |
---|
1929 | | |
---|
1930 | | b->yy_is_our_buffer = 1; |
---|
1931 | | |
---|
1932 | | yy_init_buffer(b,file ); |
---|
1933 | | |
---|
1934 | | return b; |
---|
1935 | | } |
---|
1936 | | |
---|
1937 | | /** Destroy the buffer. |
---|
1938 | | * @param b a buffer created with yy_create_buffer() |
---|
1939 | | * |
---|
1940 | | */ |
---|
1941 | | void yy_delete_buffer (YY_BUFFER_STATE b ) |
---|
1942 | | { |
---|
1943 | | |
---|
1944 | | if ( ! b ) |
---|
1945 | | return; |
---|
1946 | | |
---|
1947 | | if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ |
---|
1948 | | YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; |
---|
1949 | | |
---|
1950 | | if ( b->yy_is_our_buffer ) |
---|
1951 | | yyfree((void *) b->yy_ch_buf ); |
---|
1952 | | |
---|
1953 | | yyfree((void *) b ); |
---|
1954 | | } |
---|
1955 | | |
---|
1956 | | /* Initializes or reinitializes a buffer. |
---|
1957 | | * This function is sometimes called more than once on the same buffer, |
---|
1958 | | * such as during a yyrestart() or at EOF. |
---|
1959 | | */ |
---|
1960 | | static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file ) |
---|
1961 | | |
---|
1962 | | { |
---|
1963 | | int oerrno = errno; |
---|
1964 | | |
---|
1965 | | yy_flush_buffer(b ); |
---|
1966 | | |
---|
1967 | | b->yy_input_file = file; |
---|
1968 | | b->yy_fill_buffer = 1; |
---|
1969 | | |
---|
1970 | | /* If b is the current buffer, then yy_init_buffer was _probably_ |
---|
1971 | | * called from yyrestart() or through yy_get_next_buffer. |
---|
1972 | | * In that case, we don't want to reset the lineno or column. |
---|
1973 | | */ |
---|
1974 | | if (b != YY_CURRENT_BUFFER){ |
---|
1975 | | b->yy_bs_lineno = 1; |
---|
1976 | | b->yy_bs_column = 0; |
---|
1977 | | } |
---|
1978 | | |
---|
1979 | | b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; |
---|
1980 | | |
---|
1981 | | errno = oerrno; |
---|
1982 | | } |
---|
1983 | | |
---|
1984 | | /** Discard all buffered characters. On the next scan, YY_INPUT will be called. |
---|
1985 | | * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. |
---|
1986 | | * |
---|
1987 | | */ |
---|
1988 | | void yy_flush_buffer (YY_BUFFER_STATE b ) |
---|
1989 | | { |
---|
1990 | | if ( ! b ) |
---|
1991 | | return; |
---|
1992 | | |
---|
1993 | | b->yy_n_chars = 0; |
---|
1994 | | |
---|
1995 | | /* We always need two end-of-buffer characters. The first causes |
---|
1996 | | * a transition to the end-of-buffer state. The second causes |
---|
1997 | | * a jam in that state. |
---|
1998 | | */ |
---|
1999 | | b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; |
---|
2000 | | b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; |
---|
2001 | | |
---|
2002 | | b->yy_buf_pos = &b->yy_ch_buf[0]; |
---|
2003 | | |
---|
2004 | | b->yy_at_bol = 1; |
---|
2005 | | b->yy_buffer_status = YY_BUFFER_NEW; |
---|
2006 | | |
---|
2007 | | if ( b == YY_CURRENT_BUFFER ) |
---|
2008 | | yy_load_buffer_state( ); |
---|
2009 | | } |
---|
2010 | | |
---|
2011 | | /** Pushes the new state onto the stack. The new state becomes |
---|
2012 | | * the current state. This function will allocate the stack |
---|
2013 | | * if necessary. |
---|
2014 | | * @param new_buffer The new state. |
---|
2015 | | * |
---|
2016 | | */ |
---|
2017 | | void yypush_buffer_state (YY_BUFFER_STATE new_buffer ) |
---|
2018 | | { |
---|
2019 | | if (new_buffer == NULL) |
---|
2020 | | return; |
---|
2021 | | |
---|
2022 | | yyensure_buffer_stack(); |
---|
2023 | | |
---|
2024 | | /* This block is copied from yy_switch_to_buffer. */ |
---|
2025 | | if ( YY_CURRENT_BUFFER ) |
---|
2026 | | { |
---|
2027 | | /* Flush out information for old buffer. */ |
---|
2028 | | *(yy_c_buf_p) = (yy_hold_char); |
---|
2029 | | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); |
---|
2030 | | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); |
---|
2031 | | } |
---|
2032 | | |
---|
2033 | | /* Only push if top exists. Otherwise, replace top. */ |
---|
2034 | | if (YY_CURRENT_BUFFER) |
---|
2035 | | (yy_buffer_stack_top)++; |
---|
2036 | | YY_CURRENT_BUFFER_LVALUE = new_buffer; |
---|
2037 | | |
---|
2038 | | /* copied from yy_switch_to_buffer. */ |
---|
2039 | | yy_load_buffer_state( ); |
---|
2040 | | (yy_did_buffer_switch_on_eof) = 1; |
---|
2041 | | } |
---|
2042 | | |
---|
2043 | | /** Removes and deletes the top of the stack, if present. |
---|
2044 | | * The next element becomes the new top. |
---|
2045 | | * |
---|
2046 | | */ |
---|
2047 | | void yypop_buffer_state (void) |
---|
2048 | | { |
---|
2049 | | if (!YY_CURRENT_BUFFER) |
---|
2050 | | return; |
---|
2051 | | |
---|
2052 | | yy_delete_buffer(YY_CURRENT_BUFFER ); |
---|
2053 | | YY_CURRENT_BUFFER_LVALUE = NULL; |
---|
2054 | | if ((yy_buffer_stack_top) > 0) |
---|
2055 | | --(yy_buffer_stack_top); |
---|
2056 | | |
---|
2057 | | if (YY_CURRENT_BUFFER) { |
---|
2058 | | yy_load_buffer_state( ); |
---|
2059 | | (yy_did_buffer_switch_on_eof) = 1; |
---|
2060 | | } |
---|
2061 | | } |
---|
2062 | | |
---|
2063 | | /* Allocates the stack if it does not exist. |
---|
2064 | | * Guarantees space for at least one push. |
---|
2065 | | */ |
---|
2066 | | static void yyensure_buffer_stack (void) |
---|
2067 | | { |
---|
2068 | | yy_size_t num_to_alloc; |
---|
2069 | | |
---|
2070 | | if (!(yy_buffer_stack)) { |
---|
2071 | | |
---|
2072 | | /* First allocation is just for 2 elements, since we don't know if this |
---|
2073 | | * scanner will even need a stack. We use 2 instead of 1 to avoid an |
---|
2074 | | * immediate realloc on the next call. |
---|
2075 | | */ |
---|
2076 | | num_to_alloc = 1; |
---|
2077 | | (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc |
---|
2078 | | (num_to_alloc * sizeof(struct yy_buffer_state*) |
---|
2079 | | ); |
---|
2080 | | if ( ! (yy_buffer_stack) ) |
---|
2081 | | YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); |
---|
2082 | | |
---|
2083 | | memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); |
---|
2084 | | |
---|
2085 | | (yy_buffer_stack_max) = num_to_alloc; |
---|
2086 | | (yy_buffer_stack_top) = 0; |
---|
2087 | | return; |
---|
2088 | | } |
---|
2089 | | |
---|
2090 | | if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ |
---|
2091 | | |
---|
2092 | | /* Increase the buffer to prepare for a possible push. */ |
---|
2093 | | int grow_size = 8 /* arbitrary grow size */; |
---|
2094 | | |
---|
2095 | | num_to_alloc = (yy_buffer_stack_max) + grow_size; |
---|
2096 | | (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc |
---|
2097 | | ((yy_buffer_stack), |
---|
2098 | | num_to_alloc * sizeof(struct yy_buffer_state*) |
---|
2099 | | ); |
---|
2100 | | if ( ! (yy_buffer_stack) ) |
---|
2101 | | YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); |
---|
2102 | | |
---|
2103 | | /* zero only the new slots.*/ |
---|
2104 | | memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); |
---|
2105 | | (yy_buffer_stack_max) = num_to_alloc; |
---|
2106 | | } |
---|
2107 | | } |
---|
2108 | | |
---|
2109 | | /** Setup the input buffer state to scan directly from a user-specified character buffer. |
---|
2110 | | * @param base the character buffer |
---|
2111 | | * @param size the size in bytes of the character buffer |
---|
2112 | | * |
---|
2113 | | * @return the newly allocated buffer state object. |
---|
2114 | | */ |
---|
2115 | | YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size ) |
---|
2116 | | { |
---|
2117 | | YY_BUFFER_STATE b; |
---|
2118 | | |
---|
2119 | | if ( size < 2 || |
---|
2120 | | base[size-2] != YY_END_OF_BUFFER_CHAR || |
---|
2121 | | base[size-1] != YY_END_OF_BUFFER_CHAR ) |
---|
2122 | | /* They forgot to leave room for the EOB's. */ |
---|
2123 | | return 0; |
---|
2124 | | |
---|
2125 | | b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); |
---|
2126 | | if ( ! b ) |
---|
2127 | | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); |
---|
2128 | | |
---|
2129 | | b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ |
---|
2130 | | b->yy_buf_pos = b->yy_ch_buf = base; |
---|
2131 | | b->yy_is_our_buffer = 0; |
---|
2132 | | b->yy_input_file = 0; |
---|
2133 | | b->yy_n_chars = b->yy_buf_size; |
---|
2134 | | b->yy_is_interactive = 0; |
---|
2135 | | b->yy_at_bol = 1; |
---|
2136 | | b->yy_fill_buffer = 0; |
---|
2137 | | b->yy_buffer_status = YY_BUFFER_NEW; |
---|
2138 | | |
---|
2139 | | yy_switch_to_buffer(b ); |
---|
2140 | | |
---|
2141 | | return b; |
---|
2142 | | } |
---|
2143 | | |
---|
2144 | | /** Setup the input buffer state to scan a string. The next call to yylex() will |
---|
2145 | | * scan from a @e copy of @a str. |
---|
2146 | | * @param yystr a NUL-terminated string to scan |
---|
2147 | | * |
---|
2148 | | * @return the newly allocated buffer state object. |
---|
2149 | | * @note If you want to scan bytes that may contain NUL values, then use |
---|
2150 | | * yy_scan_bytes() instead. |
---|
2151 | | */ |
---|
2152 | | YY_BUFFER_STATE yy_scan_string (yyconst char * yystr ) |
---|
2153 | | { |
---|
2154 | | |
---|
2155 | | return yy_scan_bytes(yystr,strlen(yystr) ); |
---|
2156 | | } |
---|
2157 | | |
---|
2158 | | /** Setup the input buffer state to scan the given bytes. The next call to yylex() will |
---|
2159 | | * scan from a @e copy of @a bytes. |
---|
2160 | | * @param yybytes the byte buffer to scan |
---|
2161 | | * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. |
---|
2162 | | * |
---|
2163 | | * @return the newly allocated buffer state object. |
---|
2164 | | */ |
---|
2165 | | YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len ) |
---|
2166 | | { |
---|
2167 | | YY_BUFFER_STATE b; |
---|
2168 | | char *buf; |
---|
2169 | | yy_size_t n; |
---|
2170 | | int i; |
---|
2171 | | |
---|
2172 | | /* Get memory for full buffer, including space for trailing EOB's. */ |
---|
2173 | | n = _yybytes_len + 2; |
---|
2174 | | buf = (char *) yyalloc(n ); |
---|
2175 | | if ( ! buf ) |
---|
2176 | | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); |
---|
2177 | | |
---|
2178 | | for ( i = 0; i < _yybytes_len; ++i ) |
---|
2179 | | buf[i] = yybytes[i]; |
---|
2180 | | |
---|
2181 | | buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; |
---|
2182 | | |
---|
2183 | | b = yy_scan_buffer(buf,n ); |
---|
2184 | | if ( ! b ) |
---|
2185 | | YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); |
---|
2186 | | |
---|
2187 | | /* It's okay to grow etc. this buffer, and we should throw it |
---|
2188 | | * away when we're done. |
---|
2189 | | */ |
---|
2190 | | b->yy_is_our_buffer = 1; |
---|
2191 | | |
---|
2192 | | return b; |
---|
2193 | | } |
---|
2194 | | |
---|
2195 | | #ifndef YY_EXIT_FAILURE |
---|
2196 | | #define YY_EXIT_FAILURE 2 |
---|
2197 | | #endif |
---|
2198 | | |
---|
2199 | | static void yy_fatal_error (yyconst char* msg ) |
---|
2200 | | { |
---|
2201 | | (void) fprintf( stderr, "%s\n", msg ); |
---|
2202 | | exit( YY_EXIT_FAILURE ); |
---|
2203 | | } |
---|
2204 | | |
---|
2205 | | /* Redefine yyless() so it works in section 3 code. */ |
---|
2206 | | |
---|
2207 | | #undef yyless |
---|
2208 | | #define yyless(n) \ |
---|
2209 | | do \ |
---|
2210 | | { \ |
---|
2211 | | /* Undo effects of setting up yytext. */ \ |
---|
2212 | | int yyless_macro_arg = (n); \ |
---|
2213 | | YY_LESS_LINENO(yyless_macro_arg);\ |
---|
2214 | | yytext[yyleng] = (yy_hold_char); \ |
---|
2215 | | (yy_c_buf_p) = yytext + yyless_macro_arg; \ |
---|
2216 | | (yy_hold_char) = *(yy_c_buf_p); \ |
---|
2217 | | *(yy_c_buf_p) = '\0'; \ |
---|
2218 | | yyleng = yyless_macro_arg; \ |
---|
2219 | | } \ |
---|
2220 | | while ( 0 ) |
---|
2221 | | |
---|
2222 | | /* Accessor methods (get/set functions) to struct members. */ |
---|
2223 | | |
---|
2224 | | /** Get the current line number. |
---|
2225 | | * |
---|
2226 | | */ |
---|
2227 | | int yyget_lineno (void) |
---|
2228 | | { |
---|
2229 | | |
---|
2230 | | return yylineno; |
---|
2231 | | } |
---|
2232 | | |
---|
2233 | | /** Get the input stream. |
---|
2234 | | * |
---|
2235 | | */ |
---|
2236 | | FILE *yyget_in (void) |
---|
2237 | | { |
---|
2238 | | return yyin; |
---|
2239 | | } |
---|
2240 | | |
---|
2241 | | /** Get the output stream. |
---|
2242 | | * |
---|
2243 | | */ |
---|
2244 | | FILE *yyget_out (void) |
---|
2245 | | { |
---|
2246 | | return yyout; |
---|
2247 | | } |
---|
2248 | | |
---|
2249 | | /** Get the length of the current token. |
---|
2250 | | * |
---|
2251 | | */ |
---|
2252 | | yy_size_t yyget_leng (void) |
---|
2253 | | { |
---|
2254 | | return yyleng; |
---|
2255 | | } |
---|
2256 | | |
---|
2257 | | /** Get the current token. |
---|
2258 | | * |
---|
2259 | | */ |
---|
2260 | | |
---|
2261 | | char *yyget_text (void) |
---|
2262 | | { |
---|
2263 | | return yytext; |
---|
2264 | | } |
---|
2265 | | |
---|
2266 | | /** Set the current line number. |
---|
2267 | | * @param line_number |
---|
2268 | | * |
---|
2269 | | */ |
---|
2270 | | void yyset_lineno (int line_number ) |
---|
2271 | | { |
---|
2272 | | |
---|
2273 | | yylineno = line_number; |
---|
2274 | | } |
---|
2275 | | |
---|
2276 | | /** Set the input stream. This does not discard the current |
---|
2277 | | * input buffer. |
---|
2278 | | * @param in_str A readable stream. |
---|
2279 | | * |
---|
2280 | | * @see yy_switch_to_buffer |
---|
2281 | | */ |
---|
2282 | | void yyset_in (FILE * in_str ) |
---|
2283 | | { |
---|
2284 | | yyin = in_str ; |
---|
2285 | | } |
---|
2286 | | |
---|
2287 | | void yyset_out (FILE * out_str ) |
---|
2288 | | { |
---|
2289 | | yyout = out_str ; |
---|
2290 | | } |
---|
2291 | | |
---|
2292 | | int yyget_debug (void) |
---|
2293 | | { |
---|
2294 | | return yy_flex_debug; |
---|
2295 | | } |
---|
2296 | | |
---|
2297 | | void yyset_debug (int bdebug ) |
---|
2298 | | { |
---|
2299 | | yy_flex_debug = bdebug ; |
---|
2300 | | } |
---|
2301 | | |
---|
2302 | | static int yy_init_globals (void) |
---|
2303 | | { |
---|
2304 | | /* Initialization is the same as for the non-reentrant scanner. |
---|
2305 | | * This function is called from yylex_destroy(), so don't allocate here. |
---|
2306 | | */ |
---|
2307 | | |
---|
2308 | | (yy_buffer_stack) = 0; |
---|
2309 | | (yy_buffer_stack_top) = 0; |
---|
2310 | | (yy_buffer_stack_max) = 0; |
---|
2311 | | (yy_c_buf_p) = (char *) 0; |
---|
2312 | | (yy_init) = 0; |
---|
2313 | | (yy_start) = 0; |
---|
2314 | | |
---|
2315 | | (yy_state_buf) = 0; |
---|
2316 | | (yy_state_ptr) = 0; |
---|
2317 | | (yy_full_match) = 0; |
---|
2318 | | (yy_lp) = 0; |
---|
2319 | | |
---|
2320 | | /* Defined in main.c */ |
---|
2321 | | #ifdef YY_STDINIT |
---|
2322 | | yyin = stdin; |
---|
2323 | | yyout = stdout; |
---|
2324 | | #else |
---|
2325 | | yyin = (FILE *) 0; |
---|
2326 | | yyout = (FILE *) 0; |
---|
2327 | | #endif |
---|
2328 | | |
---|
2329 | | /* For future reference: Set errno on error, since we are called by |
---|
2330 | | * yylex_init() |
---|
2331 | | */ |
---|
2332 | | return 0; |
---|
2333 | | } |
---|
2334 | | |
---|
2335 | | /* yylex_destroy is for both reentrant and non-reentrant scanners. */ |
---|
2336 | | int yylex_destroy (void) |
---|
2337 | | { |
---|
2338 | | |
---|
2339 | | /* Pop the buffer stack, destroying each element. */ |
---|
2340 | | while(YY_CURRENT_BUFFER){ |
---|
2341 | | yy_delete_buffer(YY_CURRENT_BUFFER ); |
---|
2342 | | YY_CURRENT_BUFFER_LVALUE = NULL; |
---|
2343 | | yypop_buffer_state(); |
---|
2344 | | } |
---|
2345 | | |
---|
2346 | | /* Destroy the stack itself. */ |
---|
2347 | | yyfree((yy_buffer_stack) ); |
---|
2348 | | (yy_buffer_stack) = NULL; |
---|
2349 | | |
---|
2350 | | yyfree ( (yy_state_buf) ); |
---|
2351 | | (yy_state_buf) = NULL; |
---|
2352 | | |
---|
2353 | | /* Reset the globals. This is important in a non-reentrant scanner so the next time |
---|
2354 | | * yylex() is called, initialization will occur. */ |
---|
2355 | | yy_init_globals( ); |
---|
2356 | | |
---|
2357 | | return 0; |
---|
2358 | | } |
---|
2359 | | |
---|
2360 | | /* |
---|
2361 | | * Internal utility routines. |
---|
2362 | | */ |
---|
2363 | | |
---|
2364 | | #ifndef yytext_ptr |
---|
2365 | | static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) |
---|
2366 | | { |
---|
2367 | | register int i; |
---|
2368 | | for ( i = 0; i < n; ++i ) |
---|
2369 | | s1[i] = s2[i]; |
---|
2370 | | } |
---|
2371 | | #endif |
---|
2372 | | |
---|
2373 | | #ifdef YY_NEED_STRLEN |
---|
2374 | | static int yy_flex_strlen (yyconst char * s ) |
---|
2375 | | { |
---|
2376 | | register int n; |
---|
2377 | | for ( n = 0; s[n]; ++n ) |
---|
2378 | | ; |
---|
2379 | | |
---|
2380 | | return n; |
---|
2381 | | } |
---|
2382 | | #endif |
---|
2383 | | |
---|
2384 | | void *yyalloc (yy_size_t size ) |
---|
2385 | | { |
---|
2386 | | return (void *) malloc( size ); |
---|
2387 | | } |
---|
2388 | | |
---|
2389 | | void *yyrealloc (void * ptr, yy_size_t size ) |
---|
2390 | | { |
---|
2391 | | /* The cast to (char *) in the following accommodates both |
---|
2392 | | * implementations that use char* generic pointers, and those |
---|
2393 | | * that use void* generic pointers. It works with the latter |
---|
2394 | | * because both ANSI C and C++ allow castless assignment from |
---|
2395 | | * any pointer type to void*, and deal with argument conversions |
---|
2396 | | * as though doing an assignment. |
---|
2397 | | */ |
---|
2398 | | return (void *) realloc( (char *) ptr, size ); |
---|
2399 | | } |
---|
2400 | | |
---|
2401 | | void yyfree (void * ptr ) |
---|
2402 | | { |
---|
2403 | | free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ |
---|
2404 | | } |
---|
2405 | | |
---|
2406 | | #define YYTABLES_NAME "yytables" |
---|
2407 | | |
---|
2408 | | #line 10 "conftest.l" |
---|
2409 | | |
---|
2410 | | |
---|
2411 | | #ifdef YYTEXT_POINTER |
---|
2412 | | extern char *yytext; |
---|
2413 | | #endif |
---|
2414 | | int |
---|
2415 | | main (void) |
---|
2416 | | { |
---|
2417 | | return ! yylex () + ! yywrap (); |
---|
2418 | | } |
---|
2419 | configure:8127: /usr/bin/clang -o conftest -O -fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386 -arch x86_64 -fstack-protector-all -D_FORTIFY_SOURCE=2 -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 conftest.c -lfl >&5 |
---|
2420 | ld: warning: ignoring file /opt/local/lib/libfl.a, file was built for archive which is not the architecture being linked (i386): /opt/local/lib/libfl.a |
---|
2421 | Undefined symbols for architecture i386: |
---|
2422 | "_yywrap", referenced from: |
---|
2423 | _yylex in conftest-752151.o |
---|
2424 | _main in conftest-752151.o |
---|
2425 | ld: symbol(s) not found for architecture i386 |
---|
2426 | clang: error: linker command failed with exit code 1 (use -v to see invocation) |
---|
2427 | configure:8127: $? = 1 |
---|
2428 | configure: failed program was: |
---|
2429 | | /* confdefs.h */ |
---|
2430 | | #define PACKAGE_NAME "" |
---|
2431 | | #define PACKAGE_TARNAME "" |
---|
2432 | | #define PACKAGE_VERSION "" |
---|
2433 | | #define PACKAGE_STRING "" |
---|
2434 | | #define PACKAGE_BUGREPORT "" |
---|
2435 | | #define PACKAGE_URL "" |
---|
2436 | | #define IS_DARWIN 1 |
---|
2437 | | #define STDC_HEADERS 1 |
---|
2438 | | #define HAVE_SYS_TYPES_H 1 |
---|
2439 | | #define HAVE_SYS_STAT_H 1 |
---|
2440 | | #define HAVE_STDLIB_H 1 |
---|
2441 | | #define HAVE_STRING_H 1 |
---|
2442 | | #define HAVE_MEMORY_H 1 |
---|
2443 | | #define HAVE_STRINGS_H 1 |
---|
2444 | | #define HAVE_INTTYPES_H 1 |
---|
2445 | | #define HAVE_STDINT_H 1 |
---|
2446 | | #define HAVE_UNISTD_H 1 |
---|
2447 | | #define HAVE_SYS_SDT_H 1 |
---|
2448 | | #define HAVE_STATIC_PROBES 1 |
---|
2449 | | /* end confdefs.h. */ |
---|
2450 | | |
---|
2451 | | #line 3 "lex.yy.c" |
---|
2452 | | |
---|
2453 | | #define YY_INT_ALIGNED short int |
---|
2454 | | |
---|
2455 | | /* A lexical scanner generated by flex */ |
---|
2456 | | |
---|
2457 | | #define FLEX_SCANNER |
---|
2458 | | #define YY_FLEX_MAJOR_VERSION 2 |
---|
2459 | | #define YY_FLEX_MINOR_VERSION 5 |
---|
2460 | | #define YY_FLEX_SUBMINOR_VERSION 37 |
---|
2461 | | #if YY_FLEX_SUBMINOR_VERSION > 0 |
---|
2462 | | #define FLEX_BETA |
---|
2463 | | #endif |
---|
2464 | | |
---|
2465 | | /* First, we deal with platform-specific or compiler-specific issues. */ |
---|
2466 | | |
---|
2467 | | /* begin standard C headers. */ |
---|
2468 | | #include <stdio.h> |
---|
2469 | | #include <string.h> |
---|
2470 | | #include <errno.h> |
---|
2471 | | #include <stdlib.h> |
---|
2472 | | |
---|
2473 | | /* end standard C headers. */ |
---|
2474 | | |
---|
2475 | | /* flex integer type definitions */ |
---|
2476 | | |
---|
2477 | | #ifndef FLEXINT_H |
---|
2478 | | #define FLEXINT_H |
---|
2479 | | |
---|
2480 | | /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */ |
---|
2481 | | |
---|
2482 | | #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L |
---|
2483 | | |
---|
2484 | | /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, |
---|
2485 | | * if you want the limit (max/min) macros for int types. |
---|
2486 | | */ |
---|
2487 | | #ifndef __STDC_LIMIT_MACROS |
---|
2488 | | #define __STDC_LIMIT_MACROS 1 |
---|
2489 | | #endif |
---|
2490 | | |
---|
2491 | | #include <inttypes.h> |
---|
2492 | | typedef int8_t flex_int8_t; |
---|
2493 | | typedef uint8_t flex_uint8_t; |
---|
2494 | | typedef int16_t flex_int16_t; |
---|
2495 | | typedef uint16_t flex_uint16_t; |
---|
2496 | | typedef int32_t flex_int32_t; |
---|
2497 | | typedef uint32_t flex_uint32_t; |
---|
2498 | | #else |
---|
2499 | | typedef signed char flex_int8_t; |
---|
2500 | | typedef short int flex_int16_t; |
---|
2501 | | typedef int flex_int32_t; |
---|
2502 | | typedef unsigned char flex_uint8_t; |
---|
2503 | | typedef unsigned short int flex_uint16_t; |
---|
2504 | | typedef unsigned int flex_uint32_t; |
---|
2505 | | |
---|
2506 | | /* Limits of integral types. */ |
---|
2507 | | #ifndef INT8_MIN |
---|
2508 | | #define INT8_MIN (-128) |
---|
2509 | | #endif |
---|
2510 | | #ifndef INT16_MIN |
---|
2511 | | #define INT16_MIN (-32767-1) |
---|
2512 | | #endif |
---|
2513 | | #ifndef INT32_MIN |
---|
2514 | | #define INT32_MIN (-2147483647-1) |
---|
2515 | | #endif |
---|
2516 | | #ifndef INT8_MAX |
---|
2517 | | #define INT8_MAX (127) |
---|
2518 | | #endif |
---|
2519 | | #ifndef INT16_MAX |
---|
2520 | | #define INT16_MAX (32767) |
---|
2521 | | #endif |
---|
2522 | | #ifndef INT32_MAX |
---|
2523 | | #define INT32_MAX (2147483647) |
---|
2524 | | #endif |
---|
2525 | | #ifndef UINT8_MAX |
---|
2526 | | #define UINT8_MAX (255U) |
---|
2527 | | #endif |
---|
2528 | | #ifndef UINT16_MAX |
---|
2529 | | #define UINT16_MAX (65535U) |
---|
2530 | | #endif |
---|
2531 | | #ifndef UINT32_MAX |
---|
2532 | | #define UINT32_MAX (4294967295U) |
---|
2533 | | #endif |
---|
2534 | | |
---|
2535 | | #endif /* ! C99 */ |
---|
2536 | | |
---|
2537 | | #endif /* ! FLEXINT_H */ |
---|
2538 | | |
---|
2539 | | #ifdef __cplusplus |
---|
2540 | | |
---|
2541 | | /* The "const" storage-class-modifier is valid. */ |
---|
2542 | | #define YY_USE_CONST |
---|
2543 | | |
---|
2544 | | #else /* ! __cplusplus */ |
---|
2545 | | |
---|
2546 | | /* C99 requires __STDC__ to be defined as 1. */ |
---|
2547 | | #if defined (__STDC__) |
---|
2548 | | |
---|
2549 | | #define YY_USE_CONST |
---|
2550 | | |
---|
2551 | | #endif /* defined (__STDC__) */ |
---|
2552 | | #endif /* ! __cplusplus */ |
---|
2553 | | |
---|
2554 | | #ifdef YY_USE_CONST |
---|
2555 | | #define yyconst const |
---|
2556 | | #else |
---|
2557 | | #define yyconst |
---|
2558 | | #endif |
---|
2559 | | |
---|
2560 | | /* Returned upon end-of-file. */ |
---|
2561 | | #define YY_NULL 0 |
---|
2562 | | |
---|
2563 | | /* Promotes a possibly negative, possibly signed char to an unsigned |
---|
2564 | | * integer for use as an array index. If the signed char is negative, |
---|
2565 | | * we want to instead treat it as an 8-bit unsigned char, hence the |
---|
2566 | | * double cast. |
---|
2567 | | */ |
---|
2568 | | #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) |
---|
2569 | | |
---|
2570 | | /* Enter a start condition. This macro really ought to take a parameter, |
---|
2571 | | * but we do it the disgusting crufty way forced on us by the ()-less |
---|
2572 | | * definition of BEGIN. |
---|
2573 | | */ |
---|
2574 | | #define BEGIN (yy_start) = 1 + 2 * |
---|
2575 | | |
---|
2576 | | /* Translate the current start state into a value that can be later handed |
---|
2577 | | * to BEGIN to return to the state. The YYSTATE alias is for lex |
---|
2578 | | * compatibility. |
---|
2579 | | */ |
---|
2580 | | #define YY_START (((yy_start) - 1) / 2) |
---|
2581 | | #define YYSTATE YY_START |
---|
2582 | | |
---|
2583 | | /* Action number for EOF rule of a given start state. */ |
---|
2584 | | #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) |
---|
2585 | | |
---|
2586 | | /* Special action meaning "start processing a new file". */ |
---|
2587 | | #define YY_NEW_FILE yyrestart(yyin ) |
---|
2588 | | |
---|
2589 | | #define YY_END_OF_BUFFER_CHAR 0 |
---|
2590 | | |
---|
2591 | | /* Size of default input buffer. */ |
---|
2592 | | #ifndef YY_BUF_SIZE |
---|
2593 | | #define YY_BUF_SIZE 16384 |
---|
2594 | | #endif |
---|
2595 | | |
---|
2596 | | /* The state buf must be large enough to hold one state per character in the main buffer. |
---|
2597 | | */ |
---|
2598 | | #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
---|
2599 | | |
---|
2600 | | #ifndef YY_TYPEDEF_YY_BUFFER_STATE |
---|
2601 | | #define YY_TYPEDEF_YY_BUFFER_STATE |
---|
2602 | | typedef struct yy_buffer_state *YY_BUFFER_STATE; |
---|
2603 | | #endif |
---|
2604 | | |
---|
2605 | | #ifndef YY_TYPEDEF_YY_SIZE_T |
---|
2606 | | #define YY_TYPEDEF_YY_SIZE_T |
---|
2607 | | typedef size_t yy_size_t; |
---|
2608 | | #endif |
---|
2609 | | |
---|
2610 | | extern yy_size_t yyleng; |
---|
2611 | | |
---|
2612 | | extern FILE *yyin, *yyout; |
---|
2613 | | |
---|
2614 | | #define EOB_ACT_CONTINUE_SCAN 0 |
---|
2615 | | #define EOB_ACT_END_OF_FILE 1 |
---|
2616 | | #define EOB_ACT_LAST_MATCH 2 |
---|
2617 | | |
---|
2618 | | #define YY_LESS_LINENO(n) |
---|
2619 | | |
---|
2620 | | /* Return all but the first "n" matched characters back to the input stream. */ |
---|
2621 | | #define yyless(n) \ |
---|
2622 | | do \ |
---|
2623 | | { \ |
---|
2624 | | /* Undo effects of setting up yytext. */ \ |
---|
2625 | | int yyless_macro_arg = (n); \ |
---|
2626 | | YY_LESS_LINENO(yyless_macro_arg);\ |
---|
2627 | | *yy_cp = (yy_hold_char); \ |
---|
2628 | | YY_RESTORE_YY_MORE_OFFSET \ |
---|
2629 | | (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ |
---|
2630 | | YY_DO_BEFORE_ACTION; /* set up yytext again */ \ |
---|
2631 | | } \ |
---|
2632 | | while ( 0 ) |
---|
2633 | | |
---|
2634 | | #define unput(c) yyunput( c, (yytext_ptr) ) |
---|
2635 | | |
---|
2636 | | #ifndef YY_STRUCT_YY_BUFFER_STATE |
---|
2637 | | #define YY_STRUCT_YY_BUFFER_STATE |
---|
2638 | | struct yy_buffer_state |
---|
2639 | | { |
---|
2640 | | FILE *yy_input_file; |
---|
2641 | | |
---|
2642 | | char *yy_ch_buf; /* input buffer */ |
---|
2643 | | char *yy_buf_pos; /* current position in input buffer */ |
---|
2644 | | |
---|
2645 | | /* Size of input buffer in bytes, not including room for EOB |
---|
2646 | | * characters. |
---|
2647 | | */ |
---|
2648 | | yy_size_t yy_buf_size; |
---|
2649 | | |
---|
2650 | | /* Number of characters read into yy_ch_buf, not including EOB |
---|
2651 | | * characters. |
---|
2652 | | */ |
---|
2653 | | yy_size_t yy_n_chars; |
---|
2654 | | |
---|
2655 | | /* Whether we "own" the buffer - i.e., we know we created it, |
---|
2656 | | * and can realloc() it to grow it, and should free() it to |
---|
2657 | | * delete it. |
---|
2658 | | */ |
---|
2659 | | int yy_is_our_buffer; |
---|
2660 | | |
---|
2661 | | /* Whether this is an "interactive" input source; if so, and |
---|
2662 | | * if we're using stdio for input, then we want to use getc() |
---|
2663 | | * instead of fread(), to make sure we stop fetching input after |
---|
2664 | | * each newline. |
---|
2665 | | */ |
---|
2666 | | int yy_is_interactive; |
---|
2667 | | |
---|
2668 | | /* Whether we're considered to be at the beginning of a line. |
---|
2669 | | * If so, '^' rules will be active on the next match, otherwise |
---|
2670 | | * not. |
---|
2671 | | */ |
---|
2672 | | int yy_at_bol; |
---|
2673 | | |
---|
2674 | | int yy_bs_lineno; /**< The line count. */ |
---|
2675 | | int yy_bs_column; /**< The column count. */ |
---|
2676 | | |
---|
2677 | | /* Whether to try to fill the input buffer when we reach the |
---|
2678 | | * end of it. |
---|
2679 | | */ |
---|
2680 | | int yy_fill_buffer; |
---|
2681 | | |
---|
2682 | | int yy_buffer_status; |
---|
2683 | | |
---|
2684 | | #define YY_BUFFER_NEW 0 |
---|
2685 | | #define YY_BUFFER_NORMAL 1 |
---|
2686 | | /* When an EOF's been seen but there's still some text to process |
---|
2687 | | * then we mark the buffer as YY_EOF_PENDING, to indicate that we |
---|
2688 | | * shouldn't try reading from the input source any more. We might |
---|
2689 | | * still have a bunch of tokens to match, though, because of |
---|
2690 | | * possible backing-up. |
---|
2691 | | * |
---|
2692 | | * When we actually see the EOF, we change the status to "new" |
---|
2693 | | * (via yyrestart()), so that the user can continue scanning by |
---|
2694 | | * just pointing yyin at a new input file. |
---|
2695 | | */ |
---|
2696 | | #define YY_BUFFER_EOF_PENDING 2 |
---|
2697 | | |
---|
2698 | | }; |
---|
2699 | | #endif /* !YY_STRUCT_YY_BUFFER_STATE */ |
---|
2700 | | |
---|
2701 | | /* Stack of input buffers. */ |
---|
2702 | | static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */ |
---|
2703 | | static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */ |
---|
2704 | | static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */ |
---|
2705 | | |
---|
2706 | | /* We provide macros for accessing buffer states in case in the |
---|
2707 | | * future we want to put the buffer states in a more general |
---|
2708 | | * "scanner state". |
---|
2709 | | * |
---|
2710 | | * Returns the top of the stack, or NULL. |
---|
2711 | | */ |
---|
2712 | | #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ |
---|
2713 | | ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ |
---|
2714 | | : NULL) |
---|
2715 | | |
---|
2716 | | /* Same as previous macro, but useful when we know that the buffer stack is not |
---|
2717 | | * NULL or when we need an lvalue. For internal use only. |
---|
2718 | | */ |
---|
2719 | | #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
---|
2720 | | |
---|
2721 | | /* yy_hold_char holds the character lost when yytext is formed. */ |
---|
2722 | | static char yy_hold_char; |
---|
2723 | | static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */ |
---|
2724 | | yy_size_t yyleng; |
---|
2725 | | |
---|
2726 | | /* Points to current character in buffer. */ |
---|
2727 | | static char *yy_c_buf_p = (char *) 0; |
---|
2728 | | static int yy_init = 0; /* whether we need to initialize */ |
---|
2729 | | static int yy_start = 0; /* start state number */ |
---|
2730 | | |
---|
2731 | | /* Flag which is used to allow yywrap()'s to do buffer switches |
---|
2732 | | * instead of setting up a fresh yyin. A bit of a hack ... |
---|
2733 | | */ |
---|
2734 | | static int yy_did_buffer_switch_on_eof; |
---|
2735 | | |
---|
2736 | | void yyrestart (FILE *input_file ); |
---|
2737 | | void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ); |
---|
2738 | | YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ); |
---|
2739 | | void yy_delete_buffer (YY_BUFFER_STATE b ); |
---|
2740 | | void yy_flush_buffer (YY_BUFFER_STATE b ); |
---|
2741 | | void yypush_buffer_state (YY_BUFFER_STATE new_buffer ); |
---|
2742 | | void yypop_buffer_state (void ); |
---|
2743 | | |
---|
2744 | | static void yyensure_buffer_stack (void ); |
---|
2745 | | static void yy_load_buffer_state (void ); |
---|
2746 | | static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file ); |
---|
2747 | | |
---|
2748 | | #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER ) |
---|
2749 | | |
---|
2750 | | YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ); |
---|
2751 | | YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ); |
---|
2752 | | YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len ); |
---|
2753 | | |
---|
2754 | | void *yyalloc (yy_size_t ); |
---|
2755 | | void *yyrealloc (void *,yy_size_t ); |
---|
2756 | | void yyfree (void * ); |
---|
2757 | | |
---|
2758 | | #define yy_new_buffer yy_create_buffer |
---|
2759 | | |
---|
2760 | | #define yy_set_interactive(is_interactive) \ |
---|
2761 | | { \ |
---|
2762 | | if ( ! YY_CURRENT_BUFFER ){ \ |
---|
2763 | | yyensure_buffer_stack (); \ |
---|
2764 | | YY_CURRENT_BUFFER_LVALUE = \ |
---|
2765 | | yy_create_buffer(yyin,YY_BUF_SIZE ); \ |
---|
2766 | | } \ |
---|
2767 | | YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ |
---|
2768 | | } |
---|
2769 | | |
---|
2770 | | #define yy_set_bol(at_bol) \ |
---|
2771 | | { \ |
---|
2772 | | if ( ! YY_CURRENT_BUFFER ){\ |
---|
2773 | | yyensure_buffer_stack (); \ |
---|
2774 | | YY_CURRENT_BUFFER_LVALUE = \ |
---|
2775 | | yy_create_buffer(yyin,YY_BUF_SIZE ); \ |
---|
2776 | | } \ |
---|
2777 | | YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ |
---|
2778 | | } |
---|
2779 | | |
---|
2780 | | #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
---|
2781 | | |
---|
2782 | | /* Begin user sect3 */ |
---|
2783 | | |
---|
2784 | | typedef unsigned char YY_CHAR; |
---|
2785 | | |
---|
2786 | | FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; |
---|
2787 | | |
---|
2788 | | typedef int yy_state_type; |
---|
2789 | | |
---|
2790 | | extern int yylineno; |
---|
2791 | | |
---|
2792 | | int yylineno = 1; |
---|
2793 | | |
---|
2794 | | extern char *yytext; |
---|
2795 | | #define yytext_ptr yytext |
---|
2796 | | |
---|
2797 | | static yy_state_type yy_get_previous_state (void ); |
---|
2798 | | static yy_state_type yy_try_NUL_trans (yy_state_type current_state ); |
---|
2799 | | static int yy_get_next_buffer (void ); |
---|
2800 | | static void yy_fatal_error (yyconst char msg[] ); |
---|
2801 | | |
---|
2802 | | /* Done after the current pattern has been matched and before the |
---|
2803 | | * corresponding action - sets up yytext. |
---|
2804 | | */ |
---|
2805 | | #define YY_DO_BEFORE_ACTION \ |
---|
2806 | | (yytext_ptr) = yy_bp; \ |
---|
2807 | | (yytext_ptr) -= (yy_more_len); \ |
---|
2808 | | yyleng = (size_t) (yy_cp - (yytext_ptr)); \ |
---|
2809 | | (yy_hold_char) = *yy_cp; \ |
---|
2810 | | *yy_cp = '\0'; \ |
---|
2811 | | (yy_c_buf_p) = yy_cp; |
---|
2812 | | |
---|
2813 | | #define YY_NUM_RULES 8 |
---|
2814 | | #define YY_END_OF_BUFFER 9 |
---|
2815 | | /* This struct is not used in this scanner, |
---|
2816 | | but its presence is necessary. */ |
---|
2817 | | struct yy_trans_info |
---|
2818 | | { |
---|
2819 | | flex_int32_t yy_verify; |
---|
2820 | | flex_int32_t yy_nxt; |
---|
2821 | | }; |
---|
2822 | | static yyconst flex_int16_t yy_acclist[23] = |
---|
2823 | | { 0, |
---|
2824 | | 9, 7, 8, 8, 1, 7, 8, 2, 7, 8, |
---|
2825 | | 3, 7, 8, 4, 7, 8, 5, 7, 8, 6, |
---|
2826 | | 7, 8 |
---|
2827 | | } ; |
---|
2828 | | |
---|
2829 | | static yyconst flex_int16_t yy_accept[14] = |
---|
2830 | | { 0, |
---|
2831 | | 1, 1, 1, 2, 4, 5, 8, 11, 14, 17, |
---|
2832 | | 20, 23, 23 |
---|
2833 | | } ; |
---|
2834 | | |
---|
2835 | | static yyconst flex_int32_t yy_ec[256] = |
---|
2836 | | { 0, |
---|
2837 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, |
---|
2838 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
2839 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
2840 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
2841 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
2842 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
2843 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
2844 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
2845 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
2846 | | 1, 1, 1, 1, 1, 1, 3, 4, 5, 6, |
---|
2847 | | |
---|
2848 | | 7, 8, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
2849 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
2850 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
2851 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
2852 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
2853 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
2854 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
2855 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
2856 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
2857 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
2858 | | |
---|
2859 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
2860 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
2861 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
2862 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
2863 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
2864 | | 1, 1, 1, 1, 1 |
---|
2865 | | } ; |
---|
2866 | | |
---|
2867 | | static yyconst flex_int32_t yy_meta[9] = |
---|
2868 | | { 0, |
---|
2869 | | 1, 1, 1, 1, 1, 1, 1, 1 |
---|
2870 | | } ; |
---|
2871 | | |
---|
2872 | | static yyconst flex_int16_t yy_base[13] = |
---|
2873 | | { 0, |
---|
2874 | | 0, 0, 9, 10, 10, 10, 10, 10, 10, 10, |
---|
2875 | | 10, 10 |
---|
2876 | | } ; |
---|
2877 | | |
---|
2878 | | static yyconst flex_int16_t yy_def[13] = |
---|
2879 | | { 0, |
---|
2880 | | 12, 1, 12, 12, 12, 12, 12, 12, 12, 12, |
---|
2881 | | 12, 0 |
---|
2882 | | } ; |
---|
2883 | | |
---|
2884 | | static yyconst flex_int16_t yy_nxt[19] = |
---|
2885 | | { 0, |
---|
2886 | | 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, |
---|
2887 | | 12, 12, 12, 12, 12, 12, 12, 12 |
---|
2888 | | } ; |
---|
2889 | | |
---|
2890 | | static yyconst flex_int16_t yy_chk[19] = |
---|
2891 | | { 0, |
---|
2892 | | 1, 1, 1, 1, 1, 1, 1, 1, 3, 12, |
---|
2893 | | 12, 12, 12, 12, 12, 12, 12, 12 |
---|
2894 | | } ; |
---|
2895 | | |
---|
2896 | | extern int yy_flex_debug; |
---|
2897 | | int yy_flex_debug = 0; |
---|
2898 | | |
---|
2899 | | static yy_state_type *yy_state_buf=0, *yy_state_ptr=0; |
---|
2900 | | static char *yy_full_match; |
---|
2901 | | static int yy_lp; |
---|
2902 | | #define REJECT \ |
---|
2903 | | { \ |
---|
2904 | | *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ \ |
---|
2905 | | yy_cp = (yy_full_match); /* restore poss. backed-over text */ \ |
---|
2906 | | ++(yy_lp); \ |
---|
2907 | | goto find_rule; \ |
---|
2908 | | } |
---|
2909 | | |
---|
2910 | | static int yy_more_flag = 0; |
---|
2911 | | static int yy_more_len = 0; |
---|
2912 | | #define yymore() ((yy_more_flag) = 1) |
---|
2913 | | #define YY_MORE_ADJ (yy_more_len) |
---|
2914 | | #define YY_RESTORE_YY_MORE_OFFSET |
---|
2915 | | char *yytext; |
---|
2916 | | #line 1 "conftest.l" |
---|
2917 | | #line 469 "lex.yy.c" |
---|
2918 | | |
---|
2919 | | #define INITIAL 0 |
---|
2920 | | |
---|
2921 | | #ifndef YY_NO_UNISTD_H |
---|
2922 | | /* Special case for "unistd.h", since it is non-ANSI. We include it way |
---|
2923 | | * down here because we want the user's section 1 to have been scanned first. |
---|
2924 | | * The user has a chance to override it with an option. |
---|
2925 | | */ |
---|
2926 | | #include <unistd.h> |
---|
2927 | | #endif |
---|
2928 | | |
---|
2929 | | #ifndef YY_EXTRA_TYPE |
---|
2930 | | #define YY_EXTRA_TYPE void * |
---|
2931 | | #endif |
---|
2932 | | |
---|
2933 | | static int yy_init_globals (void ); |
---|
2934 | | |
---|
2935 | | /* Accessor methods to globals. |
---|
2936 | | These are made visible to non-reentrant scanners for convenience. */ |
---|
2937 | | |
---|
2938 | | int yylex_destroy (void ); |
---|
2939 | | |
---|
2940 | | int yyget_debug (void ); |
---|
2941 | | |
---|
2942 | | void yyset_debug (int debug_flag ); |
---|
2943 | | |
---|
2944 | | YY_EXTRA_TYPE yyget_extra (void ); |
---|
2945 | | |
---|
2946 | | void yyset_extra (YY_EXTRA_TYPE user_defined ); |
---|
2947 | | |
---|
2948 | | FILE *yyget_in (void ); |
---|
2949 | | |
---|
2950 | | void yyset_in (FILE * in_str ); |
---|
2951 | | |
---|
2952 | | FILE *yyget_out (void ); |
---|
2953 | | |
---|
2954 | | void yyset_out (FILE * out_str ); |
---|
2955 | | |
---|
2956 | | yy_size_t yyget_leng (void ); |
---|
2957 | | |
---|
2958 | | char *yyget_text (void ); |
---|
2959 | | |
---|
2960 | | int yyget_lineno (void ); |
---|
2961 | | |
---|
2962 | | void yyset_lineno (int line_number ); |
---|
2963 | | |
---|
2964 | | /* Macros after this point can all be overridden by user definitions in |
---|
2965 | | * section 1. |
---|
2966 | | */ |
---|
2967 | | |
---|
2968 | | #ifndef YY_SKIP_YYWRAP |
---|
2969 | | #ifdef __cplusplus |
---|
2970 | | extern "C" int yywrap (void ); |
---|
2971 | | #else |
---|
2972 | | extern int yywrap (void ); |
---|
2973 | | #endif |
---|
2974 | | #endif |
---|
2975 | | |
---|
2976 | | static void yyunput (int c,char *buf_ptr ); |
---|
2977 | | |
---|
2978 | | #ifndef yytext_ptr |
---|
2979 | | static void yy_flex_strncpy (char *,yyconst char *,int ); |
---|
2980 | | #endif |
---|
2981 | | |
---|
2982 | | #ifdef YY_NEED_STRLEN |
---|
2983 | | static int yy_flex_strlen (yyconst char * ); |
---|
2984 | | #endif |
---|
2985 | | |
---|
2986 | | #ifndef YY_NO_INPUT |
---|
2987 | | |
---|
2988 | | #ifdef __cplusplus |
---|
2989 | | static int yyinput (void ); |
---|
2990 | | #else |
---|
2991 | | static int input (void ); |
---|
2992 | | #endif |
---|
2993 | | |
---|
2994 | | #endif |
---|
2995 | | |
---|
2996 | | /* Amount of stuff to slurp up with each read. */ |
---|
2997 | | #ifndef YY_READ_BUF_SIZE |
---|
2998 | | #define YY_READ_BUF_SIZE 8192 |
---|
2999 | | #endif |
---|
3000 | | |
---|
3001 | | /* Copy whatever the last rule matched to the standard output. */ |
---|
3002 | | #ifndef ECHO |
---|
3003 | | /* This used to be an fputs(), but since the string might contain NUL's, |
---|
3004 | | * we now use fwrite(). |
---|
3005 | | */ |
---|
3006 | | #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0) |
---|
3007 | | #endif |
---|
3008 | | |
---|
3009 | | /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, |
---|
3010 | | * is returned in "result". |
---|
3011 | | */ |
---|
3012 | | #ifndef YY_INPUT |
---|
3013 | | #define YY_INPUT(buf,result,max_size) \ |
---|
3014 | | if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ |
---|
3015 | | { \ |
---|
3016 | | int c = '*'; \ |
---|
3017 | | size_t n; \ |
---|
3018 | | for ( n = 0; n < max_size && \ |
---|
3019 | | (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ |
---|
3020 | | buf[n] = (char) c; \ |
---|
3021 | | if ( c == '\n' ) \ |
---|
3022 | | buf[n++] = (char) c; \ |
---|
3023 | | if ( c == EOF && ferror( yyin ) ) \ |
---|
3024 | | YY_FATAL_ERROR( "input in flex scanner failed" ); \ |
---|
3025 | | result = n; \ |
---|
3026 | | } \ |
---|
3027 | | else \ |
---|
3028 | | { \ |
---|
3029 | | errno=0; \ |
---|
3030 | | while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ |
---|
3031 | | { \ |
---|
3032 | | if( errno != EINTR) \ |
---|
3033 | | { \ |
---|
3034 | | YY_FATAL_ERROR( "input in flex scanner failed" ); \ |
---|
3035 | | break; \ |
---|
3036 | | } \ |
---|
3037 | | errno=0; \ |
---|
3038 | | clearerr(yyin); \ |
---|
3039 | | } \ |
---|
3040 | | }\ |
---|
3041 | | \ |
---|
3042 | | |
---|
3043 | | #endif |
---|
3044 | | |
---|
3045 | | /* No semi-colon after return; correct usage is to write "yyterminate();" - |
---|
3046 | | * we don't want an extra ';' after the "return" because that will cause |
---|
3047 | | * some compilers to complain about unreachable statements. |
---|
3048 | | */ |
---|
3049 | | #ifndef yyterminate |
---|
3050 | | #define yyterminate() return YY_NULL |
---|
3051 | | #endif |
---|
3052 | | |
---|
3053 | | /* Number of entries by which start-condition stack grows. */ |
---|
3054 | | #ifndef YY_START_STACK_INCR |
---|
3055 | | #define YY_START_STACK_INCR 25 |
---|
3056 | | #endif |
---|
3057 | | |
---|
3058 | | /* Report a fatal error. */ |
---|
3059 | | #ifndef YY_FATAL_ERROR |
---|
3060 | | #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) |
---|
3061 | | #endif |
---|
3062 | | |
---|
3063 | | /* end tables serialization structures and prototypes */ |
---|
3064 | | |
---|
3065 | | /* Default declaration of generated scanner - a define so the user can |
---|
3066 | | * easily add parameters. |
---|
3067 | | */ |
---|
3068 | | #ifndef YY_DECL |
---|
3069 | | #define YY_DECL_IS_OURS 1 |
---|
3070 | | |
---|
3071 | | extern int yylex (void); |
---|
3072 | | |
---|
3073 | | #define YY_DECL int yylex (void) |
---|
3074 | | #endif /* !YY_DECL */ |
---|
3075 | | |
---|
3076 | | /* Code executed at the beginning of each rule, after yytext and yyleng |
---|
3077 | | * have been set up. |
---|
3078 | | */ |
---|
3079 | | #ifndef YY_USER_ACTION |
---|
3080 | | #define YY_USER_ACTION |
---|
3081 | | #endif |
---|
3082 | | |
---|
3083 | | /* Code executed at the end of each rule. */ |
---|
3084 | | #ifndef YY_BREAK |
---|
3085 | | #define YY_BREAK break; |
---|
3086 | | #endif |
---|
3087 | | |
---|
3088 | | #define YY_RULE_SETUP \ |
---|
3089 | | YY_USER_ACTION |
---|
3090 | | |
---|
3091 | | /** The main scanner function which does all the work. |
---|
3092 | | */ |
---|
3093 | | YY_DECL |
---|
3094 | | { |
---|
3095 | | register yy_state_type yy_current_state; |
---|
3096 | | register char *yy_cp, *yy_bp; |
---|
3097 | | register int yy_act; |
---|
3098 | | |
---|
3099 | | #line 1 "conftest.l" |
---|
3100 | | |
---|
3101 | | #line 653 "lex.yy.c" |
---|
3102 | | |
---|
3103 | | if ( !(yy_init) ) |
---|
3104 | | { |
---|
3105 | | (yy_init) = 1; |
---|
3106 | | |
---|
3107 | | #ifdef YY_USER_INIT |
---|
3108 | | YY_USER_INIT; |
---|
3109 | | #endif |
---|
3110 | | |
---|
3111 | | /* Create the reject buffer large enough to save one state per allowed character. */ |
---|
3112 | | if ( ! (yy_state_buf) ) |
---|
3113 | | (yy_state_buf) = (yy_state_type *)yyalloc(YY_STATE_BUF_SIZE ); |
---|
3114 | | if ( ! (yy_state_buf) ) |
---|
3115 | | YY_FATAL_ERROR( "out of dynamic memory in yylex()" ); |
---|
3116 | | |
---|
3117 | | if ( ! (yy_start) ) |
---|
3118 | | (yy_start) = 1; /* first start state */ |
---|
3119 | | |
---|
3120 | | if ( ! yyin ) |
---|
3121 | | yyin = stdin; |
---|
3122 | | |
---|
3123 | | if ( ! yyout ) |
---|
3124 | | yyout = stdout; |
---|
3125 | | |
---|
3126 | | if ( ! YY_CURRENT_BUFFER ) { |
---|
3127 | | yyensure_buffer_stack (); |
---|
3128 | | YY_CURRENT_BUFFER_LVALUE = |
---|
3129 | | yy_create_buffer(yyin,YY_BUF_SIZE ); |
---|
3130 | | } |
---|
3131 | | |
---|
3132 | | yy_load_buffer_state( ); |
---|
3133 | | } |
---|
3134 | | |
---|
3135 | | while ( 1 ) /* loops until end-of-file is reached */ |
---|
3136 | | { |
---|
3137 | | (yy_more_len) = 0; |
---|
3138 | | if ( (yy_more_flag) ) |
---|
3139 | | { |
---|
3140 | | (yy_more_len) = (yy_c_buf_p) - (yytext_ptr); |
---|
3141 | | (yy_more_flag) = 0; |
---|
3142 | | } |
---|
3143 | | yy_cp = (yy_c_buf_p); |
---|
3144 | | |
---|
3145 | | /* Support of yytext. */ |
---|
3146 | | *yy_cp = (yy_hold_char); |
---|
3147 | | |
---|
3148 | | /* yy_bp points to the position in yy_ch_buf of the start of |
---|
3149 | | * the current run. |
---|
3150 | | */ |
---|
3151 | | yy_bp = yy_cp; |
---|
3152 | | |
---|
3153 | | yy_current_state = (yy_start); |
---|
3154 | | |
---|
3155 | | (yy_state_ptr) = (yy_state_buf); |
---|
3156 | | *(yy_state_ptr)++ = yy_current_state; |
---|
3157 | | |
---|
3158 | | yy_match: |
---|
3159 | | do |
---|
3160 | | { |
---|
3161 | | register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; |
---|
3162 | | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
---|
3163 | | { |
---|
3164 | | yy_current_state = (int) yy_def[yy_current_state]; |
---|
3165 | | if ( yy_current_state >= 13 ) |
---|
3166 | | yy_c = yy_meta[(unsigned int) yy_c]; |
---|
3167 | | } |
---|
3168 | | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; |
---|
3169 | | *(yy_state_ptr)++ = yy_current_state; |
---|
3170 | | ++yy_cp; |
---|
3171 | | } |
---|
3172 | | while ( yy_base[yy_current_state] != 10 ); |
---|
3173 | | |
---|
3174 | | yy_find_action: |
---|
3175 | | yy_current_state = *--(yy_state_ptr); |
---|
3176 | | (yy_lp) = yy_accept[yy_current_state]; |
---|
3177 | | find_rule: /* we branch to this label when backing up */ |
---|
3178 | | for ( ; ; ) /* until we find what rule we matched */ |
---|
3179 | | { |
---|
3180 | | if ( (yy_lp) && (yy_lp) < yy_accept[yy_current_state + 1] ) |
---|
3181 | | { |
---|
3182 | | yy_act = yy_acclist[(yy_lp)]; |
---|
3183 | | { |
---|
3184 | | (yy_full_match) = yy_cp; |
---|
3185 | | break; |
---|
3186 | | } |
---|
3187 | | } |
---|
3188 | | --yy_cp; |
---|
3189 | | yy_current_state = *--(yy_state_ptr); |
---|
3190 | | (yy_lp) = yy_accept[yy_current_state]; |
---|
3191 | | } |
---|
3192 | | |
---|
3193 | | YY_DO_BEFORE_ACTION; |
---|
3194 | | |
---|
3195 | | do_action: /* This label is used only to access EOF actions. */ |
---|
3196 | | |
---|
3197 | | switch ( yy_act ) |
---|
3198 | | { /* beginning of action switch */ |
---|
3199 | | case 1: |
---|
3200 | | YY_RULE_SETUP |
---|
3201 | | #line 2 "conftest.l" |
---|
3202 | | { ECHO; } |
---|
3203 | | YY_BREAK |
---|
3204 | | case 2: |
---|
3205 | | YY_RULE_SETUP |
---|
3206 | | #line 3 "conftest.l" |
---|
3207 | | { REJECT; } |
---|
3208 | | YY_BREAK |
---|
3209 | | case 3: |
---|
3210 | | YY_RULE_SETUP |
---|
3211 | | #line 4 "conftest.l" |
---|
3212 | | { yymore (); } |
---|
3213 | | YY_BREAK |
---|
3214 | | case 4: |
---|
3215 | | YY_RULE_SETUP |
---|
3216 | | #line 5 "conftest.l" |
---|
3217 | | { yyless (1); } |
---|
3218 | | YY_BREAK |
---|
3219 | | case 5: |
---|
3220 | | YY_RULE_SETUP |
---|
3221 | | #line 6 "conftest.l" |
---|
3222 | | { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ |
---|
3223 | | yyless ((input () != 0)); } |
---|
3224 | | YY_BREAK |
---|
3225 | | case 6: |
---|
3226 | | YY_RULE_SETUP |
---|
3227 | | #line 8 "conftest.l" |
---|
3228 | | { unput (yytext[0]); } |
---|
3229 | | YY_BREAK |
---|
3230 | | case 7: |
---|
3231 | | YY_RULE_SETUP |
---|
3232 | | #line 9 "conftest.l" |
---|
3233 | | { BEGIN INITIAL; } |
---|
3234 | | YY_BREAK |
---|
3235 | | case 8: |
---|
3236 | | YY_RULE_SETUP |
---|
3237 | | #line 10 "conftest.l" |
---|
3238 | | ECHO; |
---|
3239 | | YY_BREAK |
---|
3240 | | #line 792 "lex.yy.c" |
---|
3241 | | case YY_STATE_EOF(INITIAL): |
---|
3242 | | yyterminate(); |
---|
3243 | | |
---|
3244 | | case YY_END_OF_BUFFER: |
---|
3245 | | { |
---|
3246 | | /* Amount of text matched not including the EOB char. */ |
---|
3247 | | int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1; |
---|
3248 | | |
---|
3249 | | /* Undo the effects of YY_DO_BEFORE_ACTION. */ |
---|
3250 | | *yy_cp = (yy_hold_char); |
---|
3251 | | YY_RESTORE_YY_MORE_OFFSET |
---|
3252 | | |
---|
3253 | | if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) |
---|
3254 | | { |
---|
3255 | | /* We're scanning a new file or input source. It's |
---|
3256 | | * possible that this happened because the user |
---|
3257 | | * just pointed yyin at a new source and called |
---|
3258 | | * yylex(). If so, then we have to assure |
---|
3259 | | * consistency between YY_CURRENT_BUFFER and our |
---|
3260 | | * globals. Here is the right place to do so, because |
---|
3261 | | * this is the first action (other than possibly a |
---|
3262 | | * back-up) that will match for the new input source. |
---|
3263 | | */ |
---|
3264 | | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; |
---|
3265 | | YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; |
---|
3266 | | YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; |
---|
3267 | | } |
---|
3268 | | |
---|
3269 | | /* Note that here we test for yy_c_buf_p "<=" to the position |
---|
3270 | | * of the first EOB in the buffer, since yy_c_buf_p will |
---|
3271 | | * already have been incremented past the NUL character |
---|
3272 | | * (since all states make transitions on EOB to the |
---|
3273 | | * end-of-buffer state). Contrast this with the test |
---|
3274 | | * in input(). |
---|
3275 | | */ |
---|
3276 | | if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) |
---|
3277 | | { /* This was really a NUL. */ |
---|
3278 | | yy_state_type yy_next_state; |
---|
3279 | | |
---|
3280 | | (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; |
---|
3281 | | |
---|
3282 | | yy_current_state = yy_get_previous_state( ); |
---|
3283 | | |
---|
3284 | | /* Okay, we're now positioned to make the NUL |
---|
3285 | | * transition. We couldn't have |
---|
3286 | | * yy_get_previous_state() go ahead and do it |
---|
3287 | | * for us because it doesn't know how to deal |
---|
3288 | | * with the possibility of jamming (and we don't |
---|
3289 | | * want to build jamming into it because then it |
---|
3290 | | * will run more slowly). |
---|
3291 | | */ |
---|
3292 | | |
---|
3293 | | yy_next_state = yy_try_NUL_trans( yy_current_state ); |
---|
3294 | | |
---|
3295 | | yy_bp = (yytext_ptr) + YY_MORE_ADJ; |
---|
3296 | | |
---|
3297 | | if ( yy_next_state ) |
---|
3298 | | { |
---|
3299 | | /* Consume the NUL. */ |
---|
3300 | | yy_cp = ++(yy_c_buf_p); |
---|
3301 | | yy_current_state = yy_next_state; |
---|
3302 | | goto yy_match; |
---|
3303 | | } |
---|
3304 | | |
---|
3305 | | else |
---|
3306 | | { |
---|
3307 | | yy_cp = (yy_c_buf_p); |
---|
3308 | | goto yy_find_action; |
---|
3309 | | } |
---|
3310 | | } |
---|
3311 | | |
---|
3312 | | else switch ( yy_get_next_buffer( ) ) |
---|
3313 | | { |
---|
3314 | | case EOB_ACT_END_OF_FILE: |
---|
3315 | | { |
---|
3316 | | (yy_did_buffer_switch_on_eof) = 0; |
---|
3317 | | |
---|
3318 | | if ( yywrap( ) ) |
---|
3319 | | { |
---|
3320 | | /* Note: because we've taken care in |
---|
3321 | | * yy_get_next_buffer() to have set up |
---|
3322 | | * yytext, we can now set up |
---|
3323 | | * yy_c_buf_p so that if some total |
---|
3324 | | * hoser (like flex itself) wants to |
---|
3325 | | * call the scanner after we return the |
---|
3326 | | * YY_NULL, it'll still work - another |
---|
3327 | | * YY_NULL will get returned. |
---|
3328 | | */ |
---|
3329 | | (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; |
---|
3330 | | |
---|
3331 | | yy_act = YY_STATE_EOF(YY_START); |
---|
3332 | | goto do_action; |
---|
3333 | | } |
---|
3334 | | |
---|
3335 | | else |
---|
3336 | | { |
---|
3337 | | if ( ! (yy_did_buffer_switch_on_eof) ) |
---|
3338 | | YY_NEW_FILE; |
---|
3339 | | } |
---|
3340 | | break; |
---|
3341 | | } |
---|
3342 | | |
---|
3343 | | case EOB_ACT_CONTINUE_SCAN: |
---|
3344 | | (yy_c_buf_p) = |
---|
3345 | | (yytext_ptr) + yy_amount_of_matched_text; |
---|
3346 | | |
---|
3347 | | yy_current_state = yy_get_previous_state( ); |
---|
3348 | | |
---|
3349 | | yy_cp = (yy_c_buf_p); |
---|
3350 | | yy_bp = (yytext_ptr) + YY_MORE_ADJ; |
---|
3351 | | goto yy_match; |
---|
3352 | | |
---|
3353 | | case EOB_ACT_LAST_MATCH: |
---|
3354 | | (yy_c_buf_p) = |
---|
3355 | | &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; |
---|
3356 | | |
---|
3357 | | yy_current_state = yy_get_previous_state( ); |
---|
3358 | | |
---|
3359 | | yy_cp = (yy_c_buf_p); |
---|
3360 | | yy_bp = (yytext_ptr) + YY_MORE_ADJ; |
---|
3361 | | goto yy_find_action; |
---|
3362 | | } |
---|
3363 | | break; |
---|
3364 | | } |
---|
3365 | | |
---|
3366 | | default: |
---|
3367 | | YY_FATAL_ERROR( |
---|
3368 | | "fatal flex scanner internal error--no action found" ); |
---|
3369 | | } /* end of action switch */ |
---|
3370 | | } /* end of scanning one token */ |
---|
3371 | | } /* end of yylex */ |
---|
3372 | | |
---|
3373 | | /* yy_get_next_buffer - try to read in a new buffer |
---|
3374 | | * |
---|
3375 | | * Returns a code representing an action: |
---|
3376 | | * EOB_ACT_LAST_MATCH - |
---|
3377 | | * EOB_ACT_CONTINUE_SCAN - continue scanning from current position |
---|
3378 | | * EOB_ACT_END_OF_FILE - end of file |
---|
3379 | | */ |
---|
3380 | | static int yy_get_next_buffer (void) |
---|
3381 | | { |
---|
3382 | | register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; |
---|
3383 | | register char *source = (yytext_ptr); |
---|
3384 | | register int number_to_move, i; |
---|
3385 | | int ret_val; |
---|
3386 | | |
---|
3387 | | if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) |
---|
3388 | | YY_FATAL_ERROR( |
---|
3389 | | "fatal flex scanner internal error--end of buffer missed" ); |
---|
3390 | | |
---|
3391 | | if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) |
---|
3392 | | { /* Don't try to fill the buffer, so this is an EOF. */ |
---|
3393 | | if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 ) |
---|
3394 | | { |
---|
3395 | | /* We matched a single character, the EOB, so |
---|
3396 | | * treat this as a final EOF. |
---|
3397 | | */ |
---|
3398 | | return EOB_ACT_END_OF_FILE; |
---|
3399 | | } |
---|
3400 | | |
---|
3401 | | else |
---|
3402 | | { |
---|
3403 | | /* We matched some text prior to the EOB, first |
---|
3404 | | * process it. |
---|
3405 | | */ |
---|
3406 | | return EOB_ACT_LAST_MATCH; |
---|
3407 | | } |
---|
3408 | | } |
---|
3409 | | |
---|
3410 | | /* Try to read more data. */ |
---|
3411 | | |
---|
3412 | | /* First move last chars to start of buffer. */ |
---|
3413 | | number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1; |
---|
3414 | | |
---|
3415 | | for ( i = 0; i < number_to_move; ++i ) |
---|
3416 | | *(dest++) = *(source++); |
---|
3417 | | |
---|
3418 | | if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) |
---|
3419 | | /* don't do the read, it's not guaranteed to return an EOF, |
---|
3420 | | * just force an EOF |
---|
3421 | | */ |
---|
3422 | | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0; |
---|
3423 | | |
---|
3424 | | else |
---|
3425 | | { |
---|
3426 | | yy_size_t num_to_read = |
---|
3427 | | YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; |
---|
3428 | | |
---|
3429 | | while ( num_to_read <= 0 ) |
---|
3430 | | { /* Not enough room in the buffer - grow it. */ |
---|
3431 | | |
---|
3432 | | YY_FATAL_ERROR( |
---|
3433 | | "input buffer overflow, can't enlarge buffer because scanner uses REJECT" ); |
---|
3434 | | |
---|
3435 | | } |
---|
3436 | | |
---|
3437 | | if ( num_to_read > YY_READ_BUF_SIZE ) |
---|
3438 | | num_to_read = YY_READ_BUF_SIZE; |
---|
3439 | | |
---|
3440 | | /* Read in more data. */ |
---|
3441 | | YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), |
---|
3442 | | (yy_n_chars), num_to_read ); |
---|
3443 | | |
---|
3444 | | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); |
---|
3445 | | } |
---|
3446 | | |
---|
3447 | | if ( (yy_n_chars) == 0 ) |
---|
3448 | | { |
---|
3449 | | if ( number_to_move == YY_MORE_ADJ ) |
---|
3450 | | { |
---|
3451 | | ret_val = EOB_ACT_END_OF_FILE; |
---|
3452 | | yyrestart(yyin ); |
---|
3453 | | } |
---|
3454 | | |
---|
3455 | | else |
---|
3456 | | { |
---|
3457 | | ret_val = EOB_ACT_LAST_MATCH; |
---|
3458 | | YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = |
---|
3459 | | YY_BUFFER_EOF_PENDING; |
---|
3460 | | } |
---|
3461 | | } |
---|
3462 | | |
---|
3463 | | else |
---|
3464 | | ret_val = EOB_ACT_CONTINUE_SCAN; |
---|
3465 | | |
---|
3466 | | if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { |
---|
3467 | | /* Extend the array by 50%, plus the number we really need. */ |
---|
3468 | | yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); |
---|
3469 | | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ); |
---|
3470 | | if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) |
---|
3471 | | YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); |
---|
3472 | | } |
---|
3473 | | |
---|
3474 | | (yy_n_chars) += number_to_move; |
---|
3475 | | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; |
---|
3476 | | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; |
---|
3477 | | |
---|
3478 | | (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; |
---|
3479 | | |
---|
3480 | | return ret_val; |
---|
3481 | | } |
---|
3482 | | |
---|
3483 | | /* yy_get_previous_state - get the state just before the EOB char was reached */ |
---|
3484 | | |
---|
3485 | | static yy_state_type yy_get_previous_state (void) |
---|
3486 | | { |
---|
3487 | | register yy_state_type yy_current_state; |
---|
3488 | | register char *yy_cp; |
---|
3489 | | |
---|
3490 | | yy_current_state = (yy_start); |
---|
3491 | | |
---|
3492 | | (yy_state_ptr) = (yy_state_buf); |
---|
3493 | | *(yy_state_ptr)++ = yy_current_state; |
---|
3494 | | |
---|
3495 | | for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) |
---|
3496 | | { |
---|
3497 | | register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); |
---|
3498 | | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
---|
3499 | | { |
---|
3500 | | yy_current_state = (int) yy_def[yy_current_state]; |
---|
3501 | | if ( yy_current_state >= 13 ) |
---|
3502 | | yy_c = yy_meta[(unsigned int) yy_c]; |
---|
3503 | | } |
---|
3504 | | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; |
---|
3505 | | *(yy_state_ptr)++ = yy_current_state; |
---|
3506 | | } |
---|
3507 | | |
---|
3508 | | return yy_current_state; |
---|
3509 | | } |
---|
3510 | | |
---|
3511 | | /* yy_try_NUL_trans - try to make a transition on the NUL character |
---|
3512 | | * |
---|
3513 | | * synopsis |
---|
3514 | | * next_state = yy_try_NUL_trans( current_state ); |
---|
3515 | | */ |
---|
3516 | | static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) |
---|
3517 | | { |
---|
3518 | | register int yy_is_jam; |
---|
3519 | | |
---|
3520 | | register YY_CHAR yy_c = 1; |
---|
3521 | | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
---|
3522 | | { |
---|
3523 | | yy_current_state = (int) yy_def[yy_current_state]; |
---|
3524 | | if ( yy_current_state >= 13 ) |
---|
3525 | | yy_c = yy_meta[(unsigned int) yy_c]; |
---|
3526 | | } |
---|
3527 | | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; |
---|
3528 | | yy_is_jam = (yy_current_state == 12); |
---|
3529 | | if ( ! yy_is_jam ) |
---|
3530 | | *(yy_state_ptr)++ = yy_current_state; |
---|
3531 | | |
---|
3532 | | return yy_is_jam ? 0 : yy_current_state; |
---|
3533 | | } |
---|
3534 | | |
---|
3535 | | static void yyunput (int c, register char * yy_bp ) |
---|
3536 | | { |
---|
3537 | | register char *yy_cp; |
---|
3538 | | |
---|
3539 | | yy_cp = (yy_c_buf_p); |
---|
3540 | | |
---|
3541 | | /* undo effects of setting up yytext */ |
---|
3542 | | *yy_cp = (yy_hold_char); |
---|
3543 | | |
---|
3544 | | if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) |
---|
3545 | | { /* need to shift things up to make room */ |
---|
3546 | | /* +2 for EOB chars. */ |
---|
3547 | | register yy_size_t number_to_move = (yy_n_chars) + 2; |
---|
3548 | | register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ |
---|
3549 | | YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; |
---|
3550 | | register char *source = |
---|
3551 | | &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]; |
---|
3552 | | |
---|
3553 | | while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) |
---|
3554 | | *--dest = *--source; |
---|
3555 | | |
---|
3556 | | yy_cp += (int) (dest - source); |
---|
3557 | | yy_bp += (int) (dest - source); |
---|
3558 | | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = |
---|
3559 | | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size; |
---|
3560 | | |
---|
3561 | | if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) |
---|
3562 | | YY_FATAL_ERROR( "flex scanner push-back overflow" ); |
---|
3563 | | } |
---|
3564 | | |
---|
3565 | | *--yy_cp = (char) c; |
---|
3566 | | |
---|
3567 | | (yytext_ptr) = yy_bp; |
---|
3568 | | (yy_hold_char) = *yy_cp; |
---|
3569 | | (yy_c_buf_p) = yy_cp; |
---|
3570 | | } |
---|
3571 | | |
---|
3572 | | #ifndef YY_NO_INPUT |
---|
3573 | | #ifdef __cplusplus |
---|
3574 | | static int yyinput (void) |
---|
3575 | | #else |
---|
3576 | | static int input (void) |
---|
3577 | | #endif |
---|
3578 | | |
---|
3579 | | { |
---|
3580 | | int c; |
---|
3581 | | |
---|
3582 | | *(yy_c_buf_p) = (yy_hold_char); |
---|
3583 | | |
---|
3584 | | if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) |
---|
3585 | | { |
---|
3586 | | /* yy_c_buf_p now points to the character we want to return. |
---|
3587 | | * If this occurs *before* the EOB characters, then it's a |
---|
3588 | | * valid NUL; if not, then we've hit the end of the buffer. |
---|
3589 | | */ |
---|
3590 | | if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) |
---|
3591 | | /* This was really a NUL. */ |
---|
3592 | | *(yy_c_buf_p) = '\0'; |
---|
3593 | | |
---|
3594 | | else |
---|
3595 | | { /* need more input */ |
---|
3596 | | yy_size_t offset = (yy_c_buf_p) - (yytext_ptr); |
---|
3597 | | ++(yy_c_buf_p); |
---|
3598 | | |
---|
3599 | | switch ( yy_get_next_buffer( ) ) |
---|
3600 | | { |
---|
3601 | | case EOB_ACT_LAST_MATCH: |
---|
3602 | | /* This happens because yy_g_n_b() |
---|
3603 | | * sees that we've accumulated a |
---|
3604 | | * token and flags that we need to |
---|
3605 | | * try matching the token before |
---|
3606 | | * proceeding. But for input(), |
---|
3607 | | * there's no matching to consider. |
---|
3608 | | * So convert the EOB_ACT_LAST_MATCH |
---|
3609 | | * to EOB_ACT_END_OF_FILE. |
---|
3610 | | */ |
---|
3611 | | |
---|
3612 | | /* Reset buffer status. */ |
---|
3613 | | yyrestart(yyin ); |
---|
3614 | | |
---|
3615 | | /*FALLTHROUGH*/ |
---|
3616 | | |
---|
3617 | | case EOB_ACT_END_OF_FILE: |
---|
3618 | | { |
---|
3619 | | if ( yywrap( ) ) |
---|
3620 | | return EOF; |
---|
3621 | | |
---|
3622 | | if ( ! (yy_did_buffer_switch_on_eof) ) |
---|
3623 | | YY_NEW_FILE; |
---|
3624 | | #ifdef __cplusplus |
---|
3625 | | return yyinput(); |
---|
3626 | | #else |
---|
3627 | | return input(); |
---|
3628 | | #endif |
---|
3629 | | } |
---|
3630 | | |
---|
3631 | | case EOB_ACT_CONTINUE_SCAN: |
---|
3632 | | (yy_c_buf_p) = (yytext_ptr) + offset; |
---|
3633 | | break; |
---|
3634 | | } |
---|
3635 | | } |
---|
3636 | | } |
---|
3637 | | |
---|
3638 | | c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ |
---|
3639 | | *(yy_c_buf_p) = '\0'; /* preserve yytext */ |
---|
3640 | | (yy_hold_char) = *++(yy_c_buf_p); |
---|
3641 | | |
---|
3642 | | return c; |
---|
3643 | | } |
---|
3644 | | #endif /* ifndef YY_NO_INPUT */ |
---|
3645 | | |
---|
3646 | | /** Immediately switch to a different input stream. |
---|
3647 | | * @param input_file A readable stream. |
---|
3648 | | * |
---|
3649 | | * @note This function does not reset the start condition to @c INITIAL . |
---|
3650 | | */ |
---|
3651 | | void yyrestart (FILE * input_file ) |
---|
3652 | | { |
---|
3653 | | |
---|
3654 | | if ( ! YY_CURRENT_BUFFER ){ |
---|
3655 | | yyensure_buffer_stack (); |
---|
3656 | | YY_CURRENT_BUFFER_LVALUE = |
---|
3657 | | yy_create_buffer(yyin,YY_BUF_SIZE ); |
---|
3658 | | } |
---|
3659 | | |
---|
3660 | | yy_init_buffer(YY_CURRENT_BUFFER,input_file ); |
---|
3661 | | yy_load_buffer_state( ); |
---|
3662 | | } |
---|
3663 | | |
---|
3664 | | /** Switch to a different input buffer. |
---|
3665 | | * @param new_buffer The new input buffer. |
---|
3666 | | * |
---|
3667 | | */ |
---|
3668 | | void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ) |
---|
3669 | | { |
---|
3670 | | |
---|
3671 | | /* TODO. We should be able to replace this entire function body |
---|
3672 | | * with |
---|
3673 | | * yypop_buffer_state(); |
---|
3674 | | * yypush_buffer_state(new_buffer); |
---|
3675 | | */ |
---|
3676 | | yyensure_buffer_stack (); |
---|
3677 | | if ( YY_CURRENT_BUFFER == new_buffer ) |
---|
3678 | | return; |
---|
3679 | | |
---|
3680 | | if ( YY_CURRENT_BUFFER ) |
---|
3681 | | { |
---|
3682 | | /* Flush out information for old buffer. */ |
---|
3683 | | *(yy_c_buf_p) = (yy_hold_char); |
---|
3684 | | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); |
---|
3685 | | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); |
---|
3686 | | } |
---|
3687 | | |
---|
3688 | | YY_CURRENT_BUFFER_LVALUE = new_buffer; |
---|
3689 | | yy_load_buffer_state( ); |
---|
3690 | | |
---|
3691 | | /* We don't actually know whether we did this switch during |
---|
3692 | | * EOF (yywrap()) processing, but the only time this flag |
---|
3693 | | * is looked at is after yywrap() is called, so it's safe |
---|
3694 | | * to go ahead and always set it. |
---|
3695 | | */ |
---|
3696 | | (yy_did_buffer_switch_on_eof) = 1; |
---|
3697 | | } |
---|
3698 | | |
---|
3699 | | static void yy_load_buffer_state (void) |
---|
3700 | | { |
---|
3701 | | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; |
---|
3702 | | (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; |
---|
3703 | | yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; |
---|
3704 | | (yy_hold_char) = *(yy_c_buf_p); |
---|
3705 | | } |
---|
3706 | | |
---|
3707 | | /** Allocate and initialize an input buffer state. |
---|
3708 | | * @param file A readable stream. |
---|
3709 | | * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. |
---|
3710 | | * |
---|
3711 | | * @return the allocated buffer state. |
---|
3712 | | */ |
---|
3713 | | YY_BUFFER_STATE yy_create_buffer (FILE * file, int size ) |
---|
3714 | | { |
---|
3715 | | YY_BUFFER_STATE b; |
---|
3716 | | |
---|
3717 | | b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); |
---|
3718 | | if ( ! b ) |
---|
3719 | | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); |
---|
3720 | | |
---|
3721 | | b->yy_buf_size = size; |
---|
3722 | | |
---|
3723 | | /* yy_ch_buf has to be 2 characters longer than the size given because |
---|
3724 | | * we need to put in 2 end-of-buffer characters. |
---|
3725 | | */ |
---|
3726 | | b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 ); |
---|
3727 | | if ( ! b->yy_ch_buf ) |
---|
3728 | | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); |
---|
3729 | | |
---|
3730 | | b->yy_is_our_buffer = 1; |
---|
3731 | | |
---|
3732 | | yy_init_buffer(b,file ); |
---|
3733 | | |
---|
3734 | | return b; |
---|
3735 | | } |
---|
3736 | | |
---|
3737 | | /** Destroy the buffer. |
---|
3738 | | * @param b a buffer created with yy_create_buffer() |
---|
3739 | | * |
---|
3740 | | */ |
---|
3741 | | void yy_delete_buffer (YY_BUFFER_STATE b ) |
---|
3742 | | { |
---|
3743 | | |
---|
3744 | | if ( ! b ) |
---|
3745 | | return; |
---|
3746 | | |
---|
3747 | | if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ |
---|
3748 | | YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; |
---|
3749 | | |
---|
3750 | | if ( b->yy_is_our_buffer ) |
---|
3751 | | yyfree((void *) b->yy_ch_buf ); |
---|
3752 | | |
---|
3753 | | yyfree((void *) b ); |
---|
3754 | | } |
---|
3755 | | |
---|
3756 | | /* Initializes or reinitializes a buffer. |
---|
3757 | | * This function is sometimes called more than once on the same buffer, |
---|
3758 | | * such as during a yyrestart() or at EOF. |
---|
3759 | | */ |
---|
3760 | | static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file ) |
---|
3761 | | |
---|
3762 | | { |
---|
3763 | | int oerrno = errno; |
---|
3764 | | |
---|
3765 | | yy_flush_buffer(b ); |
---|
3766 | | |
---|
3767 | | b->yy_input_file = file; |
---|
3768 | | b->yy_fill_buffer = 1; |
---|
3769 | | |
---|
3770 | | /* If b is the current buffer, then yy_init_buffer was _probably_ |
---|
3771 | | * called from yyrestart() or through yy_get_next_buffer. |
---|
3772 | | * In that case, we don't want to reset the lineno or column. |
---|
3773 | | */ |
---|
3774 | | if (b != YY_CURRENT_BUFFER){ |
---|
3775 | | b->yy_bs_lineno = 1; |
---|
3776 | | b->yy_bs_column = 0; |
---|
3777 | | } |
---|
3778 | | |
---|
3779 | | b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; |
---|
3780 | | |
---|
3781 | | errno = oerrno; |
---|
3782 | | } |
---|
3783 | | |
---|
3784 | | /** Discard all buffered characters. On the next scan, YY_INPUT will be called. |
---|
3785 | | * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. |
---|
3786 | | * |
---|
3787 | | */ |
---|
3788 | | void yy_flush_buffer (YY_BUFFER_STATE b ) |
---|
3789 | | { |
---|
3790 | | if ( ! b ) |
---|
3791 | | return; |
---|
3792 | | |
---|
3793 | | b->yy_n_chars = 0; |
---|
3794 | | |
---|
3795 | | /* We always need two end-of-buffer characters. The first causes |
---|
3796 | | * a transition to the end-of-buffer state. The second causes |
---|
3797 | | * a jam in that state. |
---|
3798 | | */ |
---|
3799 | | b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; |
---|
3800 | | b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; |
---|
3801 | | |
---|
3802 | | b->yy_buf_pos = &b->yy_ch_buf[0]; |
---|
3803 | | |
---|
3804 | | b->yy_at_bol = 1; |
---|
3805 | | b->yy_buffer_status = YY_BUFFER_NEW; |
---|
3806 | | |
---|
3807 | | if ( b == YY_CURRENT_BUFFER ) |
---|
3808 | | yy_load_buffer_state( ); |
---|
3809 | | } |
---|
3810 | | |
---|
3811 | | /** Pushes the new state onto the stack. The new state becomes |
---|
3812 | | * the current state. This function will allocate the stack |
---|
3813 | | * if necessary. |
---|
3814 | | * @param new_buffer The new state. |
---|
3815 | | * |
---|
3816 | | */ |
---|
3817 | | void yypush_buffer_state (YY_BUFFER_STATE new_buffer ) |
---|
3818 | | { |
---|
3819 | | if (new_buffer == NULL) |
---|
3820 | | return; |
---|
3821 | | |
---|
3822 | | yyensure_buffer_stack(); |
---|
3823 | | |
---|
3824 | | /* This block is copied from yy_switch_to_buffer. */ |
---|
3825 | | if ( YY_CURRENT_BUFFER ) |
---|
3826 | | { |
---|
3827 | | /* Flush out information for old buffer. */ |
---|
3828 | | *(yy_c_buf_p) = (yy_hold_char); |
---|
3829 | | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); |
---|
3830 | | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); |
---|
3831 | | } |
---|
3832 | | |
---|
3833 | | /* Only push if top exists. Otherwise, replace top. */ |
---|
3834 | | if (YY_CURRENT_BUFFER) |
---|
3835 | | (yy_buffer_stack_top)++; |
---|
3836 | | YY_CURRENT_BUFFER_LVALUE = new_buffer; |
---|
3837 | | |
---|
3838 | | /* copied from yy_switch_to_buffer. */ |
---|
3839 | | yy_load_buffer_state( ); |
---|
3840 | | (yy_did_buffer_switch_on_eof) = 1; |
---|
3841 | | } |
---|
3842 | | |
---|
3843 | | /** Removes and deletes the top of the stack, if present. |
---|
3844 | | * The next element becomes the new top. |
---|
3845 | | * |
---|
3846 | | */ |
---|
3847 | | void yypop_buffer_state (void) |
---|
3848 | | { |
---|
3849 | | if (!YY_CURRENT_BUFFER) |
---|
3850 | | return; |
---|
3851 | | |
---|
3852 | | yy_delete_buffer(YY_CURRENT_BUFFER ); |
---|
3853 | | YY_CURRENT_BUFFER_LVALUE = NULL; |
---|
3854 | | if ((yy_buffer_stack_top) > 0) |
---|
3855 | | --(yy_buffer_stack_top); |
---|
3856 | | |
---|
3857 | | if (YY_CURRENT_BUFFER) { |
---|
3858 | | yy_load_buffer_state( ); |
---|
3859 | | (yy_did_buffer_switch_on_eof) = 1; |
---|
3860 | | } |
---|
3861 | | } |
---|
3862 | | |
---|
3863 | | /* Allocates the stack if it does not exist. |
---|
3864 | | * Guarantees space for at least one push. |
---|
3865 | | */ |
---|
3866 | | static void yyensure_buffer_stack (void) |
---|
3867 | | { |
---|
3868 | | yy_size_t num_to_alloc; |
---|
3869 | | |
---|
3870 | | if (!(yy_buffer_stack)) { |
---|
3871 | | |
---|
3872 | | /* First allocation is just for 2 elements, since we don't know if this |
---|
3873 | | * scanner will even need a stack. We use 2 instead of 1 to avoid an |
---|
3874 | | * immediate realloc on the next call. |
---|
3875 | | */ |
---|
3876 | | num_to_alloc = 1; |
---|
3877 | | (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc |
---|
3878 | | (num_to_alloc * sizeof(struct yy_buffer_state*) |
---|
3879 | | ); |
---|
3880 | | if ( ! (yy_buffer_stack) ) |
---|
3881 | | YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); |
---|
3882 | | |
---|
3883 | | memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); |
---|
3884 | | |
---|
3885 | | (yy_buffer_stack_max) = num_to_alloc; |
---|
3886 | | (yy_buffer_stack_top) = 0; |
---|
3887 | | return; |
---|
3888 | | } |
---|
3889 | | |
---|
3890 | | if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ |
---|
3891 | | |
---|
3892 | | /* Increase the buffer to prepare for a possible push. */ |
---|
3893 | | int grow_size = 8 /* arbitrary grow size */; |
---|
3894 | | |
---|
3895 | | num_to_alloc = (yy_buffer_stack_max) + grow_size; |
---|
3896 | | (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc |
---|
3897 | | ((yy_buffer_stack), |
---|
3898 | | num_to_alloc * sizeof(struct yy_buffer_state*) |
---|
3899 | | ); |
---|
3900 | | if ( ! (yy_buffer_stack) ) |
---|
3901 | | YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); |
---|
3902 | | |
---|
3903 | | /* zero only the new slots.*/ |
---|
3904 | | memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); |
---|
3905 | | (yy_buffer_stack_max) = num_to_alloc; |
---|
3906 | | } |
---|
3907 | | } |
---|
3908 | | |
---|
3909 | | /** Setup the input buffer state to scan directly from a user-specified character buffer. |
---|
3910 | | * @param base the character buffer |
---|
3911 | | * @param size the size in bytes of the character buffer |
---|
3912 | | * |
---|
3913 | | * @return the newly allocated buffer state object. |
---|
3914 | | */ |
---|
3915 | | YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size ) |
---|
3916 | | { |
---|
3917 | | YY_BUFFER_STATE b; |
---|
3918 | | |
---|
3919 | | if ( size < 2 || |
---|
3920 | | base[size-2] != YY_END_OF_BUFFER_CHAR || |
---|
3921 | | base[size-1] != YY_END_OF_BUFFER_CHAR ) |
---|
3922 | | /* They forgot to leave room for the EOB's. */ |
---|
3923 | | return 0; |
---|
3924 | | |
---|
3925 | | b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); |
---|
3926 | | if ( ! b ) |
---|
3927 | | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); |
---|
3928 | | |
---|
3929 | | b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ |
---|
3930 | | b->yy_buf_pos = b->yy_ch_buf = base; |
---|
3931 | | b->yy_is_our_buffer = 0; |
---|
3932 | | b->yy_input_file = 0; |
---|
3933 | | b->yy_n_chars = b->yy_buf_size; |
---|
3934 | | b->yy_is_interactive = 0; |
---|
3935 | | b->yy_at_bol = 1; |
---|
3936 | | b->yy_fill_buffer = 0; |
---|
3937 | | b->yy_buffer_status = YY_BUFFER_NEW; |
---|
3938 | | |
---|
3939 | | yy_switch_to_buffer(b ); |
---|
3940 | | |
---|
3941 | | return b; |
---|
3942 | | } |
---|
3943 | | |
---|
3944 | | /** Setup the input buffer state to scan a string. The next call to yylex() will |
---|
3945 | | * scan from a @e copy of @a str. |
---|
3946 | | * @param yystr a NUL-terminated string to scan |
---|
3947 | | * |
---|
3948 | | * @return the newly allocated buffer state object. |
---|
3949 | | * @note If you want to scan bytes that may contain NUL values, then use |
---|
3950 | | * yy_scan_bytes() instead. |
---|
3951 | | */ |
---|
3952 | | YY_BUFFER_STATE yy_scan_string (yyconst char * yystr ) |
---|
3953 | | { |
---|
3954 | | |
---|
3955 | | return yy_scan_bytes(yystr,strlen(yystr) ); |
---|
3956 | | } |
---|
3957 | | |
---|
3958 | | /** Setup the input buffer state to scan the given bytes. The next call to yylex() will |
---|
3959 | | * scan from a @e copy of @a bytes. |
---|
3960 | | * @param yybytes the byte buffer to scan |
---|
3961 | | * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. |
---|
3962 | | * |
---|
3963 | | * @return the newly allocated buffer state object. |
---|
3964 | | */ |
---|
3965 | | YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len ) |
---|
3966 | | { |
---|
3967 | | YY_BUFFER_STATE b; |
---|
3968 | | char *buf; |
---|
3969 | | yy_size_t n; |
---|
3970 | | int i; |
---|
3971 | | |
---|
3972 | | /* Get memory for full buffer, including space for trailing EOB's. */ |
---|
3973 | | n = _yybytes_len + 2; |
---|
3974 | | buf = (char *) yyalloc(n ); |
---|
3975 | | if ( ! buf ) |
---|
3976 | | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); |
---|
3977 | | |
---|
3978 | | for ( i = 0; i < _yybytes_len; ++i ) |
---|
3979 | | buf[i] = yybytes[i]; |
---|
3980 | | |
---|
3981 | | buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; |
---|
3982 | | |
---|
3983 | | b = yy_scan_buffer(buf,n ); |
---|
3984 | | if ( ! b ) |
---|
3985 | | YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); |
---|
3986 | | |
---|
3987 | | /* It's okay to grow etc. this buffer, and we should throw it |
---|
3988 | | * away when we're done. |
---|
3989 | | */ |
---|
3990 | | b->yy_is_our_buffer = 1; |
---|
3991 | | |
---|
3992 | | return b; |
---|
3993 | | } |
---|
3994 | | |
---|
3995 | | #ifndef YY_EXIT_FAILURE |
---|
3996 | | #define YY_EXIT_FAILURE 2 |
---|
3997 | | #endif |
---|
3998 | | |
---|
3999 | | static void yy_fatal_error (yyconst char* msg ) |
---|
4000 | | { |
---|
4001 | | (void) fprintf( stderr, "%s\n", msg ); |
---|
4002 | | exit( YY_EXIT_FAILURE ); |
---|
4003 | | } |
---|
4004 | | |
---|
4005 | | /* Redefine yyless() so it works in section 3 code. */ |
---|
4006 | | |
---|
4007 | | #undef yyless |
---|
4008 | | #define yyless(n) \ |
---|
4009 | | do \ |
---|
4010 | | { \ |
---|
4011 | | /* Undo effects of setting up yytext. */ \ |
---|
4012 | | int yyless_macro_arg = (n); \ |
---|
4013 | | YY_LESS_LINENO(yyless_macro_arg);\ |
---|
4014 | | yytext[yyleng] = (yy_hold_char); \ |
---|
4015 | | (yy_c_buf_p) = yytext + yyless_macro_arg; \ |
---|
4016 | | (yy_hold_char) = *(yy_c_buf_p); \ |
---|
4017 | | *(yy_c_buf_p) = '\0'; \ |
---|
4018 | | yyleng = yyless_macro_arg; \ |
---|
4019 | | } \ |
---|
4020 | | while ( 0 ) |
---|
4021 | | |
---|
4022 | | /* Accessor methods (get/set functions) to struct members. */ |
---|
4023 | | |
---|
4024 | | /** Get the current line number. |
---|
4025 | | * |
---|
4026 | | */ |
---|
4027 | | int yyget_lineno (void) |
---|
4028 | | { |
---|
4029 | | |
---|
4030 | | return yylineno; |
---|
4031 | | } |
---|
4032 | | |
---|
4033 | | /** Get the input stream. |
---|
4034 | | * |
---|
4035 | | */ |
---|
4036 | | FILE *yyget_in (void) |
---|
4037 | | { |
---|
4038 | | return yyin; |
---|
4039 | | } |
---|
4040 | | |
---|
4041 | | /** Get the output stream. |
---|
4042 | | * |
---|
4043 | | */ |
---|
4044 | | FILE *yyget_out (void) |
---|
4045 | | { |
---|
4046 | | return yyout; |
---|
4047 | | } |
---|
4048 | | |
---|
4049 | | /** Get the length of the current token. |
---|
4050 | | * |
---|
4051 | | */ |
---|
4052 | | yy_size_t yyget_leng (void) |
---|
4053 | | { |
---|
4054 | | return yyleng; |
---|
4055 | | } |
---|
4056 | | |
---|
4057 | | /** Get the current token. |
---|
4058 | | * |
---|
4059 | | */ |
---|
4060 | | |
---|
4061 | | char *yyget_text (void) |
---|
4062 | | { |
---|
4063 | | return yytext; |
---|
4064 | | } |
---|
4065 | | |
---|
4066 | | /** Set the current line number. |
---|
4067 | | * @param line_number |
---|
4068 | | * |
---|
4069 | | */ |
---|
4070 | | void yyset_lineno (int line_number ) |
---|
4071 | | { |
---|
4072 | | |
---|
4073 | | yylineno = line_number; |
---|
4074 | | } |
---|
4075 | | |
---|
4076 | | /** Set the input stream. This does not discard the current |
---|
4077 | | * input buffer. |
---|
4078 | | * @param in_str A readable stream. |
---|
4079 | | * |
---|
4080 | | * @see yy_switch_to_buffer |
---|
4081 | | */ |
---|
4082 | | void yyset_in (FILE * in_str ) |
---|
4083 | | { |
---|
4084 | | yyin = in_str ; |
---|
4085 | | } |
---|
4086 | | |
---|
4087 | | void yyset_out (FILE * out_str ) |
---|
4088 | | { |
---|
4089 | | yyout = out_str ; |
---|
4090 | | } |
---|
4091 | | |
---|
4092 | | int yyget_debug (void) |
---|
4093 | | { |
---|
4094 | | return yy_flex_debug; |
---|
4095 | | } |
---|
4096 | | |
---|
4097 | | void yyset_debug (int bdebug ) |
---|
4098 | | { |
---|
4099 | | yy_flex_debug = bdebug ; |
---|
4100 | | } |
---|
4101 | | |
---|
4102 | | static int yy_init_globals (void) |
---|
4103 | | { |
---|
4104 | | /* Initialization is the same as for the non-reentrant scanner. |
---|
4105 | | * This function is called from yylex_destroy(), so don't allocate here. |
---|
4106 | | */ |
---|
4107 | | |
---|
4108 | | (yy_buffer_stack) = 0; |
---|
4109 | | (yy_buffer_stack_top) = 0; |
---|
4110 | | (yy_buffer_stack_max) = 0; |
---|
4111 | | (yy_c_buf_p) = (char *) 0; |
---|
4112 | | (yy_init) = 0; |
---|
4113 | | (yy_start) = 0; |
---|
4114 | | |
---|
4115 | | (yy_state_buf) = 0; |
---|
4116 | | (yy_state_ptr) = 0; |
---|
4117 | | (yy_full_match) = 0; |
---|
4118 | | (yy_lp) = 0; |
---|
4119 | | |
---|
4120 | | /* Defined in main.c */ |
---|
4121 | | #ifdef YY_STDINIT |
---|
4122 | | yyin = stdin; |
---|
4123 | | yyout = stdout; |
---|
4124 | | #else |
---|
4125 | | yyin = (FILE *) 0; |
---|
4126 | | yyout = (FILE *) 0; |
---|
4127 | | #endif |
---|
4128 | | |
---|
4129 | | /* For future reference: Set errno on error, since we are called by |
---|
4130 | | * yylex_init() |
---|
4131 | | */ |
---|
4132 | | return 0; |
---|
4133 | | } |
---|
4134 | | |
---|
4135 | | /* yylex_destroy is for both reentrant and non-reentrant scanners. */ |
---|
4136 | | int yylex_destroy (void) |
---|
4137 | | { |
---|
4138 | | |
---|
4139 | | /* Pop the buffer stack, destroying each element. */ |
---|
4140 | | while(YY_CURRENT_BUFFER){ |
---|
4141 | | yy_delete_buffer(YY_CURRENT_BUFFER ); |
---|
4142 | | YY_CURRENT_BUFFER_LVALUE = NULL; |
---|
4143 | | yypop_buffer_state(); |
---|
4144 | | } |
---|
4145 | | |
---|
4146 | | /* Destroy the stack itself. */ |
---|
4147 | | yyfree((yy_buffer_stack) ); |
---|
4148 | | (yy_buffer_stack) = NULL; |
---|
4149 | | |
---|
4150 | | yyfree ( (yy_state_buf) ); |
---|
4151 | | (yy_state_buf) = NULL; |
---|
4152 | | |
---|
4153 | | /* Reset the globals. This is important in a non-reentrant scanner so the next time |
---|
4154 | | * yylex() is called, initialization will occur. */ |
---|
4155 | | yy_init_globals( ); |
---|
4156 | | |
---|
4157 | | return 0; |
---|
4158 | | } |
---|
4159 | | |
---|
4160 | | /* |
---|
4161 | | * Internal utility routines. |
---|
4162 | | */ |
---|
4163 | | |
---|
4164 | | #ifndef yytext_ptr |
---|
4165 | | static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) |
---|
4166 | | { |
---|
4167 | | register int i; |
---|
4168 | | for ( i = 0; i < n; ++i ) |
---|
4169 | | s1[i] = s2[i]; |
---|
4170 | | } |
---|
4171 | | #endif |
---|
4172 | | |
---|
4173 | | #ifdef YY_NEED_STRLEN |
---|
4174 | | static int yy_flex_strlen (yyconst char * s ) |
---|
4175 | | { |
---|
4176 | | register int n; |
---|
4177 | | for ( n = 0; s[n]; ++n ) |
---|
4178 | | ; |
---|
4179 | | |
---|
4180 | | return n; |
---|
4181 | | } |
---|
4182 | | #endif |
---|
4183 | | |
---|
4184 | | void *yyalloc (yy_size_t size ) |
---|
4185 | | { |
---|
4186 | | return (void *) malloc( size ); |
---|
4187 | | } |
---|
4188 | | |
---|
4189 | | void *yyrealloc (void * ptr, yy_size_t size ) |
---|
4190 | | { |
---|
4191 | | /* The cast to (char *) in the following accommodates both |
---|
4192 | | * implementations that use char* generic pointers, and those |
---|
4193 | | * that use void* generic pointers. It works with the latter |
---|
4194 | | * because both ANSI C and C++ allow castless assignment from |
---|
4195 | | * any pointer type to void*, and deal with argument conversions |
---|
4196 | | * as though doing an assignment. |
---|
4197 | | */ |
---|
4198 | | return (void *) realloc( (char *) ptr, size ); |
---|
4199 | | } |
---|
4200 | | |
---|
4201 | | void yyfree (void * ptr ) |
---|
4202 | | { |
---|
4203 | | free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ |
---|
4204 | | } |
---|
4205 | | |
---|
4206 | | #define YYTABLES_NAME "yytables" |
---|
4207 | | |
---|
4208 | | #line 10 "conftest.l" |
---|
4209 | | |
---|
4210 | | |
---|
4211 | | #ifdef YYTEXT_POINTER |
---|
4212 | | extern char *yytext; |
---|
4213 | | #endif |
---|
4214 | | int |
---|
4215 | | main (void) |
---|
4216 | | { |
---|
4217 | | return ! yylex () + ! yywrap (); |
---|
4218 | | } |
---|
4219 | configure:8127: /usr/bin/clang -o conftest -O -fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386 -arch x86_64 -fstack-protector-all -D_FORTIFY_SOURCE=2 -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 conftest.c -ll >&5 |
---|
4220 | ld: warning: ignoring file /usr/lib/libl.a, file was built for archive which is not the architecture being linked (i386): /usr/lib/libl.a |
---|
4221 | Undefined symbols for architecture i386: |
---|
4222 | "_yywrap", referenced from: |
---|
4223 | _yylex in conftest-e420bc.o |
---|
4224 | _main in conftest-e420bc.o |
---|
4225 | ld: symbol(s) not found for architecture i386 |
---|
4226 | clang: error: linker command failed with exit code 1 (use -v to see invocation) |
---|
4227 | configure:8127: $? = 1 |
---|
4228 | configure: failed program was: |
---|
4229 | | /* confdefs.h */ |
---|
4230 | | #define PACKAGE_NAME "" |
---|
4231 | | #define PACKAGE_TARNAME "" |
---|
4232 | | #define PACKAGE_VERSION "" |
---|
4233 | | #define PACKAGE_STRING "" |
---|
4234 | | #define PACKAGE_BUGREPORT "" |
---|
4235 | | #define PACKAGE_URL "" |
---|
4236 | | #define IS_DARWIN 1 |
---|
4237 | | #define STDC_HEADERS 1 |
---|
4238 | | #define HAVE_SYS_TYPES_H 1 |
---|
4239 | | #define HAVE_SYS_STAT_H 1 |
---|
4240 | | #define HAVE_STDLIB_H 1 |
---|
4241 | | #define HAVE_STRING_H 1 |
---|
4242 | | #define HAVE_MEMORY_H 1 |
---|
4243 | | #define HAVE_STRINGS_H 1 |
---|
4244 | | #define HAVE_INTTYPES_H 1 |
---|
4245 | | #define HAVE_STDINT_H 1 |
---|
4246 | | #define HAVE_UNISTD_H 1 |
---|
4247 | | #define HAVE_SYS_SDT_H 1 |
---|
4248 | | #define HAVE_STATIC_PROBES 1 |
---|
4249 | | /* end confdefs.h. */ |
---|
4250 | | |
---|
4251 | | #line 3 "lex.yy.c" |
---|
4252 | | |
---|
4253 | | #define YY_INT_ALIGNED short int |
---|
4254 | | |
---|
4255 | | /* A lexical scanner generated by flex */ |
---|
4256 | | |
---|
4257 | | #define FLEX_SCANNER |
---|
4258 | | #define YY_FLEX_MAJOR_VERSION 2 |
---|
4259 | | #define YY_FLEX_MINOR_VERSION 5 |
---|
4260 | | #define YY_FLEX_SUBMINOR_VERSION 37 |
---|
4261 | | #if YY_FLEX_SUBMINOR_VERSION > 0 |
---|
4262 | | #define FLEX_BETA |
---|
4263 | | #endif |
---|
4264 | | |
---|
4265 | | /* First, we deal with platform-specific or compiler-specific issues. */ |
---|
4266 | | |
---|
4267 | | /* begin standard C headers. */ |
---|
4268 | | #include <stdio.h> |
---|
4269 | | #include <string.h> |
---|
4270 | | #include <errno.h> |
---|
4271 | | #include <stdlib.h> |
---|
4272 | | |
---|
4273 | | /* end standard C headers. */ |
---|
4274 | | |
---|
4275 | | /* flex integer type definitions */ |
---|
4276 | | |
---|
4277 | | #ifndef FLEXINT_H |
---|
4278 | | #define FLEXINT_H |
---|
4279 | | |
---|
4280 | | /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */ |
---|
4281 | | |
---|
4282 | | #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L |
---|
4283 | | |
---|
4284 | | /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, |
---|
4285 | | * if you want the limit (max/min) macros for int types. |
---|
4286 | | */ |
---|
4287 | | #ifndef __STDC_LIMIT_MACROS |
---|
4288 | | #define __STDC_LIMIT_MACROS 1 |
---|
4289 | | #endif |
---|
4290 | | |
---|
4291 | | #include <inttypes.h> |
---|
4292 | | typedef int8_t flex_int8_t; |
---|
4293 | | typedef uint8_t flex_uint8_t; |
---|
4294 | | typedef int16_t flex_int16_t; |
---|
4295 | | typedef uint16_t flex_uint16_t; |
---|
4296 | | typedef int32_t flex_int32_t; |
---|
4297 | | typedef uint32_t flex_uint32_t; |
---|
4298 | | #else |
---|
4299 | | typedef signed char flex_int8_t; |
---|
4300 | | typedef short int flex_int16_t; |
---|
4301 | | typedef int flex_int32_t; |
---|
4302 | | typedef unsigned char flex_uint8_t; |
---|
4303 | | typedef unsigned short int flex_uint16_t; |
---|
4304 | | typedef unsigned int flex_uint32_t; |
---|
4305 | | |
---|
4306 | | /* Limits of integral types. */ |
---|
4307 | | #ifndef INT8_MIN |
---|
4308 | | #define INT8_MIN (-128) |
---|
4309 | | #endif |
---|
4310 | | #ifndef INT16_MIN |
---|
4311 | | #define INT16_MIN (-32767-1) |
---|
4312 | | #endif |
---|
4313 | | #ifndef INT32_MIN |
---|
4314 | | #define INT32_MIN (-2147483647-1) |
---|
4315 | | #endif |
---|
4316 | | #ifndef INT8_MAX |
---|
4317 | | #define INT8_MAX (127) |
---|
4318 | | #endif |
---|
4319 | | #ifndef INT16_MAX |
---|
4320 | | #define INT16_MAX (32767) |
---|
4321 | | #endif |
---|
4322 | | #ifndef INT32_MAX |
---|
4323 | | #define INT32_MAX (2147483647) |
---|
4324 | | #endif |
---|
4325 | | #ifndef UINT8_MAX |
---|
4326 | | #define UINT8_MAX (255U) |
---|
4327 | | #endif |
---|
4328 | | #ifndef UINT16_MAX |
---|
4329 | | #define UINT16_MAX (65535U) |
---|
4330 | | #endif |
---|
4331 | | #ifndef UINT32_MAX |
---|
4332 | | #define UINT32_MAX (4294967295U) |
---|
4333 | | #endif |
---|
4334 | | |
---|
4335 | | #endif /* ! C99 */ |
---|
4336 | | |
---|
4337 | | #endif /* ! FLEXINT_H */ |
---|
4338 | | |
---|
4339 | | #ifdef __cplusplus |
---|
4340 | | |
---|
4341 | | /* The "const" storage-class-modifier is valid. */ |
---|
4342 | | #define YY_USE_CONST |
---|
4343 | | |
---|
4344 | | #else /* ! __cplusplus */ |
---|
4345 | | |
---|
4346 | | /* C99 requires __STDC__ to be defined as 1. */ |
---|
4347 | | #if defined (__STDC__) |
---|
4348 | | |
---|
4349 | | #define YY_USE_CONST |
---|
4350 | | |
---|
4351 | | #endif /* defined (__STDC__) */ |
---|
4352 | | #endif /* ! __cplusplus */ |
---|
4353 | | |
---|
4354 | | #ifdef YY_USE_CONST |
---|
4355 | | #define yyconst const |
---|
4356 | | #else |
---|
4357 | | #define yyconst |
---|
4358 | | #endif |
---|
4359 | | |
---|
4360 | | /* Returned upon end-of-file. */ |
---|
4361 | | #define YY_NULL 0 |
---|
4362 | | |
---|
4363 | | /* Promotes a possibly negative, possibly signed char to an unsigned |
---|
4364 | | * integer for use as an array index. If the signed char is negative, |
---|
4365 | | * we want to instead treat it as an 8-bit unsigned char, hence the |
---|
4366 | | * double cast. |
---|
4367 | | */ |
---|
4368 | | #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) |
---|
4369 | | |
---|
4370 | | /* Enter a start condition. This macro really ought to take a parameter, |
---|
4371 | | * but we do it the disgusting crufty way forced on us by the ()-less |
---|
4372 | | * definition of BEGIN. |
---|
4373 | | */ |
---|
4374 | | #define BEGIN (yy_start) = 1 + 2 * |
---|
4375 | | |
---|
4376 | | /* Translate the current start state into a value that can be later handed |
---|
4377 | | * to BEGIN to return to the state. The YYSTATE alias is for lex |
---|
4378 | | * compatibility. |
---|
4379 | | */ |
---|
4380 | | #define YY_START (((yy_start) - 1) / 2) |
---|
4381 | | #define YYSTATE YY_START |
---|
4382 | | |
---|
4383 | | /* Action number for EOF rule of a given start state. */ |
---|
4384 | | #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) |
---|
4385 | | |
---|
4386 | | /* Special action meaning "start processing a new file". */ |
---|
4387 | | #define YY_NEW_FILE yyrestart(yyin ) |
---|
4388 | | |
---|
4389 | | #define YY_END_OF_BUFFER_CHAR 0 |
---|
4390 | | |
---|
4391 | | /* Size of default input buffer. */ |
---|
4392 | | #ifndef YY_BUF_SIZE |
---|
4393 | | #define YY_BUF_SIZE 16384 |
---|
4394 | | #endif |
---|
4395 | | |
---|
4396 | | /* The state buf must be large enough to hold one state per character in the main buffer. |
---|
4397 | | */ |
---|
4398 | | #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
---|
4399 | | |
---|
4400 | | #ifndef YY_TYPEDEF_YY_BUFFER_STATE |
---|
4401 | | #define YY_TYPEDEF_YY_BUFFER_STATE |
---|
4402 | | typedef struct yy_buffer_state *YY_BUFFER_STATE; |
---|
4403 | | #endif |
---|
4404 | | |
---|
4405 | | #ifndef YY_TYPEDEF_YY_SIZE_T |
---|
4406 | | #define YY_TYPEDEF_YY_SIZE_T |
---|
4407 | | typedef size_t yy_size_t; |
---|
4408 | | #endif |
---|
4409 | | |
---|
4410 | | extern yy_size_t yyleng; |
---|
4411 | | |
---|
4412 | | extern FILE *yyin, *yyout; |
---|
4413 | | |
---|
4414 | | #define EOB_ACT_CONTINUE_SCAN 0 |
---|
4415 | | #define EOB_ACT_END_OF_FILE 1 |
---|
4416 | | #define EOB_ACT_LAST_MATCH 2 |
---|
4417 | | |
---|
4418 | | #define YY_LESS_LINENO(n) |
---|
4419 | | |
---|
4420 | | /* Return all but the first "n" matched characters back to the input stream. */ |
---|
4421 | | #define yyless(n) \ |
---|
4422 | | do \ |
---|
4423 | | { \ |
---|
4424 | | /* Undo effects of setting up yytext. */ \ |
---|
4425 | | int yyless_macro_arg = (n); \ |
---|
4426 | | YY_LESS_LINENO(yyless_macro_arg);\ |
---|
4427 | | *yy_cp = (yy_hold_char); \ |
---|
4428 | | YY_RESTORE_YY_MORE_OFFSET \ |
---|
4429 | | (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ |
---|
4430 | | YY_DO_BEFORE_ACTION; /* set up yytext again */ \ |
---|
4431 | | } \ |
---|
4432 | | while ( 0 ) |
---|
4433 | | |
---|
4434 | | #define unput(c) yyunput( c, (yytext_ptr) ) |
---|
4435 | | |
---|
4436 | | #ifndef YY_STRUCT_YY_BUFFER_STATE |
---|
4437 | | #define YY_STRUCT_YY_BUFFER_STATE |
---|
4438 | | struct yy_buffer_state |
---|
4439 | | { |
---|
4440 | | FILE *yy_input_file; |
---|
4441 | | |
---|
4442 | | char *yy_ch_buf; /* input buffer */ |
---|
4443 | | char *yy_buf_pos; /* current position in input buffer */ |
---|
4444 | | |
---|
4445 | | /* Size of input buffer in bytes, not including room for EOB |
---|
4446 | | * characters. |
---|
4447 | | */ |
---|
4448 | | yy_size_t yy_buf_size; |
---|
4449 | | |
---|
4450 | | /* Number of characters read into yy_ch_buf, not including EOB |
---|
4451 | | * characters. |
---|
4452 | | */ |
---|
4453 | | yy_size_t yy_n_chars; |
---|
4454 | | |
---|
4455 | | /* Whether we "own" the buffer - i.e., we know we created it, |
---|
4456 | | * and can realloc() it to grow it, and should free() it to |
---|
4457 | | * delete it. |
---|
4458 | | */ |
---|
4459 | | int yy_is_our_buffer; |
---|
4460 | | |
---|
4461 | | /* Whether this is an "interactive" input source; if so, and |
---|
4462 | | * if we're using stdio for input, then we want to use getc() |
---|
4463 | | * instead of fread(), to make sure we stop fetching input after |
---|
4464 | | * each newline. |
---|
4465 | | */ |
---|
4466 | | int yy_is_interactive; |
---|
4467 | | |
---|
4468 | | /* Whether we're considered to be at the beginning of a line. |
---|
4469 | | * If so, '^' rules will be active on the next match, otherwise |
---|
4470 | | * not. |
---|
4471 | | */ |
---|
4472 | | int yy_at_bol; |
---|
4473 | | |
---|
4474 | | int yy_bs_lineno; /**< The line count. */ |
---|
4475 | | int yy_bs_column; /**< The column count. */ |
---|
4476 | | |
---|
4477 | | /* Whether to try to fill the input buffer when we reach the |
---|
4478 | | * end of it. |
---|
4479 | | */ |
---|
4480 | | int yy_fill_buffer; |
---|
4481 | | |
---|
4482 | | int yy_buffer_status; |
---|
4483 | | |
---|
4484 | | #define YY_BUFFER_NEW 0 |
---|
4485 | | #define YY_BUFFER_NORMAL 1 |
---|
4486 | | /* When an EOF's been seen but there's still some text to process |
---|
4487 | | * then we mark the buffer as YY_EOF_PENDING, to indicate that we |
---|
4488 | | * shouldn't try reading from the input source any more. We might |
---|
4489 | | * still have a bunch of tokens to match, though, because of |
---|
4490 | | * possible backing-up. |
---|
4491 | | * |
---|
4492 | | * When we actually see the EOF, we change the status to "new" |
---|
4493 | | * (via yyrestart()), so that the user can continue scanning by |
---|
4494 | | * just pointing yyin at a new input file. |
---|
4495 | | */ |
---|
4496 | | #define YY_BUFFER_EOF_PENDING 2 |
---|
4497 | | |
---|
4498 | | }; |
---|
4499 | | #endif /* !YY_STRUCT_YY_BUFFER_STATE */ |
---|
4500 | | |
---|
4501 | | /* Stack of input buffers. */ |
---|
4502 | | static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */ |
---|
4503 | | static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */ |
---|
4504 | | static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */ |
---|
4505 | | |
---|
4506 | | /* We provide macros for accessing buffer states in case in the |
---|
4507 | | * future we want to put the buffer states in a more general |
---|
4508 | | * "scanner state". |
---|
4509 | | * |
---|
4510 | | * Returns the top of the stack, or NULL. |
---|
4511 | | */ |
---|
4512 | | #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ |
---|
4513 | | ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ |
---|
4514 | | : NULL) |
---|
4515 | | |
---|
4516 | | /* Same as previous macro, but useful when we know that the buffer stack is not |
---|
4517 | | * NULL or when we need an lvalue. For internal use only. |
---|
4518 | | */ |
---|
4519 | | #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
---|
4520 | | |
---|
4521 | | /* yy_hold_char holds the character lost when yytext is formed. */ |
---|
4522 | | static char yy_hold_char; |
---|
4523 | | static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */ |
---|
4524 | | yy_size_t yyleng; |
---|
4525 | | |
---|
4526 | | /* Points to current character in buffer. */ |
---|
4527 | | static char *yy_c_buf_p = (char *) 0; |
---|
4528 | | static int yy_init = 0; /* whether we need to initialize */ |
---|
4529 | | static int yy_start = 0; /* start state number */ |
---|
4530 | | |
---|
4531 | | /* Flag which is used to allow yywrap()'s to do buffer switches |
---|
4532 | | * instead of setting up a fresh yyin. A bit of a hack ... |
---|
4533 | | */ |
---|
4534 | | static int yy_did_buffer_switch_on_eof; |
---|
4535 | | |
---|
4536 | | void yyrestart (FILE *input_file ); |
---|
4537 | | void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ); |
---|
4538 | | YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ); |
---|
4539 | | void yy_delete_buffer (YY_BUFFER_STATE b ); |
---|
4540 | | void yy_flush_buffer (YY_BUFFER_STATE b ); |
---|
4541 | | void yypush_buffer_state (YY_BUFFER_STATE new_buffer ); |
---|
4542 | | void yypop_buffer_state (void ); |
---|
4543 | | |
---|
4544 | | static void yyensure_buffer_stack (void ); |
---|
4545 | | static void yy_load_buffer_state (void ); |
---|
4546 | | static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file ); |
---|
4547 | | |
---|
4548 | | #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER ) |
---|
4549 | | |
---|
4550 | | YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ); |
---|
4551 | | YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ); |
---|
4552 | | YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len ); |
---|
4553 | | |
---|
4554 | | void *yyalloc (yy_size_t ); |
---|
4555 | | void *yyrealloc (void *,yy_size_t ); |
---|
4556 | | void yyfree (void * ); |
---|
4557 | | |
---|
4558 | | #define yy_new_buffer yy_create_buffer |
---|
4559 | | |
---|
4560 | | #define yy_set_interactive(is_interactive) \ |
---|
4561 | | { \ |
---|
4562 | | if ( ! YY_CURRENT_BUFFER ){ \ |
---|
4563 | | yyensure_buffer_stack (); \ |
---|
4564 | | YY_CURRENT_BUFFER_LVALUE = \ |
---|
4565 | | yy_create_buffer(yyin,YY_BUF_SIZE ); \ |
---|
4566 | | } \ |
---|
4567 | | YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ |
---|
4568 | | } |
---|
4569 | | |
---|
4570 | | #define yy_set_bol(at_bol) \ |
---|
4571 | | { \ |
---|
4572 | | if ( ! YY_CURRENT_BUFFER ){\ |
---|
4573 | | yyensure_buffer_stack (); \ |
---|
4574 | | YY_CURRENT_BUFFER_LVALUE = \ |
---|
4575 | | yy_create_buffer(yyin,YY_BUF_SIZE ); \ |
---|
4576 | | } \ |
---|
4577 | | YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ |
---|
4578 | | } |
---|
4579 | | |
---|
4580 | | #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
---|
4581 | | |
---|
4582 | | /* Begin user sect3 */ |
---|
4583 | | |
---|
4584 | | typedef unsigned char YY_CHAR; |
---|
4585 | | |
---|
4586 | | FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; |
---|
4587 | | |
---|
4588 | | typedef int yy_state_type; |
---|
4589 | | |
---|
4590 | | extern int yylineno; |
---|
4591 | | |
---|
4592 | | int yylineno = 1; |
---|
4593 | | |
---|
4594 | | extern char *yytext; |
---|
4595 | | #define yytext_ptr yytext |
---|
4596 | | |
---|
4597 | | static yy_state_type yy_get_previous_state (void ); |
---|
4598 | | static yy_state_type yy_try_NUL_trans (yy_state_type current_state ); |
---|
4599 | | static int yy_get_next_buffer (void ); |
---|
4600 | | static void yy_fatal_error (yyconst char msg[] ); |
---|
4601 | | |
---|
4602 | | /* Done after the current pattern has been matched and before the |
---|
4603 | | * corresponding action - sets up yytext. |
---|
4604 | | */ |
---|
4605 | | #define YY_DO_BEFORE_ACTION \ |
---|
4606 | | (yytext_ptr) = yy_bp; \ |
---|
4607 | | (yytext_ptr) -= (yy_more_len); \ |
---|
4608 | | yyleng = (size_t) (yy_cp - (yytext_ptr)); \ |
---|
4609 | | (yy_hold_char) = *yy_cp; \ |
---|
4610 | | *yy_cp = '\0'; \ |
---|
4611 | | (yy_c_buf_p) = yy_cp; |
---|
4612 | | |
---|
4613 | | #define YY_NUM_RULES 8 |
---|
4614 | | #define YY_END_OF_BUFFER 9 |
---|
4615 | | /* This struct is not used in this scanner, |
---|
4616 | | but its presence is necessary. */ |
---|
4617 | | struct yy_trans_info |
---|
4618 | | { |
---|
4619 | | flex_int32_t yy_verify; |
---|
4620 | | flex_int32_t yy_nxt; |
---|
4621 | | }; |
---|
4622 | | static yyconst flex_int16_t yy_acclist[23] = |
---|
4623 | | { 0, |
---|
4624 | | 9, 7, 8, 8, 1, 7, 8, 2, 7, 8, |
---|
4625 | | 3, 7, 8, 4, 7, 8, 5, 7, 8, 6, |
---|
4626 | | 7, 8 |
---|
4627 | | } ; |
---|
4628 | | |
---|
4629 | | static yyconst flex_int16_t yy_accept[14] = |
---|
4630 | | { 0, |
---|
4631 | | 1, 1, 1, 2, 4, 5, 8, 11, 14, 17, |
---|
4632 | | 20, 23, 23 |
---|
4633 | | } ; |
---|
4634 | | |
---|
4635 | | static yyconst flex_int32_t yy_ec[256] = |
---|
4636 | | { 0, |
---|
4637 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, |
---|
4638 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
4639 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
4640 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
4641 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
4642 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
4643 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
4644 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
4645 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
4646 | | 1, 1, 1, 1, 1, 1, 3, 4, 5, 6, |
---|
4647 | | |
---|
4648 | | 7, 8, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
4649 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
4650 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
4651 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
4652 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
4653 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
4654 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
4655 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
4656 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
4657 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
4658 | | |
---|
4659 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
4660 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
4661 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
4662 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
4663 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
4664 | | 1, 1, 1, 1, 1 |
---|
4665 | | } ; |
---|
4666 | | |
---|
4667 | | static yyconst flex_int32_t yy_meta[9] = |
---|
4668 | | { 0, |
---|
4669 | | 1, 1, 1, 1, 1, 1, 1, 1 |
---|
4670 | | } ; |
---|
4671 | | |
---|
4672 | | static yyconst flex_int16_t yy_base[13] = |
---|
4673 | | { 0, |
---|
4674 | | 0, 0, 9, 10, 10, 10, 10, 10, 10, 10, |
---|
4675 | | 10, 10 |
---|
4676 | | } ; |
---|
4677 | | |
---|
4678 | | static yyconst flex_int16_t yy_def[13] = |
---|
4679 | | { 0, |
---|
4680 | | 12, 1, 12, 12, 12, 12, 12, 12, 12, 12, |
---|
4681 | | 12, 0 |
---|
4682 | | } ; |
---|
4683 | | |
---|
4684 | | static yyconst flex_int16_t yy_nxt[19] = |
---|
4685 | | { 0, |
---|
4686 | | 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, |
---|
4687 | | 12, 12, 12, 12, 12, 12, 12, 12 |
---|
4688 | | } ; |
---|
4689 | | |
---|
4690 | | static yyconst flex_int16_t yy_chk[19] = |
---|
4691 | | { 0, |
---|
4692 | | 1, 1, 1, 1, 1, 1, 1, 1, 3, 12, |
---|
4693 | | 12, 12, 12, 12, 12, 12, 12, 12 |
---|
4694 | | } ; |
---|
4695 | | |
---|
4696 | | extern int yy_flex_debug; |
---|
4697 | | int yy_flex_debug = 0; |
---|
4698 | | |
---|
4699 | | static yy_state_type *yy_state_buf=0, *yy_state_ptr=0; |
---|
4700 | | static char *yy_full_match; |
---|
4701 | | static int yy_lp; |
---|
4702 | | #define REJECT \ |
---|
4703 | | { \ |
---|
4704 | | *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ \ |
---|
4705 | | yy_cp = (yy_full_match); /* restore poss. backed-over text */ \ |
---|
4706 | | ++(yy_lp); \ |
---|
4707 | | goto find_rule; \ |
---|
4708 | | } |
---|
4709 | | |
---|
4710 | | static int yy_more_flag = 0; |
---|
4711 | | static int yy_more_len = 0; |
---|
4712 | | #define yymore() ((yy_more_flag) = 1) |
---|
4713 | | #define YY_MORE_ADJ (yy_more_len) |
---|
4714 | | #define YY_RESTORE_YY_MORE_OFFSET |
---|
4715 | | char *yytext; |
---|
4716 | | #line 1 "conftest.l" |
---|
4717 | | #line 469 "lex.yy.c" |
---|
4718 | | |
---|
4719 | | #define INITIAL 0 |
---|
4720 | | |
---|
4721 | | #ifndef YY_NO_UNISTD_H |
---|
4722 | | /* Special case for "unistd.h", since it is non-ANSI. We include it way |
---|
4723 | | * down here because we want the user's section 1 to have been scanned first. |
---|
4724 | | * The user has a chance to override it with an option. |
---|
4725 | | */ |
---|
4726 | | #include <unistd.h> |
---|
4727 | | #endif |
---|
4728 | | |
---|
4729 | | #ifndef YY_EXTRA_TYPE |
---|
4730 | | #define YY_EXTRA_TYPE void * |
---|
4731 | | #endif |
---|
4732 | | |
---|
4733 | | static int yy_init_globals (void ); |
---|
4734 | | |
---|
4735 | | /* Accessor methods to globals. |
---|
4736 | | These are made visible to non-reentrant scanners for convenience. */ |
---|
4737 | | |
---|
4738 | | int yylex_destroy (void ); |
---|
4739 | | |
---|
4740 | | int yyget_debug (void ); |
---|
4741 | | |
---|
4742 | | void yyset_debug (int debug_flag ); |
---|
4743 | | |
---|
4744 | | YY_EXTRA_TYPE yyget_extra (void ); |
---|
4745 | | |
---|
4746 | | void yyset_extra (YY_EXTRA_TYPE user_defined ); |
---|
4747 | | |
---|
4748 | | FILE *yyget_in (void ); |
---|
4749 | | |
---|
4750 | | void yyset_in (FILE * in_str ); |
---|
4751 | | |
---|
4752 | | FILE *yyget_out (void ); |
---|
4753 | | |
---|
4754 | | void yyset_out (FILE * out_str ); |
---|
4755 | | |
---|
4756 | | yy_size_t yyget_leng (void ); |
---|
4757 | | |
---|
4758 | | char *yyget_text (void ); |
---|
4759 | | |
---|
4760 | | int yyget_lineno (void ); |
---|
4761 | | |
---|
4762 | | void yyset_lineno (int line_number ); |
---|
4763 | | |
---|
4764 | | /* Macros after this point can all be overridden by user definitions in |
---|
4765 | | * section 1. |
---|
4766 | | */ |
---|
4767 | | |
---|
4768 | | #ifndef YY_SKIP_YYWRAP |
---|
4769 | | #ifdef __cplusplus |
---|
4770 | | extern "C" int yywrap (void ); |
---|
4771 | | #else |
---|
4772 | | extern int yywrap (void ); |
---|
4773 | | #endif |
---|
4774 | | #endif |
---|
4775 | | |
---|
4776 | | static void yyunput (int c,char *buf_ptr ); |
---|
4777 | | |
---|
4778 | | #ifndef yytext_ptr |
---|
4779 | | static void yy_flex_strncpy (char *,yyconst char *,int ); |
---|
4780 | | #endif |
---|
4781 | | |
---|
4782 | | #ifdef YY_NEED_STRLEN |
---|
4783 | | static int yy_flex_strlen (yyconst char * ); |
---|
4784 | | #endif |
---|
4785 | | |
---|
4786 | | #ifndef YY_NO_INPUT |
---|
4787 | | |
---|
4788 | | #ifdef __cplusplus |
---|
4789 | | static int yyinput (void ); |
---|
4790 | | #else |
---|
4791 | | static int input (void ); |
---|
4792 | | #endif |
---|
4793 | | |
---|
4794 | | #endif |
---|
4795 | | |
---|
4796 | | /* Amount of stuff to slurp up with each read. */ |
---|
4797 | | #ifndef YY_READ_BUF_SIZE |
---|
4798 | | #define YY_READ_BUF_SIZE 8192 |
---|
4799 | | #endif |
---|
4800 | | |
---|
4801 | | /* Copy whatever the last rule matched to the standard output. */ |
---|
4802 | | #ifndef ECHO |
---|
4803 | | /* This used to be an fputs(), but since the string might contain NUL's, |
---|
4804 | | * we now use fwrite(). |
---|
4805 | | */ |
---|
4806 | | #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0) |
---|
4807 | | #endif |
---|
4808 | | |
---|
4809 | | /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, |
---|
4810 | | * is returned in "result". |
---|
4811 | | */ |
---|
4812 | | #ifndef YY_INPUT |
---|
4813 | | #define YY_INPUT(buf,result,max_size) \ |
---|
4814 | | if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ |
---|
4815 | | { \ |
---|
4816 | | int c = '*'; \ |
---|
4817 | | size_t n; \ |
---|
4818 | | for ( n = 0; n < max_size && \ |
---|
4819 | | (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ |
---|
4820 | | buf[n] = (char) c; \ |
---|
4821 | | if ( c == '\n' ) \ |
---|
4822 | | buf[n++] = (char) c; \ |
---|
4823 | | if ( c == EOF && ferror( yyin ) ) \ |
---|
4824 | | YY_FATAL_ERROR( "input in flex scanner failed" ); \ |
---|
4825 | | result = n; \ |
---|
4826 | | } \ |
---|
4827 | | else \ |
---|
4828 | | { \ |
---|
4829 | | errno=0; \ |
---|
4830 | | while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ |
---|
4831 | | { \ |
---|
4832 | | if( errno != EINTR) \ |
---|
4833 | | { \ |
---|
4834 | | YY_FATAL_ERROR( "input in flex scanner failed" ); \ |
---|
4835 | | break; \ |
---|
4836 | | } \ |
---|
4837 | | errno=0; \ |
---|
4838 | | clearerr(yyin); \ |
---|
4839 | | } \ |
---|
4840 | | }\ |
---|
4841 | | \ |
---|
4842 | | |
---|
4843 | | #endif |
---|
4844 | | |
---|
4845 | | /* No semi-colon after return; correct usage is to write "yyterminate();" - |
---|
4846 | | * we don't want an extra ';' after the "return" because that will cause |
---|
4847 | | * some compilers to complain about unreachable statements. |
---|
4848 | | */ |
---|
4849 | | #ifndef yyterminate |
---|
4850 | | #define yyterminate() return YY_NULL |
---|
4851 | | #endif |
---|
4852 | | |
---|
4853 | | /* Number of entries by which start-condition stack grows. */ |
---|
4854 | | #ifndef YY_START_STACK_INCR |
---|
4855 | | #define YY_START_STACK_INCR 25 |
---|
4856 | | #endif |
---|
4857 | | |
---|
4858 | | /* Report a fatal error. */ |
---|
4859 | | #ifndef YY_FATAL_ERROR |
---|
4860 | | #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) |
---|
4861 | | #endif |
---|
4862 | | |
---|
4863 | | /* end tables serialization structures and prototypes */ |
---|
4864 | | |
---|
4865 | | /* Default declaration of generated scanner - a define so the user can |
---|
4866 | | * easily add parameters. |
---|
4867 | | */ |
---|
4868 | | #ifndef YY_DECL |
---|
4869 | | #define YY_DECL_IS_OURS 1 |
---|
4870 | | |
---|
4871 | | extern int yylex (void); |
---|
4872 | | |
---|
4873 | | #define YY_DECL int yylex (void) |
---|
4874 | | #endif /* !YY_DECL */ |
---|
4875 | | |
---|
4876 | | /* Code executed at the beginning of each rule, after yytext and yyleng |
---|
4877 | | * have been set up. |
---|
4878 | | */ |
---|
4879 | | #ifndef YY_USER_ACTION |
---|
4880 | | #define YY_USER_ACTION |
---|
4881 | | #endif |
---|
4882 | | |
---|
4883 | | /* Code executed at the end of each rule. */ |
---|
4884 | | #ifndef YY_BREAK |
---|
4885 | | #define YY_BREAK break; |
---|
4886 | | #endif |
---|
4887 | | |
---|
4888 | | #define YY_RULE_SETUP \ |
---|
4889 | | YY_USER_ACTION |
---|
4890 | | |
---|
4891 | | /** The main scanner function which does all the work. |
---|
4892 | | */ |
---|
4893 | | YY_DECL |
---|
4894 | | { |
---|
4895 | | register yy_state_type yy_current_state; |
---|
4896 | | register char *yy_cp, *yy_bp; |
---|
4897 | | register int yy_act; |
---|
4898 | | |
---|
4899 | | #line 1 "conftest.l" |
---|
4900 | | |
---|
4901 | | #line 653 "lex.yy.c" |
---|
4902 | | |
---|
4903 | | if ( !(yy_init) ) |
---|
4904 | | { |
---|
4905 | | (yy_init) = 1; |
---|
4906 | | |
---|
4907 | | #ifdef YY_USER_INIT |
---|
4908 | | YY_USER_INIT; |
---|
4909 | | #endif |
---|
4910 | | |
---|
4911 | | /* Create the reject buffer large enough to save one state per allowed character. */ |
---|
4912 | | if ( ! (yy_state_buf) ) |
---|
4913 | | (yy_state_buf) = (yy_state_type *)yyalloc(YY_STATE_BUF_SIZE ); |
---|
4914 | | if ( ! (yy_state_buf) ) |
---|
4915 | | YY_FATAL_ERROR( "out of dynamic memory in yylex()" ); |
---|
4916 | | |
---|
4917 | | if ( ! (yy_start) ) |
---|
4918 | | (yy_start) = 1; /* first start state */ |
---|
4919 | | |
---|
4920 | | if ( ! yyin ) |
---|
4921 | | yyin = stdin; |
---|
4922 | | |
---|
4923 | | if ( ! yyout ) |
---|
4924 | | yyout = stdout; |
---|
4925 | | |
---|
4926 | | if ( ! YY_CURRENT_BUFFER ) { |
---|
4927 | | yyensure_buffer_stack (); |
---|
4928 | | YY_CURRENT_BUFFER_LVALUE = |
---|
4929 | | yy_create_buffer(yyin,YY_BUF_SIZE ); |
---|
4930 | | } |
---|
4931 | | |
---|
4932 | | yy_load_buffer_state( ); |
---|
4933 | | } |
---|
4934 | | |
---|
4935 | | while ( 1 ) /* loops until end-of-file is reached */ |
---|
4936 | | { |
---|
4937 | | (yy_more_len) = 0; |
---|
4938 | | if ( (yy_more_flag) ) |
---|
4939 | | { |
---|
4940 | | (yy_more_len) = (yy_c_buf_p) - (yytext_ptr); |
---|
4941 | | (yy_more_flag) = 0; |
---|
4942 | | } |
---|
4943 | | yy_cp = (yy_c_buf_p); |
---|
4944 | | |
---|
4945 | | /* Support of yytext. */ |
---|
4946 | | *yy_cp = (yy_hold_char); |
---|
4947 | | |
---|
4948 | | /* yy_bp points to the position in yy_ch_buf of the start of |
---|
4949 | | * the current run. |
---|
4950 | | */ |
---|
4951 | | yy_bp = yy_cp; |
---|
4952 | | |
---|
4953 | | yy_current_state = (yy_start); |
---|
4954 | | |
---|
4955 | | (yy_state_ptr) = (yy_state_buf); |
---|
4956 | | *(yy_state_ptr)++ = yy_current_state; |
---|
4957 | | |
---|
4958 | | yy_match: |
---|
4959 | | do |
---|
4960 | | { |
---|
4961 | | register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; |
---|
4962 | | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
---|
4963 | | { |
---|
4964 | | yy_current_state = (int) yy_def[yy_current_state]; |
---|
4965 | | if ( yy_current_state >= 13 ) |
---|
4966 | | yy_c = yy_meta[(unsigned int) yy_c]; |
---|
4967 | | } |
---|
4968 | | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; |
---|
4969 | | *(yy_state_ptr)++ = yy_current_state; |
---|
4970 | | ++yy_cp; |
---|
4971 | | } |
---|
4972 | | while ( yy_base[yy_current_state] != 10 ); |
---|
4973 | | |
---|
4974 | | yy_find_action: |
---|
4975 | | yy_current_state = *--(yy_state_ptr); |
---|
4976 | | (yy_lp) = yy_accept[yy_current_state]; |
---|
4977 | | find_rule: /* we branch to this label when backing up */ |
---|
4978 | | for ( ; ; ) /* until we find what rule we matched */ |
---|
4979 | | { |
---|
4980 | | if ( (yy_lp) && (yy_lp) < yy_accept[yy_current_state + 1] ) |
---|
4981 | | { |
---|
4982 | | yy_act = yy_acclist[(yy_lp)]; |
---|
4983 | | { |
---|
4984 | | (yy_full_match) = yy_cp; |
---|
4985 | | break; |
---|
4986 | | } |
---|
4987 | | } |
---|
4988 | | --yy_cp; |
---|
4989 | | yy_current_state = *--(yy_state_ptr); |
---|
4990 | | (yy_lp) = yy_accept[yy_current_state]; |
---|
4991 | | } |
---|
4992 | | |
---|
4993 | | YY_DO_BEFORE_ACTION; |
---|
4994 | | |
---|
4995 | | do_action: /* This label is used only to access EOF actions. */ |
---|
4996 | | |
---|
4997 | | switch ( yy_act ) |
---|
4998 | | { /* beginning of action switch */ |
---|
4999 | | case 1: |
---|
5000 | | YY_RULE_SETUP |
---|
5001 | | #line 2 "conftest.l" |
---|
5002 | | { ECHO; } |
---|
5003 | | YY_BREAK |
---|
5004 | | case 2: |
---|
5005 | | YY_RULE_SETUP |
---|
5006 | | #line 3 "conftest.l" |
---|
5007 | | { REJECT; } |
---|
5008 | | YY_BREAK |
---|
5009 | | case 3: |
---|
5010 | | YY_RULE_SETUP |
---|
5011 | | #line 4 "conftest.l" |
---|
5012 | | { yymore (); } |
---|
5013 | | YY_BREAK |
---|
5014 | | case 4: |
---|
5015 | | YY_RULE_SETUP |
---|
5016 | | #line 5 "conftest.l" |
---|
5017 | | { yyless (1); } |
---|
5018 | | YY_BREAK |
---|
5019 | | case 5: |
---|
5020 | | YY_RULE_SETUP |
---|
5021 | | #line 6 "conftest.l" |
---|
5022 | | { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ |
---|
5023 | | yyless ((input () != 0)); } |
---|
5024 | | YY_BREAK |
---|
5025 | | case 6: |
---|
5026 | | YY_RULE_SETUP |
---|
5027 | | #line 8 "conftest.l" |
---|
5028 | | { unput (yytext[0]); } |
---|
5029 | | YY_BREAK |
---|
5030 | | case 7: |
---|
5031 | | YY_RULE_SETUP |
---|
5032 | | #line 9 "conftest.l" |
---|
5033 | | { BEGIN INITIAL; } |
---|
5034 | | YY_BREAK |
---|
5035 | | case 8: |
---|
5036 | | YY_RULE_SETUP |
---|
5037 | | #line 10 "conftest.l" |
---|
5038 | | ECHO; |
---|
5039 | | YY_BREAK |
---|
5040 | | #line 792 "lex.yy.c" |
---|
5041 | | case YY_STATE_EOF(INITIAL): |
---|
5042 | | yyterminate(); |
---|
5043 | | |
---|
5044 | | case YY_END_OF_BUFFER: |
---|
5045 | | { |
---|
5046 | | /* Amount of text matched not including the EOB char. */ |
---|
5047 | | int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1; |
---|
5048 | | |
---|
5049 | | /* Undo the effects of YY_DO_BEFORE_ACTION. */ |
---|
5050 | | *yy_cp = (yy_hold_char); |
---|
5051 | | YY_RESTORE_YY_MORE_OFFSET |
---|
5052 | | |
---|
5053 | | if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) |
---|
5054 | | { |
---|
5055 | | /* We're scanning a new file or input source. It's |
---|
5056 | | * possible that this happened because the user |
---|
5057 | | * just pointed yyin at a new source and called |
---|
5058 | | * yylex(). If so, then we have to assure |
---|
5059 | | * consistency between YY_CURRENT_BUFFER and our |
---|
5060 | | * globals. Here is the right place to do so, because |
---|
5061 | | * this is the first action (other than possibly a |
---|
5062 | | * back-up) that will match for the new input source. |
---|
5063 | | */ |
---|
5064 | | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; |
---|
5065 | | YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; |
---|
5066 | | YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; |
---|
5067 | | } |
---|
5068 | | |
---|
5069 | | /* Note that here we test for yy_c_buf_p "<=" to the position |
---|
5070 | | * of the first EOB in the buffer, since yy_c_buf_p will |
---|
5071 | | * already have been incremented past the NUL character |
---|
5072 | | * (since all states make transitions on EOB to the |
---|
5073 | | * end-of-buffer state). Contrast this with the test |
---|
5074 | | * in input(). |
---|
5075 | | */ |
---|
5076 | | if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) |
---|
5077 | | { /* This was really a NUL. */ |
---|
5078 | | yy_state_type yy_next_state; |
---|
5079 | | |
---|
5080 | | (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; |
---|
5081 | | |
---|
5082 | | yy_current_state = yy_get_previous_state( ); |
---|
5083 | | |
---|
5084 | | /* Okay, we're now positioned to make the NUL |
---|
5085 | | * transition. We couldn't have |
---|
5086 | | * yy_get_previous_state() go ahead and do it |
---|
5087 | | * for us because it doesn't know how to deal |
---|
5088 | | * with the possibility of jamming (and we don't |
---|
5089 | | * want to build jamming into it because then it |
---|
5090 | | * will run more slowly). |
---|
5091 | | */ |
---|
5092 | | |
---|
5093 | | yy_next_state = yy_try_NUL_trans( yy_current_state ); |
---|
5094 | | |
---|
5095 | | yy_bp = (yytext_ptr) + YY_MORE_ADJ; |
---|
5096 | | |
---|
5097 | | if ( yy_next_state ) |
---|
5098 | | { |
---|
5099 | | /* Consume the NUL. */ |
---|
5100 | | yy_cp = ++(yy_c_buf_p); |
---|
5101 | | yy_current_state = yy_next_state; |
---|
5102 | | goto yy_match; |
---|
5103 | | } |
---|
5104 | | |
---|
5105 | | else |
---|
5106 | | { |
---|
5107 | | yy_cp = (yy_c_buf_p); |
---|
5108 | | goto yy_find_action; |
---|
5109 | | } |
---|
5110 | | } |
---|
5111 | | |
---|
5112 | | else switch ( yy_get_next_buffer( ) ) |
---|
5113 | | { |
---|
5114 | | case EOB_ACT_END_OF_FILE: |
---|
5115 | | { |
---|
5116 | | (yy_did_buffer_switch_on_eof) = 0; |
---|
5117 | | |
---|
5118 | | if ( yywrap( ) ) |
---|
5119 | | { |
---|
5120 | | /* Note: because we've taken care in |
---|
5121 | | * yy_get_next_buffer() to have set up |
---|
5122 | | * yytext, we can now set up |
---|
5123 | | * yy_c_buf_p so that if some total |
---|
5124 | | * hoser (like flex itself) wants to |
---|
5125 | | * call the scanner after we return the |
---|
5126 | | * YY_NULL, it'll still work - another |
---|
5127 | | * YY_NULL will get returned. |
---|
5128 | | */ |
---|
5129 | | (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; |
---|
5130 | | |
---|
5131 | | yy_act = YY_STATE_EOF(YY_START); |
---|
5132 | | goto do_action; |
---|
5133 | | } |
---|
5134 | | |
---|
5135 | | else |
---|
5136 | | { |
---|
5137 | | if ( ! (yy_did_buffer_switch_on_eof) ) |
---|
5138 | | YY_NEW_FILE; |
---|
5139 | | } |
---|
5140 | | break; |
---|
5141 | | } |
---|
5142 | | |
---|
5143 | | case EOB_ACT_CONTINUE_SCAN: |
---|
5144 | | (yy_c_buf_p) = |
---|
5145 | | (yytext_ptr) + yy_amount_of_matched_text; |
---|
5146 | | |
---|
5147 | | yy_current_state = yy_get_previous_state( ); |
---|
5148 | | |
---|
5149 | | yy_cp = (yy_c_buf_p); |
---|
5150 | | yy_bp = (yytext_ptr) + YY_MORE_ADJ; |
---|
5151 | | goto yy_match; |
---|
5152 | | |
---|
5153 | | case EOB_ACT_LAST_MATCH: |
---|
5154 | | (yy_c_buf_p) = |
---|
5155 | | &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; |
---|
5156 | | |
---|
5157 | | yy_current_state = yy_get_previous_state( ); |
---|
5158 | | |
---|
5159 | | yy_cp = (yy_c_buf_p); |
---|
5160 | | yy_bp = (yytext_ptr) + YY_MORE_ADJ; |
---|
5161 | | goto yy_find_action; |
---|
5162 | | } |
---|
5163 | | break; |
---|
5164 | | } |
---|
5165 | | |
---|
5166 | | default: |
---|
5167 | | YY_FATAL_ERROR( |
---|
5168 | | "fatal flex scanner internal error--no action found" ); |
---|
5169 | | } /* end of action switch */ |
---|
5170 | | } /* end of scanning one token */ |
---|
5171 | | } /* end of yylex */ |
---|
5172 | | |
---|
5173 | | /* yy_get_next_buffer - try to read in a new buffer |
---|
5174 | | * |
---|
5175 | | * Returns a code representing an action: |
---|
5176 | | * EOB_ACT_LAST_MATCH - |
---|
5177 | | * EOB_ACT_CONTINUE_SCAN - continue scanning from current position |
---|
5178 | | * EOB_ACT_END_OF_FILE - end of file |
---|
5179 | | */ |
---|
5180 | | static int yy_get_next_buffer (void) |
---|
5181 | | { |
---|
5182 | | register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; |
---|
5183 | | register char *source = (yytext_ptr); |
---|
5184 | | register int number_to_move, i; |
---|
5185 | | int ret_val; |
---|
5186 | | |
---|
5187 | | if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) |
---|
5188 | | YY_FATAL_ERROR( |
---|
5189 | | "fatal flex scanner internal error--end of buffer missed" ); |
---|
5190 | | |
---|
5191 | | if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) |
---|
5192 | | { /* Don't try to fill the buffer, so this is an EOF. */ |
---|
5193 | | if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 ) |
---|
5194 | | { |
---|
5195 | | /* We matched a single character, the EOB, so |
---|
5196 | | * treat this as a final EOF. |
---|
5197 | | */ |
---|
5198 | | return EOB_ACT_END_OF_FILE; |
---|
5199 | | } |
---|
5200 | | |
---|
5201 | | else |
---|
5202 | | { |
---|
5203 | | /* We matched some text prior to the EOB, first |
---|
5204 | | * process it. |
---|
5205 | | */ |
---|
5206 | | return EOB_ACT_LAST_MATCH; |
---|
5207 | | } |
---|
5208 | | } |
---|
5209 | | |
---|
5210 | | /* Try to read more data. */ |
---|
5211 | | |
---|
5212 | | /* First move last chars to start of buffer. */ |
---|
5213 | | number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1; |
---|
5214 | | |
---|
5215 | | for ( i = 0; i < number_to_move; ++i ) |
---|
5216 | | *(dest++) = *(source++); |
---|
5217 | | |
---|
5218 | | if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) |
---|
5219 | | /* don't do the read, it's not guaranteed to return an EOF, |
---|
5220 | | * just force an EOF |
---|
5221 | | */ |
---|
5222 | | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0; |
---|
5223 | | |
---|
5224 | | else |
---|
5225 | | { |
---|
5226 | | yy_size_t num_to_read = |
---|
5227 | | YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; |
---|
5228 | | |
---|
5229 | | while ( num_to_read <= 0 ) |
---|
5230 | | { /* Not enough room in the buffer - grow it. */ |
---|
5231 | | |
---|
5232 | | YY_FATAL_ERROR( |
---|
5233 | | "input buffer overflow, can't enlarge buffer because scanner uses REJECT" ); |
---|
5234 | | |
---|
5235 | | } |
---|
5236 | | |
---|
5237 | | if ( num_to_read > YY_READ_BUF_SIZE ) |
---|
5238 | | num_to_read = YY_READ_BUF_SIZE; |
---|
5239 | | |
---|
5240 | | /* Read in more data. */ |
---|
5241 | | YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), |
---|
5242 | | (yy_n_chars), num_to_read ); |
---|
5243 | | |
---|
5244 | | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); |
---|
5245 | | } |
---|
5246 | | |
---|
5247 | | if ( (yy_n_chars) == 0 ) |
---|
5248 | | { |
---|
5249 | | if ( number_to_move == YY_MORE_ADJ ) |
---|
5250 | | { |
---|
5251 | | ret_val = EOB_ACT_END_OF_FILE; |
---|
5252 | | yyrestart(yyin ); |
---|
5253 | | } |
---|
5254 | | |
---|
5255 | | else |
---|
5256 | | { |
---|
5257 | | ret_val = EOB_ACT_LAST_MATCH; |
---|
5258 | | YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = |
---|
5259 | | YY_BUFFER_EOF_PENDING; |
---|
5260 | | } |
---|
5261 | | } |
---|
5262 | | |
---|
5263 | | else |
---|
5264 | | ret_val = EOB_ACT_CONTINUE_SCAN; |
---|
5265 | | |
---|
5266 | | if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { |
---|
5267 | | /* Extend the array by 50%, plus the number we really need. */ |
---|
5268 | | yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); |
---|
5269 | | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ); |
---|
5270 | | if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) |
---|
5271 | | YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); |
---|
5272 | | } |
---|
5273 | | |
---|
5274 | | (yy_n_chars) += number_to_move; |
---|
5275 | | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; |
---|
5276 | | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; |
---|
5277 | | |
---|
5278 | | (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; |
---|
5279 | | |
---|
5280 | | return ret_val; |
---|
5281 | | } |
---|
5282 | | |
---|
5283 | | /* yy_get_previous_state - get the state just before the EOB char was reached */ |
---|
5284 | | |
---|
5285 | | static yy_state_type yy_get_previous_state (void) |
---|
5286 | | { |
---|
5287 | | register yy_state_type yy_current_state; |
---|
5288 | | register char *yy_cp; |
---|
5289 | | |
---|
5290 | | yy_current_state = (yy_start); |
---|
5291 | | |
---|
5292 | | (yy_state_ptr) = (yy_state_buf); |
---|
5293 | | *(yy_state_ptr)++ = yy_current_state; |
---|
5294 | | |
---|
5295 | | for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) |
---|
5296 | | { |
---|
5297 | | register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); |
---|
5298 | | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
---|
5299 | | { |
---|
5300 | | yy_current_state = (int) yy_def[yy_current_state]; |
---|
5301 | | if ( yy_current_state >= 13 ) |
---|
5302 | | yy_c = yy_meta[(unsigned int) yy_c]; |
---|
5303 | | } |
---|
5304 | | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; |
---|
5305 | | *(yy_state_ptr)++ = yy_current_state; |
---|
5306 | | } |
---|
5307 | | |
---|
5308 | | return yy_current_state; |
---|
5309 | | } |
---|
5310 | | |
---|
5311 | | /* yy_try_NUL_trans - try to make a transition on the NUL character |
---|
5312 | | * |
---|
5313 | | * synopsis |
---|
5314 | | * next_state = yy_try_NUL_trans( current_state ); |
---|
5315 | | */ |
---|
5316 | | static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) |
---|
5317 | | { |
---|
5318 | | register int yy_is_jam; |
---|
5319 | | |
---|
5320 | | register YY_CHAR yy_c = 1; |
---|
5321 | | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
---|
5322 | | { |
---|
5323 | | yy_current_state = (int) yy_def[yy_current_state]; |
---|
5324 | | if ( yy_current_state >= 13 ) |
---|
5325 | | yy_c = yy_meta[(unsigned int) yy_c]; |
---|
5326 | | } |
---|
5327 | | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; |
---|
5328 | | yy_is_jam = (yy_current_state == 12); |
---|
5329 | | if ( ! yy_is_jam ) |
---|
5330 | | *(yy_state_ptr)++ = yy_current_state; |
---|
5331 | | |
---|
5332 | | return yy_is_jam ? 0 : yy_current_state; |
---|
5333 | | } |
---|
5334 | | |
---|
5335 | | static void yyunput (int c, register char * yy_bp ) |
---|
5336 | | { |
---|
5337 | | register char *yy_cp; |
---|
5338 | | |
---|
5339 | | yy_cp = (yy_c_buf_p); |
---|
5340 | | |
---|
5341 | | /* undo effects of setting up yytext */ |
---|
5342 | | *yy_cp = (yy_hold_char); |
---|
5343 | | |
---|
5344 | | if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) |
---|
5345 | | { /* need to shift things up to make room */ |
---|
5346 | | /* +2 for EOB chars. */ |
---|
5347 | | register yy_size_t number_to_move = (yy_n_chars) + 2; |
---|
5348 | | register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ |
---|
5349 | | YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; |
---|
5350 | | register char *source = |
---|
5351 | | &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]; |
---|
5352 | | |
---|
5353 | | while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) |
---|
5354 | | *--dest = *--source; |
---|
5355 | | |
---|
5356 | | yy_cp += (int) (dest - source); |
---|
5357 | | yy_bp += (int) (dest - source); |
---|
5358 | | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = |
---|
5359 | | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size; |
---|
5360 | | |
---|
5361 | | if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) |
---|
5362 | | YY_FATAL_ERROR( "flex scanner push-back overflow" ); |
---|
5363 | | } |
---|
5364 | | |
---|
5365 | | *--yy_cp = (char) c; |
---|
5366 | | |
---|
5367 | | (yytext_ptr) = yy_bp; |
---|
5368 | | (yy_hold_char) = *yy_cp; |
---|
5369 | | (yy_c_buf_p) = yy_cp; |
---|
5370 | | } |
---|
5371 | | |
---|
5372 | | #ifndef YY_NO_INPUT |
---|
5373 | | #ifdef __cplusplus |
---|
5374 | | static int yyinput (void) |
---|
5375 | | #else |
---|
5376 | | static int input (void) |
---|
5377 | | #endif |
---|
5378 | | |
---|
5379 | | { |
---|
5380 | | int c; |
---|
5381 | | |
---|
5382 | | *(yy_c_buf_p) = (yy_hold_char); |
---|
5383 | | |
---|
5384 | | if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) |
---|
5385 | | { |
---|
5386 | | /* yy_c_buf_p now points to the character we want to return. |
---|
5387 | | * If this occurs *before* the EOB characters, then it's a |
---|
5388 | | * valid NUL; if not, then we've hit the end of the buffer. |
---|
5389 | | */ |
---|
5390 | | if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) |
---|
5391 | | /* This was really a NUL. */ |
---|
5392 | | *(yy_c_buf_p) = '\0'; |
---|
5393 | | |
---|
5394 | | else |
---|
5395 | | { /* need more input */ |
---|
5396 | | yy_size_t offset = (yy_c_buf_p) - (yytext_ptr); |
---|
5397 | | ++(yy_c_buf_p); |
---|
5398 | | |
---|
5399 | | switch ( yy_get_next_buffer( ) ) |
---|
5400 | | { |
---|
5401 | | case EOB_ACT_LAST_MATCH: |
---|
5402 | | /* This happens because yy_g_n_b() |
---|
5403 | | * sees that we've accumulated a |
---|
5404 | | * token and flags that we need to |
---|
5405 | | * try matching the token before |
---|
5406 | | * proceeding. But for input(), |
---|
5407 | | * there's no matching to consider. |
---|
5408 | | * So convert the EOB_ACT_LAST_MATCH |
---|
5409 | | * to EOB_ACT_END_OF_FILE. |
---|
5410 | | */ |
---|
5411 | | |
---|
5412 | | /* Reset buffer status. */ |
---|
5413 | | yyrestart(yyin ); |
---|
5414 | | |
---|
5415 | | /*FALLTHROUGH*/ |
---|
5416 | | |
---|
5417 | | case EOB_ACT_END_OF_FILE: |
---|
5418 | | { |
---|
5419 | | if ( yywrap( ) ) |
---|
5420 | | return EOF; |
---|
5421 | | |
---|
5422 | | if ( ! (yy_did_buffer_switch_on_eof) ) |
---|
5423 | | YY_NEW_FILE; |
---|
5424 | | #ifdef __cplusplus |
---|
5425 | | return yyinput(); |
---|
5426 | | #else |
---|
5427 | | return input(); |
---|
5428 | | #endif |
---|
5429 | | } |
---|
5430 | | |
---|
5431 | | case EOB_ACT_CONTINUE_SCAN: |
---|
5432 | | (yy_c_buf_p) = (yytext_ptr) + offset; |
---|
5433 | | break; |
---|
5434 | | } |
---|
5435 | | } |
---|
5436 | | } |
---|
5437 | | |
---|
5438 | | c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ |
---|
5439 | | *(yy_c_buf_p) = '\0'; /* preserve yytext */ |
---|
5440 | | (yy_hold_char) = *++(yy_c_buf_p); |
---|
5441 | | |
---|
5442 | | return c; |
---|
5443 | | } |
---|
5444 | | #endif /* ifndef YY_NO_INPUT */ |
---|
5445 | | |
---|
5446 | | /** Immediately switch to a different input stream. |
---|
5447 | | * @param input_file A readable stream. |
---|
5448 | | * |
---|
5449 | | * @note This function does not reset the start condition to @c INITIAL . |
---|
5450 | | */ |
---|
5451 | | void yyrestart (FILE * input_file ) |
---|
5452 | | { |
---|
5453 | | |
---|
5454 | | if ( ! YY_CURRENT_BUFFER ){ |
---|
5455 | | yyensure_buffer_stack (); |
---|
5456 | | YY_CURRENT_BUFFER_LVALUE = |
---|
5457 | | yy_create_buffer(yyin,YY_BUF_SIZE ); |
---|
5458 | | } |
---|
5459 | | |
---|
5460 | | yy_init_buffer(YY_CURRENT_BUFFER,input_file ); |
---|
5461 | | yy_load_buffer_state( ); |
---|
5462 | | } |
---|
5463 | | |
---|
5464 | | /** Switch to a different input buffer. |
---|
5465 | | * @param new_buffer The new input buffer. |
---|
5466 | | * |
---|
5467 | | */ |
---|
5468 | | void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ) |
---|
5469 | | { |
---|
5470 | | |
---|
5471 | | /* TODO. We should be able to replace this entire function body |
---|
5472 | | * with |
---|
5473 | | * yypop_buffer_state(); |
---|
5474 | | * yypush_buffer_state(new_buffer); |
---|
5475 | | */ |
---|
5476 | | yyensure_buffer_stack (); |
---|
5477 | | if ( YY_CURRENT_BUFFER == new_buffer ) |
---|
5478 | | return; |
---|
5479 | | |
---|
5480 | | if ( YY_CURRENT_BUFFER ) |
---|
5481 | | { |
---|
5482 | | /* Flush out information for old buffer. */ |
---|
5483 | | *(yy_c_buf_p) = (yy_hold_char); |
---|
5484 | | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); |
---|
5485 | | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); |
---|
5486 | | } |
---|
5487 | | |
---|
5488 | | YY_CURRENT_BUFFER_LVALUE = new_buffer; |
---|
5489 | | yy_load_buffer_state( ); |
---|
5490 | | |
---|
5491 | | /* We don't actually know whether we did this switch during |
---|
5492 | | * EOF (yywrap()) processing, but the only time this flag |
---|
5493 | | * is looked at is after yywrap() is called, so it's safe |
---|
5494 | | * to go ahead and always set it. |
---|
5495 | | */ |
---|
5496 | | (yy_did_buffer_switch_on_eof) = 1; |
---|
5497 | | } |
---|
5498 | | |
---|
5499 | | static void yy_load_buffer_state (void) |
---|
5500 | | { |
---|
5501 | | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; |
---|
5502 | | (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; |
---|
5503 | | yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; |
---|
5504 | | (yy_hold_char) = *(yy_c_buf_p); |
---|
5505 | | } |
---|
5506 | | |
---|
5507 | | /** Allocate and initialize an input buffer state. |
---|
5508 | | * @param file A readable stream. |
---|
5509 | | * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. |
---|
5510 | | * |
---|
5511 | | * @return the allocated buffer state. |
---|
5512 | | */ |
---|
5513 | | YY_BUFFER_STATE yy_create_buffer (FILE * file, int size ) |
---|
5514 | | { |
---|
5515 | | YY_BUFFER_STATE b; |
---|
5516 | | |
---|
5517 | | b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); |
---|
5518 | | if ( ! b ) |
---|
5519 | | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); |
---|
5520 | | |
---|
5521 | | b->yy_buf_size = size; |
---|
5522 | | |
---|
5523 | | /* yy_ch_buf has to be 2 characters longer than the size given because |
---|
5524 | | * we need to put in 2 end-of-buffer characters. |
---|
5525 | | */ |
---|
5526 | | b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 ); |
---|
5527 | | if ( ! b->yy_ch_buf ) |
---|
5528 | | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); |
---|
5529 | | |
---|
5530 | | b->yy_is_our_buffer = 1; |
---|
5531 | | |
---|
5532 | | yy_init_buffer(b,file ); |
---|
5533 | | |
---|
5534 | | return b; |
---|
5535 | | } |
---|
5536 | | |
---|
5537 | | /** Destroy the buffer. |
---|
5538 | | * @param b a buffer created with yy_create_buffer() |
---|
5539 | | * |
---|
5540 | | */ |
---|
5541 | | void yy_delete_buffer (YY_BUFFER_STATE b ) |
---|
5542 | | { |
---|
5543 | | |
---|
5544 | | if ( ! b ) |
---|
5545 | | return; |
---|
5546 | | |
---|
5547 | | if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ |
---|
5548 | | YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; |
---|
5549 | | |
---|
5550 | | if ( b->yy_is_our_buffer ) |
---|
5551 | | yyfree((void *) b->yy_ch_buf ); |
---|
5552 | | |
---|
5553 | | yyfree((void *) b ); |
---|
5554 | | } |
---|
5555 | | |
---|
5556 | | /* Initializes or reinitializes a buffer. |
---|
5557 | | * This function is sometimes called more than once on the same buffer, |
---|
5558 | | * such as during a yyrestart() or at EOF. |
---|
5559 | | */ |
---|
5560 | | static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file ) |
---|
5561 | | |
---|
5562 | | { |
---|
5563 | | int oerrno = errno; |
---|
5564 | | |
---|
5565 | | yy_flush_buffer(b ); |
---|
5566 | | |
---|
5567 | | b->yy_input_file = file; |
---|
5568 | | b->yy_fill_buffer = 1; |
---|
5569 | | |
---|
5570 | | /* If b is the current buffer, then yy_init_buffer was _probably_ |
---|
5571 | | * called from yyrestart() or through yy_get_next_buffer. |
---|
5572 | | * In that case, we don't want to reset the lineno or column. |
---|
5573 | | */ |
---|
5574 | | if (b != YY_CURRENT_BUFFER){ |
---|
5575 | | b->yy_bs_lineno = 1; |
---|
5576 | | b->yy_bs_column = 0; |
---|
5577 | | } |
---|
5578 | | |
---|
5579 | | b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; |
---|
5580 | | |
---|
5581 | | errno = oerrno; |
---|
5582 | | } |
---|
5583 | | |
---|
5584 | | /** Discard all buffered characters. On the next scan, YY_INPUT will be called. |
---|
5585 | | * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. |
---|
5586 | | * |
---|
5587 | | */ |
---|
5588 | | void yy_flush_buffer (YY_BUFFER_STATE b ) |
---|
5589 | | { |
---|
5590 | | if ( ! b ) |
---|
5591 | | return; |
---|
5592 | | |
---|
5593 | | b->yy_n_chars = 0; |
---|
5594 | | |
---|
5595 | | /* We always need two end-of-buffer characters. The first causes |
---|
5596 | | * a transition to the end-of-buffer state. The second causes |
---|
5597 | | * a jam in that state. |
---|
5598 | | */ |
---|
5599 | | b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; |
---|
5600 | | b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; |
---|
5601 | | |
---|
5602 | | b->yy_buf_pos = &b->yy_ch_buf[0]; |
---|
5603 | | |
---|
5604 | | b->yy_at_bol = 1; |
---|
5605 | | b->yy_buffer_status = YY_BUFFER_NEW; |
---|
5606 | | |
---|
5607 | | if ( b == YY_CURRENT_BUFFER ) |
---|
5608 | | yy_load_buffer_state( ); |
---|
5609 | | } |
---|
5610 | | |
---|
5611 | | /** Pushes the new state onto the stack. The new state becomes |
---|
5612 | | * the current state. This function will allocate the stack |
---|
5613 | | * if necessary. |
---|
5614 | | * @param new_buffer The new state. |
---|
5615 | | * |
---|
5616 | | */ |
---|
5617 | | void yypush_buffer_state (YY_BUFFER_STATE new_buffer ) |
---|
5618 | | { |
---|
5619 | | if (new_buffer == NULL) |
---|
5620 | | return; |
---|
5621 | | |
---|
5622 | | yyensure_buffer_stack(); |
---|
5623 | | |
---|
5624 | | /* This block is copied from yy_switch_to_buffer. */ |
---|
5625 | | if ( YY_CURRENT_BUFFER ) |
---|
5626 | | { |
---|
5627 | | /* Flush out information for old buffer. */ |
---|
5628 | | *(yy_c_buf_p) = (yy_hold_char); |
---|
5629 | | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); |
---|
5630 | | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); |
---|
5631 | | } |
---|
5632 | | |
---|
5633 | | /* Only push if top exists. Otherwise, replace top. */ |
---|
5634 | | if (YY_CURRENT_BUFFER) |
---|
5635 | | (yy_buffer_stack_top)++; |
---|
5636 | | YY_CURRENT_BUFFER_LVALUE = new_buffer; |
---|
5637 | | |
---|
5638 | | /* copied from yy_switch_to_buffer. */ |
---|
5639 | | yy_load_buffer_state( ); |
---|
5640 | | (yy_did_buffer_switch_on_eof) = 1; |
---|
5641 | | } |
---|
5642 | | |
---|
5643 | | /** Removes and deletes the top of the stack, if present. |
---|
5644 | | * The next element becomes the new top. |
---|
5645 | | * |
---|
5646 | | */ |
---|
5647 | | void yypop_buffer_state (void) |
---|
5648 | | { |
---|
5649 | | if (!YY_CURRENT_BUFFER) |
---|
5650 | | return; |
---|
5651 | | |
---|
5652 | | yy_delete_buffer(YY_CURRENT_BUFFER ); |
---|
5653 | | YY_CURRENT_BUFFER_LVALUE = NULL; |
---|
5654 | | if ((yy_buffer_stack_top) > 0) |
---|
5655 | | --(yy_buffer_stack_top); |
---|
5656 | | |
---|
5657 | | if (YY_CURRENT_BUFFER) { |
---|
5658 | | yy_load_buffer_state( ); |
---|
5659 | | (yy_did_buffer_switch_on_eof) = 1; |
---|
5660 | | } |
---|
5661 | | } |
---|
5662 | | |
---|
5663 | | /* Allocates the stack if it does not exist. |
---|
5664 | | * Guarantees space for at least one push. |
---|
5665 | | */ |
---|
5666 | | static void yyensure_buffer_stack (void) |
---|
5667 | | { |
---|
5668 | | yy_size_t num_to_alloc; |
---|
5669 | | |
---|
5670 | | if (!(yy_buffer_stack)) { |
---|
5671 | | |
---|
5672 | | /* First allocation is just for 2 elements, since we don't know if this |
---|
5673 | | * scanner will even need a stack. We use 2 instead of 1 to avoid an |
---|
5674 | | * immediate realloc on the next call. |
---|
5675 | | */ |
---|
5676 | | num_to_alloc = 1; |
---|
5677 | | (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc |
---|
5678 | | (num_to_alloc * sizeof(struct yy_buffer_state*) |
---|
5679 | | ); |
---|
5680 | | if ( ! (yy_buffer_stack) ) |
---|
5681 | | YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); |
---|
5682 | | |
---|
5683 | | memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); |
---|
5684 | | |
---|
5685 | | (yy_buffer_stack_max) = num_to_alloc; |
---|
5686 | | (yy_buffer_stack_top) = 0; |
---|
5687 | | return; |
---|
5688 | | } |
---|
5689 | | |
---|
5690 | | if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ |
---|
5691 | | |
---|
5692 | | /* Increase the buffer to prepare for a possible push. */ |
---|
5693 | | int grow_size = 8 /* arbitrary grow size */; |
---|
5694 | | |
---|
5695 | | num_to_alloc = (yy_buffer_stack_max) + grow_size; |
---|
5696 | | (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc |
---|
5697 | | ((yy_buffer_stack), |
---|
5698 | | num_to_alloc * sizeof(struct yy_buffer_state*) |
---|
5699 | | ); |
---|
5700 | | if ( ! (yy_buffer_stack) ) |
---|
5701 | | YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); |
---|
5702 | | |
---|
5703 | | /* zero only the new slots.*/ |
---|
5704 | | memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); |
---|
5705 | | (yy_buffer_stack_max) = num_to_alloc; |
---|
5706 | | } |
---|
5707 | | } |
---|
5708 | | |
---|
5709 | | /** Setup the input buffer state to scan directly from a user-specified character buffer. |
---|
5710 | | * @param base the character buffer |
---|
5711 | | * @param size the size in bytes of the character buffer |
---|
5712 | | * |
---|
5713 | | * @return the newly allocated buffer state object. |
---|
5714 | | */ |
---|
5715 | | YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size ) |
---|
5716 | | { |
---|
5717 | | YY_BUFFER_STATE b; |
---|
5718 | | |
---|
5719 | | if ( size < 2 || |
---|
5720 | | base[size-2] != YY_END_OF_BUFFER_CHAR || |
---|
5721 | | base[size-1] != YY_END_OF_BUFFER_CHAR ) |
---|
5722 | | /* They forgot to leave room for the EOB's. */ |
---|
5723 | | return 0; |
---|
5724 | | |
---|
5725 | | b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); |
---|
5726 | | if ( ! b ) |
---|
5727 | | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); |
---|
5728 | | |
---|
5729 | | b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ |
---|
5730 | | b->yy_buf_pos = b->yy_ch_buf = base; |
---|
5731 | | b->yy_is_our_buffer = 0; |
---|
5732 | | b->yy_input_file = 0; |
---|
5733 | | b->yy_n_chars = b->yy_buf_size; |
---|
5734 | | b->yy_is_interactive = 0; |
---|
5735 | | b->yy_at_bol = 1; |
---|
5736 | | b->yy_fill_buffer = 0; |
---|
5737 | | b->yy_buffer_status = YY_BUFFER_NEW; |
---|
5738 | | |
---|
5739 | | yy_switch_to_buffer(b ); |
---|
5740 | | |
---|
5741 | | return b; |
---|
5742 | | } |
---|
5743 | | |
---|
5744 | | /** Setup the input buffer state to scan a string. The next call to yylex() will |
---|
5745 | | * scan from a @e copy of @a str. |
---|
5746 | | * @param yystr a NUL-terminated string to scan |
---|
5747 | | * |
---|
5748 | | * @return the newly allocated buffer state object. |
---|
5749 | | * @note If you want to scan bytes that may contain NUL values, then use |
---|
5750 | | * yy_scan_bytes() instead. |
---|
5751 | | */ |
---|
5752 | | YY_BUFFER_STATE yy_scan_string (yyconst char * yystr ) |
---|
5753 | | { |
---|
5754 | | |
---|
5755 | | return yy_scan_bytes(yystr,strlen(yystr) ); |
---|
5756 | | } |
---|
5757 | | |
---|
5758 | | /** Setup the input buffer state to scan the given bytes. The next call to yylex() will |
---|
5759 | | * scan from a @e copy of @a bytes. |
---|
5760 | | * @param yybytes the byte buffer to scan |
---|
5761 | | * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. |
---|
5762 | | * |
---|
5763 | | * @return the newly allocated buffer state object. |
---|
5764 | | */ |
---|
5765 | | YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len ) |
---|
5766 | | { |
---|
5767 | | YY_BUFFER_STATE b; |
---|
5768 | | char *buf; |
---|
5769 | | yy_size_t n; |
---|
5770 | | int i; |
---|
5771 | | |
---|
5772 | | /* Get memory for full buffer, including space for trailing EOB's. */ |
---|
5773 | | n = _yybytes_len + 2; |
---|
5774 | | buf = (char *) yyalloc(n ); |
---|
5775 | | if ( ! buf ) |
---|
5776 | | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); |
---|
5777 | | |
---|
5778 | | for ( i = 0; i < _yybytes_len; ++i ) |
---|
5779 | | buf[i] = yybytes[i]; |
---|
5780 | | |
---|
5781 | | buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; |
---|
5782 | | |
---|
5783 | | b = yy_scan_buffer(buf,n ); |
---|
5784 | | if ( ! b ) |
---|
5785 | | YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); |
---|
5786 | | |
---|
5787 | | /* It's okay to grow etc. this buffer, and we should throw it |
---|
5788 | | * away when we're done. |
---|
5789 | | */ |
---|
5790 | | b->yy_is_our_buffer = 1; |
---|
5791 | | |
---|
5792 | | return b; |
---|
5793 | | } |
---|
5794 | | |
---|
5795 | | #ifndef YY_EXIT_FAILURE |
---|
5796 | | #define YY_EXIT_FAILURE 2 |
---|
5797 | | #endif |
---|
5798 | | |
---|
5799 | | static void yy_fatal_error (yyconst char* msg ) |
---|
5800 | | { |
---|
5801 | | (void) fprintf( stderr, "%s\n", msg ); |
---|
5802 | | exit( YY_EXIT_FAILURE ); |
---|
5803 | | } |
---|
5804 | | |
---|
5805 | | /* Redefine yyless() so it works in section 3 code. */ |
---|
5806 | | |
---|
5807 | | #undef yyless |
---|
5808 | | #define yyless(n) \ |
---|
5809 | | do \ |
---|
5810 | | { \ |
---|
5811 | | /* Undo effects of setting up yytext. */ \ |
---|
5812 | | int yyless_macro_arg = (n); \ |
---|
5813 | | YY_LESS_LINENO(yyless_macro_arg);\ |
---|
5814 | | yytext[yyleng] = (yy_hold_char); \ |
---|
5815 | | (yy_c_buf_p) = yytext + yyless_macro_arg; \ |
---|
5816 | | (yy_hold_char) = *(yy_c_buf_p); \ |
---|
5817 | | *(yy_c_buf_p) = '\0'; \ |
---|
5818 | | yyleng = yyless_macro_arg; \ |
---|
5819 | | } \ |
---|
5820 | | while ( 0 ) |
---|
5821 | | |
---|
5822 | | /* Accessor methods (get/set functions) to struct members. */ |
---|
5823 | | |
---|
5824 | | /** Get the current line number. |
---|
5825 | | * |
---|
5826 | | */ |
---|
5827 | | int yyget_lineno (void) |
---|
5828 | | { |
---|
5829 | | |
---|
5830 | | return yylineno; |
---|
5831 | | } |
---|
5832 | | |
---|
5833 | | /** Get the input stream. |
---|
5834 | | * |
---|
5835 | | */ |
---|
5836 | | FILE *yyget_in (void) |
---|
5837 | | { |
---|
5838 | | return yyin; |
---|
5839 | | } |
---|
5840 | | |
---|
5841 | | /** Get the output stream. |
---|
5842 | | * |
---|
5843 | | */ |
---|
5844 | | FILE *yyget_out (void) |
---|
5845 | | { |
---|
5846 | | return yyout; |
---|
5847 | | } |
---|
5848 | | |
---|
5849 | | /** Get the length of the current token. |
---|
5850 | | * |
---|
5851 | | */ |
---|
5852 | | yy_size_t yyget_leng (void) |
---|
5853 | | { |
---|
5854 | | return yyleng; |
---|
5855 | | } |
---|
5856 | | |
---|
5857 | | /** Get the current token. |
---|
5858 | | * |
---|
5859 | | */ |
---|
5860 | | |
---|
5861 | | char *yyget_text (void) |
---|
5862 | | { |
---|
5863 | | return yytext; |
---|
5864 | | } |
---|
5865 | | |
---|
5866 | | /** Set the current line number. |
---|
5867 | | * @param line_number |
---|
5868 | | * |
---|
5869 | | */ |
---|
5870 | | void yyset_lineno (int line_number ) |
---|
5871 | | { |
---|
5872 | | |
---|
5873 | | yylineno = line_number; |
---|
5874 | | } |
---|
5875 | | |
---|
5876 | | /** Set the input stream. This does not discard the current |
---|
5877 | | * input buffer. |
---|
5878 | | * @param in_str A readable stream. |
---|
5879 | | * |
---|
5880 | | * @see yy_switch_to_buffer |
---|
5881 | | */ |
---|
5882 | | void yyset_in (FILE * in_str ) |
---|
5883 | | { |
---|
5884 | | yyin = in_str ; |
---|
5885 | | } |
---|
5886 | | |
---|
5887 | | void yyset_out (FILE * out_str ) |
---|
5888 | | { |
---|
5889 | | yyout = out_str ; |
---|
5890 | | } |
---|
5891 | | |
---|
5892 | | int yyget_debug (void) |
---|
5893 | | { |
---|
5894 | | return yy_flex_debug; |
---|
5895 | | } |
---|
5896 | | |
---|
5897 | | void yyset_debug (int bdebug ) |
---|
5898 | | { |
---|
5899 | | yy_flex_debug = bdebug ; |
---|
5900 | | } |
---|
5901 | | |
---|
5902 | | static int yy_init_globals (void) |
---|
5903 | | { |
---|
5904 | | /* Initialization is the same as for the non-reentrant scanner. |
---|
5905 | | * This function is called from yylex_destroy(), so don't allocate here. |
---|
5906 | | */ |
---|
5907 | | |
---|
5908 | | (yy_buffer_stack) = 0; |
---|
5909 | | (yy_buffer_stack_top) = 0; |
---|
5910 | | (yy_buffer_stack_max) = 0; |
---|
5911 | | (yy_c_buf_p) = (char *) 0; |
---|
5912 | | (yy_init) = 0; |
---|
5913 | | (yy_start) = 0; |
---|
5914 | | |
---|
5915 | | (yy_state_buf) = 0; |
---|
5916 | | (yy_state_ptr) = 0; |
---|
5917 | | (yy_full_match) = 0; |
---|
5918 | | (yy_lp) = 0; |
---|
5919 | | |
---|
5920 | | /* Defined in main.c */ |
---|
5921 | | #ifdef YY_STDINIT |
---|
5922 | | yyin = stdin; |
---|
5923 | | yyout = stdout; |
---|
5924 | | #else |
---|
5925 | | yyin = (FILE *) 0; |
---|
5926 | | yyout = (FILE *) 0; |
---|
5927 | | #endif |
---|
5928 | | |
---|
5929 | | /* For future reference: Set errno on error, since we are called by |
---|
5930 | | * yylex_init() |
---|
5931 | | */ |
---|
5932 | | return 0; |
---|
5933 | | } |
---|
5934 | | |
---|
5935 | | /* yylex_destroy is for both reentrant and non-reentrant scanners. */ |
---|
5936 | | int yylex_destroy (void) |
---|
5937 | | { |
---|
5938 | | |
---|
5939 | | /* Pop the buffer stack, destroying each element. */ |
---|
5940 | | while(YY_CURRENT_BUFFER){ |
---|
5941 | | yy_delete_buffer(YY_CURRENT_BUFFER ); |
---|
5942 | | YY_CURRENT_BUFFER_LVALUE = NULL; |
---|
5943 | | yypop_buffer_state(); |
---|
5944 | | } |
---|
5945 | | |
---|
5946 | | /* Destroy the stack itself. */ |
---|
5947 | | yyfree((yy_buffer_stack) ); |
---|
5948 | | (yy_buffer_stack) = NULL; |
---|
5949 | | |
---|
5950 | | yyfree ( (yy_state_buf) ); |
---|
5951 | | (yy_state_buf) = NULL; |
---|
5952 | | |
---|
5953 | | /* Reset the globals. This is important in a non-reentrant scanner so the next time |
---|
5954 | | * yylex() is called, initialization will occur. */ |
---|
5955 | | yy_init_globals( ); |
---|
5956 | | |
---|
5957 | | return 0; |
---|
5958 | | } |
---|
5959 | | |
---|
5960 | | /* |
---|
5961 | | * Internal utility routines. |
---|
5962 | | */ |
---|
5963 | | |
---|
5964 | | #ifndef yytext_ptr |
---|
5965 | | static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) |
---|
5966 | | { |
---|
5967 | | register int i; |
---|
5968 | | for ( i = 0; i < n; ++i ) |
---|
5969 | | s1[i] = s2[i]; |
---|
5970 | | } |
---|
5971 | | #endif |
---|
5972 | | |
---|
5973 | | #ifdef YY_NEED_STRLEN |
---|
5974 | | static int yy_flex_strlen (yyconst char * s ) |
---|
5975 | | { |
---|
5976 | | register int n; |
---|
5977 | | for ( n = 0; s[n]; ++n ) |
---|
5978 | | ; |
---|
5979 | | |
---|
5980 | | return n; |
---|
5981 | | } |
---|
5982 | | #endif |
---|
5983 | | |
---|
5984 | | void *yyalloc (yy_size_t size ) |
---|
5985 | | { |
---|
5986 | | return (void *) malloc( size ); |
---|
5987 | | } |
---|
5988 | | |
---|
5989 | | void *yyrealloc (void * ptr, yy_size_t size ) |
---|
5990 | | { |
---|
5991 | | /* The cast to (char *) in the following accommodates both |
---|
5992 | | * implementations that use char* generic pointers, and those |
---|
5993 | | * that use void* generic pointers. It works with the latter |
---|
5994 | | * because both ANSI C and C++ allow castless assignment from |
---|
5995 | | * any pointer type to void*, and deal with argument conversions |
---|
5996 | | * as though doing an assignment. |
---|
5997 | | */ |
---|
5998 | | return (void *) realloc( (char *) ptr, size ); |
---|
5999 | | } |
---|
6000 | | |
---|
6001 | | void yyfree (void * ptr ) |
---|
6002 | | { |
---|
6003 | | free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ |
---|
6004 | | } |
---|
6005 | | |
---|
6006 | | #define YYTABLES_NAME "yytables" |
---|
6007 | | |
---|
6008 | | #line 10 "conftest.l" |
---|
6009 | | |
---|
6010 | | |
---|
6011 | | #ifdef YYTEXT_POINTER |
---|
6012 | | extern char *yytext; |
---|
6013 | | #endif |
---|
6014 | | int |
---|
6015 | | main (void) |
---|
6016 | | { |
---|
6017 | | return ! yylex () + ! yywrap (); |
---|
6018 | | } |
---|
6019 | configure:8137: result: none needed |
---|
6020 | configure:8143: checking whether yytext is a pointer |
---|
6021 | configure:8160: /usr/bin/clang -o conftest -O -fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386 -arch x86_64 -fstack-protector-all -D_FORTIFY_SOURCE=2 -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 conftest.c >&5 |
---|
6022 | Undefined symbols for architecture i386: |
---|
6023 | "_yywrap", referenced from: |
---|
6024 | _yylex in conftest-bc59f5.o |
---|
6025 | _main in conftest-bc59f5.o |
---|
6026 | ld: symbol(s) not found for architecture i386 |
---|
6027 | clang: error: linker command failed with exit code 1 (use -v to see invocation) |
---|
6028 | configure:8160: $? = 1 |
---|
6029 | configure: failed program was: |
---|
6030 | | /* confdefs.h */ |
---|
6031 | | #define PACKAGE_NAME "" |
---|
6032 | | #define PACKAGE_TARNAME "" |
---|
6033 | | #define PACKAGE_VERSION "" |
---|
6034 | | #define PACKAGE_STRING "" |
---|
6035 | | #define PACKAGE_BUGREPORT "" |
---|
6036 | | #define PACKAGE_URL "" |
---|
6037 | | #define IS_DARWIN 1 |
---|
6038 | | #define STDC_HEADERS 1 |
---|
6039 | | #define HAVE_SYS_TYPES_H 1 |
---|
6040 | | #define HAVE_SYS_STAT_H 1 |
---|
6041 | | #define HAVE_STDLIB_H 1 |
---|
6042 | | #define HAVE_STRING_H 1 |
---|
6043 | | #define HAVE_MEMORY_H 1 |
---|
6044 | | #define HAVE_STRINGS_H 1 |
---|
6045 | | #define HAVE_INTTYPES_H 1 |
---|
6046 | | #define HAVE_STDINT_H 1 |
---|
6047 | | #define HAVE_UNISTD_H 1 |
---|
6048 | | #define HAVE_SYS_SDT_H 1 |
---|
6049 | | #define HAVE_STATIC_PROBES 1 |
---|
6050 | | /* end confdefs.h. */ |
---|
6051 | | |
---|
6052 | | #define YYTEXT_POINTER 1 |
---|
6053 | | |
---|
6054 | | #line 3 "lex.yy.c" |
---|
6055 | | |
---|
6056 | | #define YY_INT_ALIGNED short int |
---|
6057 | | |
---|
6058 | | /* A lexical scanner generated by flex */ |
---|
6059 | | |
---|
6060 | | #define FLEX_SCANNER |
---|
6061 | | #define YY_FLEX_MAJOR_VERSION 2 |
---|
6062 | | #define YY_FLEX_MINOR_VERSION 5 |
---|
6063 | | #define YY_FLEX_SUBMINOR_VERSION 37 |
---|
6064 | | #if YY_FLEX_SUBMINOR_VERSION > 0 |
---|
6065 | | #define FLEX_BETA |
---|
6066 | | #endif |
---|
6067 | | |
---|
6068 | | /* First, we deal with platform-specific or compiler-specific issues. */ |
---|
6069 | | |
---|
6070 | | /* begin standard C headers. */ |
---|
6071 | | #include <stdio.h> |
---|
6072 | | #include <string.h> |
---|
6073 | | #include <errno.h> |
---|
6074 | | #include <stdlib.h> |
---|
6075 | | |
---|
6076 | | /* end standard C headers. */ |
---|
6077 | | |
---|
6078 | | /* flex integer type definitions */ |
---|
6079 | | |
---|
6080 | | #ifndef FLEXINT_H |
---|
6081 | | #define FLEXINT_H |
---|
6082 | | |
---|
6083 | | /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */ |
---|
6084 | | |
---|
6085 | | #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L |
---|
6086 | | |
---|
6087 | | /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, |
---|
6088 | | * if you want the limit (max/min) macros for int types. |
---|
6089 | | */ |
---|
6090 | | #ifndef __STDC_LIMIT_MACROS |
---|
6091 | | #define __STDC_LIMIT_MACROS 1 |
---|
6092 | | #endif |
---|
6093 | | |
---|
6094 | | #include <inttypes.h> |
---|
6095 | | typedef int8_t flex_int8_t; |
---|
6096 | | typedef uint8_t flex_uint8_t; |
---|
6097 | | typedef int16_t flex_int16_t; |
---|
6098 | | typedef uint16_t flex_uint16_t; |
---|
6099 | | typedef int32_t flex_int32_t; |
---|
6100 | | typedef uint32_t flex_uint32_t; |
---|
6101 | | #else |
---|
6102 | | typedef signed char flex_int8_t; |
---|
6103 | | typedef short int flex_int16_t; |
---|
6104 | | typedef int flex_int32_t; |
---|
6105 | | typedef unsigned char flex_uint8_t; |
---|
6106 | | typedef unsigned short int flex_uint16_t; |
---|
6107 | | typedef unsigned int flex_uint32_t; |
---|
6108 | | |
---|
6109 | | /* Limits of integral types. */ |
---|
6110 | | #ifndef INT8_MIN |
---|
6111 | | #define INT8_MIN (-128) |
---|
6112 | | #endif |
---|
6113 | | #ifndef INT16_MIN |
---|
6114 | | #define INT16_MIN (-32767-1) |
---|
6115 | | #endif |
---|
6116 | | #ifndef INT32_MIN |
---|
6117 | | #define INT32_MIN (-2147483647-1) |
---|
6118 | | #endif |
---|
6119 | | #ifndef INT8_MAX |
---|
6120 | | #define INT8_MAX (127) |
---|
6121 | | #endif |
---|
6122 | | #ifndef INT16_MAX |
---|
6123 | | #define INT16_MAX (32767) |
---|
6124 | | #endif |
---|
6125 | | #ifndef INT32_MAX |
---|
6126 | | #define INT32_MAX (2147483647) |
---|
6127 | | #endif |
---|
6128 | | #ifndef UINT8_MAX |
---|
6129 | | #define UINT8_MAX (255U) |
---|
6130 | | #endif |
---|
6131 | | #ifndef UINT16_MAX |
---|
6132 | | #define UINT16_MAX (65535U) |
---|
6133 | | #endif |
---|
6134 | | #ifndef UINT32_MAX |
---|
6135 | | #define UINT32_MAX (4294967295U) |
---|
6136 | | #endif |
---|
6137 | | |
---|
6138 | | #endif /* ! C99 */ |
---|
6139 | | |
---|
6140 | | #endif /* ! FLEXINT_H */ |
---|
6141 | | |
---|
6142 | | #ifdef __cplusplus |
---|
6143 | | |
---|
6144 | | /* The "const" storage-class-modifier is valid. */ |
---|
6145 | | #define YY_USE_CONST |
---|
6146 | | |
---|
6147 | | #else /* ! __cplusplus */ |
---|
6148 | | |
---|
6149 | | /* C99 requires __STDC__ to be defined as 1. */ |
---|
6150 | | #if defined (__STDC__) |
---|
6151 | | |
---|
6152 | | #define YY_USE_CONST |
---|
6153 | | |
---|
6154 | | #endif /* defined (__STDC__) */ |
---|
6155 | | #endif /* ! __cplusplus */ |
---|
6156 | | |
---|
6157 | | #ifdef YY_USE_CONST |
---|
6158 | | #define yyconst const |
---|
6159 | | #else |
---|
6160 | | #define yyconst |
---|
6161 | | #endif |
---|
6162 | | |
---|
6163 | | /* Returned upon end-of-file. */ |
---|
6164 | | #define YY_NULL 0 |
---|
6165 | | |
---|
6166 | | /* Promotes a possibly negative, possibly signed char to an unsigned |
---|
6167 | | * integer for use as an array index. If the signed char is negative, |
---|
6168 | | * we want to instead treat it as an 8-bit unsigned char, hence the |
---|
6169 | | * double cast. |
---|
6170 | | */ |
---|
6171 | | #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) |
---|
6172 | | |
---|
6173 | | /* Enter a start condition. This macro really ought to take a parameter, |
---|
6174 | | * but we do it the disgusting crufty way forced on us by the ()-less |
---|
6175 | | * definition of BEGIN. |
---|
6176 | | */ |
---|
6177 | | #define BEGIN (yy_start) = 1 + 2 * |
---|
6178 | | |
---|
6179 | | /* Translate the current start state into a value that can be later handed |
---|
6180 | | * to BEGIN to return to the state. The YYSTATE alias is for lex |
---|
6181 | | * compatibility. |
---|
6182 | | */ |
---|
6183 | | #define YY_START (((yy_start) - 1) / 2) |
---|
6184 | | #define YYSTATE YY_START |
---|
6185 | | |
---|
6186 | | /* Action number for EOF rule of a given start state. */ |
---|
6187 | | #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) |
---|
6188 | | |
---|
6189 | | /* Special action meaning "start processing a new file". */ |
---|
6190 | | #define YY_NEW_FILE yyrestart(yyin ) |
---|
6191 | | |
---|
6192 | | #define YY_END_OF_BUFFER_CHAR 0 |
---|
6193 | | |
---|
6194 | | /* Size of default input buffer. */ |
---|
6195 | | #ifndef YY_BUF_SIZE |
---|
6196 | | #define YY_BUF_SIZE 16384 |
---|
6197 | | #endif |
---|
6198 | | |
---|
6199 | | /* The state buf must be large enough to hold one state per character in the main buffer. |
---|
6200 | | */ |
---|
6201 | | #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
---|
6202 | | |
---|
6203 | | #ifndef YY_TYPEDEF_YY_BUFFER_STATE |
---|
6204 | | #define YY_TYPEDEF_YY_BUFFER_STATE |
---|
6205 | | typedef struct yy_buffer_state *YY_BUFFER_STATE; |
---|
6206 | | #endif |
---|
6207 | | |
---|
6208 | | #ifndef YY_TYPEDEF_YY_SIZE_T |
---|
6209 | | #define YY_TYPEDEF_YY_SIZE_T |
---|
6210 | | typedef size_t yy_size_t; |
---|
6211 | | #endif |
---|
6212 | | |
---|
6213 | | extern yy_size_t yyleng; |
---|
6214 | | |
---|
6215 | | extern FILE *yyin, *yyout; |
---|
6216 | | |
---|
6217 | | #define EOB_ACT_CONTINUE_SCAN 0 |
---|
6218 | | #define EOB_ACT_END_OF_FILE 1 |
---|
6219 | | #define EOB_ACT_LAST_MATCH 2 |
---|
6220 | | |
---|
6221 | | #define YY_LESS_LINENO(n) |
---|
6222 | | |
---|
6223 | | /* Return all but the first "n" matched characters back to the input stream. */ |
---|
6224 | | #define yyless(n) \ |
---|
6225 | | do \ |
---|
6226 | | { \ |
---|
6227 | | /* Undo effects of setting up yytext. */ \ |
---|
6228 | | int yyless_macro_arg = (n); \ |
---|
6229 | | YY_LESS_LINENO(yyless_macro_arg);\ |
---|
6230 | | *yy_cp = (yy_hold_char); \ |
---|
6231 | | YY_RESTORE_YY_MORE_OFFSET \ |
---|
6232 | | (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ |
---|
6233 | | YY_DO_BEFORE_ACTION; /* set up yytext again */ \ |
---|
6234 | | } \ |
---|
6235 | | while ( 0 ) |
---|
6236 | | |
---|
6237 | | #define unput(c) yyunput( c, (yytext_ptr) ) |
---|
6238 | | |
---|
6239 | | #ifndef YY_STRUCT_YY_BUFFER_STATE |
---|
6240 | | #define YY_STRUCT_YY_BUFFER_STATE |
---|
6241 | | struct yy_buffer_state |
---|
6242 | | { |
---|
6243 | | FILE *yy_input_file; |
---|
6244 | | |
---|
6245 | | char *yy_ch_buf; /* input buffer */ |
---|
6246 | | char *yy_buf_pos; /* current position in input buffer */ |
---|
6247 | | |
---|
6248 | | /* Size of input buffer in bytes, not including room for EOB |
---|
6249 | | * characters. |
---|
6250 | | */ |
---|
6251 | | yy_size_t yy_buf_size; |
---|
6252 | | |
---|
6253 | | /* Number of characters read into yy_ch_buf, not including EOB |
---|
6254 | | * characters. |
---|
6255 | | */ |
---|
6256 | | yy_size_t yy_n_chars; |
---|
6257 | | |
---|
6258 | | /* Whether we "own" the buffer - i.e., we know we created it, |
---|
6259 | | * and can realloc() it to grow it, and should free() it to |
---|
6260 | | * delete it. |
---|
6261 | | */ |
---|
6262 | | int yy_is_our_buffer; |
---|
6263 | | |
---|
6264 | | /* Whether this is an "interactive" input source; if so, and |
---|
6265 | | * if we're using stdio for input, then we want to use getc() |
---|
6266 | | * instead of fread(), to make sure we stop fetching input after |
---|
6267 | | * each newline. |
---|
6268 | | */ |
---|
6269 | | int yy_is_interactive; |
---|
6270 | | |
---|
6271 | | /* Whether we're considered to be at the beginning of a line. |
---|
6272 | | * If so, '^' rules will be active on the next match, otherwise |
---|
6273 | | * not. |
---|
6274 | | */ |
---|
6275 | | int yy_at_bol; |
---|
6276 | | |
---|
6277 | | int yy_bs_lineno; /**< The line count. */ |
---|
6278 | | int yy_bs_column; /**< The column count. */ |
---|
6279 | | |
---|
6280 | | /* Whether to try to fill the input buffer when we reach the |
---|
6281 | | * end of it. |
---|
6282 | | */ |
---|
6283 | | int yy_fill_buffer; |
---|
6284 | | |
---|
6285 | | int yy_buffer_status; |
---|
6286 | | |
---|
6287 | | #define YY_BUFFER_NEW 0 |
---|
6288 | | #define YY_BUFFER_NORMAL 1 |
---|
6289 | | /* When an EOF's been seen but there's still some text to process |
---|
6290 | | * then we mark the buffer as YY_EOF_PENDING, to indicate that we |
---|
6291 | | * shouldn't try reading from the input source any more. We might |
---|
6292 | | * still have a bunch of tokens to match, though, because of |
---|
6293 | | * possible backing-up. |
---|
6294 | | * |
---|
6295 | | * When we actually see the EOF, we change the status to "new" |
---|
6296 | | * (via yyrestart()), so that the user can continue scanning by |
---|
6297 | | * just pointing yyin at a new input file. |
---|
6298 | | */ |
---|
6299 | | #define YY_BUFFER_EOF_PENDING 2 |
---|
6300 | | |
---|
6301 | | }; |
---|
6302 | | #endif /* !YY_STRUCT_YY_BUFFER_STATE */ |
---|
6303 | | |
---|
6304 | | /* Stack of input buffers. */ |
---|
6305 | | static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */ |
---|
6306 | | static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */ |
---|
6307 | | static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */ |
---|
6308 | | |
---|
6309 | | /* We provide macros for accessing buffer states in case in the |
---|
6310 | | * future we want to put the buffer states in a more general |
---|
6311 | | * "scanner state". |
---|
6312 | | * |
---|
6313 | | * Returns the top of the stack, or NULL. |
---|
6314 | | */ |
---|
6315 | | #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ |
---|
6316 | | ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ |
---|
6317 | | : NULL) |
---|
6318 | | |
---|
6319 | | /* Same as previous macro, but useful when we know that the buffer stack is not |
---|
6320 | | * NULL or when we need an lvalue. For internal use only. |
---|
6321 | | */ |
---|
6322 | | #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
---|
6323 | | |
---|
6324 | | /* yy_hold_char holds the character lost when yytext is formed. */ |
---|
6325 | | static char yy_hold_char; |
---|
6326 | | static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */ |
---|
6327 | | yy_size_t yyleng; |
---|
6328 | | |
---|
6329 | | /* Points to current character in buffer. */ |
---|
6330 | | static char *yy_c_buf_p = (char *) 0; |
---|
6331 | | static int yy_init = 0; /* whether we need to initialize */ |
---|
6332 | | static int yy_start = 0; /* start state number */ |
---|
6333 | | |
---|
6334 | | /* Flag which is used to allow yywrap()'s to do buffer switches |
---|
6335 | | * instead of setting up a fresh yyin. A bit of a hack ... |
---|
6336 | | */ |
---|
6337 | | static int yy_did_buffer_switch_on_eof; |
---|
6338 | | |
---|
6339 | | void yyrestart (FILE *input_file ); |
---|
6340 | | void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ); |
---|
6341 | | YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ); |
---|
6342 | | void yy_delete_buffer (YY_BUFFER_STATE b ); |
---|
6343 | | void yy_flush_buffer (YY_BUFFER_STATE b ); |
---|
6344 | | void yypush_buffer_state (YY_BUFFER_STATE new_buffer ); |
---|
6345 | | void yypop_buffer_state (void ); |
---|
6346 | | |
---|
6347 | | static void yyensure_buffer_stack (void ); |
---|
6348 | | static void yy_load_buffer_state (void ); |
---|
6349 | | static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file ); |
---|
6350 | | |
---|
6351 | | #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER ) |
---|
6352 | | |
---|
6353 | | YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ); |
---|
6354 | | YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ); |
---|
6355 | | YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len ); |
---|
6356 | | |
---|
6357 | | void *yyalloc (yy_size_t ); |
---|
6358 | | void *yyrealloc (void *,yy_size_t ); |
---|
6359 | | void yyfree (void * ); |
---|
6360 | | |
---|
6361 | | #define yy_new_buffer yy_create_buffer |
---|
6362 | | |
---|
6363 | | #define yy_set_interactive(is_interactive) \ |
---|
6364 | | { \ |
---|
6365 | | if ( ! YY_CURRENT_BUFFER ){ \ |
---|
6366 | | yyensure_buffer_stack (); \ |
---|
6367 | | YY_CURRENT_BUFFER_LVALUE = \ |
---|
6368 | | yy_create_buffer(yyin,YY_BUF_SIZE ); \ |
---|
6369 | | } \ |
---|
6370 | | YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ |
---|
6371 | | } |
---|
6372 | | |
---|
6373 | | #define yy_set_bol(at_bol) \ |
---|
6374 | | { \ |
---|
6375 | | if ( ! YY_CURRENT_BUFFER ){\ |
---|
6376 | | yyensure_buffer_stack (); \ |
---|
6377 | | YY_CURRENT_BUFFER_LVALUE = \ |
---|
6378 | | yy_create_buffer(yyin,YY_BUF_SIZE ); \ |
---|
6379 | | } \ |
---|
6380 | | YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ |
---|
6381 | | } |
---|
6382 | | |
---|
6383 | | #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
---|
6384 | | |
---|
6385 | | /* Begin user sect3 */ |
---|
6386 | | |
---|
6387 | | typedef unsigned char YY_CHAR; |
---|
6388 | | |
---|
6389 | | FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; |
---|
6390 | | |
---|
6391 | | typedef int yy_state_type; |
---|
6392 | | |
---|
6393 | | extern int yylineno; |
---|
6394 | | |
---|
6395 | | int yylineno = 1; |
---|
6396 | | |
---|
6397 | | extern char *yytext; |
---|
6398 | | #define yytext_ptr yytext |
---|
6399 | | |
---|
6400 | | static yy_state_type yy_get_previous_state (void ); |
---|
6401 | | static yy_state_type yy_try_NUL_trans (yy_state_type current_state ); |
---|
6402 | | static int yy_get_next_buffer (void ); |
---|
6403 | | static void yy_fatal_error (yyconst char msg[] ); |
---|
6404 | | |
---|
6405 | | /* Done after the current pattern has been matched and before the |
---|
6406 | | * corresponding action - sets up yytext. |
---|
6407 | | */ |
---|
6408 | | #define YY_DO_BEFORE_ACTION \ |
---|
6409 | | (yytext_ptr) = yy_bp; \ |
---|
6410 | | (yytext_ptr) -= (yy_more_len); \ |
---|
6411 | | yyleng = (size_t) (yy_cp - (yytext_ptr)); \ |
---|
6412 | | (yy_hold_char) = *yy_cp; \ |
---|
6413 | | *yy_cp = '\0'; \ |
---|
6414 | | (yy_c_buf_p) = yy_cp; |
---|
6415 | | |
---|
6416 | | #define YY_NUM_RULES 8 |
---|
6417 | | #define YY_END_OF_BUFFER 9 |
---|
6418 | | /* This struct is not used in this scanner, |
---|
6419 | | but its presence is necessary. */ |
---|
6420 | | struct yy_trans_info |
---|
6421 | | { |
---|
6422 | | flex_int32_t yy_verify; |
---|
6423 | | flex_int32_t yy_nxt; |
---|
6424 | | }; |
---|
6425 | | static yyconst flex_int16_t yy_acclist[23] = |
---|
6426 | | { 0, |
---|
6427 | | 9, 7, 8, 8, 1, 7, 8, 2, 7, 8, |
---|
6428 | | 3, 7, 8, 4, 7, 8, 5, 7, 8, 6, |
---|
6429 | | 7, 8 |
---|
6430 | | } ; |
---|
6431 | | |
---|
6432 | | static yyconst flex_int16_t yy_accept[14] = |
---|
6433 | | { 0, |
---|
6434 | | 1, 1, 1, 2, 4, 5, 8, 11, 14, 17, |
---|
6435 | | 20, 23, 23 |
---|
6436 | | } ; |
---|
6437 | | |
---|
6438 | | static yyconst flex_int32_t yy_ec[256] = |
---|
6439 | | { 0, |
---|
6440 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, |
---|
6441 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
6442 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
6443 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
6444 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
6445 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
6446 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
6447 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
6448 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
6449 | | 1, 1, 1, 1, 1, 1, 3, 4, 5, 6, |
---|
6450 | | |
---|
6451 | | 7, 8, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
6452 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
6453 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
6454 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
6455 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
6456 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
6457 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
6458 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
6459 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
6460 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
6461 | | |
---|
6462 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
6463 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
6464 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
6465 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
6466 | | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
---|
6467 | | 1, 1, 1, 1, 1 |
---|
6468 | | } ; |
---|
6469 | | |
---|
6470 | | static yyconst flex_int32_t yy_meta[9] = |
---|
6471 | | { 0, |
---|
6472 | | 1, 1, 1, 1, 1, 1, 1, 1 |
---|
6473 | | } ; |
---|
6474 | | |
---|
6475 | | static yyconst flex_int16_t yy_base[13] = |
---|
6476 | | { 0, |
---|
6477 | | 0, 0, 9, 10, 10, 10, 10, 10, 10, 10, |
---|
6478 | | 10, 10 |
---|
6479 | | } ; |
---|
6480 | | |
---|
6481 | | static yyconst flex_int16_t yy_def[13] = |
---|
6482 | | { 0, |
---|
6483 | | 12, 1, 12, 12, 12, 12, 12, 12, 12, 12, |
---|
6484 | | 12, 0 |
---|
6485 | | } ; |
---|
6486 | | |
---|
6487 | | static yyconst flex_int16_t yy_nxt[19] = |
---|
6488 | | { 0, |
---|
6489 | | 4, 5, 6, 7, 8, 9, 10, 11, 12, 3, |
---|
6490 | | 12, 12, 12, 12, 12, 12, 12, 12 |
---|
6491 | | } ; |
---|
6492 | | |
---|
6493 | | static yyconst flex_int16_t yy_chk[19] = |
---|
6494 | | { 0, |
---|
6495 | | 1, 1, 1, 1, 1, 1, 1, 1, 3, 12, |
---|
6496 | | 12, 12, 12, 12, 12, 12, 12, 12 |
---|
6497 | | } ; |
---|
6498 | | |
---|
6499 | | extern int yy_flex_debug; |
---|
6500 | | int yy_flex_debug = 0; |
---|
6501 | | |
---|
6502 | | static yy_state_type *yy_state_buf=0, *yy_state_ptr=0; |
---|
6503 | | static char *yy_full_match; |
---|
6504 | | static int yy_lp; |
---|
6505 | | #define REJECT \ |
---|
6506 | | { \ |
---|
6507 | | *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ \ |
---|
6508 | | yy_cp = (yy_full_match); /* restore poss. backed-over text */ \ |
---|
6509 | | ++(yy_lp); \ |
---|
6510 | | goto find_rule; \ |
---|
6511 | | } |
---|
6512 | | |
---|
6513 | | static int yy_more_flag = 0; |
---|
6514 | | static int yy_more_len = 0; |
---|
6515 | | #define yymore() ((yy_more_flag) = 1) |
---|
6516 | | #define YY_MORE_ADJ (yy_more_len) |
---|
6517 | | #define YY_RESTORE_YY_MORE_OFFSET |
---|
6518 | | char *yytext; |
---|
6519 | | #line 1 "conftest.l" |
---|
6520 | | #line 469 "lex.yy.c" |
---|
6521 | | |
---|
6522 | | #define INITIAL 0 |
---|
6523 | | |
---|
6524 | | #ifndef YY_NO_UNISTD_H |
---|
6525 | | /* Special case for "unistd.h", since it is non-ANSI. We include it way |
---|
6526 | | * down here because we want the user's section 1 to have been scanned first. |
---|
6527 | | * The user has a chance to override it with an option. |
---|
6528 | | */ |
---|
6529 | | #include <unistd.h> |
---|
6530 | | #endif |
---|
6531 | | |
---|
6532 | | #ifndef YY_EXTRA_TYPE |
---|
6533 | | #define YY_EXTRA_TYPE void * |
---|
6534 | | #endif |
---|
6535 | | |
---|
6536 | | static int yy_init_globals (void ); |
---|
6537 | | |
---|
6538 | | /* Accessor methods to globals. |
---|
6539 | | These are made visible to non-reentrant scanners for convenience. */ |
---|
6540 | | |
---|
6541 | | int yylex_destroy (void ); |
---|
6542 | | |
---|
6543 | | int yyget_debug (void ); |
---|
6544 | | |
---|
6545 | | void yyset_debug (int debug_flag ); |
---|
6546 | | |
---|
6547 | | YY_EXTRA_TYPE yyget_extra (void ); |
---|
6548 | | |
---|
6549 | | void yyset_extra (YY_EXTRA_TYPE user_defined ); |
---|
6550 | | |
---|
6551 | | FILE *yyget_in (void ); |
---|
6552 | | |
---|
6553 | | void yyset_in (FILE * in_str ); |
---|
6554 | | |
---|
6555 | | FILE *yyget_out (void ); |
---|
6556 | | |
---|
6557 | | void yyset_out (FILE * out_str ); |
---|
6558 | | |
---|
6559 | | yy_size_t yyget_leng (void ); |
---|
6560 | | |
---|
6561 | | char *yyget_text (void ); |
---|
6562 | | |
---|
6563 | | int yyget_lineno (void ); |
---|
6564 | | |
---|
6565 | | void yyset_lineno (int line_number ); |
---|
6566 | | |
---|
6567 | | /* Macros after this point can all be overridden by user definitions in |
---|
6568 | | * section 1. |
---|
6569 | | */ |
---|
6570 | | |
---|
6571 | | #ifndef YY_SKIP_YYWRAP |
---|
6572 | | #ifdef __cplusplus |
---|
6573 | | extern "C" int yywrap (void ); |
---|
6574 | | #else |
---|
6575 | | extern int yywrap (void ); |
---|
6576 | | #endif |
---|
6577 | | #endif |
---|
6578 | | |
---|
6579 | | static void yyunput (int c,char *buf_ptr ); |
---|
6580 | | |
---|
6581 | | #ifndef yytext_ptr |
---|
6582 | | static void yy_flex_strncpy (char *,yyconst char *,int ); |
---|
6583 | | #endif |
---|
6584 | | |
---|
6585 | | #ifdef YY_NEED_STRLEN |
---|
6586 | | static int yy_flex_strlen (yyconst char * ); |
---|
6587 | | #endif |
---|
6588 | | |
---|
6589 | | #ifndef YY_NO_INPUT |
---|
6590 | | |
---|
6591 | | #ifdef __cplusplus |
---|
6592 | | static int yyinput (void ); |
---|
6593 | | #else |
---|
6594 | | static int input (void ); |
---|
6595 | | #endif |
---|
6596 | | |
---|
6597 | | #endif |
---|
6598 | | |
---|
6599 | | /* Amount of stuff to slurp up with each read. */ |
---|
6600 | | #ifndef YY_READ_BUF_SIZE |
---|
6601 | | #define YY_READ_BUF_SIZE 8192 |
---|
6602 | | #endif |
---|
6603 | | |
---|
6604 | | /* Copy whatever the last rule matched to the standard output. */ |
---|
6605 | | #ifndef ECHO |
---|
6606 | | /* This used to be an fputs(), but since the string might contain NUL's, |
---|
6607 | | * we now use fwrite(). |
---|
6608 | | */ |
---|
6609 | | #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0) |
---|
6610 | | #endif |
---|
6611 | | |
---|
6612 | | /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, |
---|
6613 | | * is returned in "result". |
---|
6614 | | */ |
---|
6615 | | #ifndef YY_INPUT |
---|
6616 | | #define YY_INPUT(buf,result,max_size) \ |
---|
6617 | | if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ |
---|
6618 | | { \ |
---|
6619 | | int c = '*'; \ |
---|
6620 | | size_t n; \ |
---|
6621 | | for ( n = 0; n < max_size && \ |
---|
6622 | | (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ |
---|
6623 | | buf[n] = (char) c; \ |
---|
6624 | | if ( c == '\n' ) \ |
---|
6625 | | buf[n++] = (char) c; \ |
---|
6626 | | if ( c == EOF && ferror( yyin ) ) \ |
---|
6627 | | YY_FATAL_ERROR( "input in flex scanner failed" ); \ |
---|
6628 | | result = n; \ |
---|
6629 | | } \ |
---|
6630 | | else \ |
---|
6631 | | { \ |
---|
6632 | | errno=0; \ |
---|
6633 | | while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ |
---|
6634 | | { \ |
---|
6635 | | if( errno != EINTR) \ |
---|
6636 | | { \ |
---|
6637 | | YY_FATAL_ERROR( "input in flex scanner failed" ); \ |
---|
6638 | | break; \ |
---|
6639 | | } \ |
---|
6640 | | errno=0; \ |
---|
6641 | | clearerr(yyin); \ |
---|
6642 | | } \ |
---|
6643 | | }\ |
---|
6644 | | \ |
---|
6645 | | |
---|
6646 | | #endif |
---|
6647 | | |
---|
6648 | | /* No semi-colon after return; correct usage is to write "yyterminate();" - |
---|
6649 | | * we don't want an extra ';' after the "return" because that will cause |
---|
6650 | | * some compilers to complain about unreachable statements. |
---|
6651 | | */ |
---|
6652 | | #ifndef yyterminate |
---|
6653 | | #define yyterminate() return YY_NULL |
---|
6654 | | #endif |
---|
6655 | | |
---|
6656 | | /* Number of entries by which start-condition stack grows. */ |
---|
6657 | | #ifndef YY_START_STACK_INCR |
---|
6658 | | #define YY_START_STACK_INCR 25 |
---|
6659 | | #endif |
---|
6660 | | |
---|
6661 | | /* Report a fatal error. */ |
---|
6662 | | #ifndef YY_FATAL_ERROR |
---|
6663 | | #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) |
---|
6664 | | #endif |
---|
6665 | | |
---|
6666 | | /* end tables serialization structures and prototypes */ |
---|
6667 | | |
---|
6668 | | /* Default declaration of generated scanner - a define so the user can |
---|
6669 | | * easily add parameters. |
---|
6670 | | */ |
---|
6671 | | #ifndef YY_DECL |
---|
6672 | | #define YY_DECL_IS_OURS 1 |
---|
6673 | | |
---|
6674 | | extern int yylex (void); |
---|
6675 | | |
---|
6676 | | #define YY_DECL int yylex (void) |
---|
6677 | | #endif /* !YY_DECL */ |
---|
6678 | | |
---|
6679 | | /* Code executed at the beginning of each rule, after yytext and yyleng |
---|
6680 | | * have been set up. |
---|
6681 | | */ |
---|
6682 | | #ifndef YY_USER_ACTION |
---|
6683 | | #define YY_USER_ACTION |
---|
6684 | | #endif |
---|
6685 | | |
---|
6686 | | /* Code executed at the end of each rule. */ |
---|
6687 | | #ifndef YY_BREAK |
---|
6688 | | #define YY_BREAK break; |
---|
6689 | | #endif |
---|
6690 | | |
---|
6691 | | #define YY_RULE_SETUP \ |
---|
6692 | | YY_USER_ACTION |
---|
6693 | | |
---|
6694 | | /** The main scanner function which does all the work. |
---|
6695 | | */ |
---|
6696 | | YY_DECL |
---|
6697 | | { |
---|
6698 | | register yy_state_type yy_current_state; |
---|
6699 | | register char *yy_cp, *yy_bp; |
---|
6700 | | register int yy_act; |
---|
6701 | | |
---|
6702 | | #line 1 "conftest.l" |
---|
6703 | | |
---|
6704 | | #line 653 "lex.yy.c" |
---|
6705 | | |
---|
6706 | | if ( !(yy_init) ) |
---|
6707 | | { |
---|
6708 | | (yy_init) = 1; |
---|
6709 | | |
---|
6710 | | #ifdef YY_USER_INIT |
---|
6711 | | YY_USER_INIT; |
---|
6712 | | #endif |
---|
6713 | | |
---|
6714 | | /* Create the reject buffer large enough to save one state per allowed character. */ |
---|
6715 | | if ( ! (yy_state_buf) ) |
---|
6716 | | (yy_state_buf) = (yy_state_type *)yyalloc(YY_STATE_BUF_SIZE ); |
---|
6717 | | if ( ! (yy_state_buf) ) |
---|
6718 | | YY_FATAL_ERROR( "out of dynamic memory in yylex()" ); |
---|
6719 | | |
---|
6720 | | if ( ! (yy_start) ) |
---|
6721 | | (yy_start) = 1; /* first start state */ |
---|
6722 | | |
---|
6723 | | if ( ! yyin ) |
---|
6724 | | yyin = stdin; |
---|
6725 | | |
---|
6726 | | if ( ! yyout ) |
---|
6727 | | yyout = stdout; |
---|
6728 | | |
---|
6729 | | if ( ! YY_CURRENT_BUFFER ) { |
---|
6730 | | yyensure_buffer_stack (); |
---|
6731 | | YY_CURRENT_BUFFER_LVALUE = |
---|
6732 | | yy_create_buffer(yyin,YY_BUF_SIZE ); |
---|
6733 | | } |
---|
6734 | | |
---|
6735 | | yy_load_buffer_state( ); |
---|
6736 | | } |
---|
6737 | | |
---|
6738 | | while ( 1 ) /* loops until end-of-file is reached */ |
---|
6739 | | { |
---|
6740 | | (yy_more_len) = 0; |
---|
6741 | | if ( (yy_more_flag) ) |
---|
6742 | | { |
---|
6743 | | (yy_more_len) = (yy_c_buf_p) - (yytext_ptr); |
---|
6744 | | (yy_more_flag) = 0; |
---|
6745 | | } |
---|
6746 | | yy_cp = (yy_c_buf_p); |
---|
6747 | | |
---|
6748 | | /* Support of yytext. */ |
---|
6749 | | *yy_cp = (yy_hold_char); |
---|
6750 | | |
---|
6751 | | /* yy_bp points to the position in yy_ch_buf of the start of |
---|
6752 | | * the current run. |
---|
6753 | | */ |
---|
6754 | | yy_bp = yy_cp; |
---|
6755 | | |
---|
6756 | | yy_current_state = (yy_start); |
---|
6757 | | |
---|
6758 | | (yy_state_ptr) = (yy_state_buf); |
---|
6759 | | *(yy_state_ptr)++ = yy_current_state; |
---|
6760 | | |
---|
6761 | | yy_match: |
---|
6762 | | do |
---|
6763 | | { |
---|
6764 | | register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; |
---|
6765 | | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
---|
6766 | | { |
---|
6767 | | yy_current_state = (int) yy_def[yy_current_state]; |
---|
6768 | | if ( yy_current_state >= 13 ) |
---|
6769 | | yy_c = yy_meta[(unsigned int) yy_c]; |
---|
6770 | | } |
---|
6771 | | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; |
---|
6772 | | *(yy_state_ptr)++ = yy_current_state; |
---|
6773 | | ++yy_cp; |
---|
6774 | | } |
---|
6775 | | while ( yy_base[yy_current_state] != 10 ); |
---|
6776 | | |
---|
6777 | | yy_find_action: |
---|
6778 | | yy_current_state = *--(yy_state_ptr); |
---|
6779 | | (yy_lp) = yy_accept[yy_current_state]; |
---|
6780 | | find_rule: /* we branch to this label when backing up */ |
---|
6781 | | for ( ; ; ) /* until we find what rule we matched */ |
---|
6782 | | { |
---|
6783 | | if ( (yy_lp) && (yy_lp) < yy_accept[yy_current_state + 1] ) |
---|
6784 | | { |
---|
6785 | | yy_act = yy_acclist[(yy_lp)]; |
---|
6786 | | { |
---|
6787 | | (yy_full_match) = yy_cp; |
---|
6788 | | break; |
---|
6789 | | } |
---|
6790 | | } |
---|
6791 | | --yy_cp; |
---|
6792 | | yy_current_state = *--(yy_state_ptr); |
---|
6793 | | (yy_lp) = yy_accept[yy_current_state]; |
---|
6794 | | } |
---|
6795 | | |
---|
6796 | | YY_DO_BEFORE_ACTION; |
---|
6797 | | |
---|
6798 | | do_action: /* This label is used only to access EOF actions. */ |
---|
6799 | | |
---|
6800 | | switch ( yy_act ) |
---|
6801 | | { /* beginning of action switch */ |
---|
6802 | | case 1: |
---|
6803 | | YY_RULE_SETUP |
---|
6804 | | #line 2 "conftest.l" |
---|
6805 | | { ECHO; } |
---|
6806 | | YY_BREAK |
---|
6807 | | case 2: |
---|
6808 | | YY_RULE_SETUP |
---|
6809 | | #line 3 "conftest.l" |
---|
6810 | | { REJECT; } |
---|
6811 | | YY_BREAK |
---|
6812 | | case 3: |
---|
6813 | | YY_RULE_SETUP |
---|
6814 | | #line 4 "conftest.l" |
---|
6815 | | { yymore (); } |
---|
6816 | | YY_BREAK |
---|
6817 | | case 4: |
---|
6818 | | YY_RULE_SETUP |
---|
6819 | | #line 5 "conftest.l" |
---|
6820 | | { yyless (1); } |
---|
6821 | | YY_BREAK |
---|
6822 | | case 5: |
---|
6823 | | YY_RULE_SETUP |
---|
6824 | | #line 6 "conftest.l" |
---|
6825 | | { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ |
---|
6826 | | yyless ((input () != 0)); } |
---|
6827 | | YY_BREAK |
---|
6828 | | case 6: |
---|
6829 | | YY_RULE_SETUP |
---|
6830 | | #line 8 "conftest.l" |
---|
6831 | | { unput (yytext[0]); } |
---|
6832 | | YY_BREAK |
---|
6833 | | case 7: |
---|
6834 | | YY_RULE_SETUP |
---|
6835 | | #line 9 "conftest.l" |
---|
6836 | | { BEGIN INITIAL; } |
---|
6837 | | YY_BREAK |
---|
6838 | | case 8: |
---|
6839 | | YY_RULE_SETUP |
---|
6840 | | #line 10 "conftest.l" |
---|
6841 | | ECHO; |
---|
6842 | | YY_BREAK |
---|
6843 | | #line 792 "lex.yy.c" |
---|
6844 | | case YY_STATE_EOF(INITIAL): |
---|
6845 | | yyterminate(); |
---|
6846 | | |
---|
6847 | | case YY_END_OF_BUFFER: |
---|
6848 | | { |
---|
6849 | | /* Amount of text matched not including the EOB char. */ |
---|
6850 | | int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1; |
---|
6851 | | |
---|
6852 | | /* Undo the effects of YY_DO_BEFORE_ACTION. */ |
---|
6853 | | *yy_cp = (yy_hold_char); |
---|
6854 | | YY_RESTORE_YY_MORE_OFFSET |
---|
6855 | | |
---|
6856 | | if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) |
---|
6857 | | { |
---|
6858 | | /* We're scanning a new file or input source. It's |
---|
6859 | | * possible that this happened because the user |
---|
6860 | | * just pointed yyin at a new source and called |
---|
6861 | | * yylex(). If so, then we have to assure |
---|
6862 | | * consistency between YY_CURRENT_BUFFER and our |
---|
6863 | | * globals. Here is the right place to do so, because |
---|
6864 | | * this is the first action (other than possibly a |
---|
6865 | | * back-up) that will match for the new input source. |
---|
6866 | | */ |
---|
6867 | | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; |
---|
6868 | | YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; |
---|
6869 | | YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; |
---|
6870 | | } |
---|
6871 | | |
---|
6872 | | /* Note that here we test for yy_c_buf_p "<=" to the position |
---|
6873 | | * of the first EOB in the buffer, since yy_c_buf_p will |
---|
6874 | | * already have been incremented past the NUL character |
---|
6875 | | * (since all states make transitions on EOB to the |
---|
6876 | | * end-of-buffer state). Contrast this with the test |
---|
6877 | | * in input(). |
---|
6878 | | */ |
---|
6879 | | if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) |
---|
6880 | | { /* This was really a NUL. */ |
---|
6881 | | yy_state_type yy_next_state; |
---|
6882 | | |
---|
6883 | | (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; |
---|
6884 | | |
---|
6885 | | yy_current_state = yy_get_previous_state( ); |
---|
6886 | | |
---|
6887 | | /* Okay, we're now positioned to make the NUL |
---|
6888 | | * transition. We couldn't have |
---|
6889 | | * yy_get_previous_state() go ahead and do it |
---|
6890 | | * for us because it doesn't know how to deal |
---|
6891 | | * with the possibility of jamming (and we don't |
---|
6892 | | * want to build jamming into it because then it |
---|
6893 | | * will run more slowly). |
---|
6894 | | */ |
---|
6895 | | |
---|
6896 | | yy_next_state = yy_try_NUL_trans( yy_current_state ); |
---|
6897 | | |
---|
6898 | | yy_bp = (yytext_ptr) + YY_MORE_ADJ; |
---|
6899 | | |
---|
6900 | | if ( yy_next_state ) |
---|
6901 | | { |
---|
6902 | | /* Consume the NUL. */ |
---|
6903 | | yy_cp = ++(yy_c_buf_p); |
---|
6904 | | yy_current_state = yy_next_state; |
---|
6905 | | goto yy_match; |
---|
6906 | | } |
---|
6907 | | |
---|
6908 | | else |
---|
6909 | | { |
---|
6910 | | yy_cp = (yy_c_buf_p); |
---|
6911 | | goto yy_find_action; |
---|
6912 | | } |
---|
6913 | | } |
---|
6914 | | |
---|
6915 | | else switch ( yy_get_next_buffer( ) ) |
---|
6916 | | { |
---|
6917 | | case EOB_ACT_END_OF_FILE: |
---|
6918 | | { |
---|
6919 | | (yy_did_buffer_switch_on_eof) = 0; |
---|
6920 | | |
---|
6921 | | if ( yywrap( ) ) |
---|
6922 | | { |
---|
6923 | | /* Note: because we've taken care in |
---|
6924 | | * yy_get_next_buffer() to have set up |
---|
6925 | | * yytext, we can now set up |
---|
6926 | | * yy_c_buf_p so that if some total |
---|
6927 | | * hoser (like flex itself) wants to |
---|
6928 | | * call the scanner after we return the |
---|
6929 | | * YY_NULL, it'll still work - another |
---|
6930 | | * YY_NULL will get returned. |
---|
6931 | | */ |
---|
6932 | | (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; |
---|
6933 | | |
---|
6934 | | yy_act = YY_STATE_EOF(YY_START); |
---|
6935 | | goto do_action; |
---|
6936 | | } |
---|
6937 | | |
---|
6938 | | else |
---|
6939 | | { |
---|
6940 | | if ( ! (yy_did_buffer_switch_on_eof) ) |
---|
6941 | | YY_NEW_FILE; |
---|
6942 | | } |
---|
6943 | | break; |
---|
6944 | | } |
---|
6945 | | |
---|
6946 | | case EOB_ACT_CONTINUE_SCAN: |
---|
6947 | | (yy_c_buf_p) = |
---|
6948 | | (yytext_ptr) + yy_amount_of_matched_text; |
---|
6949 | | |
---|
6950 | | yy_current_state = yy_get_previous_state( ); |
---|
6951 | | |
---|
6952 | | yy_cp = (yy_c_buf_p); |
---|
6953 | | yy_bp = (yytext_ptr) + YY_MORE_ADJ; |
---|
6954 | | goto yy_match; |
---|
6955 | | |
---|
6956 | | case EOB_ACT_LAST_MATCH: |
---|
6957 | | (yy_c_buf_p) = |
---|
6958 | | &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; |
---|
6959 | | |
---|
6960 | | yy_current_state = yy_get_previous_state( ); |
---|
6961 | | |
---|
6962 | | yy_cp = (yy_c_buf_p); |
---|
6963 | | yy_bp = (yytext_ptr) + YY_MORE_ADJ; |
---|
6964 | | goto yy_find_action; |
---|
6965 | | } |
---|
6966 | | break; |
---|
6967 | | } |
---|
6968 | | |
---|
6969 | | default: |
---|
6970 | | YY_FATAL_ERROR( |
---|
6971 | | "fatal flex scanner internal error--no action found" ); |
---|
6972 | | } /* end of action switch */ |
---|
6973 | | } /* end of scanning one token */ |
---|
6974 | | } /* end of yylex */ |
---|
6975 | | |
---|
6976 | | /* yy_get_next_buffer - try to read in a new buffer |
---|
6977 | | * |
---|
6978 | | * Returns a code representing an action: |
---|
6979 | | * EOB_ACT_LAST_MATCH - |
---|
6980 | | * EOB_ACT_CONTINUE_SCAN - continue scanning from current position |
---|
6981 | | * EOB_ACT_END_OF_FILE - end of file |
---|
6982 | | */ |
---|
6983 | | static int yy_get_next_buffer (void) |
---|
6984 | | { |
---|
6985 | | register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; |
---|
6986 | | register char *source = (yytext_ptr); |
---|
6987 | | register int number_to_move, i; |
---|
6988 | | int ret_val; |
---|
6989 | | |
---|
6990 | | if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) |
---|
6991 | | YY_FATAL_ERROR( |
---|
6992 | | "fatal flex scanner internal error--end of buffer missed" ); |
---|
6993 | | |
---|
6994 | | if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) |
---|
6995 | | { /* Don't try to fill the buffer, so this is an EOF. */ |
---|
6996 | | if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 ) |
---|
6997 | | { |
---|
6998 | | /* We matched a single character, the EOB, so |
---|
6999 | | * treat this as a final EOF. |
---|
7000 | | */ |
---|
7001 | | return EOB_ACT_END_OF_FILE; |
---|
7002 | | } |
---|
7003 | | |
---|
7004 | | else |
---|
7005 | | { |
---|
7006 | | /* We matched some text prior to the EOB, first |
---|
7007 | | * process it. |
---|
7008 | | */ |
---|
7009 | | return EOB_ACT_LAST_MATCH; |
---|
7010 | | } |
---|
7011 | | } |
---|
7012 | | |
---|
7013 | | /* Try to read more data. */ |
---|
7014 | | |
---|
7015 | | /* First move last chars to start of buffer. */ |
---|
7016 | | number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1; |
---|
7017 | | |
---|
7018 | | for ( i = 0; i < number_to_move; ++i ) |
---|
7019 | | *(dest++) = *(source++); |
---|
7020 | | |
---|
7021 | | if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) |
---|
7022 | | /* don't do the read, it's not guaranteed to return an EOF, |
---|
7023 | | * just force an EOF |
---|
7024 | | */ |
---|
7025 | | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0; |
---|
7026 | | |
---|
7027 | | else |
---|
7028 | | { |
---|
7029 | | yy_size_t num_to_read = |
---|
7030 | | YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; |
---|
7031 | | |
---|
7032 | | while ( num_to_read <= 0 ) |
---|
7033 | | { /* Not enough room in the buffer - grow it. */ |
---|
7034 | | |
---|
7035 | | YY_FATAL_ERROR( |
---|
7036 | | "input buffer overflow, can't enlarge buffer because scanner uses REJECT" ); |
---|
7037 | | |
---|
7038 | | } |
---|
7039 | | |
---|
7040 | | if ( num_to_read > YY_READ_BUF_SIZE ) |
---|
7041 | | num_to_read = YY_READ_BUF_SIZE; |
---|
7042 | | |
---|
7043 | | /* Read in more data. */ |
---|
7044 | | YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), |
---|
7045 | | (yy_n_chars), num_to_read ); |
---|
7046 | | |
---|
7047 | | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); |
---|
7048 | | } |
---|
7049 | | |
---|
7050 | | if ( (yy_n_chars) == 0 ) |
---|
7051 | | { |
---|
7052 | | if ( number_to_move == YY_MORE_ADJ ) |
---|
7053 | | { |
---|
7054 | | ret_val = EOB_ACT_END_OF_FILE; |
---|
7055 | | yyrestart(yyin ); |
---|
7056 | | } |
---|
7057 | | |
---|
7058 | | else |
---|
7059 | | { |
---|
7060 | | ret_val = EOB_ACT_LAST_MATCH; |
---|
7061 | | YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = |
---|
7062 | | YY_BUFFER_EOF_PENDING; |
---|
7063 | | } |
---|
7064 | | } |
---|
7065 | | |
---|
7066 | | else |
---|
7067 | | ret_val = EOB_ACT_CONTINUE_SCAN; |
---|
7068 | | |
---|
7069 | | if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { |
---|
7070 | | /* Extend the array by 50%, plus the number we really need. */ |
---|
7071 | | yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); |
---|
7072 | | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ); |
---|
7073 | | if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) |
---|
7074 | | YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); |
---|
7075 | | } |
---|
7076 | | |
---|
7077 | | (yy_n_chars) += number_to_move; |
---|
7078 | | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; |
---|
7079 | | YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; |
---|
7080 | | |
---|
7081 | | (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; |
---|
7082 | | |
---|
7083 | | return ret_val; |
---|
7084 | | } |
---|
7085 | | |
---|
7086 | | /* yy_get_previous_state - get the state just before the EOB char was reached */ |
---|
7087 | | |
---|
7088 | | static yy_state_type yy_get_previous_state (void) |
---|
7089 | | { |
---|
7090 | | register yy_state_type yy_current_state; |
---|
7091 | | register char *yy_cp; |
---|
7092 | | |
---|
7093 | | yy_current_state = (yy_start); |
---|
7094 | | |
---|
7095 | | (yy_state_ptr) = (yy_state_buf); |
---|
7096 | | *(yy_state_ptr)++ = yy_current_state; |
---|
7097 | | |
---|
7098 | | for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) |
---|
7099 | | { |
---|
7100 | | register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); |
---|
7101 | | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
---|
7102 | | { |
---|
7103 | | yy_current_state = (int) yy_def[yy_current_state]; |
---|
7104 | | if ( yy_current_state >= 13 ) |
---|
7105 | | yy_c = yy_meta[(unsigned int) yy_c]; |
---|
7106 | | } |
---|
7107 | | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; |
---|
7108 | | *(yy_state_ptr)++ = yy_current_state; |
---|
7109 | | } |
---|
7110 | | |
---|
7111 | | return yy_current_state; |
---|
7112 | | } |
---|
7113 | | |
---|
7114 | | /* yy_try_NUL_trans - try to make a transition on the NUL character |
---|
7115 | | * |
---|
7116 | | * synopsis |
---|
7117 | | * next_state = yy_try_NUL_trans( current_state ); |
---|
7118 | | */ |
---|
7119 | | static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) |
---|
7120 | | { |
---|
7121 | | register int yy_is_jam; |
---|
7122 | | |
---|
7123 | | register YY_CHAR yy_c = 1; |
---|
7124 | | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
---|
7125 | | { |
---|
7126 | | yy_current_state = (int) yy_def[yy_current_state]; |
---|
7127 | | if ( yy_current_state >= 13 ) |
---|
7128 | | yy_c = yy_meta[(unsigned int) yy_c]; |
---|
7129 | | } |
---|
7130 | | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; |
---|
7131 | | yy_is_jam = (yy_current_state == 12); |
---|
7132 | | if ( ! yy_is_jam ) |
---|
7133 | | *(yy_state_ptr)++ = yy_current_state; |
---|
7134 | | |
---|
7135 | | return yy_is_jam ? 0 : yy_current_state; |
---|
7136 | | } |
---|
7137 | | |
---|
7138 | | static void yyunput (int c, register char * yy_bp ) |
---|
7139 | | { |
---|
7140 | | register char *yy_cp; |
---|
7141 | | |
---|
7142 | | yy_cp = (yy_c_buf_p); |
---|
7143 | | |
---|
7144 | | /* undo effects of setting up yytext */ |
---|
7145 | | *yy_cp = (yy_hold_char); |
---|
7146 | | |
---|
7147 | | if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) |
---|
7148 | | { /* need to shift things up to make room */ |
---|
7149 | | /* +2 for EOB chars. */ |
---|
7150 | | register yy_size_t number_to_move = (yy_n_chars) + 2; |
---|
7151 | | register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ |
---|
7152 | | YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; |
---|
7153 | | register char *source = |
---|
7154 | | &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]; |
---|
7155 | | |
---|
7156 | | while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) |
---|
7157 | | *--dest = *--source; |
---|
7158 | | |
---|
7159 | | yy_cp += (int) (dest - source); |
---|
7160 | | yy_bp += (int) (dest - source); |
---|
7161 | | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = |
---|
7162 | | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size; |
---|
7163 | | |
---|
7164 | | if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) |
---|
7165 | | YY_FATAL_ERROR( "flex scanner push-back overflow" ); |
---|
7166 | | } |
---|
7167 | | |
---|
7168 | | *--yy_cp = (char) c; |
---|
7169 | | |
---|
7170 | | (yytext_ptr) = yy_bp; |
---|
7171 | | (yy_hold_char) = *yy_cp; |
---|
7172 | | (yy_c_buf_p) = yy_cp; |
---|
7173 | | } |
---|
7174 | | |
---|
7175 | | #ifndef YY_NO_INPUT |
---|
7176 | | #ifdef __cplusplus |
---|
7177 | | static int yyinput (void) |
---|
7178 | | #else |
---|
7179 | | static int input (void) |
---|
7180 | | #endif |
---|
7181 | | |
---|
7182 | | { |
---|
7183 | | int c; |
---|
7184 | | |
---|
7185 | | *(yy_c_buf_p) = (yy_hold_char); |
---|
7186 | | |
---|
7187 | | if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) |
---|
7188 | | { |
---|
7189 | | /* yy_c_buf_p now points to the character we want to return. |
---|
7190 | | * If this occurs *before* the EOB characters, then it's a |
---|
7191 | | * valid NUL; if not, then we've hit the end of the buffer. |
---|
7192 | | */ |
---|
7193 | | if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) |
---|
7194 | | /* This was really a NUL. */ |
---|
7195 | | *(yy_c_buf_p) = '\0'; |
---|
7196 | | |
---|
7197 | | else |
---|
7198 | | { /* need more input */ |
---|
7199 | | yy_size_t offset = (yy_c_buf_p) - (yytext_ptr); |
---|
7200 | | ++(yy_c_buf_p); |
---|
7201 | | |
---|
7202 | | switch ( yy_get_next_buffer( ) ) |
---|
7203 | | { |
---|
7204 | | case EOB_ACT_LAST_MATCH: |
---|
7205 | | /* This happens because yy_g_n_b() |
---|
7206 | | * sees that we've accumulated a |
---|
7207 | | * token and flags that we need to |
---|
7208 | | * try matching the token before |
---|
7209 | | * proceeding. But for input(), |
---|
7210 | | * there's no matching to consider. |
---|
7211 | | * So convert the EOB_ACT_LAST_MATCH |
---|
7212 | | * to EOB_ACT_END_OF_FILE. |
---|
7213 | | */ |
---|
7214 | | |
---|
7215 | | /* Reset buffer status. */ |
---|
7216 | | yyrestart(yyin ); |
---|
7217 | | |
---|
7218 | | /*FALLTHROUGH*/ |
---|
7219 | | |
---|
7220 | | case EOB_ACT_END_OF_FILE: |
---|
7221 | | { |
---|
7222 | | if ( yywrap( ) ) |
---|
7223 | | return EOF; |
---|
7224 | | |
---|
7225 | | if ( ! (yy_did_buffer_switch_on_eof) ) |
---|
7226 | | YY_NEW_FILE; |
---|
7227 | | #ifdef __cplusplus |
---|
7228 | | return yyinput(); |
---|
7229 | | #else |
---|
7230 | | return input(); |
---|
7231 | | #endif |
---|
7232 | | } |
---|
7233 | | |
---|
7234 | | case EOB_ACT_CONTINUE_SCAN: |
---|
7235 | | (yy_c_buf_p) = (yytext_ptr) + offset; |
---|
7236 | | break; |
---|
7237 | | } |
---|
7238 | | } |
---|
7239 | | } |
---|
7240 | | |
---|
7241 | | c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ |
---|
7242 | | *(yy_c_buf_p) = '\0'; /* preserve yytext */ |
---|
7243 | | (yy_hold_char) = *++(yy_c_buf_p); |
---|
7244 | | |
---|
7245 | | return c; |
---|
7246 | | } |
---|
7247 | | #endif /* ifndef YY_NO_INPUT */ |
---|
7248 | | |
---|
7249 | | /** Immediately switch to a different input stream. |
---|
7250 | | * @param input_file A readable stream. |
---|
7251 | | * |
---|
7252 | | * @note This function does not reset the start condition to @c INITIAL . |
---|
7253 | | */ |
---|
7254 | | void yyrestart (FILE * input_file ) |
---|
7255 | | { |
---|
7256 | | |
---|
7257 | | if ( ! YY_CURRENT_BUFFER ){ |
---|
7258 | | yyensure_buffer_stack (); |
---|
7259 | | YY_CURRENT_BUFFER_LVALUE = |
---|
7260 | | yy_create_buffer(yyin,YY_BUF_SIZE ); |
---|
7261 | | } |
---|
7262 | | |
---|
7263 | | yy_init_buffer(YY_CURRENT_BUFFER,input_file ); |
---|
7264 | | yy_load_buffer_state( ); |
---|
7265 | | } |
---|
7266 | | |
---|
7267 | | /** Switch to a different input buffer. |
---|
7268 | | * @param new_buffer The new input buffer. |
---|
7269 | | * |
---|
7270 | | */ |
---|
7271 | | void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ) |
---|
7272 | | { |
---|
7273 | | |
---|
7274 | | /* TODO. We should be able to replace this entire function body |
---|
7275 | | * with |
---|
7276 | | * yypop_buffer_state(); |
---|
7277 | | * yypush_buffer_state(new_buffer); |
---|
7278 | | */ |
---|
7279 | | yyensure_buffer_stack (); |
---|
7280 | | if ( YY_CURRENT_BUFFER == new_buffer ) |
---|
7281 | | return; |
---|
7282 | | |
---|
7283 | | if ( YY_CURRENT_BUFFER ) |
---|
7284 | | { |
---|
7285 | | /* Flush out information for old buffer. */ |
---|
7286 | | *(yy_c_buf_p) = (yy_hold_char); |
---|
7287 | | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); |
---|
7288 | | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); |
---|
7289 | | } |
---|
7290 | | |
---|
7291 | | YY_CURRENT_BUFFER_LVALUE = new_buffer; |
---|
7292 | | yy_load_buffer_state( ); |
---|
7293 | | |
---|
7294 | | /* We don't actually know whether we did this switch during |
---|
7295 | | * EOF (yywrap()) processing, but the only time this flag |
---|
7296 | | * is looked at is after yywrap() is called, so it's safe |
---|
7297 | | * to go ahead and always set it. |
---|
7298 | | */ |
---|
7299 | | (yy_did_buffer_switch_on_eof) = 1; |
---|
7300 | | } |
---|
7301 | | |
---|
7302 | | static void yy_load_buffer_state (void) |
---|
7303 | | { |
---|
7304 | | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; |
---|
7305 | | (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; |
---|
7306 | | yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; |
---|
7307 | | (yy_hold_char) = *(yy_c_buf_p); |
---|
7308 | | } |
---|
7309 | | |
---|
7310 | | /** Allocate and initialize an input buffer state. |
---|
7311 | | * @param file A readable stream. |
---|
7312 | | * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. |
---|
7313 | | * |
---|
7314 | | * @return the allocated buffer state. |
---|
7315 | | */ |
---|
7316 | | YY_BUFFER_STATE yy_create_buffer (FILE * file, int size ) |
---|
7317 | | { |
---|
7318 | | YY_BUFFER_STATE b; |
---|
7319 | | |
---|
7320 | | b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); |
---|
7321 | | if ( ! b ) |
---|
7322 | | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); |
---|
7323 | | |
---|
7324 | | b->yy_buf_size = size; |
---|
7325 | | |
---|
7326 | | /* yy_ch_buf has to be 2 characters longer than the size given because |
---|
7327 | | * we need to put in 2 end-of-buffer characters. |
---|
7328 | | */ |
---|
7329 | | b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 ); |
---|
7330 | | if ( ! b->yy_ch_buf ) |
---|
7331 | | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); |
---|
7332 | | |
---|
7333 | | b->yy_is_our_buffer = 1; |
---|
7334 | | |
---|
7335 | | yy_init_buffer(b,file ); |
---|
7336 | | |
---|
7337 | | return b; |
---|
7338 | | } |
---|
7339 | | |
---|
7340 | | /** Destroy the buffer. |
---|
7341 | | * @param b a buffer created with yy_create_buffer() |
---|
7342 | | * |
---|
7343 | | */ |
---|
7344 | | void yy_delete_buffer (YY_BUFFER_STATE b ) |
---|
7345 | | { |
---|
7346 | | |
---|
7347 | | if ( ! b ) |
---|
7348 | | return; |
---|
7349 | | |
---|
7350 | | if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ |
---|
7351 | | YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; |
---|
7352 | | |
---|
7353 | | if ( b->yy_is_our_buffer ) |
---|
7354 | | yyfree((void *) b->yy_ch_buf ); |
---|
7355 | | |
---|
7356 | | yyfree((void *) b ); |
---|
7357 | | } |
---|
7358 | | |
---|
7359 | | /* Initializes or reinitializes a buffer. |
---|
7360 | | * This function is sometimes called more than once on the same buffer, |
---|
7361 | | * such as during a yyrestart() or at EOF. |
---|
7362 | | */ |
---|
7363 | | static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file ) |
---|
7364 | | |
---|
7365 | | { |
---|
7366 | | int oerrno = errno; |
---|
7367 | | |
---|
7368 | | yy_flush_buffer(b ); |
---|
7369 | | |
---|
7370 | | b->yy_input_file = file; |
---|
7371 | | b->yy_fill_buffer = 1; |
---|
7372 | | |
---|
7373 | | /* If b is the current buffer, then yy_init_buffer was _probably_ |
---|
7374 | | * called from yyrestart() or through yy_get_next_buffer. |
---|
7375 | | * In that case, we don't want to reset the lineno or column. |
---|
7376 | | */ |
---|
7377 | | if (b != YY_CURRENT_BUFFER){ |
---|
7378 | | b->yy_bs_lineno = 1; |
---|
7379 | | b->yy_bs_column = 0; |
---|
7380 | | } |
---|
7381 | | |
---|
7382 | | b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; |
---|
7383 | | |
---|
7384 | | errno = oerrno; |
---|
7385 | | } |
---|
7386 | | |
---|
7387 | | /** Discard all buffered characters. On the next scan, YY_INPUT will be called. |
---|
7388 | | * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. |
---|
7389 | | * |
---|
7390 | | */ |
---|
7391 | | void yy_flush_buffer (YY_BUFFER_STATE b ) |
---|
7392 | | { |
---|
7393 | | if ( ! b ) |
---|
7394 | | return; |
---|
7395 | | |
---|
7396 | | b->yy_n_chars = 0; |
---|
7397 | | |
---|
7398 | | /* We always need two end-of-buffer characters. The first causes |
---|
7399 | | * a transition to the end-of-buffer state. The second causes |
---|
7400 | | * a jam in that state. |
---|
7401 | | */ |
---|
7402 | | b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; |
---|
7403 | | b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; |
---|
7404 | | |
---|
7405 | | b->yy_buf_pos = &b->yy_ch_buf[0]; |
---|
7406 | | |
---|
7407 | | b->yy_at_bol = 1; |
---|
7408 | | b->yy_buffer_status = YY_BUFFER_NEW; |
---|
7409 | | |
---|
7410 | | if ( b == YY_CURRENT_BUFFER ) |
---|
7411 | | yy_load_buffer_state( ); |
---|
7412 | | } |
---|
7413 | | |
---|
7414 | | /** Pushes the new state onto the stack. The new state becomes |
---|
7415 | | * the current state. This function will allocate the stack |
---|
7416 | | * if necessary. |
---|
7417 | | * @param new_buffer The new state. |
---|
7418 | | * |
---|
7419 | | */ |
---|
7420 | | void yypush_buffer_state (YY_BUFFER_STATE new_buffer ) |
---|
7421 | | { |
---|
7422 | | if (new_buffer == NULL) |
---|
7423 | | return; |
---|
7424 | | |
---|
7425 | | yyensure_buffer_stack(); |
---|
7426 | | |
---|
7427 | | /* This block is copied from yy_switch_to_buffer. */ |
---|
7428 | | if ( YY_CURRENT_BUFFER ) |
---|
7429 | | { |
---|
7430 | | /* Flush out information for old buffer. */ |
---|
7431 | | *(yy_c_buf_p) = (yy_hold_char); |
---|
7432 | | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); |
---|
7433 | | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); |
---|
7434 | | } |
---|
7435 | | |
---|
7436 | | /* Only push if top exists. Otherwise, replace top. */ |
---|
7437 | | if (YY_CURRENT_BUFFER) |
---|
7438 | | (yy_buffer_stack_top)++; |
---|
7439 | | YY_CURRENT_BUFFER_LVALUE = new_buffer; |
---|
7440 | | |
---|
7441 | | /* copied from yy_switch_to_buffer. */ |
---|
7442 | | yy_load_buffer_state( ); |
---|
7443 | | (yy_did_buffer_switch_on_eof) = 1; |
---|
7444 | | } |
---|
7445 | | |
---|
7446 | | /** Removes and deletes the top of the stack, if present. |
---|
7447 | | * The next element becomes the new top. |
---|
7448 | | * |
---|
7449 | | */ |
---|
7450 | | void yypop_buffer_state (void) |
---|
7451 | | { |
---|
7452 | | if (!YY_CURRENT_BUFFER) |
---|
7453 | | return; |
---|
7454 | | |
---|
7455 | | yy_delete_buffer(YY_CURRENT_BUFFER ); |
---|
7456 | | YY_CURRENT_BUFFER_LVALUE = NULL; |
---|
7457 | | if ((yy_buffer_stack_top) > 0) |
---|
7458 | | --(yy_buffer_stack_top); |
---|
7459 | | |
---|
7460 | | if (YY_CURRENT_BUFFER) { |
---|
7461 | | yy_load_buffer_state( ); |
---|
7462 | | (yy_did_buffer_switch_on_eof) = 1; |
---|
7463 | | } |
---|
7464 | | } |
---|
7465 | | |
---|
7466 | | /* Allocates the stack if it does not exist. |
---|
7467 | | * Guarantees space for at least one push. |
---|
7468 | | */ |
---|
7469 | | static void yyensure_buffer_stack (void) |
---|
7470 | | { |
---|
7471 | | yy_size_t num_to_alloc; |
---|
7472 | | |
---|
7473 | | if (!(yy_buffer_stack)) { |
---|
7474 | | |
---|
7475 | | /* First allocation is just for 2 elements, since we don't know if this |
---|
7476 | | * scanner will even need a stack. We use 2 instead of 1 to avoid an |
---|
7477 | | * immediate realloc on the next call. |
---|
7478 | | */ |
---|
7479 | | num_to_alloc = 1; |
---|
7480 | | (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc |
---|
7481 | | (num_to_alloc * sizeof(struct yy_buffer_state*) |
---|
7482 | | ); |
---|
7483 | | if ( ! (yy_buffer_stack) ) |
---|
7484 | | YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); |
---|
7485 | | |
---|
7486 | | memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); |
---|
7487 | | |
---|
7488 | | (yy_buffer_stack_max) = num_to_alloc; |
---|
7489 | | (yy_buffer_stack_top) = 0; |
---|
7490 | | return; |
---|
7491 | | } |
---|
7492 | | |
---|
7493 | | if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ |
---|
7494 | | |
---|
7495 | | /* Increase the buffer to prepare for a possible push. */ |
---|
7496 | | int grow_size = 8 /* arbitrary grow size */; |
---|
7497 | | |
---|
7498 | | num_to_alloc = (yy_buffer_stack_max) + grow_size; |
---|
7499 | | (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc |
---|
7500 | | ((yy_buffer_stack), |
---|
7501 | | num_to_alloc * sizeof(struct yy_buffer_state*) |
---|
7502 | | ); |
---|
7503 | | if ( ! (yy_buffer_stack) ) |
---|
7504 | | YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); |
---|
7505 | | |
---|
7506 | | /* zero only the new slots.*/ |
---|
7507 | | memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); |
---|
7508 | | (yy_buffer_stack_max) = num_to_alloc; |
---|
7509 | | } |
---|
7510 | | } |
---|
7511 | | |
---|
7512 | | /** Setup the input buffer state to scan directly from a user-specified character buffer. |
---|
7513 | | * @param base the character buffer |
---|
7514 | | * @param size the size in bytes of the character buffer |
---|
7515 | | * |
---|
7516 | | * @return the newly allocated buffer state object. |
---|
7517 | | */ |
---|
7518 | | YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size ) |
---|
7519 | | { |
---|
7520 | | YY_BUFFER_STATE b; |
---|
7521 | | |
---|
7522 | | if ( size < 2 || |
---|
7523 | | base[size-2] != YY_END_OF_BUFFER_CHAR || |
---|
7524 | | base[size-1] != YY_END_OF_BUFFER_CHAR ) |
---|
7525 | | /* They forgot to leave room for the EOB's. */ |
---|
7526 | | return 0; |
---|
7527 | | |
---|
7528 | | b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); |
---|
7529 | | if ( ! b ) |
---|
7530 | | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); |
---|
7531 | | |
---|
7532 | | b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ |
---|
7533 | | b->yy_buf_pos = b->yy_ch_buf = base; |
---|
7534 | | b->yy_is_our_buffer = 0; |
---|
7535 | | b->yy_input_file = 0; |
---|
7536 | | b->yy_n_chars = b->yy_buf_size; |
---|
7537 | | b->yy_is_interactive = 0; |
---|
7538 | | b->yy_at_bol = 1; |
---|
7539 | | b->yy_fill_buffer = 0; |
---|
7540 | | b->yy_buffer_status = YY_BUFFER_NEW; |
---|
7541 | | |
---|
7542 | | yy_switch_to_buffer(b ); |
---|
7543 | | |
---|
7544 | | return b; |
---|
7545 | | } |
---|
7546 | | |
---|
7547 | | /** Setup the input buffer state to scan a string. The next call to yylex() will |
---|
7548 | | * scan from a @e copy of @a str. |
---|
7549 | | * @param yystr a NUL-terminated string to scan |
---|
7550 | | * |
---|
7551 | | * @return the newly allocated buffer state object. |
---|
7552 | | * @note If you want to scan bytes that may contain NUL values, then use |
---|
7553 | | * yy_scan_bytes() instead. |
---|
7554 | | */ |
---|
7555 | | YY_BUFFER_STATE yy_scan_string (yyconst char * yystr ) |
---|
7556 | | { |
---|
7557 | | |
---|
7558 | | return yy_scan_bytes(yystr,strlen(yystr) ); |
---|
7559 | | } |
---|
7560 | | |
---|
7561 | | /** Setup the input buffer state to scan the given bytes. The next call to yylex() will |
---|
7562 | | * scan from a @e copy of @a bytes. |
---|
7563 | | * @param yybytes the byte buffer to scan |
---|
7564 | | * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. |
---|
7565 | | * |
---|
7566 | | * @return the newly allocated buffer state object. |
---|
7567 | | */ |
---|
7568 | | YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len ) |
---|
7569 | | { |
---|
7570 | | YY_BUFFER_STATE b; |
---|
7571 | | char *buf; |
---|
7572 | | yy_size_t n; |
---|
7573 | | int i; |
---|
7574 | | |
---|
7575 | | /* Get memory for full buffer, including space for trailing EOB's. */ |
---|
7576 | | n = _yybytes_len + 2; |
---|
7577 | | buf = (char *) yyalloc(n ); |
---|
7578 | | if ( ! buf ) |
---|
7579 | | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); |
---|
7580 | | |
---|
7581 | | for ( i = 0; i < _yybytes_len; ++i ) |
---|
7582 | | buf[i] = yybytes[i]; |
---|
7583 | | |
---|
7584 | | buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; |
---|
7585 | | |
---|
7586 | | b = yy_scan_buffer(buf,n ); |
---|
7587 | | if ( ! b ) |
---|
7588 | | YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); |
---|
7589 | | |
---|
7590 | | /* It's okay to grow etc. this buffer, and we should throw it |
---|
7591 | | * away when we're done. |
---|
7592 | | */ |
---|
7593 | | b->yy_is_our_buffer = 1; |
---|
7594 | | |
---|
7595 | | return b; |
---|
7596 | | } |
---|
7597 | | |
---|
7598 | | #ifndef YY_EXIT_FAILURE |
---|
7599 | | #define YY_EXIT_FAILURE 2 |
---|
7600 | | #endif |
---|
7601 | | |
---|
7602 | | static void yy_fatal_error (yyconst char* msg ) |
---|
7603 | | { |
---|
7604 | | (void) fprintf( stderr, "%s\n", msg ); |
---|
7605 | | exit( YY_EXIT_FAILURE ); |
---|
7606 | | } |
---|
7607 | | |
---|
7608 | | /* Redefine yyless() so it works in section 3 code. */ |
---|
7609 | | |
---|
7610 | | #undef yyless |
---|
7611 | | #define yyless(n) \ |
---|
7612 | | do \ |
---|
7613 | | { \ |
---|
7614 | | /* Undo effects of setting up yytext. */ \ |
---|
7615 | | int yyless_macro_arg = (n); \ |
---|
7616 | | YY_LESS_LINENO(yyless_macro_arg);\ |
---|
7617 | | yytext[yyleng] = (yy_hold_char); \ |
---|
7618 | | (yy_c_buf_p) = yytext + yyless_macro_arg; \ |
---|
7619 | | (yy_hold_char) = *(yy_c_buf_p); \ |
---|
7620 | | *(yy_c_buf_p) = '\0'; \ |
---|
7621 | | yyleng = yyless_macro_arg; \ |
---|
7622 | | } \ |
---|
7623 | | while ( 0 ) |
---|
7624 | | |
---|
7625 | | /* Accessor methods (get/set functions) to struct members. */ |
---|
7626 | | |
---|
7627 | | /** Get the current line number. |
---|
7628 | | * |
---|
7629 | | */ |
---|
7630 | | int yyget_lineno (void) |
---|
7631 | | { |
---|
7632 | | |
---|
7633 | | return yylineno; |
---|
7634 | | } |
---|
7635 | | |
---|
7636 | | /** Get the input stream. |
---|
7637 | | * |
---|
7638 | | */ |
---|
7639 | | FILE *yyget_in (void) |
---|
7640 | | { |
---|
7641 | | return yyin; |
---|
7642 | | } |
---|
7643 | | |
---|
7644 | | /** Get the output stream. |
---|
7645 | | * |
---|
7646 | | */ |
---|
7647 | | FILE *yyget_out (void) |
---|
7648 | | { |
---|
7649 | | return yyout; |
---|
7650 | | } |
---|
7651 | | |
---|
7652 | | /** Get the length of the current token. |
---|
7653 | | * |
---|
7654 | | */ |
---|
7655 | | yy_size_t yyget_leng (void) |
---|
7656 | | { |
---|
7657 | | return yyleng; |
---|
7658 | | } |
---|
7659 | | |
---|
7660 | | /** Get the current token. |
---|
7661 | | * |
---|
7662 | | */ |
---|
7663 | | |
---|
7664 | | char *yyget_text (void) |
---|
7665 | | { |
---|
7666 | | return yytext; |
---|
7667 | | } |
---|
7668 | | |
---|
7669 | | /** Set the current line number. |
---|
7670 | | * @param line_number |
---|
7671 | | * |
---|
7672 | | */ |
---|
7673 | | void yyset_lineno (int line_number ) |
---|
7674 | | { |
---|
7675 | | |
---|
7676 | | yylineno = line_number; |
---|
7677 | | } |
---|
7678 | | |
---|
7679 | | /** Set the input stream. This does not discard the current |
---|
7680 | | * input buffer. |
---|
7681 | | * @param in_str A readable stream. |
---|
7682 | | * |
---|
7683 | | * @see yy_switch_to_buffer |
---|
7684 | | */ |
---|
7685 | | void yyset_in (FILE * in_str ) |
---|
7686 | | { |
---|
7687 | | yyin = in_str ; |
---|
7688 | | } |
---|
7689 | | |
---|
7690 | | void yyset_out (FILE * out_str ) |
---|
7691 | | { |
---|
7692 | | yyout = out_str ; |
---|
7693 | | } |
---|
7694 | | |
---|
7695 | | int yyget_debug (void) |
---|
7696 | | { |
---|
7697 | | return yy_flex_debug; |
---|
7698 | | } |
---|
7699 | | |
---|
7700 | | void yyset_debug (int bdebug ) |
---|
7701 | | { |
---|
7702 | | yy_flex_debug = bdebug ; |
---|
7703 | | } |
---|
7704 | | |
---|
7705 | | static int yy_init_globals (void) |
---|
7706 | | { |
---|
7707 | | /* Initialization is the same as for the non-reentrant scanner. |
---|
7708 | | * This function is called from yylex_destroy(), so don't allocate here. |
---|
7709 | | */ |
---|
7710 | | |
---|
7711 | | (yy_buffer_stack) = 0; |
---|
7712 | | (yy_buffer_stack_top) = 0; |
---|
7713 | | (yy_buffer_stack_max) = 0; |
---|
7714 | | (yy_c_buf_p) = (char *) 0; |
---|
7715 | | (yy_init) = 0; |
---|
7716 | | (yy_start) = 0; |
---|
7717 | | |
---|
7718 | | (yy_state_buf) = 0; |
---|
7719 | | (yy_state_ptr) = 0; |
---|
7720 | | (yy_full_match) = 0; |
---|
7721 | | (yy_lp) = 0; |
---|
7722 | | |
---|
7723 | | /* Defined in main.c */ |
---|
7724 | | #ifdef YY_STDINIT |
---|
7725 | | yyin = stdin; |
---|
7726 | | yyout = stdout; |
---|
7727 | | #else |
---|
7728 | | yyin = (FILE *) 0; |
---|
7729 | | yyout = (FILE *) 0; |
---|
7730 | | #endif |
---|
7731 | | |
---|
7732 | | /* For future reference: Set errno on error, since we are called by |
---|
7733 | | * yylex_init() |
---|
7734 | | */ |
---|
7735 | | return 0; |
---|
7736 | | } |
---|
7737 | | |
---|
7738 | | /* yylex_destroy is for both reentrant and non-reentrant scanners. */ |
---|
7739 | | int yylex_destroy (void) |
---|
7740 | | { |
---|
7741 | | |
---|
7742 | | /* Pop the buffer stack, destroying each element. */ |
---|
7743 | | while(YY_CURRENT_BUFFER){ |
---|
7744 | | yy_delete_buffer(YY_CURRENT_BUFFER ); |
---|
7745 | | YY_CURRENT_BUFFER_LVALUE = NULL; |
---|
7746 | | yypop_buffer_state(); |
---|
7747 | | } |
---|
7748 | | |
---|
7749 | | /* Destroy the stack itself. */ |
---|
7750 | | yyfree((yy_buffer_stack) ); |
---|
7751 | | (yy_buffer_stack) = NULL; |
---|
7752 | | |
---|
7753 | | yyfree ( (yy_state_buf) ); |
---|
7754 | | (yy_state_buf) = NULL; |
---|
7755 | | |
---|
7756 | | /* Reset the globals. This is important in a non-reentrant scanner so the next time |
---|
7757 | | * yylex() is called, initialization will occur. */ |
---|
7758 | | yy_init_globals( ); |
---|
7759 | | |
---|
7760 | | return 0; |
---|
7761 | | } |
---|
7762 | | |
---|
7763 | | /* |
---|
7764 | | * Internal utility routines. |
---|
7765 | | */ |
---|
7766 | | |
---|
7767 | | #ifndef yytext_ptr |
---|
7768 | | static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) |
---|
7769 | | { |
---|
7770 | | register int i; |
---|
7771 | | for ( i = 0; i < n; ++i ) |
---|
7772 | | s1[i] = s2[i]; |
---|
7773 | | } |
---|
7774 | | #endif |
---|
7775 | | |
---|
7776 | | #ifdef YY_NEED_STRLEN |
---|
7777 | | static int yy_flex_strlen (yyconst char * s ) |
---|
7778 | | { |
---|
7779 | | register int n; |
---|
7780 | | for ( n = 0; s[n]; ++n ) |
---|
7781 | | ; |
---|
7782 | | |
---|
7783 | | return n; |
---|
7784 | | } |
---|
7785 | | #endif |
---|
7786 | | |
---|
7787 | | void *yyalloc (yy_size_t size ) |
---|
7788 | | { |
---|
7789 | | return (void *) malloc( size ); |
---|
7790 | | } |
---|
7791 | | |
---|
7792 | | void *yyrealloc (void * ptr, yy_size_t size ) |
---|
7793 | | { |
---|
7794 | | /* The cast to (char *) in the following accommodates both |
---|
7795 | | * implementations that use char* generic pointers, and those |
---|
7796 | | * that use void* generic pointers. It works with the latter |
---|
7797 | | * because both ANSI C and C++ allow castless assignment from |
---|
7798 | | * any pointer type to void*, and deal with argument conversions |
---|
7799 | | * as though doing an assignment. |
---|
7800 | | */ |
---|
7801 | | return (void *) realloc( (char *) ptr, size ); |
---|
7802 | | } |
---|
7803 | | |
---|
7804 | | void yyfree (void * ptr ) |
---|
7805 | | { |
---|
7806 | | free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ |
---|
7807 | | } |
---|
7808 | | |
---|
7809 | | #define YYTABLES_NAME "yytables" |
---|
7810 | | |
---|
7811 | | #line 10 "conftest.l" |
---|
7812 | | |
---|
7813 | | |
---|
7814 | | #ifdef YYTEXT_POINTER |
---|
7815 | | extern char *yytext; |
---|
7816 | | #endif |
---|
7817 | | int |
---|
7818 | | main (void) |
---|
7819 | | { |
---|
7820 | | return ! yylex () + ! yywrap (); |
---|
7821 | | } |
---|
7822 | configure:8168: result: no |
---|
7823 | configure:8184: checking for bison |
---|
7824 | configure:8200: found /opt/local/bin/bison |
---|
7825 | configure:8211: result: bison -y |
---|
7826 | configure:8226: checking if yacc is executable |
---|
7827 | configure:8232: result: yes |
---|
7828 | configure:8244: checking if lex is executable |
---|
7829 | configure:8250: result: yes |
---|
7830 | configure:8268: checking for gawk |
---|
7831 | configure:8301: result: no |
---|
7832 | configure:8268: checking for awk |
---|
7833 | configure:8286: found /usr/bin/awk |
---|
7834 | configure:8298: result: /usr/bin/awk |
---|
7835 | configure:8324: checking for sed |
---|
7836 | configure:8342: found /usr/bin/sed |
---|
7837 | configure:8355: result: /usr/bin/sed |
---|
7838 | configure:8369: checking for echo |
---|
7839 | configure:8387: found /bin/echo |
---|
7840 | configure:8400: result: /bin/echo |
---|
7841 | configure:8412: checking where unix-like sort(1) lives |
---|
7842 | configure:8425: result: /usr/bin/sort |
---|
7843 | configure:8437: checking if echo uses -n or backslash-c to suppress newlines |
---|
7844 | configure:8453: result: backslash-c |
---|
7845 | configure:8473: checking for ps style |
---|
7846 | configure:8532: result: unknown |
---|
7847 | |
---|
7848 | ## ---------------- ## |
---|
7849 | ## Cache variables. ## |
---|
7850 | ## ---------------- ## |
---|
7851 | |
---|
7852 | ac_cv_build=i386-apple-darwin13.3.0 |
---|
7853 | ac_cv_c_compiler_gnu=yes |
---|
7854 | ac_cv_cxx_compiler_gnu=yes |
---|
7855 | ac_cv_env_CCC_set= |
---|
7856 | ac_cv_env_CCC_value= |
---|
7857 | ac_cv_env_CC_set=set |
---|
7858 | ac_cv_env_CC_value=/usr/bin/clang |
---|
7859 | ac_cv_env_CFLAGS_set=set |
---|
7860 | ac_cv_env_CFLAGS_value='-pipe -Os -arch x86_64' |
---|
7861 | ac_cv_env_CPPFLAGS_set=set |
---|
7862 | ac_cv_env_CPPFLAGS_value=-I/opt/local/include |
---|
7863 | ac_cv_env_CPP_set= |
---|
7864 | ac_cv_env_CPP_value= |
---|
7865 | ac_cv_env_CXXFLAGS_set=set |
---|
7866 | ac_cv_env_CXXFLAGS_value='-pipe -Os -arch x86_64 -stdlib=libc++' |
---|
7867 | ac_cv_env_CXX_set=set |
---|
7868 | ac_cv_env_CXX_value=/usr/bin/clang++ |
---|
7869 | ac_cv_env_LDFLAGS_set=set |
---|
7870 | ac_cv_env_LDFLAGS_value='-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64' |
---|
7871 | ac_cv_env_LIBS_set= |
---|
7872 | ac_cv_env_LIBS_value= |
---|
7873 | ac_cv_env_PKG_CONFIG_LIBDIR_set= |
---|
7874 | ac_cv_env_PKG_CONFIG_LIBDIR_value= |
---|
7875 | ac_cv_env_PKG_CONFIG_PATH_set= |
---|
7876 | ac_cv_env_PKG_CONFIG_PATH_value= |
---|
7877 | ac_cv_env_PKG_CONFIG_set= |
---|
7878 | ac_cv_env_PKG_CONFIG_value= |
---|
7879 | ac_cv_env_SYSTEMD_CFLAGS_set= |
---|
7880 | ac_cv_env_SYSTEMD_CFLAGS_value= |
---|
7881 | ac_cv_env_SYSTEMD_LIBS_set= |
---|
7882 | ac_cv_env_SYSTEMD_LIBS_value= |
---|
7883 | ac_cv_env_XMKMF_set= |
---|
7884 | ac_cv_env_XMKMF_value= |
---|
7885 | ac_cv_env_YACC_set= |
---|
7886 | ac_cv_env_YACC_value= |
---|
7887 | ac_cv_env_YFLAGS_set= |
---|
7888 | ac_cv_env_YFLAGS_value= |
---|
7889 | ac_cv_env_avahi_CFLAGS_set= |
---|
7890 | ac_cv_env_avahi_CFLAGS_value= |
---|
7891 | ac_cv_env_avahi_LIBS_set= |
---|
7892 | ac_cv_env_avahi_LIBS_value= |
---|
7893 | ac_cv_env_build_alias_set= |
---|
7894 | ac_cv_env_build_alias_value= |
---|
7895 | ac_cv_env_host_alias_set= |
---|
7896 | ac_cv_env_host_alias_value= |
---|
7897 | ac_cv_env_target_alias_set= |
---|
7898 | ac_cv_env_target_alias_value= |
---|
7899 | ac_cv_header_avahi_client_publish_h=no |
---|
7900 | ac_cv_header_avahi_common_alternative_h=no |
---|
7901 | ac_cv_header_inttypes_h=yes |
---|
7902 | ac_cv_header_memory_h=yes |
---|
7903 | ac_cv_header_stdc=yes |
---|
7904 | ac_cv_header_stdint_h=yes |
---|
7905 | ac_cv_header_stdlib_h=yes |
---|
7906 | ac_cv_header_string_h=yes |
---|
7907 | ac_cv_header_strings_h=yes |
---|
7908 | ac_cv_header_sys_sdt_h=yes |
---|
7909 | ac_cv_header_sys_stat_h=yes |
---|
7910 | ac_cv_header_sys_types_h=yes |
---|
7911 | ac_cv_header_unistd_h=yes |
---|
7912 | ac_cv_host=i386-apple-darwin13.3.0 |
---|
7913 | ac_cv_lib_lex='none needed' |
---|
7914 | ac_cv_objext=o |
---|
7915 | ac_cv_path_AWK=/usr/bin/awk |
---|
7916 | ac_cv_path_BZIP2=/opt/local/bin/bzip2 |
---|
7917 | ac_cv_path_ECHO=/bin/echo |
---|
7918 | ac_cv_path_EGREP='/usr/bin/grep -E' |
---|
7919 | ac_cv_path_GREP=/usr/bin/grep |
---|
7920 | ac_cv_path_HDIUTIL=/usr/bin/hdiutil |
---|
7921 | ac_cv_path_LD=/opt/local/bin/ld |
---|
7922 | ac_cv_path_LZMA=/opt/local/bin/lzma |
---|
7923 | ac_cv_path_MAKE=/opt/local/bin/gmake |
---|
7924 | ac_cv_path_MAKEDEPEND=/usr/bin/true |
---|
7925 | ac_cv_path_MD5SUM=/usr/bin/true |
---|
7926 | ac_cv_path_POD2MAN=/opt/local/bin/pod2man |
---|
7927 | ac_cv_path_SED=/usr/bin/sed |
---|
7928 | ac_cv_path_TAR=/usr/bin/tar |
---|
7929 | ac_cv_path_TRUEPROG=/usr/bin/true |
---|
7930 | ac_cv_path_XZ=/opt/local/bin/xz |
---|
7931 | ac_cv_path_ZIP=/opt/local/bin/gzip |
---|
7932 | ac_cv_path_ac_pt_PKG_CONFIG=/opt/local/bin/pkg-config |
---|
7933 | ac_cv_prog_CPP='/usr/bin/clang -E' |
---|
7934 | ac_cv_prog_DTRACE=dtrace |
---|
7935 | ac_cv_prog_GIT=git |
---|
7936 | ac_cv_prog_LEX=flex |
---|
7937 | ac_cv_prog_PYTHON=python |
---|
7938 | ac_cv_prog_YACC='bison -y' |
---|
7939 | ac_cv_prog_ac_ct_CC=/usr/bin/clang |
---|
7940 | ac_cv_prog_cc_c89= |
---|
7941 | ac_cv_prog_cc_g=yes |
---|
7942 | ac_cv_prog_cxx_g=yes |
---|
7943 | ac_cv_prog_lex_root=lex.yy |
---|
7944 | ac_cv_prog_lex_yytext_pointer=no |
---|
7945 | ac_cv_target=i386-apple-darwin13.3.0 |
---|
7946 | |
---|
7947 | ## ----------------- ## |
---|
7948 | ## Output variables. ## |
---|
7949 | ## ----------------- ## |
---|
7950 | |
---|
7951 | AWK='/usr/bin/awk' |
---|
7952 | BUILD_PMMGR='' |
---|
7953 | BZIP2='/opt/local/bin/bzip2' |
---|
7954 | CC='/usr/bin/clang' |
---|
7955 | CCPATH='' |
---|
7956 | CFLAGS='-O -fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386 -arch x86_64 -fstack-protector-all -D_FORTIFY_SOURCE=2' |
---|
7957 | CPP='/usr/bin/clang -E' |
---|
7958 | CPPFLAGS='-I/opt/local/include' |
---|
7959 | CXX='/usr/bin/clang++' |
---|
7960 | CXXFLAGS='-pipe -Os -arch x86_64 -stdlib=libc++' |
---|
7961 | DBLATEX='' |
---|
7962 | DEFS='-DHAVE_CONFIG_H' |
---|
7963 | DLLTOOL='' |
---|
7964 | DPKG='' |
---|
7965 | DTRACE='dtrace' |
---|
7966 | ECHO='/bin/echo' |
---|
7967 | ECHO_C='\c' |
---|
7968 | ECHO_N='' |
---|
7969 | ECHO_T='' |
---|
7970 | EGREP='/usr/bin/grep -E' |
---|
7971 | EXEEXT='' |
---|
7972 | GIT='git' |
---|
7973 | GREP='/usr/bin/grep' |
---|
7974 | HAVE_LIBMICROHTTPD='' |
---|
7975 | HAVE_RPMLIB='' |
---|
7976 | HDIUTIL='/usr/bin/hdiutil' |
---|
7977 | IB_LIBS='' |
---|
7978 | INVISIBILITY='-fvisibility=hidden' |
---|
7979 | LD='/opt/local/bin/ld' |
---|
7980 | LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64' |
---|
7981 | LEX='flex' |
---|
7982 | LEXLIB='' |
---|
7983 | LEX_OUTPUT_ROOT='lex.yy' |
---|
7984 | LIBOBJS='' |
---|
7985 | LIBS='' |
---|
7986 | LN_S='ln -s' |
---|
7987 | LTLIBOBJS='' |
---|
7988 | LZMA='/opt/local/bin/lzma' |
---|
7989 | MAKE='/opt/local/bin/gmake' |
---|
7990 | MAKEDEPEND='/usr/bin/true' |
---|
7991 | MAKEPKG='' |
---|
7992 | MD5SUM='/usr/bin/true' |
---|
7993 | MKINSTALLP='' |
---|
7994 | NSPRCFLAGS='' |
---|
7995 | NSSCFLAGS='' |
---|
7996 | OBJEXT='o' |
---|
7997 | PACKAGE_BUGREPORT='' |
---|
7998 | PACKAGE_BUILD='1' |
---|
7999 | PACKAGE_BUILD_DATE='2014-08-22' |
---|
8000 | PACKAGE_CONFIGURE='' |
---|
8001 | PACKAGE_DISTRIBUTION='cocoa' |
---|
8002 | PACKAGE_MAJOR='3' |
---|
8003 | PACKAGE_MINOR='9' |
---|
8004 | PACKAGE_NAME='' |
---|
8005 | PACKAGE_REVISION='9' |
---|
8006 | PACKAGE_STRING='' |
---|
8007 | PACKAGE_TARNAME='' |
---|
8008 | PACKAGE_URL='' |
---|
8009 | PACKAGE_VERSION='3.9.9' |
---|
8010 | PATH_SEPARATOR=':' |
---|
8011 | PCFLAGS='-fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386 -arch x86_64 -fstack-protector-all -D_FORTIFY_SOURCE=2' |
---|
8012 | PIECFLAGS='' |
---|
8013 | PIELDFLAGS='' |
---|
8014 | PKGMK='' |
---|
8015 | PKG_CONFIG='/opt/local/bin/pkg-config' |
---|
8016 | PKG_CONFIG_LIBDIR='' |
---|
8017 | PKG_CONFIG_PATH='' |
---|
8018 | PLDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64' |
---|
8019 | PMDA_INFINIBAND='' |
---|
8020 | PMDA_SYSTEMD='' |
---|
8021 | POD2MAN='/opt/local/bin/pod2man' |
---|
8022 | PUBLICAN='' |
---|
8023 | PYTHON='python' |
---|
8024 | QMAKE='' |
---|
8025 | RPM='' |
---|
8026 | RPMBUILD='' |
---|
8027 | SASLCFLAGS='' |
---|
8028 | SED='/usr/bin/sed' |
---|
8029 | SHELL='/bin/sh' |
---|
8030 | SYSTEMD_CFLAGS='' |
---|
8031 | SYSTEMD_LIBS='' |
---|
8032 | TAR='/usr/bin/tar' |
---|
8033 | TRUEPROG='/usr/bin/true' |
---|
8034 | XMKMF='' |
---|
8035 | XMLTO='' |
---|
8036 | XZ='/opt/local/bin/xz' |
---|
8037 | X_CFLAGS='' |
---|
8038 | X_EXTRA_LIBS='' |
---|
8039 | X_LIBS='' |
---|
8040 | X_PRE_LIBS='' |
---|
8041 | YACC='bison -y' |
---|
8042 | YFLAGS='' |
---|
8043 | ZIP='/opt/local/bin/gzip' |
---|
8044 | ac_ct_CC='/usr/bin/clang' |
---|
8045 | ac_ct_CXX='' |
---|
8046 | ac_xconfirm_prog='' |
---|
8047 | avahi_CFLAGS='' |
---|
8048 | avahi_LIBS='' |
---|
8049 | awk='/usr/bin/awk' |
---|
8050 | bindir='${exec_prefix}/bin' |
---|
8051 | book_toolchain='' |
---|
8052 | build='i386-apple-darwin13.3.0' |
---|
8053 | build_alias='' |
---|
8054 | build_cpu='i386' |
---|
8055 | build_os='darwin13.3.0' |
---|
8056 | build_vendor='apple' |
---|
8057 | bzip2='/opt/local/bin/bzip2' |
---|
8058 | cc='/usr/bin/clang' |
---|
8059 | cc_is_gcc='yes' |
---|
8060 | cflags_abi='' |
---|
8061 | cpp='/usr/bin/clang -E' |
---|
8062 | cxx='/usr/bin/clang++' |
---|
8063 | datadir='${datarootdir}' |
---|
8064 | datarootdir='${prefix}/share' |
---|
8065 | dblatex='' |
---|
8066 | dlltool='' |
---|
8067 | docdir='${datarootdir}/doc/${PACKAGE}' |
---|
8068 | dpkg='' |
---|
8069 | dvidir='${docdir}' |
---|
8070 | echo='/bin/echo' |
---|
8071 | echo_c='\c' |
---|
8072 | echo_n='' |
---|
8073 | enable_avahi='false' |
---|
8074 | enable_discovery='' |
---|
8075 | enable_probes='true' |
---|
8076 | enable_qt='false' |
---|
8077 | enable_secure='' |
---|
8078 | enable_shared='' |
---|
8079 | exec_prefix='${prefix}' |
---|
8080 | fmt_pid='' |
---|
8081 | fmt_pthread='' |
---|
8082 | grep='' |
---|
8083 | gzip='/opt/local/bin/gzip' |
---|
8084 | have_bzip2ed_manpages='' |
---|
8085 | have_gzipped_manpages='' |
---|
8086 | have_lzmaed_manpages='' |
---|
8087 | have_xzed_manpages='' |
---|
8088 | hdiutil='/usr/bin/hdiutil' |
---|
8089 | host='i386-apple-darwin13.3.0' |
---|
8090 | host_alias='' |
---|
8091 | host_cpu='i386' |
---|
8092 | host_os='darwin13.3.0' |
---|
8093 | host_vendor='apple' |
---|
8094 | htmldir='${docdir}' |
---|
8095 | includedir='${prefix}/include' |
---|
8096 | infodir='${datarootdir}/info' |
---|
8097 | ld='/opt/local/bin/ld' |
---|
8098 | lex='flex' |
---|
8099 | lib_for_atomic='' |
---|
8100 | lib_for_avahi='' |
---|
8101 | lib_for_basename='' |
---|
8102 | lib_for_curses='' |
---|
8103 | lib_for_dlopen='' |
---|
8104 | lib_for_math='' |
---|
8105 | lib_for_nspr='' |
---|
8106 | lib_for_nss='' |
---|
8107 | lib_for_pthreads='' |
---|
8108 | lib_for_readline='' |
---|
8109 | lib_for_regex='' |
---|
8110 | lib_for_rt='' |
---|
8111 | lib_for_sasl='' |
---|
8112 | lib_for_ssl='' |
---|
8113 | libdir='${exec_prefix}/lib' |
---|
8114 | libexecdir='${exec_prefix}/libexec' |
---|
8115 | localedir='${datarootdir}/locale' |
---|
8116 | localstatedir='${prefix}/var' |
---|
8117 | lzma='/opt/local/bin/lzma' |
---|
8118 | make='/opt/local/bin/gmake' |
---|
8119 | makedepend='/usr/bin/true' |
---|
8120 | makepkg='' |
---|
8121 | mandir='${datarootdir}/man' |
---|
8122 | md5sum='/usr/bin/true' |
---|
8123 | mkinstallp='' |
---|
8124 | need_old_tbl_header='' |
---|
8125 | oldincludedir='/usr/include' |
---|
8126 | package_maker='' |
---|
8127 | pcp_bin_dir='' |
---|
8128 | pcp_binadm_dir='' |
---|
8129 | pcp_books_dir='' |
---|
8130 | pcp_demos_dir='' |
---|
8131 | pcp_desktop_dir='' |
---|
8132 | pcp_doc_dir='' |
---|
8133 | pcp_etc_dir='' |
---|
8134 | pcp_group='pcp' |
---|
8135 | pcp_group_install='wheel' |
---|
8136 | pcp_icons_dir='' |
---|
8137 | pcp_inc_dir='' |
---|
8138 | pcp_lib32_dir='' |
---|
8139 | pcp_lib_dir='' |
---|
8140 | pcp_log_dir='' |
---|
8141 | pcp_man_dir='' |
---|
8142 | pcp_mpi_dirs='' |
---|
8143 | pcp_platform_paths='/usr/local/bin' |
---|
8144 | pcp_pmcdconf_path='' |
---|
8145 | pcp_pmcdoptions_path='' |
---|
8146 | pcp_pmcdrclocal_path='' |
---|
8147 | pcp_pmdas_dir='' |
---|
8148 | pcp_pmiecontrol_path='' |
---|
8149 | pcp_pmloggercontrol_path='' |
---|
8150 | pcp_pmmgroptions_path='' |
---|
8151 | pcp_pmproxyoptions_path='' |
---|
8152 | pcp_pmsnapcontrol_path='' |
---|
8153 | pcp_pmwebdoptions_path='' |
---|
8154 | pcp_ps_all_flags='' |
---|
8155 | pcp_ps_have_bsd='' |
---|
8156 | pcp_ps_prog='ps' |
---|
8157 | pcp_rc_dir='' |
---|
8158 | pcp_run_dir='' |
---|
8159 | pcp_saslconf_dir='' |
---|
8160 | pcp_sbin_dir='' |
---|
8161 | pcp_share_dir='' |
---|
8162 | pcp_sysconf_dir='' |
---|
8163 | pcp_sysconfig_dir='' |
---|
8164 | pcp_syslog_prog='' |
---|
8165 | pcp_tmp_dir='' |
---|
8166 | pcp_tmpfile_dir='' |
---|
8167 | pcp_user='pcp' |
---|
8168 | pcp_user_install='root' |
---|
8169 | pcp_var_dir='' |
---|
8170 | pcp_x11_extra='' |
---|
8171 | pcp_x11_incflags='' |
---|
8172 | pcp_x11_libflags='' |
---|
8173 | pcp_x11_pre='' |
---|
8174 | pdfdir='${docdir}' |
---|
8175 | perl_install_base='' |
---|
8176 | perl_installdirs='' |
---|
8177 | pkgmk='' |
---|
8178 | pod2man='/opt/local/bin/pod2man' |
---|
8179 | prefix='/opt/local' |
---|
8180 | program_transform_name='s,x,x,' |
---|
8181 | psdir='${docdir}' |
---|
8182 | publican='' |
---|
8183 | python_prefix='' |
---|
8184 | qmake='' |
---|
8185 | qt_release='release' |
---|
8186 | rdynamic_flag='' |
---|
8187 | rpm='' |
---|
8188 | rpmbuild='' |
---|
8189 | rpmprog='' |
---|
8190 | sbindir='${exec_prefix}/sbin' |
---|
8191 | sed='/usr/bin/sed' |
---|
8192 | sharedstatedir='${prefix}/com' |
---|
8193 | sort='/usr/bin/sort' |
---|
8194 | sysconfdir='${prefix}/etc' |
---|
8195 | tar='/usr/bin/tar' |
---|
8196 | target='i386-apple-darwin13.3.0' |
---|
8197 | target_alias='' |
---|
8198 | target_cpu='i386' |
---|
8199 | target_os='darwin' |
---|
8200 | target_vendor='apple' |
---|
8201 | which='' |
---|
8202 | xmlto='' |
---|
8203 | xz='/opt/local/bin/xz' |
---|
8204 | yacc='bison -y' |
---|
8205 | |
---|
8206 | ## ----------- ## |
---|
8207 | ## confdefs.h. ## |
---|
8208 | ## ----------- ## |
---|
8209 | |
---|
8210 | /* confdefs.h */ |
---|
8211 | #define PACKAGE_NAME "" |
---|
8212 | #define PACKAGE_TARNAME "" |
---|
8213 | #define PACKAGE_VERSION "" |
---|
8214 | #define PACKAGE_STRING "" |
---|
8215 | #define PACKAGE_BUGREPORT "" |
---|
8216 | #define PACKAGE_URL "" |
---|
8217 | #define IS_DARWIN 1 |
---|
8218 | #define STDC_HEADERS 1 |
---|
8219 | #define HAVE_SYS_TYPES_H 1 |
---|
8220 | #define HAVE_SYS_STAT_H 1 |
---|
8221 | #define HAVE_STDLIB_H 1 |
---|
8222 | #define HAVE_STRING_H 1 |
---|
8223 | #define HAVE_MEMORY_H 1 |
---|
8224 | #define HAVE_STRINGS_H 1 |
---|
8225 | #define HAVE_INTTYPES_H 1 |
---|
8226 | #define HAVE_STDINT_H 1 |
---|
8227 | #define HAVE_UNISTD_H 1 |
---|
8228 | #define HAVE_SYS_SDT_H 1 |
---|
8229 | #define HAVE_STATIC_PROBES 1 |
---|
8230 | |
---|
8231 | configure: exit 1 |
---|