4 #define YY_INT_ALIGNED short int
6 /* A lexical scanner generated by flex */
9 #define YY_FLEX_MAJOR_VERSION 2
10 #define YY_FLEX_MINOR_VERSION 5
11 #define YY_FLEX_SUBMINOR_VERSION 35
12 #if YY_FLEX_SUBMINOR_VERSION > 0
16 /* First, we deal with platform-specific or compiler-specific issues. */
18 /* begin standard C headers. */
24 /* end standard C headers. */
26 /* flex integer type definitions */
31 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
33 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
35 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
36 * if you want the limit (max/min) macros for int types.
38 #ifndef __STDC_LIMIT_MACROS
39 #define __STDC_LIMIT_MACROS 1
43 typedef int8_t flex_int8_t;
44 typedef uint8_t flex_uint8_t;
45 typedef int16_t flex_int16_t;
46 typedef uint16_t flex_uint16_t;
47 typedef int32_t flex_int32_t;
48 typedef uint32_t flex_uint32_t;
50 typedef signed char flex_int8_t;
51 typedef short int flex_int16_t;
52 typedef int flex_int32_t;
53 typedef unsigned char flex_uint8_t;
54 typedef unsigned short int flex_uint16_t;
55 typedef unsigned int flex_uint32_t;
58 /* Limits of integral types. */
60 #define INT8_MIN (-128)
63 #define INT16_MIN (-32767-1)
66 #define INT32_MIN (-2147483647-1)
69 #define INT8_MAX (127)
72 #define INT16_MAX (32767)
75 #define INT32_MAX (2147483647)
78 #define UINT8_MAX (255U)
81 #define UINT16_MAX (65535U)
84 #define UINT32_MAX (4294967295U)
87 #endif /* ! FLEXINT_H */
91 /* The "const" storage-class-modifier is valid. */
94 #else /* ! __cplusplus */
96 /* C99 requires __STDC__ to be defined as 1. */
97 #if defined (__STDC__)
101 #endif /* defined (__STDC__) */
102 #endif /* ! __cplusplus */
105 #define yyconst const
110 /* Returned upon end-of-file. */
113 /* Promotes a possibly negative, possibly signed char to an unsigned
114 * integer for use as an array index. If the signed char is negative,
115 * we want to instead treat it as an 8-bit unsigned char, hence the
118 #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
120 /* Enter a start condition. This macro really ought to take a parameter,
121 * but we do it the disgusting crufty way forced on us by the ()-less
122 * definition of BEGIN.
124 #define BEGIN (yy_start) = 1 + 2 *
126 /* Translate the current start state into a value that can be later handed
127 * to BEGIN to return to the state. The YYSTATE alias is for lex
130 #define YY_START (((yy_start) - 1) / 2)
131 #define YYSTATE YY_START
133 /* Action number for EOF rule of a given start state. */
134 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
136 /* Special action meaning "start processing a new file". */
137 #define YY_NEW_FILE yyrestart(yyin )
139 #define YY_END_OF_BUFFER_CHAR 0
141 /* Size of default input buffer. */
143 #define YY_BUF_SIZE 16384
146 /* The state buf must be large enough to hold one state per character in the main buffer.
148 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
150 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
151 #define YY_TYPEDEF_YY_BUFFER_STATE
152 typedef struct yy_buffer_state *YY_BUFFER_STATE;
157 extern FILE *yyin, *yyout;
159 #define EOB_ACT_CONTINUE_SCAN 0
160 #define EOB_ACT_END_OF_FILE 1
161 #define EOB_ACT_LAST_MATCH 2
163 #define YY_LESS_LINENO(n)
165 /* Return all but the first "n" matched characters back to the input stream. */
169 /* Undo effects of setting up yytext. */ \
170 int yyless_macro_arg = (n); \
171 YY_LESS_LINENO(yyless_macro_arg);\
172 *yy_cp = (yy_hold_char); \
173 YY_RESTORE_YY_MORE_OFFSET \
174 (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
175 YY_DO_BEFORE_ACTION; /* set up yytext again */ \
179 #define unput(c) yyunput( c, (yytext_ptr) )
181 #ifndef YY_TYPEDEF_YY_SIZE_T
182 #define YY_TYPEDEF_YY_SIZE_T
183 typedef size_t yy_size_t;
186 #ifndef YY_STRUCT_YY_BUFFER_STATE
187 #define YY_STRUCT_YY_BUFFER_STATE
188 struct yy_buffer_state
192 char *yy_ch_buf; /* input buffer */
193 char *yy_buf_pos; /* current position in input buffer */
195 /* Size of input buffer in bytes, not including room for EOB
198 yy_size_t yy_buf_size;
200 /* Number of characters read into yy_ch_buf, not including EOB
205 /* Whether we "own" the buffer - i.e., we know we created it,
206 * and can realloc() it to grow it, and should free() it to
209 int yy_is_our_buffer;
211 /* Whether this is an "interactive" input source; if so, and
212 * if we're using stdio for input, then we want to use getc()
213 * instead of fread(), to make sure we stop fetching input after
216 int yy_is_interactive;
218 /* Whether we're considered to be at the beginning of a line.
219 * If so, '^' rules will be active on the next match, otherwise
224 int yy_bs_lineno; /**< The line count. */
225 int yy_bs_column; /**< The column count. */
227 /* Whether to try to fill the input buffer when we reach the
232 int yy_buffer_status;
234 #define YY_BUFFER_NEW 0
235 #define YY_BUFFER_NORMAL 1
236 /* When an EOF's been seen but there's still some text to process
237 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
238 * shouldn't try reading from the input source any more. We might
239 * still have a bunch of tokens to match, though, because of
240 * possible backing-up.
242 * When we actually see the EOF, we change the status to "new"
243 * (via yyrestart()), so that the user can continue scanning by
244 * just pointing yyin at a new input file.
246 #define YY_BUFFER_EOF_PENDING 2
249 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
251 /* Stack of input buffers. */
252 static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
253 static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
254 static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
256 /* We provide macros for accessing buffer states in case in the
257 * future we want to put the buffer states in a more general
260 * Returns the top of the stack, or NULL.
262 #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
263 ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
266 /* Same as previous macro, but useful when we know that the buffer stack is not
267 * NULL or when we need an lvalue. For internal use only.
269 #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
271 /* yy_hold_char holds the character lost when yytext is formed. */
272 static char yy_hold_char;
273 static int yy_n_chars; /* number of characters read into yy_ch_buf */
276 /* Points to current character in buffer. */
277 static char *yy_c_buf_p = (char *) 0;
278 static int yy_init = 0; /* whether we need to initialize */
279 static int yy_start = 0; /* start state number */
281 /* Flag which is used to allow yywrap()'s to do buffer switches
282 * instead of setting up a fresh yyin. A bit of a hack ...
284 static int yy_did_buffer_switch_on_eof;
286 void yyrestart (FILE *input_file );
287 void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer );
288 YY_BUFFER_STATE yy_create_buffer (FILE *file,int size );
289 void yy_delete_buffer (YY_BUFFER_STATE b );
290 void yy_flush_buffer (YY_BUFFER_STATE b );
291 void yypush_buffer_state (YY_BUFFER_STATE new_buffer );
292 void yypop_buffer_state (void );
294 static void yyensure_buffer_stack (void );
295 static void yy_load_buffer_state (void );
296 static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file );
298 #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER )
300 YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size );
301 YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str );
302 YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len );
304 void *yyalloc (yy_size_t );
305 void *yyrealloc (void *,yy_size_t );
306 void yyfree (void * );
308 #define yy_new_buffer yy_create_buffer
310 #define yy_set_interactive(is_interactive) \
312 if ( ! YY_CURRENT_BUFFER ){ \
313 yyensure_buffer_stack (); \
314 YY_CURRENT_BUFFER_LVALUE = \
315 yy_create_buffer(yyin,YY_BUF_SIZE ); \
317 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
320 #define yy_set_bol(at_bol) \
322 if ( ! YY_CURRENT_BUFFER ){\
323 yyensure_buffer_stack (); \
324 YY_CURRENT_BUFFER_LVALUE = \
325 yy_create_buffer(yyin,YY_BUF_SIZE ); \
327 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
330 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
332 /* Begin user sect3 */
334 typedef unsigned char YY_CHAR;
336 FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
338 typedef int yy_state_type;
345 #define yytext_ptr yytext
347 static yy_state_type yy_get_previous_state (void );
348 static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
349 static int yy_get_next_buffer (void );
350 static void yy_fatal_error (yyconst char msg[] );
352 /* Done after the current pattern has been matched and before the
353 * corresponding action - sets up yytext.
355 #define YY_DO_BEFORE_ACTION \
356 (yytext_ptr) = yy_bp; \
357 yyleng = (size_t) (yy_cp - yy_bp); \
358 (yy_hold_char) = *yy_cp; \
360 (yy_c_buf_p) = yy_cp;
362 #define YY_NUM_RULES 6
363 #define YY_END_OF_BUFFER 7
364 /* This struct is not used in this scanner,
365 but its presence is necessary. */
368 flex_int32_t yy_verify;
371 static yyconst flex_int16_t yy_accept[21] =
373 0, 0, 7, 3, 4, 5, 1, 3, 3, 3,
374 4, 1, 1, 1, 3, 2, 3, 1, 1, 0
377 static yyconst flex_int32_t yy_ec[256] =
379 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
380 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
381 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
382 1, 2, 1, 1, 4, 1, 1, 1, 1, 1,
383 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
384 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
385 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
386 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
387 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
388 1, 5, 1, 1, 1, 1, 1, 1, 1, 1,
390 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
391 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
392 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
393 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
394 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
395 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
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, 1, 1, 1, 1, 1, 1,
399 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
401 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
402 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
403 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
404 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
405 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
409 static yyconst flex_int32_t yy_meta[6] =
414 static yyconst flex_int16_t yy_base[24] =
416 0, 0, 26, 20, 0, 27, 5, 10, 19, 20,
417 0, 0, 0, 15, 0, 27, 0, 0, 0, 27,
421 static yyconst flex_int16_t yy_def[24] =
423 20, 1, 20, 21, 22, 20, 20, 20, 21, 8,
424 22, 7, 23, 20, 9, 20, 10, 7, 14, 0,
428 static yyconst flex_int16_t yy_nxt[33] =
430 4, 5, 6, 7, 8, 12, 13, 11, 12, 14,
431 15, 9, 16, 15, 17, 18, 12, 9, 18, 19,
432 13, 13, 20, 10, 10, 20, 3, 20, 20, 20,
436 static yyconst flex_int16_t yy_chk[33] =
438 1, 1, 1, 1, 1, 7, 7, 22, 7, 7,
439 8, 8, 8, 8, 8, 14, 14, 21, 14, 14,
440 23, 23, 10, 9, 4, 3, 20, 20, 20, 20,
444 static yy_state_type yy_last_accepting_state;
445 static char *yy_last_accepting_cpos;
447 extern int yy_flex_debug;
448 int yy_flex_debug = 0;
450 /* The intent behind this definition is that it'll catch
451 * any uses of REJECT which flex missed.
453 #define REJECT reject_used_but_not_detected
454 #define yymore() yymore_used_but_not_detected
455 #define YY_MORE_ADJ 0
456 #define YY_RESTORE_YY_MORE_OFFSET
458 #line 1 "pam_conv_l.l"
459 #line 3 "pam_conv_l.l"
463 * Copyright (c) Andrew G. Morgan 1997 <morgan@parc.power.net>
465 * This file is covered by the Linux-PAM License (which should be
466 * distributed with this file.)
469 static const char lexid[]=
471 "Copyright (c) Andrew G. Morgan 1997 <morgan@parc.power.net>\n";
479 #include "pam_conv_y.h"
481 extern int current_line;
482 #line 483 "pam_conv_l.c"
486 #ifndef YY_NO_UNISTD_H
487 /* Special case for "unistd.h", since it is non-ANSI. We include it way
488 * down here because we want the user's section 1 to have been scanned first.
489 * The user has a chance to override it with an option.
494 #ifndef YY_EXTRA_TYPE
495 #define YY_EXTRA_TYPE void *
498 static int yy_init_globals (void );
500 /* Accessor methods to globals.
501 These are made visible to non-reentrant scanners for convenience. */
503 int yylex_destroy (void );
505 int yyget_debug (void );
507 void yyset_debug (int debug_flag );
509 YY_EXTRA_TYPE yyget_extra (void );
511 void yyset_extra (YY_EXTRA_TYPE user_defined );
513 FILE *yyget_in (void );
515 void yyset_in (FILE * in_str );
517 FILE *yyget_out (void );
519 void yyset_out (FILE * out_str );
521 int yyget_leng (void );
523 char *yyget_text (void );
525 int yyget_lineno (void );
527 void yyset_lineno (int line_number );
529 /* Macros after this point can all be overridden by user definitions in
533 #ifndef YY_SKIP_YYWRAP
535 extern "C" int yywrap (void );
537 extern int yywrap (void );
541 static void yyunput (int c,char *buf_ptr );
544 static void yy_flex_strncpy (char *,yyconst char *,int );
547 #ifdef YY_NEED_STRLEN
548 static int yy_flex_strlen (yyconst char * );
554 static int yyinput (void );
556 static int input (void );
561 /* Amount of stuff to slurp up with each read. */
562 #ifndef YY_READ_BUF_SIZE
563 #define YY_READ_BUF_SIZE 8192
566 /* Copy whatever the last rule matched to the standard output. */
568 /* This used to be an fputs(), but since the string might contain NUL's,
569 * we now use fwrite().
571 #define ECHO fwrite( yytext, yyleng, 1, yyout )
574 /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
575 * is returned in "result".
578 #define YY_INPUT(buf,result,max_size) \
579 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
583 for ( n = 0; n < max_size && \
584 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
587 buf[n++] = (char) c; \
588 if ( c == EOF && ferror( yyin ) ) \
589 YY_FATAL_ERROR( "input in flex scanner failed" ); \
595 while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
597 if( errno != EINTR) \
599 YY_FATAL_ERROR( "input in flex scanner failed" ); \
610 /* No semi-colon after return; correct usage is to write "yyterminate();" -
611 * we don't want an extra ';' after the "return" because that will cause
612 * some compilers to complain about unreachable statements.
615 #define yyterminate() return YY_NULL
618 /* Number of entries by which start-condition stack grows. */
619 #ifndef YY_START_STACK_INCR
620 #define YY_START_STACK_INCR 25
623 /* Report a fatal error. */
624 #ifndef YY_FATAL_ERROR
625 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
628 /* end tables serialization structures and prototypes */
630 /* Default declaration of generated scanner - a define so the user can
631 * easily add parameters.
634 #define YY_DECL_IS_OURS 1
636 extern int yylex (void);
638 #define YY_DECL int yylex (void)
639 #endif /* !YY_DECL */
641 /* Code executed at the beginning of each rule, after yytext and yyleng
644 #ifndef YY_USER_ACTION
645 #define YY_USER_ACTION
648 /* Code executed at the end of each rule. */
650 #define YY_BREAK break;
653 #define YY_RULE_SETUP \
656 /** The main scanner function which does all the work.
660 register yy_state_type yy_current_state;
661 register char *yy_cp, *yy_bp;
664 #line 27 "pam_conv_l.l"
667 #line 668 "pam_conv_l.c"
678 (yy_start) = 1; /* first start state */
686 if ( ! YY_CURRENT_BUFFER ) {
687 yyensure_buffer_stack ();
688 YY_CURRENT_BUFFER_LVALUE =
689 yy_create_buffer(yyin,YY_BUF_SIZE );
692 yy_load_buffer_state( );
695 while ( 1 ) /* loops until end-of-file is reached */
697 yy_cp = (yy_c_buf_p);
699 /* Support of yytext. */
700 *yy_cp = (yy_hold_char);
702 /* yy_bp points to the position in yy_ch_buf of the start of
707 yy_current_state = (yy_start);
711 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
712 if ( yy_accept[yy_current_state] )
714 (yy_last_accepting_state) = yy_current_state;
715 (yy_last_accepting_cpos) = yy_cp;
717 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
719 yy_current_state = (int) yy_def[yy_current_state];
720 if ( yy_current_state >= 21 )
721 yy_c = yy_meta[(unsigned int) yy_c];
723 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
726 while ( yy_base[yy_current_state] != 27 );
729 yy_act = yy_accept[yy_current_state];
731 { /* have to back up */
732 yy_cp = (yy_last_accepting_cpos);
733 yy_current_state = (yy_last_accepting_state);
734 yy_act = yy_accept[yy_current_state];
739 do_action: /* This label is used only to access EOF actions. */
742 { /* beginning of action switch */
743 case 0: /* must back up */
744 /* undo the effects of YY_DO_BEFORE_ACTION */
745 *yy_cp = (yy_hold_char);
746 yy_cp = (yy_last_accepting_cpos);
747 yy_current_state = (yy_last_accepting_state);
752 #line 29 "pam_conv_l.l"
753 ; /* skip comments (sorry) */
756 /* rule 2 can match eol */
758 #line 31 "pam_conv_l.l"
765 #line 35 "pam_conv_l.l"
772 #line 39 "pam_conv_l.l"
775 case YY_STATE_EOF(INITIAL):
776 #line 41 "pam_conv_l.l"
782 /* rule 5 can match eol */
784 #line 45 "pam_conv_l.l"
792 #line 50 "pam_conv_l.l"
795 #line 796 "pam_conv_l.c"
797 case YY_END_OF_BUFFER:
799 /* Amount of text matched not including the EOB char. */
800 int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
802 /* Undo the effects of YY_DO_BEFORE_ACTION. */
803 *yy_cp = (yy_hold_char);
804 YY_RESTORE_YY_MORE_OFFSET
806 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
808 /* We're scanning a new file or input source. It's
809 * possible that this happened because the user
810 * just pointed yyin at a new source and called
811 * yylex(). If so, then we have to assure
812 * consistency between YY_CURRENT_BUFFER and our
813 * globals. Here is the right place to do so, because
814 * this is the first action (other than possibly a
815 * back-up) that will match for the new input source.
817 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
818 YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
819 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
822 /* Note that here we test for yy_c_buf_p "<=" to the position
823 * of the first EOB in the buffer, since yy_c_buf_p will
824 * already have been incremented past the NUL character
825 * (since all states make transitions on EOB to the
826 * end-of-buffer state). Contrast this with the test
829 if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
830 { /* This was really a NUL. */
831 yy_state_type yy_next_state;
833 (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
835 yy_current_state = yy_get_previous_state( );
837 /* Okay, we're now positioned to make the NUL
838 * transition. We couldn't have
839 * yy_get_previous_state() go ahead and do it
840 * for us because it doesn't know how to deal
841 * with the possibility of jamming (and we don't
842 * want to build jamming into it because then it
843 * will run more slowly).
846 yy_next_state = yy_try_NUL_trans( yy_current_state );
848 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
852 /* Consume the NUL. */
853 yy_cp = ++(yy_c_buf_p);
854 yy_current_state = yy_next_state;
860 yy_cp = (yy_c_buf_p);
865 else switch ( yy_get_next_buffer( ) )
867 case EOB_ACT_END_OF_FILE:
869 (yy_did_buffer_switch_on_eof) = 0;
873 /* Note: because we've taken care in
874 * yy_get_next_buffer() to have set up
875 * yytext, we can now set up
876 * yy_c_buf_p so that if some total
877 * hoser (like flex itself) wants to
878 * call the scanner after we return the
879 * YY_NULL, it'll still work - another
880 * YY_NULL will get returned.
882 (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
884 yy_act = YY_STATE_EOF(YY_START);
890 if ( ! (yy_did_buffer_switch_on_eof) )
896 case EOB_ACT_CONTINUE_SCAN:
898 (yytext_ptr) + yy_amount_of_matched_text;
900 yy_current_state = yy_get_previous_state( );
902 yy_cp = (yy_c_buf_p);
903 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
906 case EOB_ACT_LAST_MATCH:
908 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
910 yy_current_state = yy_get_previous_state( );
912 yy_cp = (yy_c_buf_p);
913 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
921 "fatal flex scanner internal error--no action found" );
922 } /* end of action switch */
923 } /* end of scanning one token */
926 /* yy_get_next_buffer - try to read in a new buffer
928 * Returns a code representing an action:
929 * EOB_ACT_LAST_MATCH -
930 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
931 * EOB_ACT_END_OF_FILE - end of file
933 static int yy_get_next_buffer (void)
935 register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
936 register char *source = (yytext_ptr);
937 register int number_to_move, i;
940 if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
942 "fatal flex scanner internal error--end of buffer missed" );
944 if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
945 { /* Don't try to fill the buffer, so this is an EOF. */
946 if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
948 /* We matched a single character, the EOB, so
949 * treat this as a final EOF.
951 return EOB_ACT_END_OF_FILE;
956 /* We matched some text prior to the EOB, first
959 return EOB_ACT_LAST_MATCH;
963 /* Try to read more data. */
965 /* First move last chars to start of buffer. */
966 number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
968 for ( i = 0; i < number_to_move; ++i )
969 *(dest++) = *(source++);
971 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
972 /* don't do the read, it's not guaranteed to return an EOF,
975 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
980 YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
982 while ( num_to_read <= 0 )
983 { /* Not enough room in the buffer - grow it. */
985 /* just a shorter name for the current buffer */
986 YY_BUFFER_STATE b = YY_CURRENT_BUFFER;
988 int yy_c_buf_p_offset =
989 (int) ((yy_c_buf_p) - b->yy_ch_buf);
991 if ( b->yy_is_our_buffer )
993 int new_size = b->yy_buf_size * 2;
996 b->yy_buf_size += b->yy_buf_size / 8;
1000 b->yy_ch_buf = (char *)
1001 /* Include room in for 2 EOB chars. */
1002 yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 );
1005 /* Can't grow it, we don't own it. */
1008 if ( ! b->yy_ch_buf )
1010 "fatal error - scanner input buffer overflow" );
1012 (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
1014 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
1019 if ( num_to_read > YY_READ_BUF_SIZE )
1020 num_to_read = YY_READ_BUF_SIZE;
1022 /* Read in more data. */
1023 YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
1024 (yy_n_chars), (size_t) num_to_read );
1026 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1029 if ( (yy_n_chars) == 0 )
1031 if ( number_to_move == YY_MORE_ADJ )
1033 ret_val = EOB_ACT_END_OF_FILE;
1039 ret_val = EOB_ACT_LAST_MATCH;
1040 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
1041 YY_BUFFER_EOF_PENDING;
1046 ret_val = EOB_ACT_CONTINUE_SCAN;
1048 if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
1049 /* Extend the array by 50%, plus the number we really need. */
1050 yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
1051 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
1052 if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1053 YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
1056 (yy_n_chars) += number_to_move;
1057 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
1058 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
1060 (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
1065 /* yy_get_previous_state - get the state just before the EOB char was reached */
1067 static yy_state_type yy_get_previous_state (void)
1069 register yy_state_type yy_current_state;
1070 register char *yy_cp;
1072 yy_current_state = (yy_start);
1074 for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
1076 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1077 if ( yy_accept[yy_current_state] )
1079 (yy_last_accepting_state) = yy_current_state;
1080 (yy_last_accepting_cpos) = yy_cp;
1082 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1084 yy_current_state = (int) yy_def[yy_current_state];
1085 if ( yy_current_state >= 21 )
1086 yy_c = yy_meta[(unsigned int) yy_c];
1088 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1091 return yy_current_state;
1094 /* yy_try_NUL_trans - try to make a transition on the NUL character
1097 * next_state = yy_try_NUL_trans( current_state );
1099 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
1101 register int yy_is_jam;
1102 register char *yy_cp = (yy_c_buf_p);
1104 register YY_CHAR yy_c = 1;
1105 if ( yy_accept[yy_current_state] )
1107 (yy_last_accepting_state) = yy_current_state;
1108 (yy_last_accepting_cpos) = yy_cp;
1110 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1112 yy_current_state = (int) yy_def[yy_current_state];
1113 if ( yy_current_state >= 21 )
1114 yy_c = yy_meta[(unsigned int) yy_c];
1116 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1117 yy_is_jam = (yy_current_state == 20);
1119 return yy_is_jam ? 0 : yy_current_state;
1122 static void yyunput (int c, register char * yy_bp )
1124 register char *yy_cp;
1126 yy_cp = (yy_c_buf_p);
1128 /* undo effects of setting up yytext */
1129 *yy_cp = (yy_hold_char);
1131 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
1132 { /* need to shift things up to make room */
1133 /* +2 for EOB chars. */
1134 register int number_to_move = (yy_n_chars) + 2;
1135 register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
1136 YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
1137 register char *source =
1138 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
1140 while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1141 *--dest = *--source;
1143 yy_cp += (int) (dest - source);
1144 yy_bp += (int) (dest - source);
1145 YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
1146 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
1148 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
1149 YY_FATAL_ERROR( "flex scanner push-back overflow" );
1152 *--yy_cp = (char) c;
1154 (yytext_ptr) = yy_bp;
1155 (yy_hold_char) = *yy_cp;
1156 (yy_c_buf_p) = yy_cp;
1161 static int yyinput (void)
1163 static int input (void)
1169 *(yy_c_buf_p) = (yy_hold_char);
1171 if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
1173 /* yy_c_buf_p now points to the character we want to return.
1174 * If this occurs *before* the EOB characters, then it's a
1175 * valid NUL; if not, then we've hit the end of the buffer.
1177 if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
1178 /* This was really a NUL. */
1179 *(yy_c_buf_p) = '\0';
1182 { /* need more input */
1183 int offset = (yy_c_buf_p) - (yytext_ptr);
1186 switch ( yy_get_next_buffer( ) )
1188 case EOB_ACT_LAST_MATCH:
1189 /* This happens because yy_g_n_b()
1190 * sees that we've accumulated a
1191 * token and flags that we need to
1192 * try matching the token before
1193 * proceeding. But for input(),
1194 * there's no matching to consider.
1195 * So convert the EOB_ACT_LAST_MATCH
1196 * to EOB_ACT_END_OF_FILE.
1199 /* Reset buffer status. */
1204 case EOB_ACT_END_OF_FILE:
1209 if ( ! (yy_did_buffer_switch_on_eof) )
1218 case EOB_ACT_CONTINUE_SCAN:
1219 (yy_c_buf_p) = (yytext_ptr) + offset;
1225 c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
1226 *(yy_c_buf_p) = '\0'; /* preserve yytext */
1227 (yy_hold_char) = *++(yy_c_buf_p);
1231 #endif /* ifndef YY_NO_INPUT */
1233 /** Immediately switch to a different input stream.
1234 * @param input_file A readable stream.
1236 * @note This function does not reset the start condition to @c INITIAL .
1238 void yyrestart (FILE * input_file )
1241 if ( ! YY_CURRENT_BUFFER ){
1242 yyensure_buffer_stack ();
1243 YY_CURRENT_BUFFER_LVALUE =
1244 yy_create_buffer(yyin,YY_BUF_SIZE );
1247 yy_init_buffer(YY_CURRENT_BUFFER,input_file );
1248 yy_load_buffer_state( );
1251 /** Switch to a different input buffer.
1252 * @param new_buffer The new input buffer.
1255 void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
1258 /* TODO. We should be able to replace this entire function body
1260 * yypop_buffer_state();
1261 * yypush_buffer_state(new_buffer);
1263 yyensure_buffer_stack ();
1264 if ( YY_CURRENT_BUFFER == new_buffer )
1267 if ( YY_CURRENT_BUFFER )
1269 /* Flush out information for old buffer. */
1270 *(yy_c_buf_p) = (yy_hold_char);
1271 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1272 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1275 YY_CURRENT_BUFFER_LVALUE = new_buffer;
1276 yy_load_buffer_state( );
1278 /* We don't actually know whether we did this switch during
1279 * EOF (yywrap()) processing, but the only time this flag
1280 * is looked at is after yywrap() is called, so it's safe
1281 * to go ahead and always set it.
1283 (yy_did_buffer_switch_on_eof) = 1;
1286 static void yy_load_buffer_state (void)
1288 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1289 (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
1290 yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
1291 (yy_hold_char) = *(yy_c_buf_p);
1294 /** Allocate and initialize an input buffer state.
1295 * @param file A readable stream.
1296 * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
1298 * @return the allocated buffer state.
1300 YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
1304 b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
1306 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1308 b->yy_buf_size = size;
1310 /* yy_ch_buf has to be 2 characters longer than the size given because
1311 * we need to put in 2 end-of-buffer characters.
1313 b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 );
1314 if ( ! b->yy_ch_buf )
1315 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1317 b->yy_is_our_buffer = 1;
1319 yy_init_buffer(b,file );
1324 /** Destroy the buffer.
1325 * @param b a buffer created with yy_create_buffer()
1328 void yy_delete_buffer (YY_BUFFER_STATE b )
1334 if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
1335 YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
1337 if ( b->yy_is_our_buffer )
1338 yyfree((void *) b->yy_ch_buf );
1340 yyfree((void *) b );
1344 extern int isatty (int );
1345 #endif /* __cplusplus */
1347 /* Initializes or reinitializes a buffer.
1348 * This function is sometimes called more than once on the same buffer,
1349 * such as during a yyrestart() or at EOF.
1351 static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
1356 yy_flush_buffer(b );
1358 b->yy_input_file = file;
1359 b->yy_fill_buffer = 1;
1361 /* If b is the current buffer, then yy_init_buffer was _probably_
1362 * called from yyrestart() or through yy_get_next_buffer.
1363 * In that case, we don't want to reset the lineno or column.
1365 if (b != YY_CURRENT_BUFFER){
1366 b->yy_bs_lineno = 1;
1367 b->yy_bs_column = 0;
1370 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
1375 /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
1376 * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
1379 void yy_flush_buffer (YY_BUFFER_STATE b )
1386 /* We always need two end-of-buffer characters. The first causes
1387 * a transition to the end-of-buffer state. The second causes
1388 * a jam in that state.
1390 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
1391 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
1393 b->yy_buf_pos = &b->yy_ch_buf[0];
1396 b->yy_buffer_status = YY_BUFFER_NEW;
1398 if ( b == YY_CURRENT_BUFFER )
1399 yy_load_buffer_state( );
1402 /** Pushes the new state onto the stack. The new state becomes
1403 * the current state. This function will allocate the stack
1405 * @param new_buffer The new state.
1408 void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
1410 if (new_buffer == NULL)
1413 yyensure_buffer_stack();
1415 /* This block is copied from yy_switch_to_buffer. */
1416 if ( YY_CURRENT_BUFFER )
1418 /* Flush out information for old buffer. */
1419 *(yy_c_buf_p) = (yy_hold_char);
1420 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1421 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1424 /* Only push if top exists. Otherwise, replace top. */
1425 if (YY_CURRENT_BUFFER)
1426 (yy_buffer_stack_top)++;
1427 YY_CURRENT_BUFFER_LVALUE = new_buffer;
1429 /* copied from yy_switch_to_buffer. */
1430 yy_load_buffer_state( );
1431 (yy_did_buffer_switch_on_eof) = 1;
1434 /** Removes and deletes the top of the stack, if present.
1435 * The next element becomes the new top.
1438 void yypop_buffer_state (void)
1440 if (!YY_CURRENT_BUFFER)
1443 yy_delete_buffer(YY_CURRENT_BUFFER );
1444 YY_CURRENT_BUFFER_LVALUE = NULL;
1445 if ((yy_buffer_stack_top) > 0)
1446 --(yy_buffer_stack_top);
1448 if (YY_CURRENT_BUFFER) {
1449 yy_load_buffer_state( );
1450 (yy_did_buffer_switch_on_eof) = 1;
1454 /* Allocates the stack if it does not exist.
1455 * Guarantees space for at least one push.
1457 static void yyensure_buffer_stack (void)
1461 if (!(yy_buffer_stack)) {
1463 /* First allocation is just for 2 elements, since we don't know if this
1464 * scanner will even need a stack. We use 2 instead of 1 to avoid an
1465 * immediate realloc on the next call.
1468 (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
1469 (num_to_alloc * sizeof(struct yy_buffer_state*)
1471 if ( ! (yy_buffer_stack) )
1472 YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
1474 memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
1476 (yy_buffer_stack_max) = num_to_alloc;
1477 (yy_buffer_stack_top) = 0;
1481 if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
1483 /* Increase the buffer to prepare for a possible push. */
1484 int grow_size = 8 /* arbitrary grow size */;
1486 num_to_alloc = (yy_buffer_stack_max) + grow_size;
1487 (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
1489 num_to_alloc * sizeof(struct yy_buffer_state*)
1491 if ( ! (yy_buffer_stack) )
1492 YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
1494 /* zero only the new slots.*/
1495 memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
1496 (yy_buffer_stack_max) = num_to_alloc;
1500 /** Setup the input buffer state to scan directly from a user-specified character buffer.
1501 * @param base the character buffer
1502 * @param size the size in bytes of the character buffer
1504 * @return the newly allocated buffer state object.
1506 YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
1511 base[size-2] != YY_END_OF_BUFFER_CHAR ||
1512 base[size-1] != YY_END_OF_BUFFER_CHAR )
1513 /* They forgot to leave room for the EOB's. */
1516 b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
1518 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
1520 b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
1521 b->yy_buf_pos = b->yy_ch_buf = base;
1522 b->yy_is_our_buffer = 0;
1523 b->yy_input_file = 0;
1524 b->yy_n_chars = b->yy_buf_size;
1525 b->yy_is_interactive = 0;
1527 b->yy_fill_buffer = 0;
1528 b->yy_buffer_status = YY_BUFFER_NEW;
1530 yy_switch_to_buffer(b );
1535 /** Setup the input buffer state to scan a string. The next call to yylex() will
1536 * scan from a @e copy of @a str.
1537 * @param yystr a NUL-terminated string to scan
1539 * @return the newly allocated buffer state object.
1540 * @note If you want to scan bytes that may contain NUL values, then use
1541 * yy_scan_bytes() instead.
1543 YY_BUFFER_STATE yy_scan_string (yyconst char * yystr )
1546 return yy_scan_bytes(yystr,strlen(yystr) );
1549 /** Setup the input buffer state to scan the given bytes. The next call to yylex() will
1550 * scan from a @e copy of @a bytes.
1551 * @param bytes the byte buffer to scan
1552 * @param len the number of bytes in the buffer pointed to by @a bytes.
1554 * @return the newly allocated buffer state object.
1556 YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len )
1563 /* Get memory for full buffer, including space for trailing EOB's. */
1564 n = _yybytes_len + 2;
1565 buf = (char *) yyalloc(n );
1567 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
1569 for ( i = 0; i < _yybytes_len; ++i )
1570 buf[i] = yybytes[i];
1572 buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
1574 b = yy_scan_buffer(buf,n );
1576 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
1578 /* It's okay to grow etc. this buffer, and we should throw it
1579 * away when we're done.
1581 b->yy_is_our_buffer = 1;
1586 #ifndef YY_EXIT_FAILURE
1587 #define YY_EXIT_FAILURE 2
1590 static void yy_fatal_error (yyconst char* msg )
1592 (void) fprintf( stderr, "%s\n", msg );
1593 exit( YY_EXIT_FAILURE );
1596 /* Redefine yyless() so it works in section 3 code. */
1602 /* Undo effects of setting up yytext. */ \
1603 int yyless_macro_arg = (n); \
1604 YY_LESS_LINENO(yyless_macro_arg);\
1605 yytext[yyleng] = (yy_hold_char); \
1606 (yy_c_buf_p) = yytext + yyless_macro_arg; \
1607 (yy_hold_char) = *(yy_c_buf_p); \
1608 *(yy_c_buf_p) = '\0'; \
1609 yyleng = yyless_macro_arg; \
1613 /* Accessor methods (get/set functions) to struct members. */
1615 /** Get the current line number.
1618 int yyget_lineno (void)
1624 /** Get the input stream.
1627 FILE *yyget_in (void)
1632 /** Get the output stream.
1635 FILE *yyget_out (void)
1640 /** Get the length of the current token.
1643 int yyget_leng (void)
1648 /** Get the current token.
1652 char *yyget_text (void)
1657 /** Set the current line number.
1658 * @param line_number
1661 void yyset_lineno (int line_number )
1664 yylineno = line_number;
1667 /** Set the input stream. This does not discard the current
1669 * @param in_str A readable stream.
1671 * @see yy_switch_to_buffer
1673 void yyset_in (FILE * in_str )
1678 void yyset_out (FILE * out_str )
1683 int yyget_debug (void)
1685 return yy_flex_debug;
1688 void yyset_debug (int bdebug )
1690 yy_flex_debug = bdebug ;
1693 static int yy_init_globals (void)
1695 /* Initialization is the same as for the non-reentrant scanner.
1696 * This function is called from yylex_destroy(), so don't allocate here.
1699 (yy_buffer_stack) = 0;
1700 (yy_buffer_stack_top) = 0;
1701 (yy_buffer_stack_max) = 0;
1702 (yy_c_buf_p) = (char *) 0;
1706 /* Defined in main.c */
1715 /* For future reference: Set errno on error, since we are called by
1721 /* yylex_destroy is for both reentrant and non-reentrant scanners. */
1722 int yylex_destroy (void)
1725 /* Pop the buffer stack, destroying each element. */
1726 while(YY_CURRENT_BUFFER){
1727 yy_delete_buffer(YY_CURRENT_BUFFER );
1728 YY_CURRENT_BUFFER_LVALUE = NULL;
1729 yypop_buffer_state();
1732 /* Destroy the stack itself. */
1733 yyfree((yy_buffer_stack) );
1734 (yy_buffer_stack) = NULL;
1736 /* Reset the globals. This is important in a non-reentrant scanner so the next time
1737 * yylex() is called, initialization will occur. */
1744 * Internal utility routines.
1748 static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
1751 for ( i = 0; i < n; ++i )
1756 #ifdef YY_NEED_STRLEN
1757 static int yy_flex_strlen (yyconst char * s )
1760 for ( n = 0; s[n]; ++n )
1767 void *yyalloc (yy_size_t size )
1769 return (void *) malloc( size );
1772 void *yyrealloc (void * ptr, yy_size_t size )
1774 /* The cast to (char *) in the following accommodates both
1775 * implementations that use char* generic pointers, and those
1776 * that use void* generic pointers. It works with the latter
1777 * because both ANSI C and C++ allow castless assignment from
1778 * any pointer type to void*, and deal with argument conversions
1779 * as though doing an assignment.
1781 return (void *) realloc( (char *) ptr, size );
1784 void yyfree (void * ptr )
1786 free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
1789 #define YYTABLES_NAME "yytables"
1791 #line 50 "pam_conv_l.l"