Crossfire Server, Trunk
reader.cpp
Go to the documentation of this file.
1 #line 2 "reader.cpp"
2 
3 #line 4 "reader.cpp"
4 
5 #define YY_INT_ALIGNED short int
6 
7 /* A lexical scanner generated by flex */
8 
9 #define yy_create_buffer rm_create_buffer
10 #define yy_delete_buffer rm_delete_buffer
11 #define yy_scan_buffer rm_scan_buffer
12 #define yy_scan_string rm_scan_string
13 #define yy_scan_bytes rm_scan_bytes
14 #define yy_init_buffer rm_init_buffer
15 #define yy_flush_buffer rm_flush_buffer
16 #define yy_load_buffer_state rm_load_buffer_state
17 #define yy_switch_to_buffer rm_switch_to_buffer
18 #define yypush_buffer_state rmpush_buffer_state
19 #define yypop_buffer_state rmpop_buffer_state
20 #define yyensure_buffer_stack rmensure_buffer_stack
21 #define yy_flex_debug rm_flex_debug
22 #define yyin rmin
23 #define yyleng rmleng
24 #define yylex rmlex
25 #define yylineno rmlineno
26 #define yyout rmout
27 #define yyrestart rmrestart
28 #define yytext rmtext
29 #define yywrap rmwrap
30 #define yyalloc rmalloc
31 #define yyrealloc rmrealloc
32 #define yyfree rmfree
33 
34 #define FLEX_SCANNER
35 #define YY_FLEX_MAJOR_VERSION 2
36 #define YY_FLEX_MINOR_VERSION 6
37 #define YY_FLEX_SUBMINOR_VERSION 4
38 #if YY_FLEX_SUBMINOR_VERSION > 0
39 #define FLEX_BETA
40 #endif
41 
42 #ifdef yy_create_buffer
43 #define rm_create_buffer_ALREADY_DEFINED
44 #else
45 #define yy_create_buffer rm_create_buffer
46 #endif
47 
48 #ifdef yy_delete_buffer
49 #define rm_delete_buffer_ALREADY_DEFINED
50 #else
51 #define yy_delete_buffer rm_delete_buffer
52 #endif
53 
54 #ifdef yy_scan_buffer
55 #define rm_scan_buffer_ALREADY_DEFINED
56 #else
57 #define yy_scan_buffer rm_scan_buffer
58 #endif
59 
60 #ifdef yy_scan_string
61 #define rm_scan_string_ALREADY_DEFINED
62 #else
63 #define yy_scan_string rm_scan_string
64 #endif
65 
66 #ifdef yy_scan_bytes
67 #define rm_scan_bytes_ALREADY_DEFINED
68 #else
69 #define yy_scan_bytes rm_scan_bytes
70 #endif
71 
72 #ifdef yy_init_buffer
73 #define rm_init_buffer_ALREADY_DEFINED
74 #else
75 #define yy_init_buffer rm_init_buffer
76 #endif
77 
78 #ifdef yy_flush_buffer
79 #define rm_flush_buffer_ALREADY_DEFINED
80 #else
81 #define yy_flush_buffer rm_flush_buffer
82 #endif
83 
84 #ifdef yy_load_buffer_state
85 #define rm_load_buffer_state_ALREADY_DEFINED
86 #else
87 #define yy_load_buffer_state rm_load_buffer_state
88 #endif
89 
90 #ifdef yy_switch_to_buffer
91 #define rm_switch_to_buffer_ALREADY_DEFINED
92 #else
93 #define yy_switch_to_buffer rm_switch_to_buffer
94 #endif
95 
96 #ifdef yypush_buffer_state
97 #define rmpush_buffer_state_ALREADY_DEFINED
98 #else
99 #define yypush_buffer_state rmpush_buffer_state
100 #endif
101 
102 #ifdef yypop_buffer_state
103 #define rmpop_buffer_state_ALREADY_DEFINED
104 #else
105 #define yypop_buffer_state rmpop_buffer_state
106 #endif
107 
108 #ifdef yyensure_buffer_stack
109 #define rmensure_buffer_stack_ALREADY_DEFINED
110 #else
111 #define yyensure_buffer_stack rmensure_buffer_stack
112 #endif
113 
114 #ifdef yylex
115 #define rmlex_ALREADY_DEFINED
116 #else
117 #define yylex rmlex
118 #endif
119 
120 #ifdef yyrestart
121 #define rmrestart_ALREADY_DEFINED
122 #else
123 #define yyrestart rmrestart
124 #endif
125 
126 #ifdef yylex_init
127 #define rmlex_init_ALREADY_DEFINED
128 #else
129 #define yylex_init rmlex_init
130 #endif
131 
132 #ifdef yylex_init_extra
133 #define rmlex_init_extra_ALREADY_DEFINED
134 #else
135 #define yylex_init_extra rmlex_init_extra
136 #endif
137 
138 #ifdef yylex_destroy
139 #define rmlex_destroy_ALREADY_DEFINED
140 #else
141 #define yylex_destroy rmlex_destroy
142 #endif
143 
144 #ifdef yyget_debug
145 #define rmget_debug_ALREADY_DEFINED
146 #else
147 #define yyget_debug rmget_debug
148 #endif
149 
150 #ifdef yyset_debug
151 #define rmset_debug_ALREADY_DEFINED
152 #else
153 #define yyset_debug rmset_debug
154 #endif
155 
156 #ifdef yyget_extra
157 #define rmget_extra_ALREADY_DEFINED
158 #else
159 #define yyget_extra rmget_extra
160 #endif
161 
162 #ifdef yyset_extra
163 #define rmset_extra_ALREADY_DEFINED
164 #else
165 #define yyset_extra rmset_extra
166 #endif
167 
168 #ifdef yyget_in
169 #define rmget_in_ALREADY_DEFINED
170 #else
171 #define yyget_in rmget_in
172 #endif
173 
174 #ifdef yyset_in
175 #define rmset_in_ALREADY_DEFINED
176 #else
177 #define yyset_in rmset_in
178 #endif
179 
180 #ifdef yyget_out
181 #define rmget_out_ALREADY_DEFINED
182 #else
183 #define yyget_out rmget_out
184 #endif
185 
186 #ifdef yyset_out
187 #define rmset_out_ALREADY_DEFINED
188 #else
189 #define yyset_out rmset_out
190 #endif
191 
192 #ifdef yyget_leng
193 #define rmget_leng_ALREADY_DEFINED
194 #else
195 #define yyget_leng rmget_leng
196 #endif
197 
198 #ifdef yyget_text
199 #define rmget_text_ALREADY_DEFINED
200 #else
201 #define yyget_text rmget_text
202 #endif
203 
204 #ifdef yyget_lineno
205 #define rmget_lineno_ALREADY_DEFINED
206 #else
207 #define yyget_lineno rmget_lineno
208 #endif
209 
210 #ifdef yyset_lineno
211 #define rmset_lineno_ALREADY_DEFINED
212 #else
213 #define yyset_lineno rmset_lineno
214 #endif
215 
216 #ifdef yywrap
217 #define rmwrap_ALREADY_DEFINED
218 #else
219 #define yywrap rmwrap
220 #endif
221 
222 #ifdef yyalloc
223 #define rmalloc_ALREADY_DEFINED
224 #else
225 #define yyalloc rmalloc
226 #endif
227 
228 #ifdef yyrealloc
229 #define rmrealloc_ALREADY_DEFINED
230 #else
231 #define yyrealloc rmrealloc
232 #endif
233 
234 #ifdef yyfree
235 #define rmfree_ALREADY_DEFINED
236 #else
237 #define yyfree rmfree
238 #endif
239 
240 #ifdef yytext
241 #define rmtext_ALREADY_DEFINED
242 #else
243 #define yytext rmtext
244 #endif
245 
246 #ifdef yyleng
247 #define rmleng_ALREADY_DEFINED
248 #else
249 #define yyleng rmleng
250 #endif
251 
252 #ifdef yyin
253 #define rmin_ALREADY_DEFINED
254 #else
255 #define yyin rmin
256 #endif
257 
258 #ifdef yyout
259 #define rmout_ALREADY_DEFINED
260 #else
261 #define yyout rmout
262 #endif
263 
264 #ifdef yy_flex_debug
265 #define rm_flex_debug_ALREADY_DEFINED
266 #else
267 #define yy_flex_debug rm_flex_debug
268 #endif
269 
270 #ifdef yylineno
271 #define rmlineno_ALREADY_DEFINED
272 #else
273 #define yylineno rmlineno
274 #endif
275 
276 /* First, we deal with platform-specific or compiler-specific issues. */
277 
278 /* begin standard C headers. */
279 #include <stdio.h>
280 #include <string.h>
281 #include <errno.h>
282 #include <stdlib.h>
283 
284 /* end standard C headers. */
285 
286 /* flex integer type definitions */
287 
288 #ifndef FLEXINT_H
289 #define FLEXINT_H
290 
291 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
292 
293 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
294 
295 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
296  * if you want the limit (max/min) macros for int types.
297  */
298 #ifndef __STDC_LIMIT_MACROS
299 #define __STDC_LIMIT_MACROS 1
300 #endif
301 
302 #include <inttypes.h>
303 typedef int8_t flex_int8_t;
304 typedef uint8_t flex_uint8_t;
305 typedef int16_t flex_int16_t;
306 typedef uint16_t flex_uint16_t;
307 typedef int32_t flex_int32_t;
308 typedef uint32_t flex_uint32_t;
309 #else
310 typedef signed char flex_int8_t;
311 typedef short int flex_int16_t;
312 typedef int flex_int32_t;
313 typedef unsigned char flex_uint8_t;
314 typedef unsigned short int flex_uint16_t;
315 typedef unsigned int flex_uint32_t;
316 
317 /* Limits of integral types. */
318 #ifndef INT8_MIN
319 #define INT8_MIN (-128)
320 #endif
321 #ifndef INT16_MIN
322 #define INT16_MIN (-32767-1)
323 #endif
324 #ifndef INT32_MIN
325 #define INT32_MIN (-2147483647-1)
326 #endif
327 #ifndef INT8_MAX
328 #define INT8_MAX (127)
329 #endif
330 #ifndef INT16_MAX
331 #define INT16_MAX (32767)
332 #endif
333 #ifndef INT32_MAX
334 #define INT32_MAX (2147483647)
335 #endif
336 #ifndef UINT8_MAX
337 #define UINT8_MAX (255U)
338 #endif
339 #ifndef UINT16_MAX
340 #define UINT16_MAX (65535U)
341 #endif
342 #ifndef UINT32_MAX
343 #define UINT32_MAX (4294967295U)
344 #endif
345 
346 #ifndef SIZE_MAX
347 #define SIZE_MAX (~(size_t)0)
348 #endif
349 
350 #endif /* ! C99 */
351 
352 #endif /* ! FLEXINT_H */
353 
354 /* begin standard C++ headers. */
355 
356 /* TODO: this is always defined, so inline it */
357 #define yyconst const
358 
359 #if defined(__GNUC__) && __GNUC__ >= 3
360 #define yynoreturn __attribute__((__noreturn__))
361 #else
362 #define yynoreturn
363 #endif
364 
365 /* Returned upon end-of-file. */
366 #define YY_NULL 0
367 
368 /* Promotes a possibly negative, possibly signed char to an
369  * integer in range [0..255] for use as an array index.
370  */
371 #define YY_SC_TO_UI(c) ((YY_CHAR) (c))
372 
373 /* Enter a start condition. This macro really ought to take a parameter,
374  * but we do it the disgusting crufty way forced on us by the ()-less
375  * definition of BEGIN.
376  */
377 #define BEGIN (yy_start) = 1 + 2 *
378 /* Translate the current start state into a value that can be later handed
379  * to BEGIN to return to the state. The YYSTATE alias is for lex
380  * compatibility.
381  */
382 #define YY_START (((yy_start) - 1) / 2)
383 #define YYSTATE YY_START
384 /* Action number for EOF rule of a given start state. */
385 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
386 /* Special action meaning "start processing a new file". */
387 #define YY_NEW_FILE yyrestart( yyin )
388 #define YY_END_OF_BUFFER_CHAR 0
389 
390 /* Size of default input buffer. */
391 #ifndef YY_BUF_SIZE
392 #ifdef __ia64__
393 /* On IA-64, the buffer size is 16k, not 8k.
394  * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
395  * Ditto for the __ia64__ case accordingly.
396  */
397 #define YY_BUF_SIZE 32768
398 #else
399 #define YY_BUF_SIZE 16384
400 #endif /* __ia64__ */
401 #endif
402 
403 /* The state buf must be large enough to hold one state per character in the main buffer.
404  */
405 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
406 
407 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
408 #define YY_TYPEDEF_YY_BUFFER_STATE
410 #endif
411 
412 #ifndef YY_TYPEDEF_YY_SIZE_T
413 #define YY_TYPEDEF_YY_SIZE_T
414 typedef size_t yy_size_t;
415 #endif
416 
417 extern int yyleng;
418 
419 extern FILE *yyin, *yyout;
420 
421 #define EOB_ACT_CONTINUE_SCAN 0
422 #define EOB_ACT_END_OF_FILE 1
423 #define EOB_ACT_LAST_MATCH 2
424 
425  #define YY_LESS_LINENO(n)
426  #define YY_LINENO_REWIND_TO(ptr)
427 
428 /* Return all but the first "n" matched characters back to the input stream. */
429 #define yyless(n) \
430  do \
431  { \
432  /* Undo effects of setting up yytext. */ \
433  int yyless_macro_arg = (n); \
434  YY_LESS_LINENO(yyless_macro_arg);\
435  *yy_cp = (yy_hold_char); \
436  YY_RESTORE_YY_MORE_OFFSET \
437  (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
438  YY_DO_BEFORE_ACTION; /* set up yytext again */ \
439  } \
440  while ( 0 )
441 #define unput(c) yyunput( c, (yytext_ptr) )
442 
443 #ifndef YY_STRUCT_YY_BUFFER_STATE
444 #define YY_STRUCT_YY_BUFFER_STATE
445 struct yy_buffer_state
446  {
447  FILE *yy_input_file;
448 
449  char *yy_ch_buf; /* input buffer */
450  char *yy_buf_pos; /* current position in input buffer */
451 
452  /* Size of input buffer in bytes, not including room for EOB
453  * characters.
454  */
455  int yy_buf_size;
456 
457  /* Number of characters read into yy_ch_buf, not including EOB
458  * characters.
459  */
460  int yy_n_chars;
461 
462  /* Whether we "own" the buffer - i.e., we know we created it,
463  * and can realloc() it to grow it, and should free() it to
464  * delete it.
465  */
466  int yy_is_our_buffer;
467 
468  /* Whether this is an "interactive" input source; if so, and
469  * if we're using stdio for input, then we want to use getc()
470  * instead of fread(), to make sure we stop fetching input after
471  * each newline.
472  */
473  int yy_is_interactive;
474 
475  /* Whether we're considered to be at the beginning of a line.
476  * If so, '^' rules will be active on the next match, otherwise
477  * not.
478  */
479  int yy_at_bol;
480 
481  int yy_bs_lineno;
482  int yy_bs_column;
484  /* Whether to try to fill the input buffer when we reach the
485  * end of it.
486  */
487  int yy_fill_buffer;
488 
489  int yy_buffer_status;
490 
491 #define YY_BUFFER_NEW 0
492 #define YY_BUFFER_NORMAL 1
493  /* When an EOF's been seen but there's still some text to process
494  * then we mark the buffer as YY_EOF_PENDING, to indicate that we
495  * shouldn't try reading from the input source any more. We might
496  * still have a bunch of tokens to match, though, because of
497  * possible backing-up.
498  *
499  * When we actually see the EOF, we change the status to "new"
500  * (via yyrestart()), so that the user can continue scanning by
501  * just pointing yyin at a new input file.
502  */
503 #define YY_BUFFER_EOF_PENDING 2
504 
505  };
506 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
507 
508 /* Stack of input buffers. */
509 static size_t yy_buffer_stack_top = 0;
510 static size_t yy_buffer_stack_max = 0;
513 /* We provide macros for accessing buffer states in case in the
514  * future we want to put the buffer states in a more general
515  * "scanner state".
516  *
517  * Returns the top of the stack, or NULL.
518  */
519 #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
520  ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
521  : NULL)
522 /* Same as previous macro, but useful when we know that the buffer stack is not
523  * NULL or when we need an lvalue. For internal use only.
524  */
525 #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
526 
527 /* yy_hold_char holds the character lost when yytext is formed. */
528 static char yy_hold_char;
529 static int yy_n_chars; /* number of characters read into yy_ch_buf */
530 int yyleng;
531 
532 /* Points to current character in buffer. */
533 static char *yy_c_buf_p = NULL;
534 static int yy_init = 0; /* whether we need to initialize */
535 static int yy_start = 0; /* start state number */
536 
537 /* Flag which is used to allow yywrap()'s to do buffer switches
538  * instead of setting up a fresh yyin. A bit of a hack ...
539  */
541 
542 void yyrestart ( FILE *input_file );
543 void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer );
544 YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size );
547 void yypush_buffer_state ( YY_BUFFER_STATE new_buffer );
548 void yypop_buffer_state ( void );
549 
550 static void yyensure_buffer_stack ( void );
551 static void yy_load_buffer_state ( void );
552 static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file );
553 #define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER )
554 
555 YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size );
556 YY_BUFFER_STATE yy_scan_string ( const char *yy_str );
557 YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len );
558 
559 void *yyalloc ( yy_size_t );
560 void *yyrealloc ( void *, yy_size_t );
561 void yyfree ( void * );
562 
563 #define yy_new_buffer yy_create_buffer
564 #define yy_set_interactive(is_interactive) \
565  { \
566  if ( ! YY_CURRENT_BUFFER ){ \
567  yyensure_buffer_stack (); \
568  YY_CURRENT_BUFFER_LVALUE = \
569  yy_create_buffer( yyin, YY_BUF_SIZE ); \
570  } \
571  YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
572  }
573 #define yy_set_bol(at_bol) \
574  { \
575  if ( ! YY_CURRENT_BUFFER ){\
576  yyensure_buffer_stack (); \
577  YY_CURRENT_BUFFER_LVALUE = \
578  yy_create_buffer( yyin, YY_BUF_SIZE ); \
579  } \
580  YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
581  }
582 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
583 
584 /* Begin user sect3 */
585 
586 #define rmwrap() (/*CONSTCOND*/1)
587 #define YY_SKIP_YYWRAP
589 
590 FILE *yyin = NULL, *yyout = NULL;
591 
592 typedef int yy_state_type;
593 
594 extern int yylineno;
595 int yylineno = 1;
596 
597 extern char *yytext;
598 #ifdef yytext_ptr
599 #undef yytext_ptr
600 #endif
601 #define yytext_ptr yytext
602 
603 static yy_state_type yy_get_previous_state ( void );
604 static yy_state_type yy_try_NUL_trans ( yy_state_type current_state );
605 static int yy_get_next_buffer ( void );
606 static void yynoreturn yy_fatal_error ( const char* msg );
607 
608 /* Done after the current pattern has been matched and before the
609  * corresponding action - sets up yytext.
610  */
611 #define YY_DO_BEFORE_ACTION \
612  (yytext_ptr) = yy_bp; \
613  yyleng = (int) (yy_cp - yy_bp); \
614  (yy_hold_char) = *yy_cp; \
615  *yy_cp = '\0'; \
616  (yy_c_buf_p) = yy_cp;
617 #define YY_NUM_RULES 38
618 #define YY_END_OF_BUFFER 39
619 /* This struct is not used in this scanner,
620  but its presence is necessary. */
621 struct yy_trans_info
622  {
625  };
626 static const flex_int16_t yy_accept[407] =
627  { 0,
628  37, 37, 0, 0, 39, 37, 35, 37, 37, 37,
629  37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
630  37, 37, 38, 38, 37, 37, 36, 37, 35, 37,
631  37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
632  37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
633  0, 35, 37, 37, 37, 37, 37, 37, 37, 37,
634  37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
635  37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
636  37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
637  37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
638 
639  37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
640  37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
641  37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
642  37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
643  37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
644  37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
645  37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
646  37, 9, 9, 10, 10, 37, 37, 37, 37, 37,
647  37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
648  37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
649 
650  37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
651  37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
652  37, 37, 37, 37, 37, 37, 33, 33, 37, 37,
653  37, 37, 37, 37, 32, 32, 37, 37, 37, 37,
654  37, 37, 37, 37, 37, 11, 11, 37, 37, 37,
655  37, 37, 37, 37, 37, 37, 37, 25, 25, 26,
656  26, 37, 14, 14, 37, 37, 37, 37, 37, 37,
657  37, 37, 6, 6, 37, 37, 37, 37, 18, 18,
658  37, 22, 22, 37, 37, 37, 37, 37, 37, 37,
659  37, 37, 37, 37, 1, 1, 8, 8, 37, 7,
660 
661  7, 15, 15, 37, 37, 37, 37, 37, 37, 2,
662  2, 37, 37, 37, 37, 37, 37, 27, 27, 37,
663  37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
664  5, 5, 37, 37, 37, 24, 24, 28, 28, 37,
665  37, 17, 17, 37, 37, 37, 20, 20, 37, 37,
666  37, 37, 37, 3, 3, 37, 37, 37, 37, 21,
667  21, 19, 19, 37, 37, 37, 37, 37, 37, 37,
668  4, 4, 37, 37, 37, 12, 12, 13, 13, 37,
669  37, 37, 37, 37, 37, 34, 34, 31, 31, 29,
670  29, 37, 37, 37, 37, 30, 30, 37, 37, 37,
671 
672  16, 16, 37, 23, 23, 0
673  } ;
674 
675 static const YY_CHAR yy_ec[256] =
676  { 0,
677  1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
678  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
679  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
680  1, 2, 1, 1, 4, 5, 1, 1, 1, 1,
681  1, 1, 1, 1, 1, 1, 1, 1, 6, 7,
682  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
683  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
684  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
685  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
686  1, 1, 1, 8, 9, 1, 10, 1, 11, 12,
687 
688  13, 14, 15, 16, 17, 1, 18, 19, 20, 21,
689  22, 23, 1, 24, 25, 26, 27, 28, 29, 30,
690  31, 32, 1, 1, 1, 1, 1, 1, 1, 1,
691  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
692  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
693  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
694  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
695  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
696  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
697  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
698 
699  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
700  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
701  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
702  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
703  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
704  1, 1, 1, 1, 1
705  } ;
706 
707 static const YY_CHAR yy_meta[33] =
708  { 0,
709  1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
710  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
711  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
712  1, 1
713  } ;
714 
715 static const flex_int16_t yy_base[445] =
716  { 0,
717  0, 6, 3, 4, 449, 0, 450, 445, 0, 431,
718  28, 416, 4, 5, 2, 15, 435, 413, 419, 432,
719  416, 415, 450, 11, 0, 436, 450, 38, 0, 425,
720  413, 425, 421, 412, 412, 10, 411, 409, 399, 408,
721  407, 408, 409, 399, 403, 403, 409, 402, 403, 402,
722  42, 450, 393, 399, 394, 401, 390, 398, 386, 401,
723  400, 387, 386, 389, 381, 379, 33, 392, 391, 382,
724  391, 381, 367, 366, 371, 375, 371, 377, 368, 379,
725  40, 370, 371, 365, 361, 378, 360, 368, 363, 366,
726  360, 359, 367, 354, 353, 364, 363, 350, 361, 29,
727 
728  362, 346, 349, 348, 343, 356, 358, 341, 339, 339,
729  350, 339, 335, 339, 337, 338, 331, 329, 329, 352,
730  351, 326, 326, 327, 323, 321, 316, 325, 324, 313,
731  336, 39, 316, 31, 319, 316, 320, 328, 328, 312,
732  326, 310, 309, 301, 329, 328, 298, 303, 301, 295,
733  306, 305, 314, 313, 302, 290, 289, 308, 286, 293,
734  289, 287, 288, 299, 285, 37, 308, 284, 277, 294,
735  287, 0, 303, 0, 302, 284, 300, 284, 281, 273,
736  285, 50, 283, 283, 293, 277, 270, 273, 265, 259,
737  265, 262, 278, 269, 275, 282, 281, 280, 268, 278,
738 
739  36, 266, 265, 275, 254, 262, 243, 271, 259, 258,
740  260, 252, 266, 265, 240, 263, 251, 246, 243, 250,
741  229, 245, 236, 234, 254, 253, 0, 252, 240, 250,
742  228, 224, 247, 246, 0, 245, 225, 243, 61, 242,
743  220, 214, 221, 219, 237, 0, 236, 228, 234, 233,
744  212, 220, 219, 212, 211, 208, 226, 0, 225, 0,
745  224, 213, 0, 222, 197, 191, 219, 218, 194, 216,
746  215, 199, 0, 213, 188, 200, 199, 201, 0, 208,
747  199, 0, 206, 205, 185, 203, 195, 190, 180, 199,
748  198, 197, 181, 178, 0, 194, 0, 193, 192, 0,
749 
750  191, 0, 190, 170, 174, 170, 186, 168, 162, 0,
751  183, 159, 181, 162, 179, 158, 177, 0, 176, 175,
752  154, 162, 172, 162, 170, 169, 168, 160, 157, 66,
753  0, 165, 156, 163, 140, 0, 161, 0, 160, 140,
754  158, 0, 157, 134, 155, 154, 0, 153, 134, 137,
755  150, 149, 127, 0, 147, 123, 122, 144, 132, 0,
756  142, 0, 141, 132, 128, 138, 137, 136, 135, 134,
757  0, 133, 124, 110, 106, 0, 129, 0, 128, 127,
758  126, 125, 101, 123, 93, 0, 121, 0, 120, 0,
759  119, 107, 117, 95, 115, 0, 114, 102, 112, 111,
760 
761  0, 110, 109, 0, 108, 450, 73, 75, 108, 77,
762  107, 106, 105, 104, 103, 102, 101, 100, 99, 98,
763  97, 96, 95, 94, 93, 92, 91, 90, 89, 88,
764  87, 86, 85, 84, 83, 82, 81, 80, 79, 65,
765  63, 59, 33, 0
766  } ;
767 
768 static const flex_int16_t yy_def[445] =
769  { 0,
770  407, 407, 408, 408, 406, 409, 406, 410, 409, 409,
771  409, 409, 409, 409, 409, 409, 409, 409, 409, 409,
772  409, 409, 406, 406, 409, 410, 406, 409, 409, 409,
773  409, 409, 409, 409, 409, 409, 409, 409, 409, 409,
774  409, 409, 409, 409, 409, 409, 409, 409, 409, 409,
775  406, 406, 409, 409, 409, 409, 409, 409, 409, 409,
776  409, 409, 409, 409, 409, 409, 409, 409, 409, 409,
777  409, 409, 409, 409, 409, 409, 409, 409, 409, 409,
778  409, 409, 409, 409, 409, 409, 409, 409, 409, 409,
779  409, 409, 409, 409, 409, 409, 409, 409, 409, 409,
780 
781  409, 409, 409, 409, 409, 409, 409, 409, 409, 409,
782  409, 409, 409, 409, 409, 409, 409, 409, 409, 409,
783  409, 409, 409, 409, 409, 409, 409, 409, 409, 409,
784  409, 409, 409, 409, 409, 409, 409, 409, 409, 409,
785  409, 409, 409, 409, 411, 412, 409, 409, 409, 409,
786  409, 409, 409, 409, 409, 409, 409, 409, 409, 409,
787  409, 409, 409, 409, 409, 409, 409, 409, 409, 409,
788  409, 411, 411, 412, 412, 409, 409, 409, 409, 409,
789  409, 409, 409, 409, 409, 409, 409, 409, 409, 409,
790  409, 409, 409, 409, 409, 409, 409, 413, 409, 409,
791 
792  409, 409, 409, 414, 409, 409, 409, 409, 409, 409,
793  409, 409, 409, 415, 409, 409, 409, 409, 409, 409,
794  409, 409, 409, 409, 416, 417, 413, 413, 409, 418,
795  409, 409, 409, 409, 414, 414, 409, 409, 409, 419,
796  409, 409, 409, 409, 420, 415, 415, 409, 421, 409,
797  409, 409, 409, 409, 409, 409, 409, 416, 416, 417,
798  417, 409, 418, 418, 409, 409, 422, 423, 409, 424,
799  425, 409, 419, 419, 409, 409, 409, 409, 420, 420,
800  409, 421, 421, 426, 409, 409, 409, 409, 409, 409,
801  427, 409, 409, 409, 422, 422, 423, 423, 409, 424,
802 
803  424, 425, 425, 409, 409, 409, 409, 409, 409, 426,
804  426, 409, 428, 409, 409, 409, 429, 427, 427, 430,
805  409, 409, 431, 409, 409, 409, 432, 409, 409, 409,
806  428, 428, 409, 433, 409, 429, 429, 430, 430, 409,
807  409, 431, 431, 409, 434, 435, 432, 432, 409, 409,
808  409, 409, 409, 433, 433, 409, 409, 436, 409, 434,
809  434, 435, 435, 409, 409, 437, 438, 409, 409, 409,
810  436, 436, 409, 409, 409, 437, 437, 438, 438, 439,
811  440, 441, 409, 409, 409, 439, 439, 440, 440, 441,
812  441, 409, 442, 409, 409, 442, 442, 409, 443, 409,
813 
814  443, 443, 444, 444, 444, 0, 406, 406, 406, 406,
815  406, 406, 406, 406, 406, 406, 406, 406, 406, 406,
816  406, 406, 406, 406, 406, 406, 406, 406, 406, 406,
817  406, 406, 406, 406, 406, 406, 406, 406, 406, 406,
818  406, 406, 406, 406
819  } ;
820 
821 static const flex_int16_t yy_nxt[483] =
822  { 0,
823  404, 28, 7, 8, 29, 7, 7, 9, 7, 8,
824  24, 24, 51, 9, 39, 52, 10, 11, 12, 13,
825  37, 40, 38, 41, 14, 15, 59, 16, 42, 17,
826  18, 19, 60, 401, 20, 21, 22, 31, 43, 28,
827  32, 44, 29, 51, 33, 89, 52, 90, 104, 34,
828  124, 157, 160, 125, 35, 161, 195, 231, 158, 396,
829  232, 209, 271, 390, 105, 388, 196, 197, 210, 272,
830  211, 351, 352, 6, 6, 23, 23, 26, 26, 386,
831  378, 376, 371, 362, 360, 354, 347, 342, 338, 336,
832  331, 318, 310, 302, 300, 297, 295, 282, 279, 273,
833 
834  263, 260, 258, 246, 235, 227, 174, 172, 25, 405,
835  405, 402, 403, 402, 400, 397, 399, 398, 397, 395,
836  391, 389, 387, 394, 393, 392, 391, 389, 387, 379,
837  377, 385, 384, 383, 372, 382, 381, 380, 379, 377,
838  375, 374, 363, 361, 373, 372, 370, 369, 355, 368,
839  367, 366, 365, 364, 348, 363, 361, 359, 343, 358,
840  357, 339, 337, 356, 355, 353, 332, 350, 349, 348,
841  346, 345, 344, 343, 341, 340, 339, 319, 337, 335,
842  334, 333, 332, 330, 311, 329, 328, 327, 326, 325,
843  324, 303, 301, 323, 298, 296, 322, 321, 320, 319,
844 
845  317, 316, 315, 314, 313, 312, 311, 283, 309, 280,
846  308, 307, 306, 305, 274, 304, 303, 301, 299, 298,
847  296, 294, 293, 264, 292, 261, 259, 291, 290, 289,
848  288, 287, 286, 285, 284, 283, 281, 247, 280, 278,
849  277, 276, 275, 274, 270, 269, 236, 268, 267, 266,
850  265, 264, 262, 228, 261, 259, 257, 256, 255, 254,
851  253, 252, 251, 250, 249, 248, 247, 245, 244, 243,
852  242, 241, 240, 239, 238, 237, 236, 234, 233, 230,
853  229, 228, 226, 225, 224, 223, 222, 221, 220, 219,
854  218, 217, 216, 215, 214, 213, 212, 208, 207, 206,
855 
856  205, 204, 203, 175, 173, 202, 201, 200, 199, 198,
857  194, 193, 192, 191, 190, 189, 188, 187, 186, 185,
858  184, 183, 182, 181, 180, 179, 178, 177, 176, 175,
859  173, 171, 170, 169, 168, 167, 166, 165, 164, 163,
860  162, 159, 156, 155, 154, 153, 152, 151, 150, 149,
861  148, 147, 146, 145, 144, 143, 142, 141, 140, 139,
862  138, 137, 136, 135, 134, 133, 132, 131, 130, 129,
863  128, 127, 126, 123, 122, 121, 120, 119, 118, 117,
864  116, 115, 114, 113, 112, 111, 110, 109, 108, 107,
865  106, 103, 102, 101, 100, 99, 98, 97, 96, 95,
866 
867  94, 93, 92, 91, 88, 87, 86, 85, 84, 83,
868  82, 81, 80, 79, 78, 77, 76, 75, 74, 73,
869  72, 71, 70, 69, 68, 67, 66, 65, 64, 63,
870  62, 61, 58, 57, 56, 55, 54, 53, 27, 50,
871  49, 48, 47, 46, 45, 36, 30, 27, 406, 5,
872  406, 406, 406, 406, 406, 406, 406, 406, 406, 406,
873  406, 406, 406, 406, 406, 406, 406, 406, 406, 406,
874  406, 406, 406, 406, 406, 406, 406, 406, 406, 406,
875  406, 406
876  } ;
877 
878 static const flex_int16_t yy_chk[483] =
879  { 0,
880  444, 9, 1, 1, 9, 3, 4, 1, 2, 2,
881  3, 4, 24, 2, 14, 24, 2, 2, 2, 2,
882  13, 14, 13, 15, 2, 2, 36, 2, 15, 2,
883  2, 2, 36, 443, 2, 2, 2, 11, 16, 28,
884  11, 16, 28, 51, 11, 67, 51, 67, 81, 11,
885  100, 132, 134, 100, 11, 134, 166, 201, 132, 442,
886  201, 182, 239, 441, 81, 440, 166, 166, 182, 239,
887  182, 330, 330, 407, 407, 408, 408, 410, 410, 439,
888  438, 437, 436, 435, 434, 433, 432, 431, 430, 429,
889  428, 427, 426, 425, 424, 423, 422, 421, 420, 419,
890 
891  418, 417, 416, 415, 414, 413, 412, 411, 409, 405,
892  403, 402, 400, 399, 398, 397, 395, 394, 393, 392,
893  391, 389, 387, 385, 384, 383, 382, 381, 380, 379,
894  377, 375, 374, 373, 372, 370, 369, 368, 367, 366,
895  365, 364, 363, 361, 359, 358, 357, 356, 355, 353,
896  352, 351, 350, 349, 348, 346, 345, 344, 343, 341,
897  340, 339, 337, 335, 334, 333, 332, 329, 328, 327,
898  326, 325, 324, 323, 322, 321, 320, 319, 317, 316,
899  315, 314, 313, 312, 311, 309, 308, 307, 306, 305,
900  304, 303, 301, 299, 298, 296, 294, 293, 292, 291,
901 
902  290, 289, 288, 287, 286, 285, 284, 283, 281, 280,
903  278, 277, 276, 275, 274, 272, 271, 270, 269, 268,
904  267, 266, 265, 264, 262, 261, 259, 257, 256, 255,
905  254, 253, 252, 251, 250, 249, 248, 247, 245, 244,
906  243, 242, 241, 240, 238, 237, 236, 234, 233, 232,
907  231, 230, 229, 228, 226, 225, 224, 223, 222, 221,
908  220, 219, 218, 217, 216, 215, 214, 213, 212, 211,
909  210, 209, 208, 207, 206, 205, 204, 203, 202, 200,
910  199, 198, 197, 196, 195, 194, 193, 192, 191, 190,
911  189, 188, 187, 186, 185, 184, 183, 181, 180, 179,
912 
913  178, 177, 176, 175, 173, 171, 170, 169, 168, 167,
914  165, 164, 163, 162, 161, 160, 159, 158, 157, 156,
915  155, 154, 153, 152, 151, 150, 149, 148, 147, 146,
916  145, 144, 143, 142, 141, 140, 139, 138, 137, 136,
917  135, 133, 131, 130, 129, 128, 127, 126, 125, 124,
918  123, 122, 121, 120, 119, 118, 117, 116, 115, 114,
919  113, 112, 111, 110, 109, 108, 107, 106, 105, 104,
920  103, 102, 101, 99, 98, 97, 96, 95, 94, 93,
921  92, 91, 90, 89, 88, 87, 86, 85, 84, 83,
922  82, 80, 79, 78, 77, 76, 75, 74, 73, 72,
923 
924  71, 70, 69, 68, 66, 65, 64, 63, 62, 61,
925  60, 59, 58, 57, 56, 55, 54, 53, 50, 49,
926  48, 47, 46, 45, 44, 43, 42, 41, 40, 39,
927  38, 37, 35, 34, 33, 32, 31, 30, 26, 22,
928  21, 20, 19, 18, 17, 12, 10, 8, 5, 406,
929  406, 406, 406, 406, 406, 406, 406, 406, 406, 406,
930  406, 406, 406, 406, 406, 406, 406, 406, 406, 406,
931  406, 406, 406, 406, 406, 406, 406, 406, 406, 406,
932  406, 406
933  } ;
934 
937 
938 extern int yy_flex_debug;
940 
941 /* The intent behind this definition is that it'll catch
942  * any uses of REJECT which flex missed.
943  */
944 #define REJECT reject_used_but_not_detected
945 #define yymore() yymore_used_but_not_detected
946 #define YY_MORE_ADJ 0
947 #define YY_RESTORE_YY_MORE_OFFSET
948 char *yytext;
949 #line 1 "../random_maps/reader.l"
950 #line 2 "../random_maps/reader.l"
951 /*
952  * static char *reader_l =
953  * "$Id$";
954  */
955 
956 /*
957  CrossFire, A Multiplayer game for X-windows
958 
959  Copyright (C) 1994 Mark Wedel
960  Copyright (C) 1992 Frank Tore Johansen
961 
962  This program is free software; you can redistribute it and/or modify
963  it under the terms of the GNU General Public License as published by
964  the Free Software Foundation; either version 2 of the License, or
965  (at your option) any later version.
966 
967  This program is distributed in the hope that it will be useful,
968  but WITHOUT ANY WARRANTY; without even the implied warranty of
969  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
970  GNU General Public License for more details.
971 
972  You should have received a copy of the GNU General Public License
973  along with this program; if not, write to the Free Software
974  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
975 
976  The author can be reached via e-mail to mark@pyramid.com
977 */
978 
979 #include <global.h>
980 #include <loader.h>
981 #include <newserver.h>
982 #include <random_map.h>
983 
984 #define YY_DECL int rmap_lex_read(RMParms *RP)
985 
986 static char *rmap_yval(void);
987 static int rmap_lex_read(RMParms *RP);
988 
989 static int rmap_lex_error;
990 
991 #define IVAL atoi(rmap_yval())
992 #define FVAL atof(rmap_yval())
993 
1000 static int yyerror(const char *s)
1001 {
1002  LOG(llevError, "%s: %s\n", s, yytext);
1003  return -1;
1004 }
1005 
1006 #line 1007 "reader.cpp"
1007 
1008 /* Don't have to link with -lfl with this */
1009 /* those functions are unused, not sure of compatibility with Flex versions. */
1010 #define YY_NO_INPUT 1
1011 #line 1012 "reader.cpp"
1012 
1013 #define INITIAL 0
1014 #define MESSAGE 1
1015 
1016 #ifndef YY_NO_UNISTD_H
1017 /* Special case for "unistd.h", since it is non-ANSI. We include it way
1018  * down here because we want the user's section 1 to have been scanned first.
1019  * The user has a chance to override it with an option.
1020  */
1021 #include <unistd.h>
1022 #endif
1023 
1024 #ifndef YY_EXTRA_TYPE
1025 #define YY_EXTRA_TYPE void *
1026 #endif
1027 
1028 static int yy_init_globals ( void );
1029 
1030 /* Accessor methods to globals.
1031  These are made visible to non-reentrant scanners for convenience. */
1032 
1033 int yylex_destroy ( void );
1034 
1035 int yyget_debug ( void );
1036 
1037 void yyset_debug ( int debug_flag );
1038 
1039 YY_EXTRA_TYPE yyget_extra ( void );
1040 
1041 void yyset_extra ( YY_EXTRA_TYPE user_defined );
1042 
1043 FILE *yyget_in ( void );
1044 
1045 void yyset_in ( FILE * _in_str );
1046 
1047 FILE *yyget_out ( void );
1048 
1049 void yyset_out ( FILE * _out_str );
1050 
1051  int yyget_leng ( void );
1052 
1053 char *yyget_text ( void );
1054 
1055 int yyget_lineno ( void );
1056 
1057 void yyset_lineno ( int _line_number );
1058 
1059 /* Macros after this point can all be overridden by user definitions in
1060  * section 1.
1061  */
1062 
1063 #ifndef YY_SKIP_YYWRAP
1064 #ifdef __cplusplus
1065 extern "C" int yywrap ( void );
1066 #else
1067 extern int yywrap ( void );
1068 #endif
1069 #endif
1070 
1071 #ifndef YY_NO_UNPUT
1072 
1073 #endif
1074 
1075 #ifndef yytext_ptr
1076 static void yy_flex_strncpy ( char *, const char *, int );
1077 #endif
1078 
1079 #ifdef YY_NEED_STRLEN
1080 static int yy_flex_strlen ( const char * );
1081 #endif
1082 
1083 #ifndef YY_NO_INPUT
1084 #ifdef __cplusplus
1085 static int yyinput ( void );
1086 #else
1087 static int input ( void );
1088 #endif
1089 
1090 #endif
1091 
1092 /* Amount of stuff to slurp up with each read. */
1093 #ifndef YY_READ_BUF_SIZE
1094 #ifdef __ia64__
1095 /* On IA-64, the buffer size is 16k, not 8k */
1096 #define YY_READ_BUF_SIZE 16384
1097 #else
1098 #define YY_READ_BUF_SIZE 8192
1099 #endif /* __ia64__ */
1100 #endif
1101 
1102 /* Copy whatever the last rule matched to the standard output. */
1103 #ifndef ECHO
1104 /* This used to be an fputs(), but since the string might contain NUL's,
1105  * we now use fwrite().
1106  */
1107 #define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
1108 #endif
1109 
1110 /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
1111  * is returned in "result".
1112  */
1113 #ifndef YY_INPUT
1114 #define YY_INPUT(buf,result,max_size) \
1115  if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
1116  { \
1117  int c = '*'; \
1118  int n; \
1119  for ( n = 0; n < max_size && \
1120  (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
1121  buf[n] = (char) c; \
1122  if ( c == '\n' ) \
1123  buf[n++] = (char) c; \
1124  if ( c == EOF && ferror( yyin ) ) \
1125  YY_FATAL_ERROR( "input in flex scanner failed" ); \
1126  result = n; \
1127  } \
1128  else \
1129  { \
1130  errno=0; \
1131  while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
1132  { \
1133  if( errno != EINTR) \
1134  { \
1135  YY_FATAL_ERROR( "input in flex scanner failed" ); \
1136  break; \
1137  } \
1138  errno=0; \
1139  clearerr(yyin); \
1140  } \
1141  }\
1142 \
1143 
1144 #endif
1145 
1146 /* No semi-colon after return; correct usage is to write "yyterminate();" -
1147  * we don't want an extra ';' after the "return" because that will cause
1148  * some compilers to complain about unreachable statements.
1149  */
1150 #ifndef yyterminate
1151 #define yyterminate() return YY_NULL
1152 #endif
1153 
1154 /* Number of entries by which start-condition stack grows. */
1155 #ifndef YY_START_STACK_INCR
1156 #define YY_START_STACK_INCR 25
1157 #endif
1158 
1159 /* Report a fatal error. */
1160 #ifndef YY_FATAL_ERROR
1161 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
1162 #endif
1163 
1164 /* end tables serialization structures and prototypes */
1165 
1166 /* Default declaration of generated scanner - a define so the user can
1167  * easily add parameters.
1168  */
1169 #ifndef YY_DECL
1170 #define YY_DECL_IS_OURS 1
1171 
1172 extern int yylex (void);
1173 
1174 #define YY_DECL int yylex (void)
1175 #endif /* !YY_DECL */
1176 
1177 /* Code executed at the beginning of each rule, after yytext and yyleng
1178  * have been set up.
1179  */
1180 #ifndef YY_USER_ACTION
1181 #define YY_USER_ACTION
1182 #endif
1183 
1184 /* Code executed at the end of each rule. */
1185 #ifndef YY_BREAK
1186 #define YY_BREAK /*LINTED*/break;
1187 #endif
1188 
1189 #define YY_RULE_SETUP \
1190  if ( yyleng > 0 ) \
1191  YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
1192  (yytext[yyleng - 1] == '\n'); \
1193  YY_USER_ACTION
1194 
1197 YY_DECL
1199  yy_state_type yy_current_state;
1200  char *yy_cp, *yy_bp;
1201  int yy_act;
1202 
1203  if ( !(yy_init) )
1204  {
1205  (yy_init) = 1;
1206 
1207 #ifdef YY_USER_INIT
1208  YY_USER_INIT;
1209 #endif
1210 
1211  if ( ! (yy_start) )
1212  (yy_start) = 1; /* first start state */
1213 
1214  if ( ! yyin )
1215  yyin = stdin;
1216 
1217  if ( ! yyout )
1218  yyout = stdout;
1219 
1220  if ( ! YY_CURRENT_BUFFER ) {
1224  }
1225 
1227  }
1228 
1229  {
1230 #line 72 "../random_maps/reader.l"
1231 
1232 
1233 
1234 #line 76 "../random_maps/reader.l"
1235 /* Declare some local variables */
1236 
1237  rmap_lex_error = 0;
1238 
1239 
1240 
1241 #line 1242 "reader.cpp"
1242 
1243  while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
1244  {
1245  yy_cp = (yy_c_buf_p);
1246 
1247  /* Support of yytext. */
1248  *yy_cp = (yy_hold_char);
1249 
1250  /* yy_bp points to the position in yy_ch_buf of the start of
1251  * the current run.
1252  */
1253  yy_bp = yy_cp;
1254 
1255  yy_current_state = (yy_start);
1256  yy_current_state += YY_AT_BOL();
1257 yy_match:
1258  do
1259  {
1260  YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
1261  if ( yy_accept[yy_current_state] )
1262  {
1263  (yy_last_accepting_state) = yy_current_state;
1265  }
1266  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1267  {
1268  yy_current_state = (int) yy_def[yy_current_state];
1269  if ( yy_current_state >= 407 )
1270  yy_c = yy_meta[yy_c];
1271  }
1272  yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
1273  ++yy_cp;
1274  }
1275  while ( yy_base[yy_current_state] != 450 );
1276 
1277 yy_find_action:
1278  yy_act = yy_accept[yy_current_state];
1279  if ( yy_act == 0 )
1280  { /* have to back up */
1282  yy_current_state = (yy_last_accepting_state);
1283  yy_act = yy_accept[yy_current_state];
1284  }
1285 
1287 
1288 do_action: /* This label is used only to access EOF actions. */
1289 
1290  switch ( yy_act )
1291  { /* beginning of action switch */
1292  case 0: /* must back up */
1293  /* undo the effects of YY_DO_BEFORE_ACTION */
1294  *yy_cp = (yy_hold_char);
1296  yy_current_state = (yy_last_accepting_state);
1297  goto yy_find_action;
1298 
1299 case 1:
1301 #line 82 "../random_maps/reader.l"
1302 strncpy(RP->wallstyle, rmap_yval(), RM_SIZE);
1303  YY_BREAK
1304 case 2:
1306 #line 83 "../random_maps/reader.l"
1307 strncpy(RP->floorstyle, rmap_yval(), RM_SIZE);
1308  YY_BREAK
1309 case 3:
1311 #line 84 "../random_maps/reader.l"
1312 strncpy(RP->monsterstyle, rmap_yval(), RM_SIZE);
1313  YY_BREAK
1314 case 4:
1316 #line 85 "../random_maps/reader.l"
1317 strncpy(RP->treasurestyle, rmap_yval(), RM_SIZE);
1318  YY_BREAK
1319 case 5:
1321 #line 86 "../random_maps/reader.l"
1322 strncpy(RP->layoutstyle, rmap_yval(), RM_SIZE);
1323  YY_BREAK
1324 case 6:
1326 #line 87 "../random_maps/reader.l"
1327 strncpy(RP->doorstyle, rmap_yval(), RM_SIZE);
1328  YY_BREAK
1329 case 7:
1331 #line 88 "../random_maps/reader.l"
1332 strncpy(RP->decorstyle, rmap_yval(), RM_SIZE);
1333  YY_BREAK
1334 case 8:
1336 #line 89 "../random_maps/reader.l"
1337 strncpy(RP->cheststyle, rmap_yval(), RM_SIZE);
1338  YY_BREAK
1339 case 9:
1341 #line 90 "../random_maps/reader.l"
1342 RP->Xsize = IVAL;
1343  YY_BREAK
1344 case 10:
1346 #line 91 "../random_maps/reader.l"
1347 RP->Ysize = IVAL;
1348  YY_BREAK
1349 case 11:
1351 #line 92 "../random_maps/reader.l"
1352 RP->expand2x = IVAL;
1353  YY_BREAK
1354 case 12:
1356 #line 93 "../random_maps/reader.l"
1357 RP->layoutoptions1 = IVAL;
1358  YY_BREAK
1359 case 13:
1361 #line 94 "../random_maps/reader.l"
1362 RP->layoutoptions2 = IVAL;
1363  YY_BREAK
1364 case 14:
1366 #line 95 "../random_maps/reader.l"
1367 RP->symmetry = IVAL;
1368  YY_BREAK
1369 case 15:
1371 #line 96 "../random_maps/reader.l"
1372 RP->difficulty = IVAL;
1373  YY_BREAK
1374 case 16:
1376 #line 97 "../random_maps/reader.l"
1377 RP->difficulty_increase = FVAL;
1378  YY_BREAK
1379 case 17:
1381 #line 98 "../random_maps/reader.l"
1382 RP->decoroptions = IVAL;
1383  YY_BREAK
1384 case 18:
1386 #line 99 "../random_maps/reader.l"
1387 strncpy(RP->exitstyle, rmap_yval(), RM_SIZE);
1388  YY_BREAK
1389 case 19:
1391 #line 100 "../random_maps/reader.l"
1392 RP->dungeon_level = IVAL;
1393  YY_BREAK
1394 case 20:
1396 #line 101 "../random_maps/reader.l"
1397 strncpy(RP->dungeon_name, rmap_yval(), RM_SIZE);
1398  YY_BREAK
1399 case 21:
1401 #line 102 "../random_maps/reader.l"
1402 RP->dungeon_depth = IVAL;
1403  YY_BREAK
1404 case 22:
1406 #line 103 "../random_maps/reader.l"
1407 strncpy(RP->final_map, rmap_yval(), RM_SIZE);
1408  YY_BREAK
1409 case 23:
1411 #line 104 "../random_maps/reader.l"
1412 strncpy(RP->final_exit_archetype, rmap_yval(), RM_SIZE);
1413  YY_BREAK
1414 case 24:
1416 #line 105 "../random_maps/reader.l"
1417 RP-> orientation = IVAL;
1418  YY_BREAK
1419 case 25:
1421 #line 106 "../random_maps/reader.l"
1422 RP->origin_x = IVAL;
1423  YY_BREAK
1424 case 26:
1426 #line 107 "../random_maps/reader.l"
1427 RP-> origin_y = IVAL;
1428  YY_BREAK
1429 case 27:
1431 #line 108 "../random_maps/reader.l"
1432 strncpy(RP->origin_map, rmap_yval(), RM_SIZE);
1433  YY_BREAK
1434 case 28:
1436 #line 109 "../random_maps/reader.l"
1437 RP->random_seed = IVAL;
1438  YY_BREAK
1439 case 29:
1441 #line 110 "../random_maps/reader.l"
1442 RP->treasureoptions = IVAL;
1443  YY_BREAK
1444 case 30:
1446 #line 111 "../random_maps/reader.l"
1447 strncpy(RP->exit_on_final_map, rmap_yval(), RM_SIZE);
1448  YY_BREAK
1449 case 31:
1451 #line 112 "../random_maps/reader.l"
1452 RP->multiple_floors = IVAL;
1453  YY_BREAK
1454 case 32:
1456 #line 113 "../random_maps/reader.l"
1457 RP->darkness = IVAL;
1458  YY_BREAK
1459 case 33:
1461 #line 114 "../random_maps/reader.l"
1462 RP->outdoor = IVAL;
1463  YY_BREAK
1464 case 34:
1466 #line 115 "../random_maps/reader.l"
1467 RP->link_source_map = IVAL != 0;
1468  YY_BREAK
1469 case 35:
1470 /* rule 35 can match eol */
1472 #line 117 "../random_maps/reader.l"
1473 {/* ignore empty lines, newlines we don't do above */}
1474  YY_BREAK
1475 case 36:
1476 /* rule 36 can match eol */
1478 #line 118 "../random_maps/reader.l"
1479 { }
1480  YY_BREAK
1481 case YY_STATE_EOF(INITIAL):
1482 case YY_STATE_EOF(MESSAGE):
1483 #line 120 "../random_maps/reader.l"
1484 {/* If we got an error, return the error. Otherwise, return that we got EOF */
1485  if (rmap_lex_error != 0)
1486  return rmap_lex_error;
1487  else
1488  return LL_EOF;
1489  }
1490  YY_BREAK
1491 case 37:
1493 #line 126 "../random_maps/reader.l"
1494 {
1495  yyerror("Unrecognized string");
1496  rmap_lex_error= -1;
1497  }
1498  YY_BREAK
1499 case 38:
1501 #line 130 "../random_maps/reader.l"
1502 ECHO;
1503  YY_BREAK
1504 #line 1505 "reader.cpp"
1505 
1506  case YY_END_OF_BUFFER:
1507  {
1508  /* Amount of text matched not including the EOB char. */
1509  int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
1510 
1511  /* Undo the effects of YY_DO_BEFORE_ACTION. */
1512  *yy_cp = (yy_hold_char);
1514 
1515  if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
1516  {
1517  /* We're scanning a new file or input source. It's
1518  * possible that this happened because the user
1519  * just pointed yyin at a new source and called
1520  * yylex(). If so, then we have to assure
1521  * consistency between YY_CURRENT_BUFFER and our
1522  * globals. Here is the right place to do so, because
1523  * this is the first action (other than possibly a
1524  * back-up) that will match for the new input source.
1525  */
1526  (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1527  YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
1528  YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
1529  }
1530 
1531  /* Note that here we test for yy_c_buf_p "<=" to the position
1532  * of the first EOB in the buffer, since yy_c_buf_p will
1533  * already have been incremented past the NUL character
1534  * (since all states make transitions on EOB to the
1535  * end-of-buffer state). Contrast this with the test
1536  * in input().
1537  */
1538  if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
1539  { /* This was really a NUL. */
1540  yy_state_type yy_next_state;
1541 
1542  (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
1543 
1544  yy_current_state = yy_get_previous_state( );
1545 
1546  /* Okay, we're now positioned to make the NUL
1547  * transition. We couldn't have
1548  * yy_get_previous_state() go ahead and do it
1549  * for us because it doesn't know how to deal
1550  * with the possibility of jamming (and we don't
1551  * want to build jamming into it because then it
1552  * will run more slowly).
1553  */
1554 
1555  yy_next_state = yy_try_NUL_trans( yy_current_state );
1556 
1558 
1559  if ( yy_next_state )
1560  {
1561  /* Consume the NUL. */
1562  yy_cp = ++(yy_c_buf_p);
1563  yy_current_state = yy_next_state;
1564  goto yy_match;
1565  }
1566 
1567  else
1568  {
1569  yy_cp = (yy_c_buf_p);
1570  goto yy_find_action;
1571  }
1572  }
1573 
1574  else switch ( yy_get_next_buffer( ) )
1575  {
1576  case EOB_ACT_END_OF_FILE:
1577  {
1579 
1580  if ( yywrap( ) )
1581  {
1582  /* Note: because we've taken care in
1583  * yy_get_next_buffer() to have set up
1584  * yytext, we can now set up
1585  * yy_c_buf_p so that if some total
1586  * hoser (like flex itself) wants to
1587  * call the scanner after we return the
1588  * YY_NULL, it'll still work - another
1589  * YY_NULL will get returned.
1590  */
1592 
1594  goto do_action;
1595  }
1596 
1597  else
1598  {
1599  if ( ! (yy_did_buffer_switch_on_eof) )
1600  YY_NEW_FILE;
1601  }
1602  break;
1603  }
1604 
1605  case EOB_ACT_CONTINUE_SCAN:
1606  (yy_c_buf_p) =
1607  (yytext_ptr) + yy_amount_of_matched_text;
1608 
1609  yy_current_state = yy_get_previous_state( );
1610 
1611  yy_cp = (yy_c_buf_p);
1613  goto yy_match;
1614 
1615  case EOB_ACT_LAST_MATCH:
1616  (yy_c_buf_p) =
1617  &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
1618 
1619  yy_current_state = yy_get_previous_state( );
1620 
1621  yy_cp = (yy_c_buf_p);
1623  goto yy_find_action;
1624  }
1625  break;
1626  }
1627 
1628  default:
1630  "fatal flex scanner internal error--no action found" );
1631  } /* end of action switch */
1632  } /* end of scanning one token */
1633  } /* end of user's declarations */
1634 } /* end of yylex */
1635 
1636 /* yy_get_next_buffer - try to read in a new buffer
1637  *
1638  * Returns a code representing an action:
1639  * EOB_ACT_LAST_MATCH -
1640  * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
1641  * EOB_ACT_END_OF_FILE - end of file
1642  */
1643 static int yy_get_next_buffer (void)
1644 {
1645  char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
1646  char *source = (yytext_ptr);
1647  int number_to_move, i;
1648  int ret_val;
1649 
1650  if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
1652  "fatal flex scanner internal error--end of buffer missed" );
1653 
1654  if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
1655  { /* Don't try to fill the buffer, so this is an EOF. */
1656  if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
1657  {
1658  /* We matched a single character, the EOB, so
1659  * treat this as a final EOF.
1660  */
1661  return EOB_ACT_END_OF_FILE;
1662  }
1663 
1664  else
1665  {
1666  /* We matched some text prior to the EOB, first
1667  * process it.
1668  */
1669  return EOB_ACT_LAST_MATCH;
1670  }
1671  }
1672 
1673  /* Try to read more data. */
1674 
1675  /* First move last chars to start of buffer. */
1676  number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr) - 1);
1677 
1678  for ( i = 0; i < number_to_move; ++i )
1679  *(dest++) = *(source++);
1680 
1681  if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1682  /* don't do the read, it's not guaranteed to return an EOF,
1683  * just force an EOF
1684  */
1685  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
1686 
1687  else
1688  {
1689  int num_to_read =
1690  YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
1691 
1692  while ( num_to_read <= 0 )
1693  { /* Not enough room in the buffer - grow it. */
1694 
1695  /* just a shorter name for the current buffer */
1697 
1698  int yy_c_buf_p_offset =
1699  (int) ((yy_c_buf_p) - b->yy_ch_buf);
1700 
1701  if ( b->yy_is_our_buffer )
1702  {
1703  int new_size = b->yy_buf_size * 2;
1704 
1705  if ( new_size <= 0 )
1706  b->yy_buf_size += b->yy_buf_size / 8;
1707  else
1708  b->yy_buf_size *= 2;
1709 
1710  b->yy_ch_buf = (char *)
1711  /* Include room in for 2 EOB chars. */
1712  yyrealloc( (void *) b->yy_ch_buf,
1713  (yy_size_t) (b->yy_buf_size + 2) );
1714  }
1715  else
1716  /* Can't grow it, we don't own it. */
1717  b->yy_ch_buf = NULL;
1718 
1719  if ( ! b->yy_ch_buf )
1721  "fatal error - scanner input buffer overflow" );
1722 
1723  (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
1724 
1725  num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
1726  number_to_move - 1;
1727 
1728  }
1729 
1730  if ( num_to_read > YY_READ_BUF_SIZE )
1731  num_to_read = YY_READ_BUF_SIZE;
1732 
1733  /* Read in more data. */
1734  YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
1735  (yy_n_chars), num_to_read );
1736 
1737  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1738  }
1739 
1740  if ( (yy_n_chars) == 0 )
1741  {
1742  if ( number_to_move == YY_MORE_ADJ )
1743  {
1744  ret_val = EOB_ACT_END_OF_FILE;
1745  yyrestart( yyin );
1746  }
1747 
1748  else
1749  {
1750  ret_val = EOB_ACT_LAST_MATCH;
1751  YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
1753  }
1754  }
1755 
1756  else
1757  ret_val = EOB_ACT_CONTINUE_SCAN;
1758 
1759  if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
1760  /* Extend the array by 50%, plus the number we really need. */
1761  int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
1762  YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
1763  (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size );
1764  if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1765  YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
1766  /* "- 2" to take care of EOB's */
1767  YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
1768  }
1769 
1770  (yy_n_chars) += number_to_move;
1773 
1774  (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
1775 
1776  return ret_val;
1777 }
1778 
1779 /* yy_get_previous_state - get the state just before the EOB char was reached */
1780 
1782 {
1783  yy_state_type yy_current_state;
1784  char *yy_cp;
1785 
1786  yy_current_state = (yy_start);
1787  yy_current_state += YY_AT_BOL();
1788 
1789  for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
1790  {
1791  YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1792  if ( yy_accept[yy_current_state] )
1793  {
1794  (yy_last_accepting_state) = yy_current_state;
1796  }
1797  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1798  {
1799  yy_current_state = (int) yy_def[yy_current_state];
1800  if ( yy_current_state >= 407 )
1801  yy_c = yy_meta[yy_c];
1802  }
1803  yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
1804  }
1805 
1806  return yy_current_state;
1807 }
1808 
1809 /* yy_try_NUL_trans - try to make a transition on the NUL character
1810  *
1811  * synopsis
1812  * next_state = yy_try_NUL_trans( current_state );
1813  */
1814  static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
1815 {
1816  int yy_is_jam;
1817  char *yy_cp = (yy_c_buf_p);
1818 
1819  YY_CHAR yy_c = 1;
1820  if ( yy_accept[yy_current_state] )
1821  {
1822  (yy_last_accepting_state) = yy_current_state;
1824  }
1825  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1826  {
1827  yy_current_state = (int) yy_def[yy_current_state];
1828  if ( yy_current_state >= 407 )
1829  yy_c = yy_meta[yy_c];
1830  }
1831  yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
1832  yy_is_jam = (yy_current_state == 406);
1833 
1834  return yy_is_jam ? 0 : yy_current_state;
1835 }
1836 
1837 #ifndef YY_NO_UNPUT
1838 
1839 #endif
1840 
1841 #ifndef YY_NO_INPUT
1842 #ifdef __cplusplus
1843  static int yyinput (void)
1844 #else
1845  static int input (void)
1846 #endif
1847 
1848 {
1849  int c;
1850 
1851  *(yy_c_buf_p) = (yy_hold_char);
1852 
1853  if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
1854  {
1855  /* yy_c_buf_p now points to the character we want to return.
1856  * If this occurs *before* the EOB characters, then it's a
1857  * valid NUL; if not, then we've hit the end of the buffer.
1858  */
1859  if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
1860  /* This was really a NUL. */
1861  *(yy_c_buf_p) = '\0';
1862 
1863  else
1864  { /* need more input */
1865  int offset = (int) ((yy_c_buf_p) - (yytext_ptr));
1866  ++(yy_c_buf_p);
1867 
1868  switch ( yy_get_next_buffer( ) )
1869  {
1870  case EOB_ACT_LAST_MATCH:
1871  /* This happens because yy_g_n_b()
1872  * sees that we've accumulated a
1873  * token and flags that we need to
1874  * try matching the token before
1875  * proceeding. But for input(),
1876  * there's no matching to consider.
1877  * So convert the EOB_ACT_LAST_MATCH
1878  * to EOB_ACT_END_OF_FILE.
1879  */
1880 
1881  /* Reset buffer status. */
1882  yyrestart( yyin );
1883 
1884  /*FALLTHROUGH*/
1885 
1886  case EOB_ACT_END_OF_FILE:
1887  {
1888  if ( yywrap( ) )
1889  return 0;
1890 
1891  if ( ! (yy_did_buffer_switch_on_eof) )
1892  YY_NEW_FILE;
1893 #ifdef __cplusplus
1894  return yyinput();
1895 #else
1896  return input();
1897 #endif
1898  }
1899 
1900  case EOB_ACT_CONTINUE_SCAN:
1901  (yy_c_buf_p) = (yytext_ptr) + offset;
1902  break;
1903  }
1904  }
1905  }
1906 
1907  c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
1908  *(yy_c_buf_p) = '\0'; /* preserve yytext */
1909  (yy_hold_char) = *++(yy_c_buf_p);
1910 
1911  YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n');
1912 
1913  return c;
1914 }
1915 #endif /* ifndef YY_NO_INPUT */
1916 
1922  void yyrestart (FILE * input_file )
1923 {
1924 
1925  if ( ! YY_CURRENT_BUFFER ){
1929  }
1930 
1931  yy_init_buffer( YY_CURRENT_BUFFER, input_file );
1933 }
1934 
1940 {
1941 
1942  /* TODO. We should be able to replace this entire function body
1943  * with
1944  * yypop_buffer_state();
1945  * yypush_buffer_state(new_buffer);
1946  */
1948  if ( YY_CURRENT_BUFFER == new_buffer )
1949  return;
1950 
1951  if ( YY_CURRENT_BUFFER )
1952  {
1953  /* Flush out information for old buffer. */
1954  *(yy_c_buf_p) = (yy_hold_char);
1955  YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1956  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1957  }
1958 
1959  YY_CURRENT_BUFFER_LVALUE = new_buffer;
1961 
1962  /* We don't actually know whether we did this switch during
1963  * EOF (yywrap()) processing, but the only time this flag
1964  * is looked at is after yywrap() is called, so it's safe
1965  * to go ahead and always set it.
1966  */
1968 }
1969 
1970 static void yy_load_buffer_state (void)
1971 {
1972  (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1973  (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
1974  yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
1975  (yy_hold_char) = *(yy_c_buf_p);
1976 }
1977 
1985 {
1987 
1988  b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
1989  if ( ! b )
1990  YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1991 
1992  b->yy_buf_size = size;
1993 
1994  /* yy_ch_buf has to be 2 characters longer than the size given because
1995  * we need to put in 2 end-of-buffer characters.
1996  */
1997  b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) );
1998  if ( ! b->yy_ch_buf )
1999  YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2000 
2001  b->yy_is_our_buffer = 1;
2002 
2003  yy_init_buffer( b, file );
2004 
2005  return b;
2006 }
2007 
2013 {
2014 
2015  if ( ! b )
2016  return;
2017 
2018  if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
2020 
2021  if ( b->yy_is_our_buffer )
2022  yyfree( (void *) b->yy_ch_buf );
2023 
2024  yyfree( (void *) b );
2025 }
2026 
2027 /* Initializes or reinitializes a buffer.
2028  * This function is sometimes called more than once on the same buffer,
2029  * such as during a yyrestart() or at EOF.
2030  */
2031  static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
2032 
2033 {
2034  int oerrno = errno;
2035 
2036  yy_flush_buffer( b );
2037 
2038  b->yy_input_file = file;
2039  b->yy_fill_buffer = 1;
2040 
2041  /* If b is the current buffer, then yy_init_buffer was _probably_
2042  * called from yyrestart() or through yy_get_next_buffer.
2043  * In that case, we don't want to reset the lineno or column.
2044  */
2045  if (b != YY_CURRENT_BUFFER){
2046  b->yy_bs_lineno = 1;
2047  b->yy_bs_column = 0;
2048  }
2049 
2050  b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
2051 
2052  errno = oerrno;
2053 }
2054 
2060 {
2061  if ( ! b )
2062  return;
2063 
2064  b->yy_n_chars = 0;
2065 
2066  /* We always need two end-of-buffer characters. The first causes
2067  * a transition to the end-of-buffer state. The second causes
2068  * a jam in that state.
2069  */
2070  b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
2071  b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
2072 
2073  b->yy_buf_pos = &b->yy_ch_buf[0];
2074 
2075  b->yy_at_bol = 1;
2076  b->yy_buffer_status = YY_BUFFER_NEW;
2077 
2078  if ( b == YY_CURRENT_BUFFER )
2080 }
2081 
2089 {
2090  if (new_buffer == NULL)
2091  return;
2092 
2094 
2095  /* This block is copied from yy_switch_to_buffer. */
2096  if ( YY_CURRENT_BUFFER )
2097  {
2098  /* Flush out information for old buffer. */
2099  *(yy_c_buf_p) = (yy_hold_char);
2100  YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
2101  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
2102  }
2103 
2104  /* Only push if top exists. Otherwise, replace top. */
2105  if (YY_CURRENT_BUFFER)
2106  (yy_buffer_stack_top)++;
2107  YY_CURRENT_BUFFER_LVALUE = new_buffer;
2108 
2109  /* copied from yy_switch_to_buffer. */
2112 }
2113 
2118 void yypop_buffer_state (void)
2119 {
2120  if (!YY_CURRENT_BUFFER)
2121  return;
2122 
2124  YY_CURRENT_BUFFER_LVALUE = NULL;
2125  if ((yy_buffer_stack_top) > 0)
2126  --(yy_buffer_stack_top);
2127 
2128  if (YY_CURRENT_BUFFER) {
2131  }
2132 }
2133 
2134 /* Allocates the stack if it does not exist.
2135  * Guarantees space for at least one push.
2136  */
2137 static void yyensure_buffer_stack (void)
2138 {
2139  yy_size_t num_to_alloc;
2140 
2141  if (!(yy_buffer_stack)) {
2142 
2143  /* First allocation is just for 2 elements, since we don't know if this
2144  * scanner will even need a stack. We use 2 instead of 1 to avoid an
2145  * immediate realloc on the next call.
2146  */
2147  num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
2149  (num_to_alloc * sizeof(struct yy_buffer_state*)
2150  );
2151  if ( ! (yy_buffer_stack) )
2152  YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
2153 
2154  memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
2155 
2156  (yy_buffer_stack_max) = num_to_alloc;
2157  (yy_buffer_stack_top) = 0;
2158  return;
2159  }
2160 
2161  if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
2162 
2163  /* Increase the buffer to prepare for a possible push. */
2164  yy_size_t grow_size = 8 /* arbitrary grow size */;
2165 
2166  num_to_alloc = (yy_buffer_stack_max) + grow_size;
2168  ((yy_buffer_stack),
2169  num_to_alloc * sizeof(struct yy_buffer_state*)
2170  );
2171  if ( ! (yy_buffer_stack) )
2172  YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
2173 
2174  /* zero only the new slots.*/
2175  memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
2176  (yy_buffer_stack_max) = num_to_alloc;
2177  }
2178 }
2179 
2187 {
2189 
2190  if ( size < 2 ||
2191  base[size-2] != YY_END_OF_BUFFER_CHAR ||
2192  base[size-1] != YY_END_OF_BUFFER_CHAR )
2193  /* They forgot to leave room for the EOB's. */
2194  return NULL;
2195 
2196  b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
2197  if ( ! b )
2198  YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
2199 
2200  b->yy_buf_size = (int) (size - 2); /* "- 2" to take care of EOB's */
2201  b->yy_buf_pos = b->yy_ch_buf = base;
2202  b->yy_is_our_buffer = 0;
2203  b->yy_input_file = NULL;
2204  b->yy_n_chars = b->yy_buf_size;
2205  b->yy_is_interactive = 0;
2206  b->yy_at_bol = 1;
2207  b->yy_fill_buffer = 0;
2208  b->yy_buffer_status = YY_BUFFER_NEW;
2209 
2211 
2212  return b;
2213 }
2214 
2223 YY_BUFFER_STATE yy_scan_string (const char * yystr )
2224 {
2225 
2226  return yy_scan_bytes( yystr, (int) strlen(yystr) );
2227 }
2228 
2236 YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, int _yybytes_len )
2237 {
2239  char *buf;
2240  yy_size_t n;
2241  int i;
2242 
2243  /* Get memory for full buffer, including space for trailing EOB's. */
2244  n = (yy_size_t) (_yybytes_len + 2);
2245  buf = (char *) yyalloc( n );
2246  if ( ! buf )
2247  YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
2248 
2249  for ( i = 0; i < _yybytes_len; ++i )
2250  buf[i] = yybytes[i];
2251 
2252  buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
2253 
2254  b = yy_scan_buffer( buf, n );
2255  if ( ! b )
2256  YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
2257 
2258  /* It's okay to grow etc. this buffer, and we should throw it
2259  * away when we're done.
2260  */
2261  b->yy_is_our_buffer = 1;
2262 
2263  return b;
2264 }
2265 
2266 #ifndef YY_EXIT_FAILURE
2267 #define YY_EXIT_FAILURE 2
2268 #endif
2269 
2270 static void yynoreturn yy_fatal_error (const char* msg )
2271 {
2272  fprintf( stderr, "%s\n", msg );
2273  exit( YY_EXIT_FAILURE );
2274 }
2275 
2276 /* Redefine yyless() so it works in section 3 code. */
2277 
2278 #undef yyless
2279 #define yyless(n) \
2280  do \
2281  { \
2282  /* Undo effects of setting up yytext. */ \
2283  int yyless_macro_arg = (n); \
2284  YY_LESS_LINENO(yyless_macro_arg);\
2285  yytext[yyleng] = (yy_hold_char); \
2286  (yy_c_buf_p) = yytext + yyless_macro_arg; \
2287  (yy_hold_char) = *(yy_c_buf_p); \
2288  *(yy_c_buf_p) = '\0'; \
2289  yyleng = yyless_macro_arg; \
2290  } \
2291  while ( 0 )
2292 
2293 /* Accessor methods (get/set functions) to struct members. */
2294 
2298 int yyget_lineno (void)
2299 {
2300 
2301  return yylineno;
2302 }
2303 
2307 FILE *yyget_in (void)
2308 {
2309  return yyin;
2310 }
2311 
2315 FILE *yyget_out (void)
2316 {
2317  return yyout;
2318 }
2319 
2323 int yyget_leng (void)
2324 {
2325  return yyleng;
2326 }
2327 
2332 char *yyget_text (void)
2333 {
2334  return yytext;
2335 }
2336 
2341 void yyset_lineno (int _line_number )
2342 {
2343 
2344  yylineno = _line_number;
2345 }
2346 
2353 void yyset_in (FILE * _in_str )
2354 {
2355  yyin = _in_str ;
2356 }
2357 
2358 void yyset_out (FILE * _out_str )
2359 {
2360  yyout = _out_str ;
2361 }
2362 
2363 int yyget_debug (void)
2364 {
2365  return yy_flex_debug;
2366 }
2367 
2368 void yyset_debug (int _bdebug )
2369 {
2370  yy_flex_debug = _bdebug ;
2371 }
2372 
2373 static int yy_init_globals (void)
2374 {
2375  /* Initialization is the same as for the non-reentrant scanner.
2376  * This function is called from yylex_destroy(), so don't allocate here.
2377  */
2378 
2379  (yy_buffer_stack) = NULL;
2380  (yy_buffer_stack_top) = 0;
2381  (yy_buffer_stack_max) = 0;
2382  (yy_c_buf_p) = NULL;
2383  (yy_init) = 0;
2384  (yy_start) = 0;
2385 
2386 /* Defined in main.c */
2387 #ifdef YY_STDINIT
2388  yyin = stdin;
2389  yyout = stdout;
2390 #else
2391  yyin = NULL;
2392  yyout = NULL;
2393 #endif
2394 
2395  /* For future reference: Set errno on error, since we are called by
2396  * yylex_init()
2397  */
2398  return 0;
2399 }
2400 
2401 /* yylex_destroy is for both reentrant and non-reentrant scanners. */
2402 int yylex_destroy (void)
2403 {
2404 
2405  /* Pop the buffer stack, destroying each element. */
2406  while(YY_CURRENT_BUFFER){
2408  YY_CURRENT_BUFFER_LVALUE = NULL;
2410  }
2411 
2412  /* Destroy the stack itself. */
2413  yyfree((yy_buffer_stack) );
2414  (yy_buffer_stack) = NULL;
2415 
2416  /* Reset the globals. This is important in a non-reentrant scanner so the next time
2417  * yylex() is called, initialization will occur. */
2418  yy_init_globals( );
2419 
2420  return 0;
2421 }
2422 
2423 /*
2424  * Internal utility routines.
2425  */
2426 
2427 #ifndef yytext_ptr
2428 static void yy_flex_strncpy (char* s1, const char * s2, int n )
2429 {
2430 
2431  int i;
2432  for ( i = 0; i < n; ++i )
2433  s1[i] = s2[i];
2434 }
2435 #endif
2436 
2437 #ifdef YY_NEED_STRLEN
2438 static int yy_flex_strlen (const char * s )
2439 {
2440  int n;
2441  for ( n = 0; s[n]; ++n )
2442  ;
2443 
2444  return n;
2445 }
2446 #endif
2447 
2448 void *yyalloc (yy_size_t size )
2449 {
2450  return malloc(size);
2451 }
2452 
2453 void *yyrealloc (void * ptr, yy_size_t size )
2454 {
2455 
2456  /* The cast to (char *) in the following accommodates both
2457  * implementations that use char* generic pointers, and those
2458  * that use void* generic pointers. It works with the latter
2459  * because both ANSI C and C++ allow castless assignment from
2460  * any pointer type to void*, and deal with argument conversions
2461  * as though doing an assignment.
2462  */
2463  return realloc(ptr, size);
2464 }
2465 
2466 void yyfree (void * ptr )
2467 {
2468  free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
2469 }
2470 
2471 #define YYTABLES_NAME "yytables"
2472 
2473 #line 130 "../random_maps/reader.l"
2474 
2475 
2476 /* Our save file syntax is very simple, so we can use a very simple
2477  * processing mechanism here instead using something like bison
2478  * This skips over the space and returns the value, or "" if no value
2479  * is found.
2480  */
2481 static char *rmap_yval(void) {
2482  static char em[] = "";
2483  char *cp;
2484 
2485  cp = strchr(yytext, ' ');
2486  if (cp)
2487  return cp+1;
2488  else
2489  return em;
2490 }
2491 
2492 int load_parameters(FILE *fp, int bufstate, RMParms *RP) {
2493  int retval;
2494  char inbuf[MAX_BUF];
2495 
2496  if (bufstate == LO_NEWFILE || bufstate == LO_NOREAD) {
2499  if (bufstate == LO_NOREAD)
2500  return LL_NORMAL;
2501  }
2502  if (bufstate == LO_LINEMODE) {
2503  YY_BUFFER_STATE yybufstate;
2504  while (fgets(inbuf, MAX_BUF-3, fp)) {
2505  yybufstate = yy_scan_string(inbuf);
2506  retval = rmap_lex_read(RP);
2507  yy_delete_buffer(yybufstate);
2508  if (retval == LL_NORMAL)
2509  return retval;
2510  }
2511  return LL_EOF;
2512  }
2513 
2514  retval = rmap_lex_read(RP);
2515 /* LOG(llevDebug, " load completed, object=%s\n", op->name);*/
2516  return retval;
2517 }
2518 
2519 
2520 /* This takes a buffer, scans it for variables, and sets those variables
2521  * as appropriate in op.
2522  *
2523  * This function appears to be used in only 2 places - in crossedit to
2524  * override values and in c_wiz to mutate values.
2525  */
2526 int set_random_map_variable(RMParms *rp, const char *buf) {
2527  YY_BUFFER_STATE yybufstate;
2528  int retval;
2529 
2530  yybufstate = yy_scan_string(buf);
2531  retval = rmap_lex_read(rp);
2532  yy_delete_buffer(yybufstate);
2533  return retval;
2534 }
2535 
rmap_lex_error
static int rmap_lex_error
Definition: reader.cpp:989
flex_uint8_t
unsigned char flex_uint8_t
Definition: loader.cpp:54
global.h
yy_scan_bytes
#define yy_scan_bytes
Definition: reader.cpp:13
YY_MORE_ADJ
#define YY_MORE_ADJ
Definition: reader.cpp:946
yynoreturn
#define yynoreturn
Definition: reader.cpp:362
random_map.h
yy_buffer_stack_max
static size_t yy_buffer_stack_max
Definition: reader.cpp:510
yyset_debug
#define yyset_debug
Definition: reader.cpp:153
llevError
@ llevError
Definition: logger.h:11
yy_nxt
static const flex_int16_t yy_nxt[483]
Definition: reader.cpp:821
yy_def
static const flex_int16_t yy_def[445]
Definition: reader.cpp:768
LOG
void LOG(LogLevel logLevel, const char *format,...)
Definition: logger.cpp:58
flex_int16_t
short int flex_int16_t
Definition: loader.cpp:52
load_parameters
int load_parameters(FILE *fp, int bufstate, RMParms *RP)
Definition: reader.cpp:2492
YY_BUFFER_EOF_PENDING
#define YY_BUFFER_EOF_PENDING
Definition: reader.cpp:503
yy_flex_debug
#define yy_flex_debug
Definition: reader.cpp:21
yy_trans_info
Definition: loader.cpp:35381
YY_RULE_SETUP
#define YY_RULE_SETUP
Definition: reader.cpp:1189
flex_uint8_t
unsigned char flex_uint8_t
Definition: reader.cpp:313
YY_AT_BOL
#define YY_AT_BOL()
Definition: reader.cpp:582
YY_RESTORE_YY_MORE_OFFSET
#define YY_RESTORE_YY_MORE_OFFSET
Definition: reader.cpp:947
yy_buffer_state::yy_input_file
FILE * yy_input_file
Definition: loader.cpp:188
yyget_in
#define yyget_in
Definition: reader.cpp:171
c
static event_registration c
Definition: citylife.cpp:425
yylex_destroy
#define yylex_destroy
Definition: reader.cpp:141
yyleng
#define yyleng
Definition: reader.cpp:23
yy_buffer_state
Definition: loader.cpp:186
RM_SIZE
#define RM_SIZE
Definition: random_map.h:9
YY_EXTRA_TYPE
#define YY_EXTRA_TYPE
Definition: reader.cpp:1025
yyget_out
#define yyget_out
Definition: reader.cpp:183
yy_scan_string
#define yy_scan_string
Definition: reader.cpp:12
yyout
#define yyout
Definition: reader.cpp:26
mad_mage_user.file
file
Definition: mad_mage_user.py:15
yy_base
static const flex_int16_t yy_base[445]
Definition: reader.cpp:715
yyget_leng
#define yyget_leng
Definition: reader.cpp:195
yyin
#define yyin
Definition: reader.cpp:22
YY_BUFFER_STATE
struct yy_buffer_state * YY_BUFFER_STATE
Definition: reader.cpp:409
rmap_lex_read
static int rmap_lex_read(RMParms *RP)
yy_size_t
size_t yy_size_t
Definition: loader.cpp:155
yy_chk
static const flex_int16_t yy_chk[483]
Definition: reader.cpp:878
yy_bp
char * yy_bp
Definition: reader.cpp:1200
LO_NEWFILE
#define LO_NEWFILE
Definition: loader.h:17
YY_END_OF_BUFFER_CHAR
#define YY_END_OF_BUFFER_CHAR
Definition: reader.cpp:388
yy_act
int yy_act
Definition: reader.cpp:1201
yyset_in
#define yyset_in
Definition: reader.cpp:177
yy_buffer_state::yy_at_bol
int yy_at_bol
Definition: loader.cpp:220
yy_scan_buffer
#define yy_scan_buffer
Definition: reader.cpp:11
buf
StringBuffer * buf
Definition: readable.cpp:1565
EOB_ACT_CONTINUE_SCAN
#define EOB_ACT_CONTINUE_SCAN
Definition: reader.cpp:421
RMParms
Definition: random_map.h:14
YY_EXIT_FAILURE
#define YY_EXIT_FAILURE
Definition: reader.cpp:2267
ECHO
#define ECHO
Definition: reader.cpp:1107
yy_buffer_state::yy_is_our_buffer
int yy_is_our_buffer
Definition: loader.cpp:207
flex_uint32_t
unsigned int flex_uint32_t
Definition: reader.cpp:315
YY_CHAR
flex_uint8_t YY_CHAR
Definition: loader.cpp:329
yy_switch_to_buffer
#define yy_switch_to_buffer
Definition: reader.cpp:17
LO_NOREAD
#define LO_NOREAD
Definition: loader.h:18
yyensure_buffer_stack
#define yyensure_buffer_stack
Definition: reader.cpp:20
yyrestart
#define yyrestart
Definition: reader.cpp:27
yy_try_NUL_trans
static yy_state_type yy_try_NUL_trans(yy_state_type current_state)
Definition: reader.cpp:1814
yyget_text
#define yyget_text
Definition: reader.cpp:201
yy_size_t
size_t yy_size_t
Definition: reader.cpp:414
yy_last_accepting_state
static yy_state_type yy_last_accepting_state
Definition: reader.cpp:935
yytext
#define yytext
Definition: reader.cpp:28
INITIAL
#define INITIAL
Definition: reader.cpp:1013
YY_DECL
#define YY_DECL
Definition: reader.cpp:984
yyget_extra
#define yyget_extra
Definition: reader.cpp:159
flex_uint16_t
unsigned short int flex_uint16_t
Definition: reader.cpp:314
YY_END_OF_BUFFER
#define YY_END_OF_BUFFER
Definition: reader.cpp:618
yylineno
#define yylineno
Definition: reader.cpp:25
yy_delete_buffer
#define yy_delete_buffer
Definition: reader.cpp:10
MESSAGE
#define MESSAGE
Definition: reader.cpp:1014
yyerror
static int yyerror(const char *s)
Definition: reader.cpp:1000
yy_init_buffer
#define yy_init_buffer
Definition: reader.cpp:14
YY_CHAR
flex_uint8_t YY_CHAR
Definition: reader.cpp:588
yy_init
static int yy_init
Definition: reader.cpp:534
yylex
#define yylex
Definition: reader.cpp:24
yy_buffer_state::yy_fill_buffer
int yy_fill_buffer
Definition: loader.cpp:228
yy_state_type
int yy_state_type
Definition: loader.cpp:333
yy_accept
static const flex_int16_t yy_accept[407]
Definition: reader.cpp:626
navar-midane_pickup.msg
list msg
Definition: navar-midane_pickup.py:13
Ice.b
b
Definition: Ice.py:48
yyget_lineno
#define yyget_lineno
Definition: reader.cpp:207
yyset_extra
#define yyset_extra
Definition: reader.cpp:165
yy_buffer_state::yy_buf_size
int yy_buf_size
Definition: loader.cpp:196
yypop_buffer_state
#define yypop_buffer_state
Definition: reader.cpp:19
yy_buffer_state::yy_ch_buf
char * yy_ch_buf
Definition: loader.cpp:190
yy_get_previous_state
static yy_state_type yy_get_previous_state(void)
Definition: reader.cpp:1781
yy_flush_buffer
#define yy_flush_buffer
Definition: reader.cpp:15
yy_create_buffer
#define yy_create_buffer
Definition: reader.cpp:9
yy_cp
char * yy_cp
Definition: reader.cpp:1200
yywrap
#define yywrap
Definition: reader.cpp:29
yy_state_type
int yy_state_type
Definition: reader.cpp:592
yyalloc
#define yyalloc
Definition: reader.cpp:30
yy_hold_char
static char yy_hold_char
Definition: reader.cpp:528
yy_ec
static const YY_CHAR yy_ec[256]
Definition: reader.cpp:675
MAX_BUF
#define MAX_BUF
Definition: define.h:35
YY_BUFFER_NORMAL
#define YY_BUFFER_NORMAL
Definition: reader.cpp:492
yy_get_next_buffer
static int yy_get_next_buffer(void)
Definition: reader.cpp:1643
yyset_lineno
#define yyset_lineno
Definition: reader.cpp:213
YY_BUFFER_NEW
#define YY_BUFFER_NEW
Definition: reader.cpp:491
YY_CURRENT_BUFFER
#define YY_CURRENT_BUFFER
Definition: reader.cpp:519
yy_buffer_state::yy_buffer_status
int yy_buffer_status
Definition: loader.cpp:230
yy_buffer_stack
static YY_BUFFER_STATE * yy_buffer_stack
Definition: reader.cpp:511
yy_buffer_state::yy_buf_pos
char * yy_buf_pos
Definition: loader.cpp:191
yy_trans_info::yy_nxt
flex_int32_t yy_nxt
Definition: loader.cpp:35384
FVAL
#define FVAL
Definition: reader.cpp:992
YY_START
#define YY_START
Definition: reader.cpp:382
newserver.h
LO_LINEMODE
#define LO_LINEMODE
Definition: loader.h:16
yy_trans_info::yy_verify
flex_int32_t yy_verify
Definition: loader.cpp:35383
YY_DO_BEFORE_ACTION
#define YY_DO_BEFORE_ACTION
Definition: reader.cpp:611
yy_buffer_state::yy_bs_column
int yy_bs_column
Definition: loader.cpp:223
yy_c_buf_p
static char * yy_c_buf_p
Definition: reader.cpp:533
YY_BREAK
#define YY_BREAK
Definition: reader.cpp:1186
yy_buffer_state::yy_n_chars
int yy_n_chars
Definition: loader.cpp:201
convert.dest
dest
Definition: convert.py:25
yy_last_accepting_cpos
static char * yy_last_accepting_cpos
Definition: reader.cpp:936
yy_buffer_state::yy_is_interactive
int yy_is_interactive
Definition: loader.cpp:214
YY_NEW_FILE
#define YY_NEW_FILE
Definition: reader.cpp:387
yy_meta
static const YY_CHAR yy_meta[33]
Definition: reader.cpp:707
YY_SC_TO_UI
#define YY_SC_TO_UI(c)
Definition: reader.cpp:371
yytext_ptr
#define yytext_ptr
Definition: reader.cpp:601
make_face_from_files.int
int
Definition: make_face_from_files.py:32
loader.h
YY_READ_BUF_SIZE
#define YY_READ_BUF_SIZE
Definition: reader.cpp:1098
yyfree
#define yyfree
Definition: reader.cpp:32
flex_int32_t
int flex_int32_t
Definition: loader.cpp:53
yy_start
static int yy_start
Definition: reader.cpp:535
IVAL
#define IVAL
Definition: reader.cpp:991
YY_STATE_EOF
#define YY_STATE_EOF(state)
Definition: reader.cpp:385
YY_INPUT
#define YY_INPUT(buf, result, max_size)
Definition: reader.cpp:1114
LL_NORMAL
#define LL_NORMAL
Definition: loader.h:12
yy_n_chars
static int yy_n_chars
Definition: reader.cpp:529
yyget_debug
#define yyget_debug
Definition: reader.cpp:147
rmap_yval
static char * rmap_yval(void)
Definition: reader.cpp:2481
YY_CURRENT_BUFFER_LVALUE
#define YY_CURRENT_BUFFER_LVALUE
Definition: reader.cpp:525
set_random_map_variable
int set_random_map_variable(RMParms *rp, const char *buf)
Definition: reader.cpp:2526
yypush_buffer_state
#define yypush_buffer_state
Definition: reader.cpp:18
yy_did_buffer_switch_on_eof
static int yy_did_buffer_switch_on_eof
Definition: reader.cpp:540
yy_load_buffer_state
#define yy_load_buffer_state
Definition: reader.cpp:16
yyrealloc
#define yyrealloc
Definition: reader.cpp:31
flex_int32_t
int flex_int32_t
Definition: reader.cpp:312
YY_FATAL_ERROR
#define YY_FATAL_ERROR(msg)
Definition: reader.cpp:1161
yy_fatal_error
static void yynoreturn yy_fatal_error(const char *msg)
Definition: reader.cpp:2270
EOB_ACT_LAST_MATCH
#define EOB_ACT_LAST_MATCH
Definition: reader.cpp:423
yy_buffer_stack_top
static size_t yy_buffer_stack_top
Definition: reader.cpp:509
yy_init_globals
static int yy_init_globals(void)
Definition: reader.cpp:2373
yy_buffer_state::yy_bs_lineno
int yy_bs_lineno
Definition: loader.cpp:222
YY_BUF_SIZE
#define YY_BUF_SIZE
Definition: reader.cpp:399
flex_int8_t
signed char flex_int8_t
Definition: reader.cpp:310
flex_int16_t
short int flex_int16_t
Definition: reader.cpp:311
EOB_ACT_END_OF_FILE
#define EOB_ACT_END_OF_FILE
Definition: reader.cpp:422
LL_EOF
#define LL_EOF
Definition: loader.h:10
yyset_out
#define yyset_out
Definition: reader.cpp:189