diff options
Diffstat (limited to 'ipsec-tools/src/racoon/prsa_tok.c')
-rw-r--r-- | ipsec-tools/src/racoon/prsa_tok.c | 543 |
1 files changed, 281 insertions, 262 deletions
diff --git a/ipsec-tools/src/racoon/prsa_tok.c b/ipsec-tools/src/racoon/prsa_tok.c index 66dc2515..8089937a 100644 --- a/ipsec-tools/src/racoon/prsa_tok.c +++ b/ipsec-tools/src/racoon/prsa_tok.c @@ -1,29 +1,28 @@ -#line 2 "prsa_tok.c" -#line 4 "prsa_tok.c" +#line 3 "<stdout>" #define YY_INT_ALIGNED short int /* A lexical scanner generated by flex */ -#define yy_create_buffer prsa_create_buffer -#define yy_delete_buffer prsa_delete_buffer -#define yy_flex_debug prsa_flex_debug -#define yy_init_buffer prsa_init_buffer -#define yy_flush_buffer prsa_flush_buffer -#define yy_load_buffer_state prsa_load_buffer_state -#define yy_switch_to_buffer prsa_switch_to_buffer -#define yyin prsain -#define yyleng prsaleng -#define yylex prsalex -#define yylineno prsalineno -#define yyout prsaout -#define yyrestart prsarestart -#define yytext prsatext -#define yywrap prsawrap -#define yyalloc prsaalloc -#define yyrealloc prsarealloc -#define yyfree prsafree +#define yy_create_buffer racoonprsa_create_buffer +#define yy_delete_buffer racoonprsa_delete_buffer +#define yy_flex_debug racoonprsa_flex_debug +#define yy_init_buffer racoonprsa_init_buffer +#define yy_flush_buffer racoonprsa_flush_buffer +#define yy_load_buffer_state racoonprsa_load_buffer_state +#define yy_switch_to_buffer racoonprsa_switch_to_buffer +#define yyin racoonprsain +#define yyleng racoonprsaleng +#define yylex racoonprsalex +#define yylineno racoonprsalineno +#define yyout racoonprsaout +#define yyrestart racoonprsarestart +#define yytext racoonprsatext +#define yywrap racoonprsawrap +#define yyalloc racoonprsaalloc +#define yyrealloc racoonprsarealloc +#define yyfree racoonprsafree #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 @@ -35,6 +34,16 @@ /* First, we deal with platform-specific or compiler-specific issues. */ +#if defined(__FreeBSD__) +#ifndef __STDC_LIMIT_MACROS +#define __STDC_LIMIT_MACROS +#endif +#include <sys/cdefs.h> +#include <stdint.h> +#else +#define __dead2 +#endif + /* begin standard C headers. */ #include <stdio.h> #include <string.h> @@ -50,7 +59,8 @@ /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */ -#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L +#if defined(__FreeBSD__) || \ + (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, * if you want the limit (max/min) macros for int types. @@ -155,13 +165,13 @@ typedef unsigned int flex_uint32_t; #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) /* Special action meaning "start processing a new file". */ -#define YY_NEW_FILE prsarestart(prsain ) +#define YY_NEW_FILE racoonprsarestart(racoonprsain ) #define YY_END_OF_BUFFER_CHAR 0 /* Size of default input buffer. */ #ifndef YY_BUF_SIZE -#define YY_BUF_SIZE 16384 +#define YY_BUF_SIZE 1024 #endif /* The state buf must be large enough to hold one state per character in the main buffer. @@ -178,9 +188,9 @@ typedef struct yy_buffer_state *YY_BUFFER_STATE; typedef size_t yy_size_t; #endif -extern yy_size_t prsaleng; +extern yy_size_t racoonprsaleng; -extern FILE *prsain, *prsaout; +extern FILE *racoonprsain, *racoonprsaout; #define EOB_ACT_CONTINUE_SCAN 0 #define EOB_ACT_END_OF_FILE 1 @@ -192,13 +202,13 @@ extern FILE *prsain, *prsaout; #define yyless(n) \ do \ { \ - /* Undo effects of setting up prsatext. */ \ + /* Undo effects of setting up racoonprsatext. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ *yy_cp = (yy_hold_char); \ YY_RESTORE_YY_MORE_OFFSET \ (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ - YY_DO_BEFORE_ACTION; /* set up prsatext again */ \ + YY_DO_BEFORE_ACTION; /* set up racoonprsatext again */ \ } \ while ( 0 ) @@ -261,8 +271,8 @@ struct yy_buffer_state * possible backing-up. * * When we actually see the EOF, we change the status to "new" - * (via prsarestart()), so that the user can continue scanning by - * just pointing prsain at a new input file. + * (via racoonprsarestart()), so that the user can continue scanning by + * just pointing racoonprsain at a new input file. */ #define YY_BUFFER_EOF_PENDING 2 @@ -283,57 +293,58 @@ static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */ #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ : NULL) +#define yy_current_buffer YY_CURRENT_BUFFER /* Same as previous macro, but useful when we know that the buffer stack is not * NULL or when we need an lvalue. For internal use only. */ #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] -/* yy_hold_char holds the character lost when prsatext is formed. */ +/* yy_hold_char holds the character lost when racoonprsatext is formed. */ static char yy_hold_char; static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */ -yy_size_t prsaleng; +yy_size_t racoonprsaleng; /* Points to current character in buffer. */ static char *yy_c_buf_p = (char *) 0; static int yy_init = 0; /* whether we need to initialize */ static int yy_start = 0; /* start state number */ -/* Flag which is used to allow prsawrap()'s to do buffer switches - * instead of setting up a fresh prsain. A bit of a hack ... +/* Flag which is used to allow racoonprsawrap()'s to do buffer switches + * instead of setting up a fresh racoonprsain. A bit of a hack ... */ static int yy_did_buffer_switch_on_eof; -void prsarestart (FILE *input_file ); -void prsa_switch_to_buffer (YY_BUFFER_STATE new_buffer ); -YY_BUFFER_STATE prsa_create_buffer (FILE *file,int size ); -void prsa_delete_buffer (YY_BUFFER_STATE b ); -void prsa_flush_buffer (YY_BUFFER_STATE b ); -void prsapush_buffer_state (YY_BUFFER_STATE new_buffer ); -void prsapop_buffer_state (void ); +void racoonprsarestart (FILE *input_file ); +void racoonprsa_switch_to_buffer (YY_BUFFER_STATE new_buffer ); +YY_BUFFER_STATE racoonprsa_create_buffer (FILE *file,int size ); +void racoonprsa_delete_buffer (YY_BUFFER_STATE b ); +void racoonprsa_flush_buffer (YY_BUFFER_STATE b ); +void racoonprsapush_buffer_state (YY_BUFFER_STATE new_buffer ); +void racoonprsapop_buffer_state (void ); -static void prsaensure_buffer_stack (void ); -static void prsa_load_buffer_state (void ); -static void prsa_init_buffer (YY_BUFFER_STATE b,FILE *file ); +static void racoonprsaensure_buffer_stack (void ); +static void racoonprsa_load_buffer_state (void ); +static void racoonprsa_init_buffer (YY_BUFFER_STATE b,FILE *file ); -#define YY_FLUSH_BUFFER prsa_flush_buffer(YY_CURRENT_BUFFER ) +#define YY_FLUSH_BUFFER racoonprsa_flush_buffer(YY_CURRENT_BUFFER ) -YY_BUFFER_STATE prsa_scan_buffer (char *base,yy_size_t size ); -YY_BUFFER_STATE prsa_scan_string (yyconst char *yy_str ); -YY_BUFFER_STATE prsa_scan_bytes (yyconst char *bytes,yy_size_t len ); +YY_BUFFER_STATE racoonprsa_scan_buffer (char *base,yy_size_t size ); +YY_BUFFER_STATE racoonprsa_scan_string (yyconst char *yy_str ); +YY_BUFFER_STATE racoonprsa_scan_bytes (yyconst char *bytes,yy_size_t len ); -void *prsaalloc (yy_size_t ); -void *prsarealloc (void *,yy_size_t ); -void prsafree (void * ); +void *racoonprsaalloc (yy_size_t ); +void *racoonprsarealloc (void *,yy_size_t ); +void racoonprsafree (void * ); -#define yy_new_buffer prsa_create_buffer +#define yy_new_buffer racoonprsa_create_buffer #define yy_set_interactive(is_interactive) \ { \ if ( ! YY_CURRENT_BUFFER ){ \ - prsaensure_buffer_stack (); \ + racoonprsaensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ - prsa_create_buffer(prsain,YY_BUF_SIZE ); \ + racoonprsa_create_buffer(racoonprsain,YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ } @@ -341,9 +352,9 @@ void prsafree (void * ); #define yy_set_bol(at_bol) \ { \ if ( ! YY_CURRENT_BUFFER ){\ - prsaensure_buffer_stack (); \ + racoonprsaensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ - prsa_create_buffer(prsain,YY_BUF_SIZE ); \ + racoonprsa_create_buffer(racoonprsain,YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ } @@ -354,28 +365,28 @@ void prsafree (void * ); typedef unsigned char YY_CHAR; -FILE *prsain = (FILE *) 0, *prsaout = (FILE *) 0; +FILE *racoonprsain = (FILE *) 0, *racoonprsaout = (FILE *) 0; typedef int yy_state_type; -extern int prsalineno; +extern int racoonprsalineno; -int prsalineno = 1; +int racoonprsalineno = 1; -extern char *prsatext; -#define yytext_ptr prsatext +extern char *racoonprsatext; +#define yytext_ptr racoonprsatext static yy_state_type yy_get_previous_state (void ); static yy_state_type yy_try_NUL_trans (yy_state_type current_state ); static int yy_get_next_buffer (void ); -static void yy_fatal_error (yyconst char msg[] ); +static void yy_fatal_error (yyconst char msg[] ) __dead2; /* Done after the current pattern has been matched and before the - * corresponding action - sets up prsatext. + * corresponding action - sets up racoonprsatext. */ #define YY_DO_BEFORE_ACTION \ (yytext_ptr) = yy_bp; \ - prsaleng = (size_t) (yy_cp - yy_bp); \ + racoonprsaleng = (size_t) (yy_cp - yy_bp); \ (yy_hold_char) = *yy_cp; \ *yy_cp = '\0'; \ (yy_c_buf_p) = yy_cp; @@ -683,8 +694,8 @@ static yyconst flex_int16_t yy_chk[722] = static yy_state_type yy_last_accepting_state; static char *yy_last_accepting_cpos; -extern int prsa_flex_debug; -int prsa_flex_debug = 0; +extern int racoonprsa_flex_debug; +int racoonprsa_flex_debug = 0; /* The intent behind this definition is that it'll catch * any uses of REJECT which flex missed. @@ -693,11 +704,11 @@ int prsa_flex_debug = 0; #define yymore() yymore_used_but_not_detected #define YY_MORE_ADJ 0 #define YY_RESTORE_YY_MORE_OFFSET -char *prsatext; -#line 1 "prsa_tok.l" +char *racoonprsatext; +#line 1 "../../ipsec-tools/src/racoon/prsa_tok.l" /* $NetBSD: prsa_tok.l,v 1.4 2006/09/09 16:22:10 manu Exp $ */ /* Id: prsa_tok.l,v 1.2 2004/07/12 20:43:51 ludvigm Exp */ -#line 6 "prsa_tok.l" +#line 6 "../../ipsec-tools/src/racoon/prsa_tok.l" /* * Copyright (C) 2004 SuSE Linux AG, Nuernberg, Germany. * Contributed by: Michal Ludvig <mludvig@suse.cz>, SUSE Labs @@ -734,11 +745,15 @@ char *prsatext; #include <openssl/bn.h> #include <openssl/rsa.h> #include "prsa_par.h" +#ifdef __rtems__ +#define prsatext racoonprsatext +#define prsalval racoonprsalval +#endif /* __rtems__ */ extern int prsalex (void); extern int prsa_cur_lineno; -#line 742 "prsa_tok.c" +#line 757 "<stdout>" #define INITIAL 0 @@ -759,31 +774,31 @@ static int yy_init_globals (void ); /* Accessor methods to globals. These are made visible to non-reentrant scanners for convenience. */ -int prsalex_destroy (void ); +int racoonprsalex_destroy (void ); -int prsaget_debug (void ); +int racoonprsaget_debug (void ); -void prsaset_debug (int debug_flag ); +void racoonprsaset_debug (int debug_flag ); -YY_EXTRA_TYPE prsaget_extra (void ); +YY_EXTRA_TYPE racoonprsaget_extra (void ); -void prsaset_extra (YY_EXTRA_TYPE user_defined ); +void racoonprsaset_extra (YY_EXTRA_TYPE user_defined ); -FILE *prsaget_in (void ); +FILE *racoonprsaget_in (void ); -void prsaset_in (FILE * in_str ); +void racoonprsaset_in (FILE * in_str ); -FILE *prsaget_out (void ); +FILE *racoonprsaget_out (void ); -void prsaset_out (FILE * out_str ); +void racoonprsaset_out (FILE * out_str ); -yy_size_t prsaget_leng (void ); +yy_size_t racoonprsaget_leng (void ); -char *prsaget_text (void ); +char *racoonprsaget_text (void ); -int prsaget_lineno (void ); +int racoonprsaget_lineno (void ); -void prsaset_lineno (int line_number ); +void racoonprsaset_lineno (int line_number ); /* Macros after this point can all be overridden by user definitions in * section 1. @@ -791,13 +806,15 @@ void prsaset_lineno (int line_number ); #ifndef YY_SKIP_YYWRAP #ifdef __cplusplus -extern "C" int prsawrap (void ); +extern "C" int racoonprsawrap (void ); #else -extern int prsawrap (void ); +extern int racoonprsawrap (void ); #endif #endif +#ifndef YY_NO_UNPUT static void yyunput (int c,char *buf_ptr ); +#endif #ifndef yytext_ptr static void yy_flex_strncpy (char *,yyconst char *,int ); @@ -827,7 +844,7 @@ static int input (void ); /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ -#define ECHO do { if (fwrite( prsatext, prsaleng, 1, prsaout )) {} } while (0) +#define ECHO do { if (fwrite( racoonprsatext, racoonprsaleng, 1, racoonprsaout )) {} } while (0) #endif /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, @@ -840,18 +857,18 @@ static int input (void ); int c = '*'; \ size_t n; \ for ( n = 0; n < max_size && \ - (c = getc( prsain )) != EOF && c != '\n'; ++n ) \ + (c = getc( racoonprsain )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ if ( c == '\n' ) \ buf[n++] = (char) c; \ - if ( c == EOF && ferror( prsain ) ) \ + if ( c == EOF && ferror( racoonprsain ) ) \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ result = n; \ } \ else \ { \ errno=0; \ - while ( (result = fread(buf, 1, max_size, prsain))==0 && ferror(prsain)) \ + while ( (result = fread(buf, 1, max_size, racoonprsain))==0 && ferror(racoonprsain)) \ { \ if( errno != EINTR) \ { \ @@ -859,7 +876,7 @@ static int input (void ); break; \ } \ errno=0; \ - clearerr(prsain); \ + clearerr(racoonprsain); \ } \ }\ \ @@ -892,12 +909,12 @@ static int input (void ); #ifndef YY_DECL #define YY_DECL_IS_OURS 1 -extern int prsalex (void); +extern int racoonprsalex (void); -#define YY_DECL int prsalex (void) +#define YY_DECL int racoonprsalex (void) #endif /* !YY_DECL */ -/* Code executed at the beginning of each rule, after prsatext and prsaleng +/* Code executed at the beginning of each rule, after racoonprsatext and racoonprsaleng * have been set up. */ #ifndef YY_USER_ACTION @@ -916,13 +933,13 @@ extern int prsalex (void); */ YY_DECL { - register yy_state_type yy_current_state; - register char *yy_cp, *yy_bp; - register int yy_act; + yy_state_type yy_current_state; + char *yy_cp, *yy_bp; + int yy_act; -#line 56 "prsa_tok.l" +#line 60 "../../ipsec-tools/src/racoon/prsa_tok.l" -#line 926 "prsa_tok.c" +#line 943 "<stdout>" if ( !(yy_init) ) { @@ -935,26 +952,26 @@ YY_DECL if ( ! (yy_start) ) (yy_start) = 1; /* first start state */ - if ( ! prsain ) - prsain = stdin; + if ( ! racoonprsain ) + racoonprsain = stdin; - if ( ! prsaout ) - prsaout = stdout; + if ( ! racoonprsaout ) + racoonprsaout = stdout; if ( ! YY_CURRENT_BUFFER ) { - prsaensure_buffer_stack (); + racoonprsaensure_buffer_stack (); YY_CURRENT_BUFFER_LVALUE = - prsa_create_buffer(prsain,YY_BUF_SIZE ); + racoonprsa_create_buffer(racoonprsain,YY_BUF_SIZE ); } - prsa_load_buffer_state( ); + racoonprsa_load_buffer_state( ); } while ( 1 ) /* loops until end-of-file is reached */ { yy_cp = (yy_c_buf_p); - /* Support of prsatext. */ + /* Support of racoonprsatext. */ *yy_cp = (yy_hold_char); /* yy_bp points to the position in yy_ch_buf of the start of @@ -966,7 +983,7 @@ YY_DECL yy_match: do { - register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; + YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ; if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; @@ -1007,37 +1024,37 @@ do_action: /* This label is used only to access EOF actions. */ case 1: YY_RULE_SETUP -#line 57 "prsa_tok.l" +#line 61 "../../ipsec-tools/src/racoon/prsa_tok.l" { return OBRACE; } YY_BREAK case 2: YY_RULE_SETUP -#line 58 "prsa_tok.l" +#line 62 "../../ipsec-tools/src/racoon/prsa_tok.l" { return EBRACE; } YY_BREAK case 3: YY_RULE_SETUP -#line 59 "prsa_tok.l" +#line 63 "../../ipsec-tools/src/racoon/prsa_tok.l" { return COLON; } YY_BREAK case 4: YY_RULE_SETUP -#line 60 "prsa_tok.l" +#line 64 "../../ipsec-tools/src/racoon/prsa_tok.l" { return TAG_RSA; } YY_BREAK case 5: YY_RULE_SETUP -#line 61 "prsa_tok.l" +#line 65 "../../ipsec-tools/src/racoon/prsa_tok.l" { return TAG_PSK; } YY_BREAK case 6: YY_RULE_SETUP -#line 62 "prsa_tok.l" +#line 66 "../../ipsec-tools/src/racoon/prsa_tok.l" { return TAG_PUB; } YY_BREAK case 7: YY_RULE_SETUP -#line 63 "prsa_tok.l" +#line 67 "../../ipsec-tools/src/racoon/prsa_tok.l" { BIGNUM *bn = BN_new(); BN_hex2bn(&bn, prsatext+2); @@ -1047,7 +1064,7 @@ YY_RULE_SETUP YY_BREAK case 8: YY_RULE_SETUP -#line 69 "prsa_tok.l" +#line 73 "../../ipsec-tools/src/racoon/prsa_tok.l" { prsalval.chr = strdup(prsatext); return BASE64; @@ -1055,91 +1072,91 @@ YY_RULE_SETUP YY_BREAK case 9: YY_RULE_SETUP -#line 73 "prsa_tok.l" +#line 77 "../../ipsec-tools/src/racoon/prsa_tok.l" { return MODULUS; } YY_BREAK case 10: YY_RULE_SETUP -#line 74 "prsa_tok.l" +#line 78 "../../ipsec-tools/src/racoon/prsa_tok.l" { return PUBLIC_EXPONENT; } YY_BREAK case 11: YY_RULE_SETUP -#line 75 "prsa_tok.l" +#line 79 "../../ipsec-tools/src/racoon/prsa_tok.l" { return PRIVATE_EXPONENT; } YY_BREAK case 12: YY_RULE_SETUP -#line 76 "prsa_tok.l" +#line 80 "../../ipsec-tools/src/racoon/prsa_tok.l" { return PRIME1; } YY_BREAK case 13: YY_RULE_SETUP -#line 77 "prsa_tok.l" +#line 81 "../../ipsec-tools/src/racoon/prsa_tok.l" { return PRIME2; } YY_BREAK case 14: YY_RULE_SETUP -#line 78 "prsa_tok.l" +#line 82 "../../ipsec-tools/src/racoon/prsa_tok.l" { return EXPONENT1; } YY_BREAK case 15: YY_RULE_SETUP -#line 79 "prsa_tok.l" +#line 83 "../../ipsec-tools/src/racoon/prsa_tok.l" { return EXPONENT2; } YY_BREAK case 16: YY_RULE_SETUP -#line 80 "prsa_tok.l" +#line 84 "../../ipsec-tools/src/racoon/prsa_tok.l" { return COEFFICIENT; } YY_BREAK case 17: YY_RULE_SETUP -#line 81 "prsa_tok.l" +#line 85 "../../ipsec-tools/src/racoon/prsa_tok.l" { return SLASH; } YY_BREAK case 18: YY_RULE_SETUP -#line 82 "prsa_tok.l" +#line 86 "../../ipsec-tools/src/racoon/prsa_tok.l" { prsalval.num = atol(prsatext); return NUMBER; } YY_BREAK case 19: YY_RULE_SETUP -#line 83 "prsa_tok.l" +#line 87 "../../ipsec-tools/src/racoon/prsa_tok.l" { return ADDRANY; } YY_BREAK case 20: YY_RULE_SETUP -#line 84 "prsa_tok.l" +#line 88 "../../ipsec-tools/src/racoon/prsa_tok.l" { prsalval.chr = strdup(prsatext); return ADDR4; } YY_BREAK case 21: YY_RULE_SETUP -#line 85 "prsa_tok.l" +#line 89 "../../ipsec-tools/src/racoon/prsa_tok.l" { prsalval.chr = strdup(prsatext); return ADDR6; } YY_BREAK case 22: YY_RULE_SETUP -#line 86 "prsa_tok.l" +#line 90 "../../ipsec-tools/src/racoon/prsa_tok.l" ; YY_BREAK case 23: /* rule 23 can match eol */ YY_RULE_SETUP -#line 87 "prsa_tok.l" +#line 91 "../../ipsec-tools/src/racoon/prsa_tok.l" { prsa_cur_lineno++; } YY_BREAK case 24: YY_RULE_SETUP -#line 88 "prsa_tok.l" +#line 92 "../../ipsec-tools/src/racoon/prsa_tok.l" ; YY_BREAK case 25: YY_RULE_SETUP -#line 89 "prsa_tok.l" +#line 93 "../../ipsec-tools/src/racoon/prsa_tok.l" ECHO; YY_BREAK -#line 1143 "prsa_tok.c" +#line 1160 "<stdout>" case YY_STATE_EOF(INITIAL): yyterminate(); @@ -1156,15 +1173,15 @@ case YY_STATE_EOF(INITIAL): { /* We're scanning a new file or input source. It's * possible that this happened because the user - * just pointed prsain at a new source and called - * prsalex(). If so, then we have to assure + * just pointed racoonprsain at a new source and called + * racoonprsalex(). If so, then we have to assure * consistency between YY_CURRENT_BUFFER and our * globals. Here is the right place to do so, because * this is the first action (other than possibly a * back-up) that will match for the new input source. */ (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; - YY_CURRENT_BUFFER_LVALUE->yy_input_file = prsain; + YY_CURRENT_BUFFER_LVALUE->yy_input_file = racoonprsain; YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; } @@ -1217,11 +1234,11 @@ case YY_STATE_EOF(INITIAL): { (yy_did_buffer_switch_on_eof) = 0; - if ( prsawrap( ) ) + if ( racoonprsawrap( ) ) { /* Note: because we've taken care in * yy_get_next_buffer() to have set up - * prsatext, we can now set up + * racoonprsatext, we can now set up * yy_c_buf_p so that if some total * hoser (like flex itself) wants to * call the scanner after we return the @@ -1270,7 +1287,7 @@ case YY_STATE_EOF(INITIAL): "fatal flex scanner internal error--no action found" ); } /* end of action switch */ } /* end of scanning one token */ -} /* end of prsalex */ +} /* end of racoonprsalex */ /* yy_get_next_buffer - try to read in a new buffer * @@ -1281,9 +1298,9 @@ case YY_STATE_EOF(INITIAL): */ static int yy_get_next_buffer (void) { - register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; - register char *source = (yytext_ptr); - register int number_to_move, i; + char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; + char *source = (yytext_ptr); + int number_to_move, i; int ret_val; if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) @@ -1348,7 +1365,7 @@ static int yy_get_next_buffer (void) b->yy_ch_buf = (char *) /* Include room in for 2 EOB chars. */ - prsarealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ); + racoonprsarealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ); } else /* Can't grow it, we don't own it. */ @@ -1380,7 +1397,7 @@ static int yy_get_next_buffer (void) if ( number_to_move == YY_MORE_ADJ ) { ret_val = EOB_ACT_END_OF_FILE; - prsarestart(prsain ); + racoonprsarestart(racoonprsain ); } else @@ -1397,7 +1414,7 @@ static int yy_get_next_buffer (void) if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { /* Extend the array by 50%, plus the number we really need. */ yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) prsarealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ); + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) racoonprsarealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ); if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); } @@ -1415,14 +1432,14 @@ static int yy_get_next_buffer (void) static yy_state_type yy_get_previous_state (void) { - register yy_state_type yy_current_state; - register char *yy_cp; + yy_state_type yy_current_state; + char *yy_cp; yy_current_state = (yy_start); for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) { - register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); + YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; @@ -1447,10 +1464,10 @@ static int yy_get_next_buffer (void) */ static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) { - register int yy_is_jam; - register char *yy_cp = (yy_c_buf_p); + int yy_is_jam; + char *yy_cp = (yy_c_buf_p); - register YY_CHAR yy_c = 1; + YY_CHAR yy_c = 1; if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; @@ -1468,22 +1485,23 @@ static int yy_get_next_buffer (void) return yy_is_jam ? 0 : yy_current_state; } - static void yyunput (int c, register char * yy_bp ) +#ifndef YY_NO_UNPUT + static void yyunput (int c, char * yy_bp ) { - register char *yy_cp; + char *yy_cp; yy_cp = (yy_c_buf_p); - /* undo effects of setting up prsatext */ + /* undo effects of setting up racoonprsatext */ *yy_cp = (yy_hold_char); if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) { /* need to shift things up to make room */ /* +2 for EOB chars. */ - register yy_size_t number_to_move = (yy_n_chars) + 2; - register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ + yy_size_t number_to_move = (yy_n_chars) + 2; + char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; - register char *source = + char *source = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]; while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) @@ -1504,6 +1522,7 @@ static int yy_get_next_buffer (void) (yy_hold_char) = *yy_cp; (yy_c_buf_p) = yy_cp; } +#endif /* ifndef YY_NO_UNPUT */ #ifndef YY_NO_INPUT #ifdef __cplusplus @@ -1546,13 +1565,13 @@ static int yy_get_next_buffer (void) */ /* Reset buffer status. */ - prsarestart(prsain ); + racoonprsarestart(racoonprsain ); /*FALLTHROUGH*/ case EOB_ACT_END_OF_FILE: { - if ( prsawrap( ) ) + if ( racoonprsawrap( ) ) return EOF; if ( ! (yy_did_buffer_switch_on_eof) ) @@ -1572,7 +1591,7 @@ static int yy_get_next_buffer (void) } c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ - *(yy_c_buf_p) = '\0'; /* preserve prsatext */ + *(yy_c_buf_p) = '\0'; /* preserve racoonprsatext */ (yy_hold_char) = *++(yy_c_buf_p); return c; @@ -1584,32 +1603,32 @@ static int yy_get_next_buffer (void) * * @note This function does not reset the start condition to @c INITIAL . */ - void prsarestart (FILE * input_file ) + void racoonprsarestart (FILE * input_file ) { if ( ! YY_CURRENT_BUFFER ){ - prsaensure_buffer_stack (); + racoonprsaensure_buffer_stack (); YY_CURRENT_BUFFER_LVALUE = - prsa_create_buffer(prsain,YY_BUF_SIZE ); + racoonprsa_create_buffer(racoonprsain,YY_BUF_SIZE ); } - prsa_init_buffer(YY_CURRENT_BUFFER,input_file ); - prsa_load_buffer_state( ); + racoonprsa_init_buffer(YY_CURRENT_BUFFER,input_file ); + racoonprsa_load_buffer_state( ); } /** Switch to a different input buffer. * @param new_buffer The new input buffer. * */ - void prsa_switch_to_buffer (YY_BUFFER_STATE new_buffer ) + void racoonprsa_switch_to_buffer (YY_BUFFER_STATE new_buffer ) { /* TODO. We should be able to replace this entire function body * with - * prsapop_buffer_state(); - * prsapush_buffer_state(new_buffer); + * racoonprsapop_buffer_state(); + * racoonprsapush_buffer_state(new_buffer); */ - prsaensure_buffer_stack (); + racoonprsaensure_buffer_stack (); if ( YY_CURRENT_BUFFER == new_buffer ) return; @@ -1622,21 +1641,21 @@ static int yy_get_next_buffer (void) } YY_CURRENT_BUFFER_LVALUE = new_buffer; - prsa_load_buffer_state( ); + racoonprsa_load_buffer_state( ); /* We don't actually know whether we did this switch during - * EOF (prsawrap()) processing, but the only time this flag - * is looked at is after prsawrap() is called, so it's safe + * EOF (racoonprsawrap()) processing, but the only time this flag + * is looked at is after racoonprsawrap() is called, so it's safe * to go ahead and always set it. */ (yy_did_buffer_switch_on_eof) = 1; } -static void prsa_load_buffer_state (void) +static void racoonprsa_load_buffer_state (void) { (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; - prsain = YY_CURRENT_BUFFER_LVALUE->yy_input_file; + racoonprsain = YY_CURRENT_BUFFER_LVALUE->yy_input_file; (yy_hold_char) = *(yy_c_buf_p); } @@ -1646,35 +1665,35 @@ static void prsa_load_buffer_state (void) * * @return the allocated buffer state. */ - YY_BUFFER_STATE prsa_create_buffer (FILE * file, int size ) + YY_BUFFER_STATE racoonprsa_create_buffer (FILE * file, int size ) { YY_BUFFER_STATE b; - b = (YY_BUFFER_STATE) prsaalloc(sizeof( struct yy_buffer_state ) ); + b = (YY_BUFFER_STATE) racoonprsaalloc(sizeof( struct yy_buffer_state ) ); if ( ! b ) - YY_FATAL_ERROR( "out of dynamic memory in prsa_create_buffer()" ); + YY_FATAL_ERROR( "out of dynamic memory in racoonprsa_create_buffer()" ); b->yy_buf_size = size; /* yy_ch_buf has to be 2 characters longer than the size given because * we need to put in 2 end-of-buffer characters. */ - b->yy_ch_buf = (char *) prsaalloc(b->yy_buf_size + 2 ); + b->yy_ch_buf = (char *) racoonprsaalloc(b->yy_buf_size + 2 ); if ( ! b->yy_ch_buf ) - YY_FATAL_ERROR( "out of dynamic memory in prsa_create_buffer()" ); + YY_FATAL_ERROR( "out of dynamic memory in racoonprsa_create_buffer()" ); b->yy_is_our_buffer = 1; - prsa_init_buffer(b,file ); + racoonprsa_init_buffer(b,file ); return b; } /** Destroy the buffer. - * @param b a buffer created with prsa_create_buffer() + * @param b a buffer created with racoonprsa_create_buffer() * */ - void prsa_delete_buffer (YY_BUFFER_STATE b ) + void racoonprsa_delete_buffer (YY_BUFFER_STATE b ) { if ( ! b ) @@ -1684,27 +1703,27 @@ static void prsa_load_buffer_state (void) YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; if ( b->yy_is_our_buffer ) - prsafree((void *) b->yy_ch_buf ); + racoonprsafree((void *) b->yy_ch_buf ); - prsafree((void *) b ); + racoonprsafree((void *) b ); } /* Initializes or reinitializes a buffer. * This function is sometimes called more than once on the same buffer, - * such as during a prsarestart() or at EOF. + * such as during a racoonprsarestart() or at EOF. */ - static void prsa_init_buffer (YY_BUFFER_STATE b, FILE * file ) + static void racoonprsa_init_buffer (YY_BUFFER_STATE b, FILE * file ) { int oerrno = errno; - prsa_flush_buffer(b ); + racoonprsa_flush_buffer(b ); b->yy_input_file = file; b->yy_fill_buffer = 1; - /* If b is the current buffer, then prsa_init_buffer was _probably_ - * called from prsarestart() or through yy_get_next_buffer. + /* If b is the current buffer, then racoonprsa_init_buffer was _probably_ + * called from racoonprsarestart() or through yy_get_next_buffer. * In that case, we don't want to reset the lineno or column. */ if (b != YY_CURRENT_BUFFER){ @@ -1721,7 +1740,7 @@ static void prsa_load_buffer_state (void) * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. * */ - void prsa_flush_buffer (YY_BUFFER_STATE b ) + void racoonprsa_flush_buffer (YY_BUFFER_STATE b ) { if ( ! b ) return; @@ -1741,7 +1760,7 @@ static void prsa_load_buffer_state (void) b->yy_buffer_status = YY_BUFFER_NEW; if ( b == YY_CURRENT_BUFFER ) - prsa_load_buffer_state( ); + racoonprsa_load_buffer_state( ); } /** Pushes the new state onto the stack. The new state becomes @@ -1750,14 +1769,14 @@ static void prsa_load_buffer_state (void) * @param new_buffer The new state. * */ -void prsapush_buffer_state (YY_BUFFER_STATE new_buffer ) +void racoonprsapush_buffer_state (YY_BUFFER_STATE new_buffer ) { if (new_buffer == NULL) return; - prsaensure_buffer_stack(); + racoonprsaensure_buffer_stack(); - /* This block is copied from prsa_switch_to_buffer. */ + /* This block is copied from racoonprsa_switch_to_buffer. */ if ( YY_CURRENT_BUFFER ) { /* Flush out information for old buffer. */ @@ -1771,8 +1790,8 @@ void prsapush_buffer_state (YY_BUFFER_STATE new_buffer ) (yy_buffer_stack_top)++; YY_CURRENT_BUFFER_LVALUE = new_buffer; - /* copied from prsa_switch_to_buffer. */ - prsa_load_buffer_state( ); + /* copied from racoonprsa_switch_to_buffer. */ + racoonprsa_load_buffer_state( ); (yy_did_buffer_switch_on_eof) = 1; } @@ -1780,18 +1799,18 @@ void prsapush_buffer_state (YY_BUFFER_STATE new_buffer ) * The next element becomes the new top. * */ -void prsapop_buffer_state (void) +void racoonprsapop_buffer_state (void) { if (!YY_CURRENT_BUFFER) return; - prsa_delete_buffer(YY_CURRENT_BUFFER ); + racoonprsa_delete_buffer(YY_CURRENT_BUFFER ); YY_CURRENT_BUFFER_LVALUE = NULL; if ((yy_buffer_stack_top) > 0) --(yy_buffer_stack_top); if (YY_CURRENT_BUFFER) { - prsa_load_buffer_state( ); + racoonprsa_load_buffer_state( ); (yy_did_buffer_switch_on_eof) = 1; } } @@ -1799,7 +1818,7 @@ void prsapop_buffer_state (void) /* Allocates the stack if it does not exist. * Guarantees space for at least one push. */ -static void prsaensure_buffer_stack (void) +static void racoonprsaensure_buffer_stack (void) { yy_size_t num_to_alloc; @@ -1810,11 +1829,11 @@ static void prsaensure_buffer_stack (void) * immediate realloc on the next call. */ num_to_alloc = 1; - (yy_buffer_stack) = (struct yy_buffer_state**)prsaalloc + (yy_buffer_stack) = (struct yy_buffer_state**)racoonprsaalloc (num_to_alloc * sizeof(struct yy_buffer_state*) ); if ( ! (yy_buffer_stack) ) - YY_FATAL_ERROR( "out of dynamic memory in prsaensure_buffer_stack()" ); + YY_FATAL_ERROR( "out of dynamic memory in racoonprsaensure_buffer_stack()" ); memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); @@ -1829,12 +1848,12 @@ static void prsaensure_buffer_stack (void) int grow_size = 8 /* arbitrary grow size */; num_to_alloc = (yy_buffer_stack_max) + grow_size; - (yy_buffer_stack) = (struct yy_buffer_state**)prsarealloc + (yy_buffer_stack) = (struct yy_buffer_state**)racoonprsarealloc ((yy_buffer_stack), num_to_alloc * sizeof(struct yy_buffer_state*) ); if ( ! (yy_buffer_stack) ) - YY_FATAL_ERROR( "out of dynamic memory in prsaensure_buffer_stack()" ); + YY_FATAL_ERROR( "out of dynamic memory in racoonprsaensure_buffer_stack()" ); /* zero only the new slots.*/ memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); @@ -1848,7 +1867,7 @@ static void prsaensure_buffer_stack (void) * * @return the newly allocated buffer state object. */ -YY_BUFFER_STATE prsa_scan_buffer (char * base, yy_size_t size ) +YY_BUFFER_STATE racoonprsa_scan_buffer (char * base, yy_size_t size ) { YY_BUFFER_STATE b; @@ -1858,9 +1877,9 @@ YY_BUFFER_STATE prsa_scan_buffer (char * base, yy_size_t size ) /* They forgot to leave room for the EOB's. */ return 0; - b = (YY_BUFFER_STATE) prsaalloc(sizeof( struct yy_buffer_state ) ); + b = (YY_BUFFER_STATE) racoonprsaalloc(sizeof( struct yy_buffer_state ) ); if ( ! b ) - YY_FATAL_ERROR( "out of dynamic memory in prsa_scan_buffer()" ); + YY_FATAL_ERROR( "out of dynamic memory in racoonprsa_scan_buffer()" ); b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ b->yy_buf_pos = b->yy_ch_buf = base; @@ -1872,53 +1891,53 @@ YY_BUFFER_STATE prsa_scan_buffer (char * base, yy_size_t size ) b->yy_fill_buffer = 0; b->yy_buffer_status = YY_BUFFER_NEW; - prsa_switch_to_buffer(b ); + racoonprsa_switch_to_buffer(b ); return b; } -/** Setup the input buffer state to scan a string. The next call to prsalex() will +/** Setup the input buffer state to scan a string. The next call to racoonprsalex() will * scan from a @e copy of @a str. * @param yystr a NUL-terminated string to scan * * @return the newly allocated buffer state object. * @note If you want to scan bytes that may contain NUL values, then use - * prsa_scan_bytes() instead. + * racoonprsa_scan_bytes() instead. */ -YY_BUFFER_STATE prsa_scan_string (yyconst char * yystr ) +YY_BUFFER_STATE racoonprsa_scan_string (yyconst char * yystr ) { - return prsa_scan_bytes(yystr,strlen(yystr) ); + return racoonprsa_scan_bytes(yystr,strlen(yystr) ); } -/** Setup the input buffer state to scan the given bytes. The next call to prsalex() will +/** Setup the input buffer state to scan the given bytes. The next call to racoonprsalex() will * scan from a @e copy of @a bytes. * @param yybytes the byte buffer to scan * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. * * @return the newly allocated buffer state object. */ -YY_BUFFER_STATE prsa_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len ) +YY_BUFFER_STATE racoonprsa_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len ) { YY_BUFFER_STATE b; char *buf; yy_size_t n; - int i; + yy_size_t i; /* Get memory for full buffer, including space for trailing EOB's. */ n = _yybytes_len + 2; - buf = (char *) prsaalloc(n ); + buf = (char *) racoonprsaalloc(n ); if ( ! buf ) - YY_FATAL_ERROR( "out of dynamic memory in prsa_scan_bytes()" ); + YY_FATAL_ERROR( "out of dynamic memory in racoonprsa_scan_bytes()" ); for ( i = 0; i < _yybytes_len; ++i ) buf[i] = yybytes[i]; buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; - b = prsa_scan_buffer(buf,n ); + b = racoonprsa_scan_buffer(buf,n ); if ( ! b ) - YY_FATAL_ERROR( "bad buffer in prsa_scan_bytes()" ); + YY_FATAL_ERROR( "bad buffer in racoonprsa_scan_bytes()" ); /* It's okay to grow etc. this buffer, and we should throw it * away when we're done. @@ -1944,14 +1963,14 @@ static void yy_fatal_error (yyconst char* msg ) #define yyless(n) \ do \ { \ - /* Undo effects of setting up prsatext. */ \ + /* Undo effects of setting up racoonprsatext. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ - prsatext[prsaleng] = (yy_hold_char); \ - (yy_c_buf_p) = prsatext + yyless_macro_arg; \ + racoonprsatext[racoonprsaleng] = (yy_hold_char); \ + (yy_c_buf_p) = racoonprsatext + yyless_macro_arg; \ (yy_hold_char) = *(yy_c_buf_p); \ *(yy_c_buf_p) = '\0'; \ - prsaleng = yyless_macro_arg; \ + racoonprsaleng = yyless_macro_arg; \ } \ while ( 0 ) @@ -1960,85 +1979,85 @@ static void yy_fatal_error (yyconst char* msg ) /** Get the current line number. * */ -int prsaget_lineno (void) +int racoonprsaget_lineno (void) { - return prsalineno; + return racoonprsalineno; } /** Get the input stream. * */ -FILE *prsaget_in (void) +FILE *racoonprsaget_in (void) { - return prsain; + return racoonprsain; } /** Get the output stream. * */ -FILE *prsaget_out (void) +FILE *racoonprsaget_out (void) { - return prsaout; + return racoonprsaout; } /** Get the length of the current token. * */ -yy_size_t prsaget_leng (void) +yy_size_t racoonprsaget_leng (void) { - return prsaleng; + return racoonprsaleng; } /** Get the current token. * */ -char *prsaget_text (void) +char *racoonprsaget_text (void) { - return prsatext; + return racoonprsatext; } /** Set the current line number. * @param line_number * */ -void prsaset_lineno (int line_number ) +void racoonprsaset_lineno (int line_number ) { - prsalineno = line_number; + racoonprsalineno = line_number; } /** Set the input stream. This does not discard the current * input buffer. * @param in_str A readable stream. * - * @see prsa_switch_to_buffer + * @see racoonprsa_switch_to_buffer */ -void prsaset_in (FILE * in_str ) +void racoonprsaset_in (FILE * in_str ) { - prsain = in_str ; + racoonprsain = in_str ; } -void prsaset_out (FILE * out_str ) +void racoonprsaset_out (FILE * out_str ) { - prsaout = out_str ; + racoonprsaout = out_str ; } -int prsaget_debug (void) +int racoonprsaget_debug (void) { - return prsa_flex_debug; + return racoonprsa_flex_debug; } -void prsaset_debug (int bdebug ) +void racoonprsaset_debug (int bdebug ) { - prsa_flex_debug = bdebug ; + racoonprsa_flex_debug = bdebug ; } static int yy_init_globals (void) { /* Initialization is the same as for the non-reentrant scanner. - * This function is called from prsalex_destroy(), so don't allocate here. + * This function is called from racoonprsalex_destroy(), so don't allocate here. */ (yy_buffer_stack) = 0; @@ -2050,36 +2069,36 @@ static int yy_init_globals (void) /* Defined in main.c */ #ifdef YY_STDINIT - prsain = stdin; - prsaout = stdout; + racoonprsain = stdin; + racoonprsaout = stdout; #else - prsain = (FILE *) 0; - prsaout = (FILE *) 0; + racoonprsain = (FILE *) 0; + racoonprsaout = (FILE *) 0; #endif /* For future reference: Set errno on error, since we are called by - * prsalex_init() + * racoonprsalex_init() */ return 0; } -/* prsalex_destroy is for both reentrant and non-reentrant scanners. */ -int prsalex_destroy (void) +/* racoonprsalex_destroy is for both reentrant and non-reentrant scanners. */ +int racoonprsalex_destroy (void) { /* Pop the buffer stack, destroying each element. */ while(YY_CURRENT_BUFFER){ - prsa_delete_buffer(YY_CURRENT_BUFFER ); + racoonprsa_delete_buffer(YY_CURRENT_BUFFER ); YY_CURRENT_BUFFER_LVALUE = NULL; - prsapop_buffer_state(); + racoonprsapop_buffer_state(); } /* Destroy the stack itself. */ - prsafree((yy_buffer_stack) ); + racoonprsafree((yy_buffer_stack) ); (yy_buffer_stack) = NULL; /* Reset the globals. This is important in a non-reentrant scanner so the next time - * prsalex() is called, initialization will occur. */ + * racoonprsalex() is called, initialization will occur. */ yy_init_globals( ); return 0; @@ -2092,7 +2111,7 @@ int prsalex_destroy (void) #ifndef yytext_ptr static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) { - register int i; + int i; for ( i = 0; i < n; ++i ) s1[i] = s2[i]; } @@ -2101,7 +2120,7 @@ static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) #ifdef YY_NEED_STRLEN static int yy_flex_strlen (yyconst char * s ) { - register int n; + int n; for ( n = 0; s[n]; ++n ) ; @@ -2109,12 +2128,12 @@ static int yy_flex_strlen (yyconst char * s ) } #endif -void *prsaalloc (yy_size_t size ) +void *racoonprsaalloc (yy_size_t size ) { return (void *) malloc( size ); } -void *prsarealloc (void * ptr, yy_size_t size ) +void *racoonprsarealloc (void * ptr, yy_size_t size ) { /* The cast to (char *) in the following accommodates both * implementations that use char* generic pointers, and those @@ -2126,14 +2145,14 @@ void *prsarealloc (void * ptr, yy_size_t size ) return (void *) realloc( (char *) ptr, size ); } -void prsafree (void * ptr ) +void racoonprsafree (void * ptr ) { - free( (char *) ptr ); /* see prsarealloc() for (char *) cast */ + free( (char *) ptr ); /* see racoonprsarealloc() for (char *) cast */ } #define YYTABLES_NAME "yytables" -#line 89 "prsa_tok.l" +#line 93 "../../ipsec-tools/src/racoon/prsa_tok.l" |