2 +++ b/tc/emp_ematch.lex.c
4 +#define yy_create_buffer ematch__create_buffer
5 +#define yy_delete_buffer ematch__delete_buffer
6 +#define yy_scan_buffer ematch__scan_buffer
7 +#define yy_scan_string ematch__scan_string
8 +#define yy_scan_bytes ematch__scan_bytes
9 +#define yy_flex_debug ematch__flex_debug
10 +#define yy_init_buffer ematch__init_buffer
11 +#define yy_flush_buffer ematch__flush_buffer
12 +#define yy_load_buffer_state ematch__load_buffer_state
13 +#define yy_switch_to_buffer ematch__switch_to_buffer
14 +#define yyin ematch_in
15 +#define yyleng ematch_leng
16 +#define yylex ematch_lex
17 +#define yyout ematch_out
18 +#define yyrestart ematch_restart
19 +#define yytext ematch_text
21 +#line 19 "enp_ematch.lex.c"
22 +/* A lexical scanner generated by flex */
24 +/* Scanner skeleton version:
25 + * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $
29 +#define YY_FLEX_MAJOR_VERSION 2
30 +#define YY_FLEX_MINOR_VERSION 5
35 +/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
48 +/* Use prototypes in function declarations. */
49 +#define YY_USE_PROTOS
51 +/* The "const" storage-class-modifier is valid. */
54 +#else /* ! __cplusplus */
58 +#define YY_USE_PROTOS
61 +#endif /* __STDC__ */
62 +#endif /* ! __cplusplus */
70 +#define YY_USE_PROTOS
74 +#define yyconst const
81 +#define YY_PROTO(proto) proto
83 +#define YY_PROTO(proto) ()
86 +/* Returned upon end-of-file. */
89 +/* Promotes a possibly negative, possibly signed char to an unsigned
90 + * integer for use as an array index. If the signed char is negative,
91 + * we want to instead treat it as an 8-bit unsigned char, hence the
94 +#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
96 +/* Enter a start condition. This macro really ought to take a parameter,
97 + * but we do it the disgusting crufty way forced on us by the ()-less
98 + * definition of BEGIN.
100 +#define BEGIN yy_start = 1 + 2 *
102 +/* Translate the current start state into a value that can be later handed
103 + * to BEGIN to return to the state. The YYSTATE alias is for lex
106 +#define YY_START ((yy_start - 1) / 2)
107 +#define YYSTATE YY_START
109 +/* Action number for EOF rule of a given start state. */
110 +#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
112 +/* Special action meaning "start processing a new file". */
113 +#define YY_NEW_FILE yyrestart( yyin )
115 +#define YY_END_OF_BUFFER_CHAR 0
117 +/* Size of default input buffer. */
118 +#define YY_BUF_SIZE 16384
120 +typedef struct yy_buffer_state *YY_BUFFER_STATE;
123 +extern FILE *yyin, *yyout;
125 +#define EOB_ACT_CONTINUE_SCAN 0
126 +#define EOB_ACT_END_OF_FILE 1
127 +#define EOB_ACT_LAST_MATCH 2
129 +/* The funky do-while in the following #define is used to turn the definition
130 + * int a single C statement (which needs a semi-colon terminator). This
131 + * avoids problems with code like:
133 + * if ( condition_holds )
136 + * do_something_else();
138 + * Prior to using the do-while the compiler would get upset at the
139 + * "else" because it interpreted the "if" statement as being all
140 + * done when it reached the ';' after the yyless() call.
143 +/* Return all but the first 'n' matched characters back to the input stream. */
148 + /* Undo effects of setting up yytext. */ \
149 + *yy_cp = yy_hold_char; \
150 + YY_RESTORE_YY_MORE_OFFSET \
151 + yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
152 + YY_DO_BEFORE_ACTION; /* set up yytext again */ \
156 +#define unput(c) yyunput( c, yytext_ptr )
158 +/* The following is because we cannot portably get our hands on size_t
159 + * (without autoconf's help, which isn't available because we want
160 + * flex-generated scanners to compile on their own).
162 +typedef unsigned int yy_size_t;
165 +struct yy_buffer_state
167 + FILE *yy_input_file;
169 + char *yy_ch_buf; /* input buffer */
170 + char *yy_buf_pos; /* current position in input buffer */
172 + /* Size of input buffer in bytes, not including room for EOB
175 + yy_size_t yy_buf_size;
177 + /* Number of characters read into yy_ch_buf, not including EOB
182 + /* Whether we "own" the buffer - i.e., we know we created it,
183 + * and can realloc() it to grow it, and should free() it to
186 + int yy_is_our_buffer;
188 + /* Whether this is an "interactive" input source; if so, and
189 + * if we're using stdio for input, then we want to use getc()
190 + * instead of fread(), to make sure we stop fetching input after
193 + int yy_is_interactive;
195 + /* Whether we're considered to be at the beginning of a line.
196 + * If so, '^' rules will be active on the next match, otherwise
201 + /* Whether to try to fill the input buffer when we reach the
204 + int yy_fill_buffer;
206 + int yy_buffer_status;
207 +#define YY_BUFFER_NEW 0
208 +#define YY_BUFFER_NORMAL 1
209 + /* When an EOF's been seen but there's still some text to process
210 + * then we mark the buffer as YY_EOF_PENDING, to indicate that we
211 + * shouldn't try reading from the input source any more. We might
212 + * still have a bunch of tokens to match, though, because of
213 + * possible backing-up.
215 + * When we actually see the EOF, we change the status to "new"
216 + * (via yyrestart()), so that the user can continue scanning by
217 + * just pointing yyin at a new input file.
219 +#define YY_BUFFER_EOF_PENDING 2
222 +static YY_BUFFER_STATE yy_current_buffer = 0;
224 +/* We provide macros for accessing buffer states in case in the
225 + * future we want to put the buffer states in a more general
228 +#define YY_CURRENT_BUFFER yy_current_buffer
231 +/* yy_hold_char holds the character lost when yytext is formed. */
232 +static char yy_hold_char;
234 +static int yy_n_chars; /* number of characters read into yy_ch_buf */
239 +/* Points to current character in buffer. */
240 +static char *yy_c_buf_p = (char *) 0;
241 +static int yy_init = 1; /* whether we need to initialize */
242 +static int yy_start = 0; /* start state number */
244 +/* Flag which is used to allow yywrap()'s to do buffer switches
245 + * instead of setting up a fresh yyin. A bit of a hack ...
247 +static int yy_did_buffer_switch_on_eof;
249 +void yyrestart YY_PROTO(( FILE *input_file ));
251 +void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
252 +void yy_load_buffer_state YY_PROTO(( void ));
253 +YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
254 +void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
255 +void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
256 +void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
257 +#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
259 +YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
260 +YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
261 +YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
263 +static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
264 +static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
265 +static void yy_flex_free YY_PROTO(( void * ));
267 +#define yy_new_buffer yy_create_buffer
269 +#define yy_set_interactive(is_interactive) \
271 + if ( ! yy_current_buffer ) \
272 + yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
273 + yy_current_buffer->yy_is_interactive = is_interactive; \
276 +#define yy_set_bol(at_bol) \
278 + if ( ! yy_current_buffer ) \
279 + yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
280 + yy_current_buffer->yy_at_bol = at_bol; \
283 +#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
287 +#define YY_SKIP_YYWRAP
288 +typedef unsigned char YY_CHAR;
289 +FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
290 +typedef int yy_state_type;
291 +extern char *yytext;
292 +#define yytext_ptr yytext
294 +static yy_state_type yy_get_previous_state YY_PROTO(( void ));
295 +static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
296 +static int yy_get_next_buffer YY_PROTO(( void ));
297 +static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
299 +/* Done after the current pattern has been matched and before the
300 + * corresponding action - sets up yytext.
302 +#define YY_DO_BEFORE_ACTION \
303 + yytext_ptr = yy_bp; \
304 + yyleng = (int) (yy_cp - yy_bp); \
305 + yy_hold_char = *yy_cp; \
307 + yy_c_buf_p = yy_cp;
309 +#define YY_NUM_RULES 22
310 +#define YY_END_OF_BUFFER 23
311 +static yyconst short int yy_accept[43] =
313 + 0, 0, 0, 0, 23, 21, 1, 2, 19, 20,
314 + 21, 21, 21, 15, 22, 3, 22, 21, 1, 21,
315 + 21, 17, 15, 14, 4, 5, 13, 11, 12, 7,
316 + 8, 9, 10, 14, 16, 18, 4, 5, 6, 4,
320 +static yyconst int yy_ec[256] =
322 + 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
323 + 1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
324 + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
325 + 1, 2, 1, 4, 1, 1, 1, 1, 1, 5,
326 + 6, 1, 1, 1, 1, 1, 1, 7, 7, 7,
327 + 7, 7, 7, 7, 7, 8, 8, 1, 1, 1,
328 + 1, 1, 1, 1, 9, 10, 10, 11, 10, 10,
329 + 1, 1, 1, 1, 1, 1, 1, 12, 13, 1,
330 + 1, 14, 1, 15, 1, 1, 1, 1, 1, 1,
331 + 1, 16, 1, 1, 1, 1, 17, 18, 10, 11,
333 + 10, 19, 1, 1, 1, 1, 1, 1, 1, 20,
334 + 13, 1, 1, 21, 1, 22, 1, 23, 1, 24,
335 + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
336 + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
337 + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
338 + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
339 + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
340 + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
341 + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
342 + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
344 + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
345 + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
346 + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
347 + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
348 + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
352 +static yyconst int yy_meta[25] =
354 + 1, 2, 3, 4, 2, 2, 5, 5, 5, 5,
355 + 5, 1, 1, 1, 1, 4, 5, 5, 5, 1,
359 +static yyconst short int yy_base[48] =
361 + 0, 0, 22, 24, 89, 0, 27, 0, 91, 91,
362 + 19, 75, 20, 0, 91, 91, 41, 0, 30, 72,
363 + 51, 0, 0, 91, 28, 60, 91, 91, 91, 91,
364 + 91, 91, 91, 0, 0, 0, 62, 64, 0, 67,
365 + 91, 91, 75, 80, 85, 77, 32
368 +static yyconst short int yy_def[48] =
370 + 42, 1, 43, 43, 42, 44, 42, 44, 42, 42,
371 + 44, 44, 44, 45, 42, 42, 42, 44, 42, 44,
372 + 44, 44, 45, 42, 42, 42, 42, 42, 42, 42,
373 + 42, 42, 42, 46, 44, 44, 42, 42, 47, 42,
374 + 42, 0, 42, 42, 42, 42, 42
377 +static yyconst short int yy_nxt[116] =
379 + 6, 7, 7, 8, 9, 10, 6, 6, 11, 6,
380 + 6, 12, 13, 6, 6, 6, 11, 6, 6, 12,
381 + 6, 6, 6, 6, 15, 16, 15, 16, 19, 19,
382 + 20, 19, 19, 22, 37, 38, 41, 17, 20, 17,
383 + 22, 24, 24, 24, 24, 24, 24, 25, 26, 24,
384 + 24, 24, 24, 24, 24, 24, 24, 27, 28, 29,
385 + 30, 31, 32, 33, 34, 36, 38, 38, 40, 38,
386 + 38, 38, 36, 38, 38, 14, 14, 14, 14, 14,
387 + 18, 39, 35, 18, 18, 23, 23, 21, 42, 23,
388 + 5, 42, 42, 42, 42, 42, 42, 42, 42, 42,
390 + 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
394 +static yyconst short int yy_chk[116] =
396 + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
397 + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
398 + 1, 1, 1, 1, 3, 3, 4, 4, 7, 7,
399 + 11, 19, 19, 13, 25, 25, 47, 3, 11, 4,
400 + 13, 17, 17, 17, 17, 17, 17, 17, 17, 17,
401 + 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
402 + 17, 17, 17, 17, 17, 21, 26, 26, 37, 37,
403 + 38, 38, 21, 40, 40, 43, 43, 43, 43, 43,
404 + 44, 46, 20, 44, 44, 45, 45, 12, 5, 45,
405 + 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
407 + 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
411 +static yy_state_type yy_last_accepting_state;
412 +static char *yy_last_accepting_cpos;
414 +/* The intent behind this definition is that it'll catch
415 + * any uses of REJECT which flex missed.
417 +#define REJECT reject_used_but_not_detected
418 +#define yymore() yymore_used_but_not_detected
419 +#define YY_MORE_ADJ 0
420 +#define YY_RESTORE_YY_MORE_OFFSET
422 +#line 1 "emp_ematch.l"
424 +#line 2 "emp_ematch.l"
425 + #include "emp_ematch.yacc.h"
426 + #include "m_ematch.h"
428 + extern int ematch_argc;
429 + extern char **ematch_argv;
431 + #define yylval ematch_lval
433 + #define NEXT_EM_ARG() do { ematch_argc--; ematch_argv++; } while(0);
435 + #define YY_INPUT(buf, result, max_size) \
438 + if (ematch_argc <= 0) \
439 + result = YY_NULL; \
440 + else if (**ematch_argv == '\0') { \
444 + if (max_size <= strlen(*ematch_argv) + 1) { \
445 + fprintf(stderr, "match argument too long.\n"); \
446 + result = YY_NULL; \
448 + strcpy(buf, *ematch_argv); \
449 + result = strlen(*ematch_argv) + 1; \
450 + buf[result-1] = ' '; \
451 + buf[result] = '\0'; \
457 + static void __attribute__ ((unused)) yyunput (int c,char *buf_ptr );
458 + static void __attribute__ ((unused)) yy_push_state (int new_state );
459 + static void __attribute__ ((unused)) yy_pop_state (void);
460 + static int __attribute__ ((unused)) yy_top_state (void );
462 + static char *strbuf;
463 + static unsigned int strbuf_size;
464 + static unsigned int strbuf_index;
466 + static void strbuf_enlarge(void)
468 + strbuf_size += 512;
469 + strbuf = realloc(strbuf, strbuf_size);
472 + static void strbuf_append_char(char c)
474 + while (strbuf_index >= strbuf_size)
476 + strbuf[strbuf_index++] = c;
479 + static void strbuf_append_charp(char *s)
481 + while (strbuf_index >= strbuf_size)
483 + memcpy(strbuf + strbuf_index, s, strlen(s));
484 + strbuf_index += strlen(s);
489 +#define YY_STACK_USED 1
490 +#line 488 "enp_ematch.lex.c"
492 +/* Macros after this point can all be overridden by user definitions in
496 +#ifndef YY_SKIP_YYWRAP
498 +extern "C" int yywrap YY_PROTO(( void ));
500 +extern int yywrap YY_PROTO(( void ));
505 +static void yyunput YY_PROTO(( int c, char *buf_ptr ));
509 +static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
512 +#ifdef YY_NEED_STRLEN
513 +static int yy_flex_strlen YY_PROTO(( yyconst char * ));
518 +static int yyinput YY_PROTO(( void ));
520 +static int input YY_PROTO(( void ));
525 +static int yy_start_stack_ptr = 0;
526 +static int yy_start_stack_depth = 0;
527 +static int *yy_start_stack = 0;
528 +#ifndef YY_NO_PUSH_STATE
529 +static void yy_push_state YY_PROTO(( int new_state ));
531 +#ifndef YY_NO_POP_STATE
532 +static void yy_pop_state YY_PROTO(( void ));
534 +#ifndef YY_NO_TOP_STATE
535 +static int yy_top_state YY_PROTO(( void ));
539 +#define YY_NO_PUSH_STATE 1
540 +#define YY_NO_POP_STATE 1
541 +#define YY_NO_TOP_STATE 1
544 +#ifdef YY_MALLOC_DECL
552 +/* Just try to get by without declaring the routines. This will fail
553 + * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
554 + * or sizeof(void*) != sizeof(int).
559 +/* Amount of stuff to slurp up with each read. */
560 +#ifndef YY_READ_BUF_SIZE
561 +#define YY_READ_BUF_SIZE 8192
564 +/* Copy whatever the last rule matched to the standard output. */
567 +/* This used to be an fputs(), but since the string might contain NUL's,
568 + * we now use fwrite().
570 +#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
573 +/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
574 + * is returned in "result".
577 +#define YY_INPUT(buf,result,max_size) \
578 + if ( yy_current_buffer->yy_is_interactive ) \
581 + for ( n = 0; n < max_size && \
582 + (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
583 + buf[n] = (char) c; \
585 + buf[n++] = (char) c; \
586 + if ( c == EOF && ferror( yyin ) ) \
587 + YY_FATAL_ERROR( "input in flex scanner failed" ); \
590 + else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
591 + && ferror( yyin ) ) \
592 + YY_FATAL_ERROR( "input in flex scanner failed" );
595 +/* No semi-colon after return; correct usage is to write "yyterminate();" -
596 + * we don't want an extra ';' after the "return" because that will cause
597 + * some compilers to complain about unreachable statements.
600 +#define yyterminate() return YY_NULL
603 +/* Number of entries by which start-condition stack grows. */
604 +#ifndef YY_START_STACK_INCR
605 +#define YY_START_STACK_INCR 25
608 +/* Report a fatal error. */
609 +#ifndef YY_FATAL_ERROR
610 +#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
613 +/* Default declaration of generated scanner - a define so the user can
614 + * easily add parameters.
617 +#define YY_DECL int yylex YY_PROTO(( void ))
620 +/* Code executed at the beginning of each rule, after yytext and yyleng
621 + * have been set up.
623 +#ifndef YY_USER_ACTION
624 +#define YY_USER_ACTION
627 +/* Code executed at the end of each rule. */
629 +#define YY_BREAK break;
632 +#define YY_RULE_SETUP \
637 + register yy_state_type yy_current_state;
638 + register char *yy_cp, *yy_bp;
639 + register int yy_act;
641 +#line 69 "emp_ematch.l"
643 +#line 641 "enp_ematch.lex.c"
654 + yy_start = 1; /* first start state */
662 + if ( ! yy_current_buffer )
663 + yy_current_buffer =
664 + yy_create_buffer( yyin, YY_BUF_SIZE );
666 + yy_load_buffer_state();
669 + while ( 1 ) /* loops until end-of-file is reached */
671 + yy_cp = yy_c_buf_p;
673 + /* Support of yytext. */
674 + *yy_cp = yy_hold_char;
676 + /* yy_bp points to the position in yy_ch_buf of the start of
681 + yy_current_state = yy_start;
685 + register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
686 + if ( yy_accept[yy_current_state] )
688 + yy_last_accepting_state = yy_current_state;
689 + yy_last_accepting_cpos = yy_cp;
691 + while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
693 + yy_current_state = (int) yy_def[yy_current_state];
694 + if ( yy_current_state >= 43 )
695 + yy_c = yy_meta[(unsigned int) yy_c];
697 + yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
700 + while ( yy_base[yy_current_state] != 91 );
703 + yy_act = yy_accept[yy_current_state];
705 + { /* have to back up */
706 + yy_cp = yy_last_accepting_cpos;
707 + yy_current_state = yy_last_accepting_state;
708 + yy_act = yy_accept[yy_current_state];
711 + YY_DO_BEFORE_ACTION;
714 +do_action: /* This label is used only to access EOF actions. */
718 + { /* beginning of action switch */
719 + case 0: /* must back up */
720 + /* undo the effects of YY_DO_BEFORE_ACTION */
721 + *yy_cp = yy_hold_char;
722 + yy_cp = yy_last_accepting_cpos;
723 + yy_current_state = yy_last_accepting_state;
724 + goto yy_find_action;
728 +#line 70 "emp_ematch.l"
733 +#line 72 "emp_ematch.l"
735 + if (strbuf == NULL) {
737 + strbuf = calloc(1, strbuf_size);
738 + if (strbuf == NULL)
748 +#line 84 "emp_ematch.l"
751 + yylval.b = bstr_new(strbuf, strbuf_index);
752 + yylval.b->quoted = 1;
758 +#line 91 "emp_ematch.l"
759 +{ /* octal escape sequence */
762 + sscanf(yytext + 1, "%o", &res);
764 + fprintf(stderr, "error: octal escape sequence" \
765 + " out of range\n");
768 + strbuf_append_char((unsigned char) res);
773 +#line 103 "emp_ematch.l"
774 +{ /* catch wrong octal escape seq. */
775 + fprintf(stderr, "error: invalid octale escape sequence\n");
781 +#line 108 "emp_ematch.l"
785 + sscanf(yytext + 2, "%x", &res);
788 + fprintf(stderr, "error: hexadecimal escape " \
789 + "sequence out of range\n");
792 + strbuf_append_char((unsigned char) res);
797 +#line 121 "emp_ematch.l"
798 +strbuf_append_char('\n');
802 +#line 122 "emp_ematch.l"
803 +strbuf_append_char('\r');
807 +#line 123 "emp_ematch.l"
808 +strbuf_append_char('\t');
812 +#line 124 "emp_ematch.l"
813 +strbuf_append_char('\v');
817 +#line 125 "emp_ematch.l"
818 +strbuf_append_char('\b');
822 +#line 126 "emp_ematch.l"
823 +strbuf_append_char('\f');
827 +#line 127 "emp_ematch.l"
828 +strbuf_append_char('\a');
832 +#line 129 "emp_ematch.l"
833 +strbuf_append_char(yytext[1]);
837 +#line 130 "emp_ematch.l"
838 +strbuf_append_charp(yytext);
842 +#line 132 "emp_ematch.l"
847 +#line 133 "emp_ematch.l"
852 +#line 134 "emp_ematch.l"
856 +#line 136 "emp_ematch.l"
859 +#line 136 "emp_ematch.l"
861 + return yylval.i = *yytext;
866 +#line 139 "emp_ematch.l"
868 + yylval.b = bstr_alloc(yytext);
869 + if (yylval.b == NULL)
876 +#line 145 "emp_ematch.l"
879 +#line 877 "enp_ematch.lex.c"
880 +case YY_STATE_EOF(INITIAL):
881 +case YY_STATE_EOF(str):
884 + case YY_END_OF_BUFFER:
886 + /* Amount of text matched not including the EOB char. */
887 + int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
889 + /* Undo the effects of YY_DO_BEFORE_ACTION. */
890 + *yy_cp = yy_hold_char;
891 + YY_RESTORE_YY_MORE_OFFSET
893 + if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
895 + /* We're scanning a new file or input source. It's
896 + * possible that this happened because the user
897 + * just pointed yyin at a new source and called
898 + * yylex(). If so, then we have to assure
899 + * consistency between yy_current_buffer and our
900 + * globals. Here is the right place to do so, because
901 + * this is the first action (other than possibly a
902 + * back-up) that will match for the new input source.
904 + yy_n_chars = yy_current_buffer->yy_n_chars;
905 + yy_current_buffer->yy_input_file = yyin;
906 + yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
909 + /* Note that here we test for yy_c_buf_p "<=" to the position
910 + * of the first EOB in the buffer, since yy_c_buf_p will
911 + * already have been incremented past the NUL character
912 + * (since all states make transitions on EOB to the
913 + * end-of-buffer state). Contrast this with the test
916 + if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
917 + { /* This was really a NUL. */
918 + yy_state_type yy_next_state;
920 + yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
922 + yy_current_state = yy_get_previous_state();
924 + /* Okay, we're now positioned to make the NUL
925 + * transition. We couldn't have
926 + * yy_get_previous_state() go ahead and do it
927 + * for us because it doesn't know how to deal
928 + * with the possibility of jamming (and we don't
929 + * want to build jamming into it because then it
930 + * will run more slowly).
933 + yy_next_state = yy_try_NUL_trans( yy_current_state );
935 + yy_bp = yytext_ptr + YY_MORE_ADJ;
937 + if ( yy_next_state )
939 + /* Consume the NUL. */
940 + yy_cp = ++yy_c_buf_p;
941 + yy_current_state = yy_next_state;
947 + yy_cp = yy_c_buf_p;
948 + goto yy_find_action;
952 + else switch ( yy_get_next_buffer() )
954 + case EOB_ACT_END_OF_FILE:
956 + yy_did_buffer_switch_on_eof = 0;
960 + /* Note: because we've taken care in
961 + * yy_get_next_buffer() to have set up
962 + * yytext, we can now set up
963 + * yy_c_buf_p so that if some total
964 + * hoser (like flex itself) wants to
965 + * call the scanner after we return the
966 + * YY_NULL, it'll still work - another
967 + * YY_NULL will get returned.
969 + yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
971 + yy_act = YY_STATE_EOF(YY_START);
977 + if ( ! yy_did_buffer_switch_on_eof )
983 + case EOB_ACT_CONTINUE_SCAN:
985 + yytext_ptr + yy_amount_of_matched_text;
987 + yy_current_state = yy_get_previous_state();
989 + yy_cp = yy_c_buf_p;
990 + yy_bp = yytext_ptr + YY_MORE_ADJ;
993 + case EOB_ACT_LAST_MATCH:
995 + &yy_current_buffer->yy_ch_buf[yy_n_chars];
997 + yy_current_state = yy_get_previous_state();
999 + yy_cp = yy_c_buf_p;
1000 + yy_bp = yytext_ptr + YY_MORE_ADJ;
1001 + goto yy_find_action;
1008 + "fatal flex scanner internal error--no action found" );
1009 + } /* end of action switch */
1010 + } /* end of scanning one token */
1011 + } /* end of yylex */
1014 +/* yy_get_next_buffer - try to read in a new buffer
1016 + * Returns a code representing an action:
1017 + * EOB_ACT_LAST_MATCH -
1018 + * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
1019 + * EOB_ACT_END_OF_FILE - end of file
1022 +static int yy_get_next_buffer()
1024 + register char *dest = yy_current_buffer->yy_ch_buf;
1025 + register char *source = yytext_ptr;
1026 + register int number_to_move, i;
1029 + if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
1031 + "fatal flex scanner internal error--end of buffer missed" );
1033 + if ( yy_current_buffer->yy_fill_buffer == 0 )
1034 + { /* Don't try to fill the buffer, so this is an EOF. */
1035 + if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
1037 + /* We matched a single character, the EOB, so
1038 + * treat this as a final EOF.
1040 + return EOB_ACT_END_OF_FILE;
1045 + /* We matched some text prior to the EOB, first
1048 + return EOB_ACT_LAST_MATCH;
1052 + /* Try to read more data. */
1054 + /* First move last chars to start of buffer. */
1055 + number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
1057 + for ( i = 0; i < number_to_move; ++i )
1058 + *(dest++) = *(source++);
1060 + if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1061 + /* don't do the read, it's not guaranteed to return an EOF,
1062 + * just force an EOF
1064 + yy_current_buffer->yy_n_chars = yy_n_chars = 0;
1069 + yy_current_buffer->yy_buf_size - number_to_move - 1;
1071 + while ( num_to_read <= 0 )
1072 + { /* Not enough room in the buffer - grow it. */
1073 +#ifdef YY_USES_REJECT
1075 +"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
1078 + /* just a shorter name for the current buffer */
1079 + YY_BUFFER_STATE b = yy_current_buffer;
1081 + int yy_c_buf_p_offset =
1082 + (int) (yy_c_buf_p - b->yy_ch_buf);
1084 + if ( b->yy_is_our_buffer )
1086 + int new_size = b->yy_buf_size * 2;
1088 + if ( new_size <= 0 )
1089 + b->yy_buf_size += b->yy_buf_size / 8;
1091 + b->yy_buf_size *= 2;
1093 + b->yy_ch_buf = (char *)
1094 + /* Include room in for 2 EOB chars. */
1095 + yy_flex_realloc( (void *) b->yy_ch_buf,
1096 + b->yy_buf_size + 2 );
1099 + /* Can't grow it, we don't own it. */
1102 + if ( ! b->yy_ch_buf )
1104 + "fatal error - scanner input buffer overflow" );
1106 + yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
1108 + num_to_read = yy_current_buffer->yy_buf_size -
1109 + number_to_move - 1;
1113 + if ( num_to_read > YY_READ_BUF_SIZE )
1114 + num_to_read = YY_READ_BUF_SIZE;
1116 + /* Read in more data. */
1117 + YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
1118 + yy_n_chars, num_to_read );
1120 + yy_current_buffer->yy_n_chars = yy_n_chars;
1123 + if ( yy_n_chars == 0 )
1125 + if ( number_to_move == YY_MORE_ADJ )
1127 + ret_val = EOB_ACT_END_OF_FILE;
1128 + yyrestart( yyin );
1133 + ret_val = EOB_ACT_LAST_MATCH;
1134 + yy_current_buffer->yy_buffer_status =
1135 + YY_BUFFER_EOF_PENDING;
1140 + ret_val = EOB_ACT_CONTINUE_SCAN;
1142 + yy_n_chars += number_to_move;
1143 + yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
1144 + yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
1146 + yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
1152 +/* yy_get_previous_state - get the state just before the EOB char was reached */
1154 +static yy_state_type yy_get_previous_state()
1156 + register yy_state_type yy_current_state;
1157 + register char *yy_cp;
1159 + yy_current_state = yy_start;
1161 + for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
1163 + register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1164 + if ( yy_accept[yy_current_state] )
1166 + yy_last_accepting_state = yy_current_state;
1167 + yy_last_accepting_cpos = yy_cp;
1169 + while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1171 + yy_current_state = (int) yy_def[yy_current_state];
1172 + if ( yy_current_state >= 43 )
1173 + yy_c = yy_meta[(unsigned int) yy_c];
1175 + yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1178 + return yy_current_state;
1182 +/* yy_try_NUL_trans - try to make a transition on the NUL character
1185 + * next_state = yy_try_NUL_trans( current_state );
1188 +#ifdef YY_USE_PROTOS
1189 +static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
1191 +static yy_state_type yy_try_NUL_trans( yy_current_state )
1192 +yy_state_type yy_current_state;
1195 + register int yy_is_jam;
1196 + register char *yy_cp = yy_c_buf_p;
1198 + register YY_CHAR yy_c = 1;
1199 + if ( yy_accept[yy_current_state] )
1201 + yy_last_accepting_state = yy_current_state;
1202 + yy_last_accepting_cpos = yy_cp;
1204 + while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1206 + yy_current_state = (int) yy_def[yy_current_state];
1207 + if ( yy_current_state >= 43 )
1208 + yy_c = yy_meta[(unsigned int) yy_c];
1210 + yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1211 + yy_is_jam = (yy_current_state == 42);
1213 + return yy_is_jam ? 0 : yy_current_state;
1217 +#ifndef YY_NO_UNPUT
1218 +#ifdef YY_USE_PROTOS
1219 +static void yyunput( int c, register char *yy_bp )
1221 +static void yyunput( c, yy_bp )
1223 +register char *yy_bp;
1226 + register char *yy_cp = yy_c_buf_p;
1228 + /* undo effects of setting up yytext */
1229 + *yy_cp = yy_hold_char;
1231 + if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
1232 + { /* need to shift things up to make room */
1233 + /* +2 for EOB chars. */
1234 + register int number_to_move = yy_n_chars + 2;
1235 + register char *dest = &yy_current_buffer->yy_ch_buf[
1236 + yy_current_buffer->yy_buf_size + 2];
1237 + register char *source =
1238 + &yy_current_buffer->yy_ch_buf[number_to_move];
1240 + while ( source > yy_current_buffer->yy_ch_buf )
1241 + *--dest = *--source;
1243 + yy_cp += (int) (dest - source);
1244 + yy_bp += (int) (dest - source);
1245 + yy_current_buffer->yy_n_chars =
1246 + yy_n_chars = yy_current_buffer->yy_buf_size;
1248 + if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
1249 + YY_FATAL_ERROR( "flex scanner push-back overflow" );
1252 + *--yy_cp = (char) c;
1255 + yytext_ptr = yy_bp;
1256 + yy_hold_char = *yy_cp;
1257 + yy_c_buf_p = yy_cp;
1259 +#endif /* ifndef YY_NO_UNPUT */
1263 +static int yyinput()
1270 + *yy_c_buf_p = yy_hold_char;
1272 + if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
1274 + /* yy_c_buf_p now points to the character we want to return.
1275 + * If this occurs *before* the EOB characters, then it's a
1276 + * valid NUL; if not, then we've hit the end of the buffer.
1278 + if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
1279 + /* This was really a NUL. */
1280 + *yy_c_buf_p = '\0';
1283 + { /* need more input */
1284 + int offset = yy_c_buf_p - yytext_ptr;
1287 + switch ( yy_get_next_buffer() )
1289 + case EOB_ACT_LAST_MATCH:
1290 + /* This happens because yy_g_n_b()
1291 + * sees that we've accumulated a
1292 + * token and flags that we need to
1293 + * try matching the token before
1294 + * proceeding. But for input(),
1295 + * there's no matching to consider.
1296 + * So convert the EOB_ACT_LAST_MATCH
1297 + * to EOB_ACT_END_OF_FILE.
1300 + /* Reset buffer status. */
1301 + yyrestart( yyin );
1303 + /* fall through */
1305 + case EOB_ACT_END_OF_FILE:
1310 + if ( ! yy_did_buffer_switch_on_eof )
1319 + case EOB_ACT_CONTINUE_SCAN:
1320 + yy_c_buf_p = yytext_ptr + offset;
1326 + c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
1327 + *yy_c_buf_p = '\0'; /* preserve yytext */
1328 + yy_hold_char = *++yy_c_buf_p;
1335 +#ifdef YY_USE_PROTOS
1336 +void yyrestart( FILE *input_file )
1338 +void yyrestart( input_file )
1342 + if ( ! yy_current_buffer )
1343 + yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
1345 + yy_init_buffer( yy_current_buffer, input_file );
1346 + yy_load_buffer_state();
1350 +#ifdef YY_USE_PROTOS
1351 +void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
1353 +void yy_switch_to_buffer( new_buffer )
1354 +YY_BUFFER_STATE new_buffer;
1357 + if ( yy_current_buffer == new_buffer )
1360 + if ( yy_current_buffer )
1362 + /* Flush out information for old buffer. */
1363 + *yy_c_buf_p = yy_hold_char;
1364 + yy_current_buffer->yy_buf_pos = yy_c_buf_p;
1365 + yy_current_buffer->yy_n_chars = yy_n_chars;
1368 + yy_current_buffer = new_buffer;
1369 + yy_load_buffer_state();
1371 + /* We don't actually know whether we did this switch during
1372 + * EOF (yywrap()) processing, but the only time this flag
1373 + * is looked at is after yywrap() is called, so it's safe
1374 + * to go ahead and always set it.
1376 + yy_did_buffer_switch_on_eof = 1;
1380 +#ifdef YY_USE_PROTOS
1381 +void yy_load_buffer_state( void )
1383 +void yy_load_buffer_state()
1386 + yy_n_chars = yy_current_buffer->yy_n_chars;
1387 + yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
1388 + yyin = yy_current_buffer->yy_input_file;
1389 + yy_hold_char = *yy_c_buf_p;
1393 +#ifdef YY_USE_PROTOS
1394 +YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
1396 +YY_BUFFER_STATE yy_create_buffer( file, size )
1401 + YY_BUFFER_STATE b;
1403 + b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
1405 + YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1407 + b->yy_buf_size = size;
1409 + /* yy_ch_buf has to be 2 characters longer than the size given because
1410 + * we need to put in 2 end-of-buffer characters.
1412 + b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
1413 + if ( ! b->yy_ch_buf )
1414 + YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1416 + b->yy_is_our_buffer = 1;
1418 + yy_init_buffer( b, file );
1424 +#ifdef YY_USE_PROTOS
1425 +void yy_delete_buffer( YY_BUFFER_STATE b )
1427 +void yy_delete_buffer( b )
1434 + if ( b == yy_current_buffer )
1435 + yy_current_buffer = (YY_BUFFER_STATE) 0;
1437 + if ( b->yy_is_our_buffer )
1438 + yy_flex_free( (void *) b->yy_ch_buf );
1440 + yy_flex_free( (void *) b );
1444 +#ifndef YY_ALWAYS_INTERACTIVE
1445 +#ifndef YY_NEVER_INTERACTIVE
1446 +extern int isatty YY_PROTO(( int ));
1450 +#ifdef YY_USE_PROTOS
1451 +void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
1453 +void yy_init_buffer( b, file )
1460 + yy_flush_buffer( b );
1462 + b->yy_input_file = file;
1463 + b->yy_fill_buffer = 1;
1465 +#if YY_ALWAYS_INTERACTIVE
1466 + b->yy_is_interactive = 1;
1468 +#if YY_NEVER_INTERACTIVE
1469 + b->yy_is_interactive = 0;
1471 + b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
1477 +#ifdef YY_USE_PROTOS
1478 +void yy_flush_buffer( YY_BUFFER_STATE b )
1480 +void yy_flush_buffer( b )
1488 + b->yy_n_chars = 0;
1490 + /* We always need two end-of-buffer characters. The first causes
1491 + * a transition to the end-of-buffer state. The second causes
1492 + * a jam in that state.
1494 + b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
1495 + b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
1497 + b->yy_buf_pos = &b->yy_ch_buf[0];
1500 + b->yy_buffer_status = YY_BUFFER_NEW;
1502 + if ( b == yy_current_buffer )
1503 + yy_load_buffer_state();
1507 +#ifndef YY_NO_SCAN_BUFFER
1508 +#ifdef YY_USE_PROTOS
1509 +YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
1511 +YY_BUFFER_STATE yy_scan_buffer( base, size )
1516 + YY_BUFFER_STATE b;
1519 + base[size-2] != YY_END_OF_BUFFER_CHAR ||
1520 + base[size-1] != YY_END_OF_BUFFER_CHAR )
1521 + /* They forgot to leave room for the EOB's. */
1524 + b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
1526 + YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
1528 + b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
1529 + b->yy_buf_pos = b->yy_ch_buf = base;
1530 + b->yy_is_our_buffer = 0;
1531 + b->yy_input_file = 0;
1532 + b->yy_n_chars = b->yy_buf_size;
1533 + b->yy_is_interactive = 0;
1535 + b->yy_fill_buffer = 0;
1536 + b->yy_buffer_status = YY_BUFFER_NEW;
1538 + yy_switch_to_buffer( b );
1545 +#ifndef YY_NO_SCAN_STRING
1546 +#ifdef YY_USE_PROTOS
1547 +YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
1549 +YY_BUFFER_STATE yy_scan_string( yy_str )
1550 +yyconst char *yy_str;
1554 + for ( len = 0; yy_str[len]; ++len )
1557 + return yy_scan_bytes( yy_str, len );
1562 +#ifndef YY_NO_SCAN_BYTES
1563 +#ifdef YY_USE_PROTOS
1564 +YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
1566 +YY_BUFFER_STATE yy_scan_bytes( bytes, len )
1567 +yyconst char *bytes;
1571 + YY_BUFFER_STATE b;
1576 + /* Get memory for full buffer, including space for trailing EOB's. */
1578 + buf = (char *) yy_flex_alloc( n );
1580 + YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
1582 + for ( i = 0; i < len; ++i )
1583 + buf[i] = bytes[i];
1585 + buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
1587 + b = yy_scan_buffer( buf, n );
1589 + YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
1591 + /* It's okay to grow etc. this buffer, and we should throw it
1592 + * away when we're done.
1594 + b->yy_is_our_buffer = 1;
1601 +#ifndef YY_NO_PUSH_STATE
1602 +#ifdef YY_USE_PROTOS
1603 +static void yy_push_state( int new_state )
1605 +static void yy_push_state( new_state )
1609 + if ( yy_start_stack_ptr >= yy_start_stack_depth )
1611 + yy_size_t new_size;
1613 + yy_start_stack_depth += YY_START_STACK_INCR;
1614 + new_size = yy_start_stack_depth * sizeof( int );
1616 + if ( ! yy_start_stack )
1617 + yy_start_stack = (int *) yy_flex_alloc( new_size );
1620 + yy_start_stack = (int *) yy_flex_realloc(
1621 + (void *) yy_start_stack, new_size );
1623 + if ( ! yy_start_stack )
1625 + "out of memory expanding start-condition stack" );
1628 + yy_start_stack[yy_start_stack_ptr++] = YY_START;
1635 +#ifndef YY_NO_POP_STATE
1636 +static void yy_pop_state()
1638 + if ( --yy_start_stack_ptr < 0 )
1639 + YY_FATAL_ERROR( "start-condition stack underflow" );
1641 + BEGIN(yy_start_stack[yy_start_stack_ptr]);
1646 +#ifndef YY_NO_TOP_STATE
1647 +static int yy_top_state()
1649 + return yy_start_stack[yy_start_stack_ptr - 1];
1653 +#ifndef YY_EXIT_FAILURE
1654 +#define YY_EXIT_FAILURE 2
1657 +#ifdef YY_USE_PROTOS
1658 +static void yy_fatal_error( yyconst char msg[] )
1660 +static void yy_fatal_error( msg )
1664 + (void) fprintf( stderr, "%s\n", msg );
1665 + exit( YY_EXIT_FAILURE );
1670 +/* Redefine yyless() so it works in section 3 code. */
1673 +#define yyless(n) \
1676 + /* Undo effects of setting up yytext. */ \
1677 + yytext[yyleng] = yy_hold_char; \
1678 + yy_c_buf_p = yytext + n; \
1679 + yy_hold_char = *yy_c_buf_p; \
1680 + *yy_c_buf_p = '\0'; \
1686 +/* Internal utility routines. */
1689 +#ifdef YY_USE_PROTOS
1690 +static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
1692 +static void yy_flex_strncpy( s1, s2, n )
1699 + for ( i = 0; i < n; ++i )
1704 +#ifdef YY_NEED_STRLEN
1705 +#ifdef YY_USE_PROTOS
1706 +static int yy_flex_strlen( yyconst char *s )
1708 +static int yy_flex_strlen( s )
1713 + for ( n = 0; s[n]; ++n )
1721 +#ifdef YY_USE_PROTOS
1722 +static void *yy_flex_alloc( yy_size_t size )
1724 +static void *yy_flex_alloc( size )
1728 + return (void *) malloc( size );
1731 +#ifdef YY_USE_PROTOS
1732 +static void *yy_flex_realloc( void *ptr, yy_size_t size )
1734 +static void *yy_flex_realloc( ptr, size )
1739 + /* The cast to (char *) in the following accommodates both
1740 + * implementations that use char* generic pointers, and those
1741 + * that use void* generic pointers. It works with the latter
1742 + * because both ANSI C and C++ allow castless assignment from
1743 + * any pointer type to void*, and deal with argument conversions
1744 + * as though doing an assignment.
1746 + return (void *) realloc( (char *) ptr, size );
1749 +#ifdef YY_USE_PROTOS
1750 +static void yy_flex_free( void *ptr )
1752 +static void yy_flex_free( ptr )
1766 +#line 145 "emp_ematch.l"