Import Linux-PAM.
[profile/ivi/pam.git] / conf / pam_conv1 / pam_conv_l.c
1
2 #line 3 "pam_conv_l.c"
3
4 #define  YY_INT_ALIGNED short int
5
6 /* A lexical scanner generated by flex */
7
8 #define FLEX_SCANNER
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
13 #define FLEX_BETA
14 #endif
15
16 /* First, we deal with  platform-specific or compiler-specific issues. */
17
18 /* begin standard C headers. */
19 #include <stdio.h>
20 #include <string.h>
21 #include <errno.h>
22 #include <stdlib.h>
23
24 /* end standard C headers. */
25
26 /* flex integer type definitions */
27
28 #ifndef FLEXINT_H
29 #define FLEXINT_H
30
31 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
32
33 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
34
35 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
36  * if you want the limit (max/min) macros for int types. 
37  */
38 #ifndef __STDC_LIMIT_MACROS
39 #define __STDC_LIMIT_MACROS 1
40 #endif
41
42 #include <inttypes.h>
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;
49 #else
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;
56 #endif /* ! C99 */
57
58 /* Limits of integral types. */
59 #ifndef INT8_MIN
60 #define INT8_MIN               (-128)
61 #endif
62 #ifndef INT16_MIN
63 #define INT16_MIN              (-32767-1)
64 #endif
65 #ifndef INT32_MIN
66 #define INT32_MIN              (-2147483647-1)
67 #endif
68 #ifndef INT8_MAX
69 #define INT8_MAX               (127)
70 #endif
71 #ifndef INT16_MAX
72 #define INT16_MAX              (32767)
73 #endif
74 #ifndef INT32_MAX
75 #define INT32_MAX              (2147483647)
76 #endif
77 #ifndef UINT8_MAX
78 #define UINT8_MAX              (255U)
79 #endif
80 #ifndef UINT16_MAX
81 #define UINT16_MAX             (65535U)
82 #endif
83 #ifndef UINT32_MAX
84 #define UINT32_MAX             (4294967295U)
85 #endif
86
87 #endif /* ! FLEXINT_H */
88
89 #ifdef __cplusplus
90
91 /* The "const" storage-class-modifier is valid. */
92 #define YY_USE_CONST
93
94 #else   /* ! __cplusplus */
95
96 /* C99 requires __STDC__ to be defined as 1. */
97 #if defined (__STDC__)
98
99 #define YY_USE_CONST
100
101 #endif  /* defined (__STDC__) */
102 #endif  /* ! __cplusplus */
103
104 #ifdef YY_USE_CONST
105 #define yyconst const
106 #else
107 #define yyconst
108 #endif
109
110 /* Returned upon end-of-file. */
111 #define YY_NULL 0
112
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
116  * double cast.
117  */
118 #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
119
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.
123  */
124 #define BEGIN (yy_start) = 1 + 2 *
125
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
128  * compatibility.
129  */
130 #define YY_START (((yy_start) - 1) / 2)
131 #define YYSTATE YY_START
132
133 /* Action number for EOF rule of a given start state. */
134 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
135
136 /* Special action meaning "start processing a new file". */
137 #define YY_NEW_FILE yyrestart(yyin  )
138
139 #define YY_END_OF_BUFFER_CHAR 0
140
141 /* Size of default input buffer. */
142 #ifndef YY_BUF_SIZE
143 #define YY_BUF_SIZE 16384
144 #endif
145
146 /* The state buf must be large enough to hold one state per character in the main buffer.
147  */
148 #define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
149
150 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
151 #define YY_TYPEDEF_YY_BUFFER_STATE
152 typedef struct yy_buffer_state *YY_BUFFER_STATE;
153 #endif
154
155 extern int yyleng;
156
157 extern FILE *yyin, *yyout;
158
159 #define EOB_ACT_CONTINUE_SCAN 0
160 #define EOB_ACT_END_OF_FILE 1
161 #define EOB_ACT_LAST_MATCH 2
162
163     #define YY_LESS_LINENO(n)
164     
165 /* Return all but the first "n" matched characters back to the input stream. */
166 #define yyless(n) \
167         do \
168                 { \
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 */ \
176                 } \
177         while ( 0 )
178
179 #define unput(c) yyunput( c, (yytext_ptr)  )
180
181 #ifndef YY_TYPEDEF_YY_SIZE_T
182 #define YY_TYPEDEF_YY_SIZE_T
183 typedef size_t yy_size_t;
184 #endif
185
186 #ifndef YY_STRUCT_YY_BUFFER_STATE
187 #define YY_STRUCT_YY_BUFFER_STATE
188 struct yy_buffer_state
189         {
190         FILE *yy_input_file;
191
192         char *yy_ch_buf;                /* input buffer */
193         char *yy_buf_pos;               /* current position in input buffer */
194
195         /* Size of input buffer in bytes, not including room for EOB
196          * characters.
197          */
198         yy_size_t yy_buf_size;
199
200         /* Number of characters read into yy_ch_buf, not including EOB
201          * characters.
202          */
203         int yy_n_chars;
204
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
207          * delete it.
208          */
209         int yy_is_our_buffer;
210
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
214          * each newline.
215          */
216         int yy_is_interactive;
217
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
220          * not.
221          */
222         int yy_at_bol;
223
224     int yy_bs_lineno; /**< The line count. */
225     int yy_bs_column; /**< The column count. */
226     
227         /* Whether to try to fill the input buffer when we reach the
228          * end of it.
229          */
230         int yy_fill_buffer;
231
232         int yy_buffer_status;
233
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.
241          *
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.
245          */
246 #define YY_BUFFER_EOF_PENDING 2
247
248         };
249 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
250
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. */
255
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
258  * "scanner state".
259  *
260  * Returns the top of the stack, or NULL.
261  */
262 #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
263                           ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
264                           : NULL)
265
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.
268  */
269 #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
270
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 */
274 int yyleng;
275
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 */
280
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 ...
283  */
284 static int yy_did_buffer_switch_on_eof;
285
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 );
293
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  );
297
298 #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER )
299
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  );
303
304 void *yyalloc (yy_size_t  );
305 void *yyrealloc (void *,yy_size_t  );
306 void yyfree (void *  );
307
308 #define yy_new_buffer yy_create_buffer
309
310 #define yy_set_interactive(is_interactive) \
311         { \
312         if ( ! YY_CURRENT_BUFFER ){ \
313         yyensure_buffer_stack (); \
314                 YY_CURRENT_BUFFER_LVALUE =    \
315             yy_create_buffer(yyin,YY_BUF_SIZE ); \
316         } \
317         YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
318         }
319
320 #define yy_set_bol(at_bol) \
321         { \
322         if ( ! YY_CURRENT_BUFFER ){\
323         yyensure_buffer_stack (); \
324                 YY_CURRENT_BUFFER_LVALUE =    \
325             yy_create_buffer(yyin,YY_BUF_SIZE ); \
326         } \
327         YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
328         }
329
330 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
331
332 /* Begin user sect3 */
333
334 typedef unsigned char YY_CHAR;
335
336 FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
337
338 typedef int yy_state_type;
339
340 extern int yylineno;
341
342 int yylineno = 1;
343
344 extern char *yytext;
345 #define yytext_ptr yytext
346
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[]  );
351
352 /* Done after the current pattern has been matched and before the
353  * corresponding action - sets up yytext.
354  */
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; \
359         *yy_cp = '\0'; \
360         (yy_c_buf_p) = yy_cp;
361
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. */
366 struct yy_trans_info
367         {
368         flex_int32_t yy_verify;
369         flex_int32_t yy_nxt;
370         };
371 static yyconst flex_int16_t yy_accept[21] =
372     {   0,
373         0,    0,    7,    3,    4,    5,    1,    3,    3,    3,
374         4,    1,    1,    1,    3,    2,    3,    1,    1,    0
375     } ;
376
377 static yyconst flex_int32_t yy_ec[256] =
378     {   0,
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,
389
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,
400
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,
406         1,    1,    1,    1,    1
407     } ;
408
409 static yyconst flex_int32_t yy_meta[6] =
410     {   0,
411         1,    2,    3,    1,    1
412     } ;
413
414 static yyconst flex_int16_t yy_base[24] =
415     {   0,
416         0,    0,   26,   20,    0,   27,    5,   10,   19,   20,
417         0,    0,    0,   15,    0,   27,    0,    0,    0,   27,
418        17,    6,   20
419     } ;
420
421 static yyconst flex_int16_t yy_def[24] =
422     {   0,
423        20,    1,   20,   21,   22,   20,   20,   20,   21,    8,
424        22,    7,   23,   20,    9,   20,   10,    7,   14,    0,
425        20,   20,   20
426     } ;
427
428 static yyconst flex_int16_t yy_nxt[33] =
429     {   0,
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,
433        20,   20
434     } ;
435
436 static yyconst flex_int16_t yy_chk[33] =
437     {   0,
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,
441        20,   20
442     } ;
443
444 static yy_state_type yy_last_accepting_state;
445 static char *yy_last_accepting_cpos;
446
447 extern int yy_flex_debug;
448 int yy_flex_debug = 0;
449
450 /* The intent behind this definition is that it'll catch
451  * any uses of REJECT which flex missed.
452  */
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
457 char *yytext;
458 #line 1 "pam_conv_l.l"
459 #line 3 "pam_conv_l.l"
460 /*
461  * $Id$
462  *
463  * Copyright (c) Andrew G. Morgan 1997 <morgan@parc.power.net>
464  *
465  * This file is covered by the Linux-PAM License (which should be
466  * distributed with this file.)
467  */
468
469     static const char lexid[]=
470         "$Id$\n"
471         "Copyright (c) Andrew G. Morgan 1997 <morgan@parc.power.net>\n";
472
473 #ifdef HAVE_CONFIG_H
474 #  include <config.h>
475 #endif
476
477 #include <stdio.h>
478
479 #include "pam_conv_y.h"
480
481     extern int current_line;
482 #line 483 "pam_conv_l.c"
483
484 #define INITIAL 0
485
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.
490  */
491 #include <unistd.h>
492 #endif
493
494 #ifndef YY_EXTRA_TYPE
495 #define YY_EXTRA_TYPE void *
496 #endif
497
498 static int yy_init_globals (void );
499
500 /* Accessor methods to globals.
501    These are made visible to non-reentrant scanners for convenience. */
502
503 int yylex_destroy (void );
504
505 int yyget_debug (void );
506
507 void yyset_debug (int debug_flag  );
508
509 YY_EXTRA_TYPE yyget_extra (void );
510
511 void yyset_extra (YY_EXTRA_TYPE user_defined  );
512
513 FILE *yyget_in (void );
514
515 void yyset_in  (FILE * in_str  );
516
517 FILE *yyget_out (void );
518
519 void yyset_out  (FILE * out_str  );
520
521 int yyget_leng (void );
522
523 char *yyget_text (void );
524
525 int yyget_lineno (void );
526
527 void yyset_lineno (int line_number  );
528
529 /* Macros after this point can all be overridden by user definitions in
530  * section 1.
531  */
532
533 #ifndef YY_SKIP_YYWRAP
534 #ifdef __cplusplus
535 extern "C" int yywrap (void );
536 #else
537 extern int yywrap (void );
538 #endif
539 #endif
540
541     static void yyunput (int c,char *buf_ptr  );
542     
543 #ifndef yytext_ptr
544 static void yy_flex_strncpy (char *,yyconst char *,int );
545 #endif
546
547 #ifdef YY_NEED_STRLEN
548 static int yy_flex_strlen (yyconst char * );
549 #endif
550
551 #ifndef YY_NO_INPUT
552
553 #ifdef __cplusplus
554 static int yyinput (void );
555 #else
556 static int input (void );
557 #endif
558
559 #endif
560
561 /* Amount of stuff to slurp up with each read. */
562 #ifndef YY_READ_BUF_SIZE
563 #define YY_READ_BUF_SIZE 8192
564 #endif
565
566 /* Copy whatever the last rule matched to the standard output. */
567 #ifndef ECHO
568 /* This used to be an fputs(), but since the string might contain NUL's,
569  * we now use fwrite().
570  */
571 #define ECHO fwrite( yytext, yyleng, 1, yyout )
572 #endif
573
574 /* Gets input and stuffs it into "buf".  number of characters read, or YY_NULL,
575  * is returned in "result".
576  */
577 #ifndef YY_INPUT
578 #define YY_INPUT(buf,result,max_size) \
579         if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
580                 { \
581                 int c = '*'; \
582                 int n; \
583                 for ( n = 0; n < max_size && \
584                              (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
585                         buf[n] = (char) c; \
586                 if ( c == '\n' ) \
587                         buf[n++] = (char) c; \
588                 if ( c == EOF && ferror( yyin ) ) \
589                         YY_FATAL_ERROR( "input in flex scanner failed" ); \
590                 result = n; \
591                 } \
592         else \
593                 { \
594                 errno=0; \
595                 while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
596                         { \
597                         if( errno != EINTR) \
598                                 { \
599                                 YY_FATAL_ERROR( "input in flex scanner failed" ); \
600                                 break; \
601                                 } \
602                         errno=0; \
603                         clearerr(yyin); \
604                         } \
605                 }\
606 \
607
608 #endif
609
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.
613  */
614 #ifndef yyterminate
615 #define yyterminate() return YY_NULL
616 #endif
617
618 /* Number of entries by which start-condition stack grows. */
619 #ifndef YY_START_STACK_INCR
620 #define YY_START_STACK_INCR 25
621 #endif
622
623 /* Report a fatal error. */
624 #ifndef YY_FATAL_ERROR
625 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
626 #endif
627
628 /* end tables serialization structures and prototypes */
629
630 /* Default declaration of generated scanner - a define so the user can
631  * easily add parameters.
632  */
633 #ifndef YY_DECL
634 #define YY_DECL_IS_OURS 1
635
636 extern int yylex (void);
637
638 #define YY_DECL int yylex (void)
639 #endif /* !YY_DECL */
640
641 /* Code executed at the beginning of each rule, after yytext and yyleng
642  * have been set up.
643  */
644 #ifndef YY_USER_ACTION
645 #define YY_USER_ACTION
646 #endif
647
648 /* Code executed at the end of each rule. */
649 #ifndef YY_BREAK
650 #define YY_BREAK break;
651 #endif
652
653 #define YY_RULE_SETUP \
654         YY_USER_ACTION
655
656 /** The main scanner function which does all the work.
657  */
658 YY_DECL
659 {
660         register yy_state_type yy_current_state;
661         register char *yy_cp, *yy_bp;
662         register int yy_act;
663     
664 #line 27 "pam_conv_l.l"
665
666
667 #line 668 "pam_conv_l.c"
668
669         if ( !(yy_init) )
670                 {
671                 (yy_init) = 1;
672
673 #ifdef YY_USER_INIT
674                 YY_USER_INIT;
675 #endif
676
677                 if ( ! (yy_start) )
678                         (yy_start) = 1; /* first start state */
679
680                 if ( ! yyin )
681                         yyin = stdin;
682
683                 if ( ! yyout )
684                         yyout = stdout;
685
686                 if ( ! YY_CURRENT_BUFFER ) {
687                         yyensure_buffer_stack ();
688                         YY_CURRENT_BUFFER_LVALUE =
689                                 yy_create_buffer(yyin,YY_BUF_SIZE );
690                 }
691
692                 yy_load_buffer_state( );
693                 }
694
695         while ( 1 )             /* loops until end-of-file is reached */
696                 {
697                 yy_cp = (yy_c_buf_p);
698
699                 /* Support of yytext. */
700                 *yy_cp = (yy_hold_char);
701
702                 /* yy_bp points to the position in yy_ch_buf of the start of
703                  * the current run.
704                  */
705                 yy_bp = yy_cp;
706
707                 yy_current_state = (yy_start);
708 yy_match:
709                 do
710                         {
711                         register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
712                         if ( yy_accept[yy_current_state] )
713                                 {
714                                 (yy_last_accepting_state) = yy_current_state;
715                                 (yy_last_accepting_cpos) = yy_cp;
716                                 }
717                         while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
718                                 {
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];
722                                 }
723                         yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
724                         ++yy_cp;
725                         }
726                 while ( yy_base[yy_current_state] != 27 );
727
728 yy_find_action:
729                 yy_act = yy_accept[yy_current_state];
730                 if ( yy_act == 0 )
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];
735                         }
736
737                 YY_DO_BEFORE_ACTION;
738
739 do_action:      /* This label is used only to access EOF actions. */
740
741                 switch ( yy_act )
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);
748                         goto yy_find_action;
749
750 case 1:
751 YY_RULE_SETUP
752 #line 29 "pam_conv_l.l"
753 ; /* skip comments (sorry) */
754         YY_BREAK
755 case 2:
756 /* rule 2 can match eol */
757 YY_RULE_SETUP
758 #line 31 "pam_conv_l.l"
759 {
760     ++current_line;
761 }
762         YY_BREAK
763 case 3:
764 YY_RULE_SETUP
765 #line 35 "pam_conv_l.l"
766 {
767     return TOK;
768 }
769         YY_BREAK
770 case 4:
771 YY_RULE_SETUP
772 #line 39 "pam_conv_l.l"
773 ; /* Ignore */
774         YY_BREAK
775 case YY_STATE_EOF(INITIAL):
776 #line 41 "pam_conv_l.l"
777 {
778     return EOFILE;
779 }
780         YY_BREAK
781 case 5:
782 /* rule 5 can match eol */
783 YY_RULE_SETUP
784 #line 45 "pam_conv_l.l"
785 {
786     ++current_line;
787     return NL;
788 }
789         YY_BREAK
790 case 6:
791 YY_RULE_SETUP
792 #line 50 "pam_conv_l.l"
793 ECHO;
794         YY_BREAK
795 #line 796 "pam_conv_l.c"
796
797         case YY_END_OF_BUFFER:
798                 {
799                 /* Amount of text matched not including the EOB char. */
800                 int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
801
802                 /* Undo the effects of YY_DO_BEFORE_ACTION. */
803                 *yy_cp = (yy_hold_char);
804                 YY_RESTORE_YY_MORE_OFFSET
805
806                 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
807                         {
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.
816                          */
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;
820                         }
821
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
827                  * in input().
828                  */
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;
832
833                         (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
834
835                         yy_current_state = yy_get_previous_state(  );
836
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).
844                          */
845
846                         yy_next_state = yy_try_NUL_trans( yy_current_state );
847
848                         yy_bp = (yytext_ptr) + YY_MORE_ADJ;
849
850                         if ( yy_next_state )
851                                 {
852                                 /* Consume the NUL. */
853                                 yy_cp = ++(yy_c_buf_p);
854                                 yy_current_state = yy_next_state;
855                                 goto yy_match;
856                                 }
857
858                         else
859                                 {
860                                 yy_cp = (yy_c_buf_p);
861                                 goto yy_find_action;
862                                 }
863                         }
864
865                 else switch ( yy_get_next_buffer(  ) )
866                         {
867                         case EOB_ACT_END_OF_FILE:
868                                 {
869                                 (yy_did_buffer_switch_on_eof) = 0;
870
871                                 if ( yywrap( ) )
872                                         {
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.
881                                          */
882                                         (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
883
884                                         yy_act = YY_STATE_EOF(YY_START);
885                                         goto do_action;
886                                         }
887
888                                 else
889                                         {
890                                         if ( ! (yy_did_buffer_switch_on_eof) )
891                                                 YY_NEW_FILE;
892                                         }
893                                 break;
894                                 }
895
896                         case EOB_ACT_CONTINUE_SCAN:
897                                 (yy_c_buf_p) =
898                                         (yytext_ptr) + yy_amount_of_matched_text;
899
900                                 yy_current_state = yy_get_previous_state(  );
901
902                                 yy_cp = (yy_c_buf_p);
903                                 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
904                                 goto yy_match;
905
906                         case EOB_ACT_LAST_MATCH:
907                                 (yy_c_buf_p) =
908                                 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
909
910                                 yy_current_state = yy_get_previous_state(  );
911
912                                 yy_cp = (yy_c_buf_p);
913                                 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
914                                 goto yy_find_action;
915                         }
916                 break;
917                 }
918
919         default:
920                 YY_FATAL_ERROR(
921                         "fatal flex scanner internal error--no action found" );
922         } /* end of action switch */
923                 } /* end of scanning one token */
924 } /* end of yylex */
925
926 /* yy_get_next_buffer - try to read in a new buffer
927  *
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
932  */
933 static int yy_get_next_buffer (void)
934 {
935         register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
936         register char *source = (yytext_ptr);
937         register int number_to_move, i;
938         int ret_val;
939
940         if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
941                 YY_FATAL_ERROR(
942                 "fatal flex scanner internal error--end of buffer missed" );
943
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 )
947                         {
948                         /* We matched a single character, the EOB, so
949                          * treat this as a final EOF.
950                          */
951                         return EOB_ACT_END_OF_FILE;
952                         }
953
954                 else
955                         {
956                         /* We matched some text prior to the EOB, first
957                          * process it.
958                          */
959                         return EOB_ACT_LAST_MATCH;
960                         }
961                 }
962
963         /* Try to read more data. */
964
965         /* First move last chars to start of buffer. */
966         number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
967
968         for ( i = 0; i < number_to_move; ++i )
969                 *(dest++) = *(source++);
970
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,
973                  * just force an EOF
974                  */
975                 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
976
977         else
978                 {
979                         int num_to_read =
980                         YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
981
982                 while ( num_to_read <= 0 )
983                         { /* Not enough room in the buffer - grow it. */
984
985                         /* just a shorter name for the current buffer */
986                         YY_BUFFER_STATE b = YY_CURRENT_BUFFER;
987
988                         int yy_c_buf_p_offset =
989                                 (int) ((yy_c_buf_p) - b->yy_ch_buf);
990
991                         if ( b->yy_is_our_buffer )
992                                 {
993                                 int new_size = b->yy_buf_size * 2;
994
995                                 if ( new_size <= 0 )
996                                         b->yy_buf_size += b->yy_buf_size / 8;
997                                 else
998                                         b->yy_buf_size *= 2;
999
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  );
1003                                 }
1004                         else
1005                                 /* Can't grow it, we don't own it. */
1006                                 b->yy_ch_buf = 0;
1007
1008                         if ( ! b->yy_ch_buf )
1009                                 YY_FATAL_ERROR(
1010                                 "fatal error - scanner input buffer overflow" );
1011
1012                         (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
1013
1014                         num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
1015                                                 number_to_move - 1;
1016
1017                         }
1018
1019                 if ( num_to_read > YY_READ_BUF_SIZE )
1020                         num_to_read = YY_READ_BUF_SIZE;
1021
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 );
1025
1026                 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1027                 }
1028
1029         if ( (yy_n_chars) == 0 )
1030                 {
1031                 if ( number_to_move == YY_MORE_ADJ )
1032                         {
1033                         ret_val = EOB_ACT_END_OF_FILE;
1034                         yyrestart(yyin  );
1035                         }
1036
1037                 else
1038                         {
1039                         ret_val = EOB_ACT_LAST_MATCH;
1040                         YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
1041                                 YY_BUFFER_EOF_PENDING;
1042                         }
1043                 }
1044
1045         else
1046                 ret_val = EOB_ACT_CONTINUE_SCAN;
1047
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()" );
1054         }
1055
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;
1059
1060         (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
1061
1062         return ret_val;
1063 }
1064
1065 /* yy_get_previous_state - get the state just before the EOB char was reached */
1066
1067     static yy_state_type yy_get_previous_state (void)
1068 {
1069         register yy_state_type yy_current_state;
1070         register char *yy_cp;
1071     
1072         yy_current_state = (yy_start);
1073
1074         for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
1075                 {
1076                 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1077                 if ( yy_accept[yy_current_state] )
1078                         {
1079                         (yy_last_accepting_state) = yy_current_state;
1080                         (yy_last_accepting_cpos) = yy_cp;
1081                         }
1082                 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1083                         {
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];
1087                         }
1088                 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1089                 }
1090
1091         return yy_current_state;
1092 }
1093
1094 /* yy_try_NUL_trans - try to make a transition on the NUL character
1095  *
1096  * synopsis
1097  *      next_state = yy_try_NUL_trans( current_state );
1098  */
1099     static yy_state_type yy_try_NUL_trans  (yy_state_type yy_current_state )
1100 {
1101         register int yy_is_jam;
1102         register char *yy_cp = (yy_c_buf_p);
1103
1104         register YY_CHAR yy_c = 1;
1105         if ( yy_accept[yy_current_state] )
1106                 {
1107                 (yy_last_accepting_state) = yy_current_state;
1108                 (yy_last_accepting_cpos) = yy_cp;
1109                 }
1110         while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1111                 {
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];
1115                 }
1116         yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1117         yy_is_jam = (yy_current_state == 20);
1118
1119         return yy_is_jam ? 0 : yy_current_state;
1120 }
1121
1122     static void yyunput (int c, register char * yy_bp )
1123 {
1124         register char *yy_cp;
1125     
1126     yy_cp = (yy_c_buf_p);
1127
1128         /* undo effects of setting up yytext */
1129         *yy_cp = (yy_hold_char);
1130
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];
1139
1140                 while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1141                         *--dest = *--source;
1142
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;
1147
1148                 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
1149                         YY_FATAL_ERROR( "flex scanner push-back overflow" );
1150                 }
1151
1152         *--yy_cp = (char) c;
1153
1154         (yytext_ptr) = yy_bp;
1155         (yy_hold_char) = *yy_cp;
1156         (yy_c_buf_p) = yy_cp;
1157 }
1158
1159 #ifndef YY_NO_INPUT
1160 #ifdef __cplusplus
1161     static int yyinput (void)
1162 #else
1163     static int input  (void)
1164 #endif
1165
1166 {
1167         int c;
1168     
1169         *(yy_c_buf_p) = (yy_hold_char);
1170
1171         if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
1172                 {
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.
1176                  */
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';
1180
1181                 else
1182                         { /* need more input */
1183                         int offset = (yy_c_buf_p) - (yytext_ptr);
1184                         ++(yy_c_buf_p);
1185
1186                         switch ( yy_get_next_buffer(  ) )
1187                                 {
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.
1197                                          */
1198
1199                                         /* Reset buffer status. */
1200                                         yyrestart(yyin );
1201
1202                                         /*FALLTHROUGH*/
1203
1204                                 case EOB_ACT_END_OF_FILE:
1205                                         {
1206                                         if ( yywrap( ) )
1207                                                 return EOF;
1208
1209                                         if ( ! (yy_did_buffer_switch_on_eof) )
1210                                                 YY_NEW_FILE;
1211 #ifdef __cplusplus
1212                                         return yyinput();
1213 #else
1214                                         return input();
1215 #endif
1216                                         }
1217
1218                                 case EOB_ACT_CONTINUE_SCAN:
1219                                         (yy_c_buf_p) = (yytext_ptr) + offset;
1220                                         break;
1221                                 }
1222                         }
1223                 }
1224
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);
1228
1229         return c;
1230 }
1231 #endif  /* ifndef YY_NO_INPUT */
1232
1233 /** Immediately switch to a different input stream.
1234  * @param input_file A readable stream.
1235  * 
1236  * @note This function does not reset the start condition to @c INITIAL .
1237  */
1238     void yyrestart  (FILE * input_file )
1239 {
1240     
1241         if ( ! YY_CURRENT_BUFFER ){
1242         yyensure_buffer_stack ();
1243                 YY_CURRENT_BUFFER_LVALUE =
1244             yy_create_buffer(yyin,YY_BUF_SIZE );
1245         }
1246
1247         yy_init_buffer(YY_CURRENT_BUFFER,input_file );
1248         yy_load_buffer_state( );
1249 }
1250
1251 /** Switch to a different input buffer.
1252  * @param new_buffer The new input buffer.
1253  * 
1254  */
1255     void yy_switch_to_buffer  (YY_BUFFER_STATE  new_buffer )
1256 {
1257     
1258         /* TODO. We should be able to replace this entire function body
1259          * with
1260          *              yypop_buffer_state();
1261          *              yypush_buffer_state(new_buffer);
1262      */
1263         yyensure_buffer_stack ();
1264         if ( YY_CURRENT_BUFFER == new_buffer )
1265                 return;
1266
1267         if ( YY_CURRENT_BUFFER )
1268                 {
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);
1273                 }
1274
1275         YY_CURRENT_BUFFER_LVALUE = new_buffer;
1276         yy_load_buffer_state( );
1277
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.
1282          */
1283         (yy_did_buffer_switch_on_eof) = 1;
1284 }
1285
1286 static void yy_load_buffer_state  (void)
1287 {
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);
1292 }
1293
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.
1297  * 
1298  * @return the allocated buffer state.
1299  */
1300     YY_BUFFER_STATE yy_create_buffer  (FILE * file, int  size )
1301 {
1302         YY_BUFFER_STATE b;
1303     
1304         b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state )  );
1305         if ( ! b )
1306                 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1307
1308         b->yy_buf_size = size;
1309
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.
1312          */
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()" );
1316
1317         b->yy_is_our_buffer = 1;
1318
1319         yy_init_buffer(b,file );
1320
1321         return b;
1322 }
1323
1324 /** Destroy the buffer.
1325  * @param b a buffer created with yy_create_buffer()
1326  * 
1327  */
1328     void yy_delete_buffer (YY_BUFFER_STATE  b )
1329 {
1330     
1331         if ( ! b )
1332                 return;
1333
1334         if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
1335                 YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
1336
1337         if ( b->yy_is_our_buffer )
1338                 yyfree((void *) b->yy_ch_buf  );
1339
1340         yyfree((void *) b  );
1341 }
1342
1343 #ifndef __cplusplus
1344 extern int isatty (int );
1345 #endif /* __cplusplus */
1346     
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.
1350  */
1351     static void yy_init_buffer  (YY_BUFFER_STATE  b, FILE * file )
1352
1353 {
1354         int oerrno = errno;
1355     
1356         yy_flush_buffer(b );
1357
1358         b->yy_input_file = file;
1359         b->yy_fill_buffer = 1;
1360
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.
1364      */
1365     if (b != YY_CURRENT_BUFFER){
1366         b->yy_bs_lineno = 1;
1367         b->yy_bs_column = 0;
1368     }
1369
1370         b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
1371     
1372         errno = oerrno;
1373 }
1374
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.
1377  * 
1378  */
1379     void yy_flush_buffer (YY_BUFFER_STATE  b )
1380 {
1381         if ( ! b )
1382                 return;
1383
1384         b->yy_n_chars = 0;
1385
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.
1389          */
1390         b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
1391         b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
1392
1393         b->yy_buf_pos = &b->yy_ch_buf[0];
1394
1395         b->yy_at_bol = 1;
1396         b->yy_buffer_status = YY_BUFFER_NEW;
1397
1398         if ( b == YY_CURRENT_BUFFER )
1399                 yy_load_buffer_state( );
1400 }
1401
1402 /** Pushes the new state onto the stack. The new state becomes
1403  *  the current state. This function will allocate the stack
1404  *  if necessary.
1405  *  @param new_buffer The new state.
1406  *  
1407  */
1408 void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
1409 {
1410         if (new_buffer == NULL)
1411                 return;
1412
1413         yyensure_buffer_stack();
1414
1415         /* This block is copied from yy_switch_to_buffer. */
1416         if ( YY_CURRENT_BUFFER )
1417                 {
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);
1422                 }
1423
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;
1428
1429         /* copied from yy_switch_to_buffer. */
1430         yy_load_buffer_state( );
1431         (yy_did_buffer_switch_on_eof) = 1;
1432 }
1433
1434 /** Removes and deletes the top of the stack, if present.
1435  *  The next element becomes the new top.
1436  *  
1437  */
1438 void yypop_buffer_state (void)
1439 {
1440         if (!YY_CURRENT_BUFFER)
1441                 return;
1442
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);
1447
1448         if (YY_CURRENT_BUFFER) {
1449                 yy_load_buffer_state( );
1450                 (yy_did_buffer_switch_on_eof) = 1;
1451         }
1452 }
1453
1454 /* Allocates the stack if it does not exist.
1455  *  Guarantees space for at least one push.
1456  */
1457 static void yyensure_buffer_stack (void)
1458 {
1459         int num_to_alloc;
1460     
1461         if (!(yy_buffer_stack)) {
1462
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.
1466          */
1467                 num_to_alloc = 1;
1468                 (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
1469                                                                 (num_to_alloc * sizeof(struct yy_buffer_state*)
1470                                                                 );
1471                 if ( ! (yy_buffer_stack) )
1472                         YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
1473                                                                   
1474                 memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
1475                                 
1476                 (yy_buffer_stack_max) = num_to_alloc;
1477                 (yy_buffer_stack_top) = 0;
1478                 return;
1479         }
1480
1481         if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
1482
1483                 /* Increase the buffer to prepare for a possible push. */
1484                 int grow_size = 8 /* arbitrary grow size */;
1485
1486                 num_to_alloc = (yy_buffer_stack_max) + grow_size;
1487                 (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
1488                                                                 ((yy_buffer_stack),
1489                                                                 num_to_alloc * sizeof(struct yy_buffer_state*)
1490                                                                 );
1491                 if ( ! (yy_buffer_stack) )
1492                         YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
1493
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;
1497         }
1498 }
1499
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
1503  * 
1504  * @return the newly allocated buffer state object. 
1505  */
1506 YY_BUFFER_STATE yy_scan_buffer  (char * base, yy_size_t  size )
1507 {
1508         YY_BUFFER_STATE b;
1509     
1510         if ( size < 2 ||
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. */
1514                 return 0;
1515
1516         b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state )  );
1517         if ( ! b )
1518                 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
1519
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;
1526         b->yy_at_bol = 1;
1527         b->yy_fill_buffer = 0;
1528         b->yy_buffer_status = YY_BUFFER_NEW;
1529
1530         yy_switch_to_buffer(b  );
1531
1532         return b;
1533 }
1534
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
1538  * 
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.
1542  */
1543 YY_BUFFER_STATE yy_scan_string (yyconst char * yystr )
1544 {
1545     
1546         return yy_scan_bytes(yystr,strlen(yystr) );
1547 }
1548
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.
1553  * 
1554  * @return the newly allocated buffer state object.
1555  */
1556 YY_BUFFER_STATE yy_scan_bytes  (yyconst char * yybytes, int  _yybytes_len )
1557 {
1558         YY_BUFFER_STATE b;
1559         char *buf;
1560         yy_size_t n;
1561         int i;
1562     
1563         /* Get memory for full buffer, including space for trailing EOB's. */
1564         n = _yybytes_len + 2;
1565         buf = (char *) yyalloc(n  );
1566         if ( ! buf )
1567                 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
1568
1569         for ( i = 0; i < _yybytes_len; ++i )
1570                 buf[i] = yybytes[i];
1571
1572         buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
1573
1574         b = yy_scan_buffer(buf,n );
1575         if ( ! b )
1576                 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
1577
1578         /* It's okay to grow etc. this buffer, and we should throw it
1579          * away when we're done.
1580          */
1581         b->yy_is_our_buffer = 1;
1582
1583         return b;
1584 }
1585
1586 #ifndef YY_EXIT_FAILURE
1587 #define YY_EXIT_FAILURE 2
1588 #endif
1589
1590 static void yy_fatal_error (yyconst char* msg )
1591 {
1592         (void) fprintf( stderr, "%s\n", msg );
1593         exit( YY_EXIT_FAILURE );
1594 }
1595
1596 /* Redefine yyless() so it works in section 3 code. */
1597
1598 #undef yyless
1599 #define yyless(n) \
1600         do \
1601                 { \
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; \
1610                 } \
1611         while ( 0 )
1612
1613 /* Accessor  methods (get/set functions) to struct members. */
1614
1615 /** Get the current line number.
1616  * 
1617  */
1618 int yyget_lineno  (void)
1619 {
1620         
1621     return yylineno;
1622 }
1623
1624 /** Get the input stream.
1625  * 
1626  */
1627 FILE *yyget_in  (void)
1628 {
1629         return yyin;
1630 }
1631
1632 /** Get the output stream.
1633  * 
1634  */
1635 FILE *yyget_out  (void)
1636 {
1637         return yyout;
1638 }
1639
1640 /** Get the length of the current token.
1641  * 
1642  */
1643 int yyget_leng  (void)
1644 {
1645         return yyleng;
1646 }
1647
1648 /** Get the current token.
1649  * 
1650  */
1651
1652 char *yyget_text  (void)
1653 {
1654         return yytext;
1655 }
1656
1657 /** Set the current line number.
1658  * @param line_number
1659  * 
1660  */
1661 void yyset_lineno (int  line_number )
1662 {
1663     
1664     yylineno = line_number;
1665 }
1666
1667 /** Set the input stream. This does not discard the current
1668  * input buffer.
1669  * @param in_str A readable stream.
1670  * 
1671  * @see yy_switch_to_buffer
1672  */
1673 void yyset_in (FILE *  in_str )
1674 {
1675         yyin = in_str ;
1676 }
1677
1678 void yyset_out (FILE *  out_str )
1679 {
1680         yyout = out_str ;
1681 }
1682
1683 int yyget_debug  (void)
1684 {
1685         return yy_flex_debug;
1686 }
1687
1688 void yyset_debug (int  bdebug )
1689 {
1690         yy_flex_debug = bdebug ;
1691 }
1692
1693 static int yy_init_globals (void)
1694 {
1695         /* Initialization is the same as for the non-reentrant scanner.
1696      * This function is called from yylex_destroy(), so don't allocate here.
1697      */
1698
1699     (yy_buffer_stack) = 0;
1700     (yy_buffer_stack_top) = 0;
1701     (yy_buffer_stack_max) = 0;
1702     (yy_c_buf_p) = (char *) 0;
1703     (yy_init) = 0;
1704     (yy_start) = 0;
1705
1706 /* Defined in main.c */
1707 #ifdef YY_STDINIT
1708     yyin = stdin;
1709     yyout = stdout;
1710 #else
1711     yyin = (FILE *) 0;
1712     yyout = (FILE *) 0;
1713 #endif
1714
1715     /* For future reference: Set errno on error, since we are called by
1716      * yylex_init()
1717      */
1718     return 0;
1719 }
1720
1721 /* yylex_destroy is for both reentrant and non-reentrant scanners. */
1722 int yylex_destroy  (void)
1723 {
1724     
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();
1730         }
1731
1732         /* Destroy the stack itself. */
1733         yyfree((yy_buffer_stack) );
1734         (yy_buffer_stack) = NULL;
1735
1736     /* Reset the globals. This is important in a non-reentrant scanner so the next time
1737      * yylex() is called, initialization will occur. */
1738     yy_init_globals( );
1739
1740     return 0;
1741 }
1742
1743 /*
1744  * Internal utility routines.
1745  */
1746
1747 #ifndef yytext_ptr
1748 static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
1749 {
1750         register int i;
1751         for ( i = 0; i < n; ++i )
1752                 s1[i] = s2[i];
1753 }
1754 #endif
1755
1756 #ifdef YY_NEED_STRLEN
1757 static int yy_flex_strlen (yyconst char * s )
1758 {
1759         register int n;
1760         for ( n = 0; s[n]; ++n )
1761                 ;
1762
1763         return n;
1764 }
1765 #endif
1766
1767 void *yyalloc (yy_size_t  size )
1768 {
1769         return (void *) malloc( size );
1770 }
1771
1772 void *yyrealloc  (void * ptr, yy_size_t  size )
1773 {
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.
1780          */
1781         return (void *) realloc( (char *) ptr, size );
1782 }
1783
1784 void yyfree (void * ptr )
1785 {
1786         free( (char *) ptr );   /* see yyrealloc() for (char *) cast */
1787 }
1788
1789 #define YYTABLES_NAME "yytables"
1790
1791 #line 50 "pam_conv_l.l"
1792
1793
1794