mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-13 20:49:17 +08:00
Regenerate with FreeBSD lex, yacc, and rpcgen tools.
Use the FreeBSD lex, yacc and rpcgen tools to generate the various sources used in LibBSD. The change also removes an RTEMS specific change added when using other hosts operating systems to generate the files. LibBSD should use FreeBSD version of the tools to generate the source because the FreeBSD kernel is developed using them. The change is supported by the waf build which disables generating the files unless enabled. I am not sure the effect with the Makefile build support.
This commit is contained in:
parent
11ec9884cf
commit
e35a65e995
@ -8,7 +8,6 @@
|
||||
|
||||
#include <rpc/rpc.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
@ -490,66 +489,38 @@ typedef rpcb_stat rpcb_stat_byvers[RPCBVERS_STAT];
|
||||
|
||||
#endif /* ndef _KERNEL */
|
||||
|
||||
#define RPCBPROG 100000
|
||||
#define RPCBVERS 3
|
||||
#define RPCBPROG ((unsigned long)(100000))
|
||||
#define RPCBVERS ((unsigned long)(3))
|
||||
|
||||
#if defined(__STDC__) || defined(__cplusplus)
|
||||
#define RPCBPROC_SET 1
|
||||
extern void rpcbprog_3(struct svc_req *rqstp, SVCXPRT *transp);
|
||||
#define RPCBPROC_SET ((unsigned long)(1))
|
||||
extern bool_t * rpcbproc_set_3(rpcb *, CLIENT *);
|
||||
extern bool_t * rpcbproc_set_3_svc(rpcb *, struct svc_req *);
|
||||
#define RPCBPROC_UNSET 2
|
||||
#define RPCBPROC_UNSET ((unsigned long)(2))
|
||||
extern bool_t * rpcbproc_unset_3(rpcb *, CLIENT *);
|
||||
extern bool_t * rpcbproc_unset_3_svc(rpcb *, struct svc_req *);
|
||||
#define RPCBPROC_GETADDR 3
|
||||
#define RPCBPROC_GETADDR ((unsigned long)(3))
|
||||
extern char ** rpcbproc_getaddr_3(rpcb *, CLIENT *);
|
||||
extern char ** rpcbproc_getaddr_3_svc(rpcb *, struct svc_req *);
|
||||
#define RPCBPROC_DUMP 4
|
||||
#define RPCBPROC_DUMP ((unsigned long)(4))
|
||||
extern rpcblist_ptr * rpcbproc_dump_3(void *, CLIENT *);
|
||||
extern rpcblist_ptr * rpcbproc_dump_3_svc(void *, struct svc_req *);
|
||||
#define RPCBPROC_CALLIT 5
|
||||
#define RPCBPROC_CALLIT ((unsigned long)(5))
|
||||
extern rpcb_rmtcallres * rpcbproc_callit_3(rpcb_rmtcallargs *, CLIENT *);
|
||||
extern rpcb_rmtcallres * rpcbproc_callit_3_svc(rpcb_rmtcallargs *, struct svc_req *);
|
||||
#define RPCBPROC_GETTIME 6
|
||||
#define RPCBPROC_GETTIME ((unsigned long)(6))
|
||||
extern u_int * rpcbproc_gettime_3(void *, CLIENT *);
|
||||
extern u_int * rpcbproc_gettime_3_svc(void *, struct svc_req *);
|
||||
#define RPCBPROC_UADDR2TADDR 7
|
||||
#define RPCBPROC_UADDR2TADDR ((unsigned long)(7))
|
||||
extern struct netbuf * rpcbproc_uaddr2taddr_3(char **, CLIENT *);
|
||||
extern struct netbuf * rpcbproc_uaddr2taddr_3_svc(char **, struct svc_req *);
|
||||
#define RPCBPROC_TADDR2UADDR 8
|
||||
#define RPCBPROC_TADDR2UADDR ((unsigned long)(8))
|
||||
extern char ** rpcbproc_taddr2uaddr_3(struct netbuf *, CLIENT *);
|
||||
extern char ** rpcbproc_taddr2uaddr_3_svc(struct netbuf *, struct svc_req *);
|
||||
extern int rpcbprog_3_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
|
||||
#define RPCBVERS4 ((unsigned long)(4))
|
||||
|
||||
#else /* K&R C */
|
||||
#define RPCBPROC_SET 1
|
||||
extern bool_t * rpcbproc_set_3();
|
||||
extern bool_t * rpcbproc_set_3_svc();
|
||||
#define RPCBPROC_UNSET 2
|
||||
extern bool_t * rpcbproc_unset_3();
|
||||
extern bool_t * rpcbproc_unset_3_svc();
|
||||
#define RPCBPROC_GETADDR 3
|
||||
extern char ** rpcbproc_getaddr_3();
|
||||
extern char ** rpcbproc_getaddr_3_svc();
|
||||
#define RPCBPROC_DUMP 4
|
||||
extern rpcblist_ptr * rpcbproc_dump_3();
|
||||
extern rpcblist_ptr * rpcbproc_dump_3_svc();
|
||||
#define RPCBPROC_CALLIT 5
|
||||
extern rpcb_rmtcallres * rpcbproc_callit_3();
|
||||
extern rpcb_rmtcallres * rpcbproc_callit_3_svc();
|
||||
#define RPCBPROC_GETTIME 6
|
||||
extern u_int * rpcbproc_gettime_3();
|
||||
extern u_int * rpcbproc_gettime_3_svc();
|
||||
#define RPCBPROC_UADDR2TADDR 7
|
||||
extern struct netbuf * rpcbproc_uaddr2taddr_3();
|
||||
extern struct netbuf * rpcbproc_uaddr2taddr_3_svc();
|
||||
#define RPCBPROC_TADDR2UADDR 8
|
||||
extern char ** rpcbproc_taddr2uaddr_3();
|
||||
extern char ** rpcbproc_taddr2uaddr_3_svc();
|
||||
extern int rpcbprog_3_freeresult ();
|
||||
#endif /* K&R C */
|
||||
#define RPCBVERS4 4
|
||||
|
||||
#if defined(__STDC__) || defined(__cplusplus)
|
||||
extern void rpcbprog_4(struct svc_req *rqstp, SVCXPRT *transp);
|
||||
extern bool_t * rpcbproc_set_4(rpcb *, CLIENT *);
|
||||
extern bool_t * rpcbproc_set_4_svc(rpcb *, struct svc_req *);
|
||||
extern bool_t * rpcbproc_unset_4(rpcb *, CLIENT *);
|
||||
@ -558,7 +529,7 @@ extern char ** rpcbproc_getaddr_4(rpcb *, CLIENT *);
|
||||
extern char ** rpcbproc_getaddr_4_svc(rpcb *, struct svc_req *);
|
||||
extern rpcblist_ptr * rpcbproc_dump_4(void *, CLIENT *);
|
||||
extern rpcblist_ptr * rpcbproc_dump_4_svc(void *, struct svc_req *);
|
||||
#define RPCBPROC_BCAST RPCBPROC_CALLIT
|
||||
#define RPCBPROC_BCAST ((unsigned long)(RPCBPROC_CALLIT))
|
||||
extern rpcb_rmtcallres * rpcbproc_bcast_4(rpcb_rmtcallargs *, CLIENT *);
|
||||
extern rpcb_rmtcallres * rpcbproc_bcast_4_svc(rpcb_rmtcallargs *, struct svc_req *);
|
||||
extern u_int * rpcbproc_gettime_4(void *, CLIENT *);
|
||||
@ -567,56 +538,21 @@ extern struct netbuf * rpcbproc_uaddr2taddr_4(char **, CLIENT *);
|
||||
extern struct netbuf * rpcbproc_uaddr2taddr_4_svc(char **, struct svc_req *);
|
||||
extern char ** rpcbproc_taddr2uaddr_4(struct netbuf *, CLIENT *);
|
||||
extern char ** rpcbproc_taddr2uaddr_4_svc(struct netbuf *, struct svc_req *);
|
||||
#define RPCBPROC_GETVERSADDR 9
|
||||
#define RPCBPROC_GETVERSADDR ((unsigned long)(9))
|
||||
extern char ** rpcbproc_getversaddr_4(rpcb *, CLIENT *);
|
||||
extern char ** rpcbproc_getversaddr_4_svc(rpcb *, struct svc_req *);
|
||||
#define RPCBPROC_INDIRECT 10
|
||||
#define RPCBPROC_INDIRECT ((unsigned long)(10))
|
||||
extern rpcb_rmtcallres * rpcbproc_indirect_4(rpcb_rmtcallargs *, CLIENT *);
|
||||
extern rpcb_rmtcallres * rpcbproc_indirect_4_svc(rpcb_rmtcallargs *, struct svc_req *);
|
||||
#define RPCBPROC_GETADDRLIST 11
|
||||
#define RPCBPROC_GETADDRLIST ((unsigned long)(11))
|
||||
extern rpcb_entry_list_ptr * rpcbproc_getaddrlist_4(rpcb *, CLIENT *);
|
||||
extern rpcb_entry_list_ptr * rpcbproc_getaddrlist_4_svc(rpcb *, struct svc_req *);
|
||||
#define RPCBPROC_GETSTAT 12
|
||||
#define RPCBPROC_GETSTAT ((unsigned long)(12))
|
||||
extern rpcb_stat * rpcbproc_getstat_4(void *, CLIENT *);
|
||||
extern rpcb_stat * rpcbproc_getstat_4_svc(void *, struct svc_req *);
|
||||
extern int rpcbprog_4_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
|
||||
|
||||
#else /* K&R C */
|
||||
extern bool_t * rpcbproc_set_4();
|
||||
extern bool_t * rpcbproc_set_4_svc();
|
||||
extern bool_t * rpcbproc_unset_4();
|
||||
extern bool_t * rpcbproc_unset_4_svc();
|
||||
extern char ** rpcbproc_getaddr_4();
|
||||
extern char ** rpcbproc_getaddr_4_svc();
|
||||
extern rpcblist_ptr * rpcbproc_dump_4();
|
||||
extern rpcblist_ptr * rpcbproc_dump_4_svc();
|
||||
#define RPCBPROC_BCAST RPCBPROC_CALLIT
|
||||
extern rpcb_rmtcallres * rpcbproc_bcast_4();
|
||||
extern rpcb_rmtcallres * rpcbproc_bcast_4_svc();
|
||||
extern u_int * rpcbproc_gettime_4();
|
||||
extern u_int * rpcbproc_gettime_4_svc();
|
||||
extern struct netbuf * rpcbproc_uaddr2taddr_4();
|
||||
extern struct netbuf * rpcbproc_uaddr2taddr_4_svc();
|
||||
extern char ** rpcbproc_taddr2uaddr_4();
|
||||
extern char ** rpcbproc_taddr2uaddr_4_svc();
|
||||
#define RPCBPROC_GETVERSADDR 9
|
||||
extern char ** rpcbproc_getversaddr_4();
|
||||
extern char ** rpcbproc_getversaddr_4_svc();
|
||||
#define RPCBPROC_INDIRECT 10
|
||||
extern rpcb_rmtcallres * rpcbproc_indirect_4();
|
||||
extern rpcb_rmtcallres * rpcbproc_indirect_4_svc();
|
||||
#define RPCBPROC_GETADDRLIST 11
|
||||
extern rpcb_entry_list_ptr * rpcbproc_getaddrlist_4();
|
||||
extern rpcb_entry_list_ptr * rpcbproc_getaddrlist_4_svc();
|
||||
#define RPCBPROC_GETSTAT 12
|
||||
extern rpcb_stat * rpcbproc_getstat_4();
|
||||
extern rpcb_stat * rpcbproc_getstat_4_svc();
|
||||
extern int rpcbprog_4_freeresult ();
|
||||
#endif /* K&R C */
|
||||
|
||||
/* the xdr functions */
|
||||
|
||||
#if defined(__STDC__) || defined(__cplusplus)
|
||||
extern bool_t xdr_rpcb(XDR *, rpcb*);
|
||||
extern bool_t xdr_rp__list(XDR *, rp__list*);
|
||||
extern bool_t xdr_rpcblist_ptr(XDR *, rpcblist_ptr*);
|
||||
@ -633,25 +569,6 @@ extern bool_t xdr_rpcbs_rmtcalllist_ptr (XDR *, rpcbs_rmtcalllist_ptr*);
|
||||
extern bool_t xdr_rpcb_stat(XDR *, rpcb_stat*);
|
||||
extern bool_t xdr_rpcb_stat_byvers(XDR *, rpcb_stat_byvers);
|
||||
|
||||
#else /* K&R C */
|
||||
extern bool_t xdr_rpcb ();
|
||||
extern bool_t xdr_rp__list ();
|
||||
extern bool_t xdr_rpcblist_ptr ();
|
||||
extern bool_t xdr_rpcb_rmtcallargs ();
|
||||
extern bool_t xdr_rpcb_rmtcallres ();
|
||||
extern bool_t xdr_rpcb_entry ();
|
||||
extern bool_t xdr_rpcb_entry_list ();
|
||||
extern bool_t xdr_rpcb_entry_list_ptr ();
|
||||
extern bool_t xdr_rpcbs_addrlist ();
|
||||
extern bool_t xdr_rpcbs_rmtcalllist ();
|
||||
extern bool_t xdr_rpcbs_proc ();
|
||||
extern bool_t xdr_rpcbs_addrlist_ptr ();
|
||||
extern bool_t xdr_rpcbs_rmtcalllist_ptr ();
|
||||
extern bool_t xdr_rpcb_stat ();
|
||||
extern bool_t xdr_rpcb_stat_byvers ();
|
||||
|
||||
#endif /* K&R C */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@ -34,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>
|
||||
@ -49,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.
|
||||
@ -295,6 +306,7 @@ 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.
|
||||
@ -370,17 +382,17 @@ FILE *_nsyyin = (FILE *) 0, *_nsyyout = (FILE *) 0;
|
||||
|
||||
typedef int yy_state_type;
|
||||
|
||||
#define YY_FLEX_LEX_COMPAT
|
||||
extern int _nsyylineno;
|
||||
|
||||
int _nsyylineno = 1;
|
||||
|
||||
extern char _nsyytext[];
|
||||
extern char *_nsyytext;
|
||||
#define yytext_ptr _nsyytext
|
||||
|
||||
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 _nsyytext.
|
||||
@ -390,12 +402,6 @@ static void yy_fatal_error (yyconst char msg[] );
|
||||
_nsyyleng = (size_t) (yy_cp - yy_bp); \
|
||||
(yy_hold_char) = *yy_cp; \
|
||||
*yy_cp = '\0'; \
|
||||
if ( _nsyyleng + (yy_more_offset) >= YYLMAX ) \
|
||||
YY_FATAL_ERROR( "token too large, exceeds YYLMAX" ); \
|
||||
yy_flex_strncpy( &_nsyytext[(yy_more_offset)], (yytext_ptr), _nsyyleng + 1 ); \
|
||||
_nsyyleng += (yy_more_offset); \
|
||||
(yy_prev_more_offset) = (yy_more_offset); \
|
||||
(yy_more_offset) = 0; \
|
||||
(yy_c_buf_p) = yy_cp;
|
||||
|
||||
#define YY_NUM_RULES 13
|
||||
@ -407,27 +413,14 @@ struct yy_trans_info
|
||||
flex_int32_t yy_verify;
|
||||
flex_int32_t yy_nxt;
|
||||
};
|
||||
static yyconst flex_int16_t yy_acclist[83] =
|
||||
static yyconst flex_int16_t yy_accept[59] =
|
||||
{ 0,
|
||||
14, 12, 13, 1, 12, 13, 4, 13, 2, 12,
|
||||
13, 11, 12, 13, 11, 12, 13, 11, 12, 13,
|
||||
11, 12, 13, 11, 12, 13, 11, 12, 13, 11,
|
||||
12, 13, 12, 13, 1, 2, 11, 11, 11, 11,
|
||||
11, 11, 11, 3, 11, 11, 11, 11, 11, 11,
|
||||
0, 0, 14, 12, 1, 4, 2, 11, 11, 11,
|
||||
11, 11, 11, 11, 12, 1, 2, 11, 11, 11,
|
||||
11, 11, 11, 11, 3, 11, 11, 11, 11, 11,
|
||||
11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
|
||||
11, 11, 11, 11, 9, 11, 11, 11, 11, 11,
|
||||
11, 5, 11, 11, 6, 11, 10, 11, 7, 11,
|
||||
8, 11
|
||||
} ;
|
||||
|
||||
static yyconst flex_int16_t yy_accept[60] =
|
||||
{ 0,
|
||||
1, 1, 1, 2, 4, 7, 9, 12, 15, 18,
|
||||
21, 24, 27, 30, 33, 35, 36, 37, 38, 39,
|
||||
40, 41, 42, 43, 44, 45, 46, 47, 48, 49,
|
||||
50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
|
||||
60, 61, 62, 63, 64, 65, 67, 68, 69, 70,
|
||||
71, 72, 74, 75, 77, 79, 81, 83, 83
|
||||
11, 11, 11, 11, 11, 9, 11, 11, 11, 11,
|
||||
11, 5, 11, 6, 10, 7, 8, 0
|
||||
} ;
|
||||
|
||||
static yyconst flex_int32_t yy_ec[256] =
|
||||
@ -524,38 +517,22 @@ static yyconst flex_int32_t yy_rule_can_match_eol[14] =
|
||||
{ 0,
|
||||
0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, };
|
||||
|
||||
static yy_state_type yy_last_accepting_state;
|
||||
static char *yy_last_accepting_cpos;
|
||||
|
||||
extern int _nsyy_flex_debug;
|
||||
int _nsyy_flex_debug = 0;
|
||||
|
||||
static yy_state_type *yy_state_buf=0, *yy_state_ptr=0;
|
||||
static char *yy_full_match;
|
||||
static int yy_lp;
|
||||
#define REJECT \
|
||||
{ \
|
||||
*yy_cp = (yy_hold_char); /* undo effects of setting up _nsyytext */ \
|
||||
yy_cp = (yy_full_match); /* restore poss. backed-over text */ \
|
||||
++(yy_lp); \
|
||||
goto find_rule; \
|
||||
}
|
||||
|
||||
static int yy_more_offset = 0;
|
||||
static int yy_prev_more_offset = 0;
|
||||
#define yymore() ((yy_more_offset) = yy_flex_strlen( _nsyytext ))
|
||||
#define YY_NEED_STRLEN
|
||||
/* The intent behind this definition is that it'll catch
|
||||
* any uses of REJECT which flex missed.
|
||||
*/
|
||||
#define REJECT reject_used_but_not_detected
|
||||
#define yymore() yymore_used_but_not_detected
|
||||
#define YY_MORE_ADJ 0
|
||||
#define YY_RESTORE_YY_MORE_OFFSET \
|
||||
{ \
|
||||
(yy_more_offset) = (yy_prev_more_offset); \
|
||||
_nsyyleng -= (yy_more_offset); \
|
||||
}
|
||||
#ifndef YYLMAX
|
||||
#define YYLMAX 8192
|
||||
#endif
|
||||
|
||||
char _nsyytext[YYLMAX];
|
||||
char *yytext_ptr;
|
||||
#line 1 "freebsd/lib/libc/net/nslexer.l"
|
||||
#line 2 "freebsd/lib/libc/net/nslexer.l"
|
||||
#define YY_RESTORE_YY_MORE_OFFSET
|
||||
char *_nsyytext;
|
||||
#line 1 "../../freebsd/lib/libc/net/nslexer.l"
|
||||
#line 2 "../../freebsd/lib/libc/net/nslexer.l"
|
||||
/* $NetBSD: nslexer.l,v 1.3 1999/01/25 00:16:17 lukem Exp $ */
|
||||
|
||||
/*-
|
||||
@ -611,7 +588,7 @@ static char *rcsid =
|
||||
#include "nsparser.h"
|
||||
|
||||
#define YY_NO_INPUT 1
|
||||
#line 615 "<stdout>"
|
||||
#line 592 "<stdout>"
|
||||
|
||||
#define INITIAL 0
|
||||
|
||||
@ -787,14 +764,14 @@ extern int _nsyylex (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 66 "freebsd/lib/libc/net/nslexer.l"
|
||||
#line 66 "../../freebsd/lib/libc/net/nslexer.l"
|
||||
|
||||
|
||||
#line 798 "<stdout>"
|
||||
#line 775 "<stdout>"
|
||||
|
||||
if ( !(yy_init) )
|
||||
{
|
||||
@ -804,12 +781,6 @@ YY_DECL
|
||||
YY_USER_INIT;
|
||||
#endif
|
||||
|
||||
/* Create the reject buffer large enough to save one state per allowed character. */
|
||||
if ( ! (yy_state_buf) )
|
||||
(yy_state_buf) = (yy_state_type *)_nsyyalloc(YY_STATE_BUF_SIZE );
|
||||
if ( ! (yy_state_buf) )
|
||||
YY_FATAL_ERROR( "out of dynamic memory in _nsyylex()" );
|
||||
|
||||
if ( ! (yy_start) )
|
||||
(yy_start) = 1; /* first start state */
|
||||
|
||||
@ -841,14 +812,15 @@ YY_DECL
|
||||
yy_bp = yy_cp;
|
||||
|
||||
yy_current_state = (yy_start);
|
||||
|
||||
(yy_state_ptr) = (yy_state_buf);
|
||||
*(yy_state_ptr)++ = yy_current_state;
|
||||
|
||||
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;
|
||||
(yy_last_accepting_cpos) = yy_cp;
|
||||
}
|
||||
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
|
||||
{
|
||||
yy_current_state = (int) yy_def[yy_current_state];
|
||||
@ -856,36 +828,25 @@ yy_match:
|
||||
yy_c = yy_meta[(unsigned int) yy_c];
|
||||
}
|
||||
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
|
||||
*(yy_state_ptr)++ = yy_current_state;
|
||||
++yy_cp;
|
||||
}
|
||||
while ( yy_base[yy_current_state] != 69 );
|
||||
|
||||
yy_find_action:
|
||||
yy_current_state = *--(yy_state_ptr);
|
||||
(yy_lp) = yy_accept[yy_current_state];
|
||||
find_rule: /* we branch to this label when backing up */
|
||||
for ( ; ; ) /* until we find what rule we matched */
|
||||
{
|
||||
if ( (yy_lp) && (yy_lp) < yy_accept[yy_current_state + 1] )
|
||||
{
|
||||
yy_act = yy_acclist[(yy_lp)];
|
||||
{
|
||||
(yy_full_match) = yy_cp;
|
||||
break;
|
||||
}
|
||||
}
|
||||
--yy_cp;
|
||||
yy_current_state = *--(yy_state_ptr);
|
||||
(yy_lp) = yy_accept[yy_current_state];
|
||||
yy_act = yy_accept[yy_current_state];
|
||||
if ( yy_act == 0 )
|
||||
{ /* have to back up */
|
||||
yy_cp = (yy_last_accepting_cpos);
|
||||
yy_current_state = (yy_last_accepting_state);
|
||||
yy_act = yy_accept[yy_current_state];
|
||||
}
|
||||
|
||||
YY_DO_BEFORE_ACTION;
|
||||
|
||||
if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] )
|
||||
{
|
||||
int yyl;
|
||||
for ( yyl = (yy_prev_more_offset); yyl < _nsyyleng; ++yyl )
|
||||
yy_size_t yyl;
|
||||
for ( yyl = 0; yyl < _nsyyleng; ++yyl )
|
||||
if ( _nsyytext[yyl] == '\n' )
|
||||
|
||||
_nsyylineno++;
|
||||
@ -896,61 +857,68 @@ do_action: /* This label is used only to access EOF actions. */
|
||||
|
||||
switch ( yy_act )
|
||||
{ /* beginning of action switch */
|
||||
case 0: /* must back up */
|
||||
/* undo the effects of YY_DO_BEFORE_ACTION */
|
||||
*yy_cp = (yy_hold_char);
|
||||
yy_cp = (yy_last_accepting_cpos);
|
||||
yy_current_state = (yy_last_accepting_state);
|
||||
goto yy_find_action;
|
||||
|
||||
case 1:
|
||||
YY_RULE_SETUP
|
||||
#line 68 "freebsd/lib/libc/net/nslexer.l"
|
||||
#line 68 "../../freebsd/lib/libc/net/nslexer.l"
|
||||
; /* skip whitespace */
|
||||
YY_BREAK
|
||||
case 2:
|
||||
YY_RULE_SETUP
|
||||
#line 70 "freebsd/lib/libc/net/nslexer.l"
|
||||
#line 70 "../../freebsd/lib/libc/net/nslexer.l"
|
||||
; /* skip comments */
|
||||
YY_BREAK
|
||||
case 3:
|
||||
/* rule 3 can match eol */
|
||||
YY_RULE_SETUP
|
||||
#line 72 "freebsd/lib/libc/net/nslexer.l"
|
||||
#line 72 "../../freebsd/lib/libc/net/nslexer.l"
|
||||
; /* allow continuation */
|
||||
YY_BREAK
|
||||
case 4:
|
||||
/* rule 4 can match eol */
|
||||
YY_RULE_SETUP
|
||||
#line 74 "freebsd/lib/libc/net/nslexer.l"
|
||||
#line 74 "../../freebsd/lib/libc/net/nslexer.l"
|
||||
return NL;
|
||||
YY_BREAK
|
||||
case 5:
|
||||
YY_RULE_SETUP
|
||||
#line 76 "freebsd/lib/libc/net/nslexer.l"
|
||||
#line 76 "../../freebsd/lib/libc/net/nslexer.l"
|
||||
return SUCCESS;
|
||||
YY_BREAK
|
||||
case 6:
|
||||
YY_RULE_SETUP
|
||||
#line 77 "freebsd/lib/libc/net/nslexer.l"
|
||||
#line 77 "../../freebsd/lib/libc/net/nslexer.l"
|
||||
return UNAVAIL;
|
||||
YY_BREAK
|
||||
case 7:
|
||||
YY_RULE_SETUP
|
||||
#line 78 "freebsd/lib/libc/net/nslexer.l"
|
||||
#line 78 "../../freebsd/lib/libc/net/nslexer.l"
|
||||
return NOTFOUND;
|
||||
YY_BREAK
|
||||
case 8:
|
||||
YY_RULE_SETUP
|
||||
#line 79 "freebsd/lib/libc/net/nslexer.l"
|
||||
#line 79 "../../freebsd/lib/libc/net/nslexer.l"
|
||||
return TRYAGAIN;
|
||||
YY_BREAK
|
||||
case 9:
|
||||
YY_RULE_SETUP
|
||||
#line 81 "freebsd/lib/libc/net/nslexer.l"
|
||||
#line 81 "../../freebsd/lib/libc/net/nslexer.l"
|
||||
return RETURN;
|
||||
YY_BREAK
|
||||
case 10:
|
||||
YY_RULE_SETUP
|
||||
#line 82 "freebsd/lib/libc/net/nslexer.l"
|
||||
#line 82 "../../freebsd/lib/libc/net/nslexer.l"
|
||||
return CONTINUE;
|
||||
YY_BREAK
|
||||
case 11:
|
||||
YY_RULE_SETUP
|
||||
#line 84 "freebsd/lib/libc/net/nslexer.l"
|
||||
#line 84 "../../freebsd/lib/libc/net/nslexer.l"
|
||||
{
|
||||
char *p;
|
||||
int i;
|
||||
@ -970,15 +938,15 @@ YY_RULE_SETUP
|
||||
YY_BREAK
|
||||
case 12:
|
||||
YY_RULE_SETUP
|
||||
#line 101 "freebsd/lib/libc/net/nslexer.l"
|
||||
#line 101 "../../freebsd/lib/libc/net/nslexer.l"
|
||||
return _nsyytext[0];
|
||||
YY_BREAK
|
||||
case 13:
|
||||
YY_RULE_SETUP
|
||||
#line 103 "freebsd/lib/libc/net/nslexer.l"
|
||||
#line 103 "../../freebsd/lib/libc/net/nslexer.l"
|
||||
ECHO;
|
||||
YY_BREAK
|
||||
#line 982 "<stdout>"
|
||||
#line 950 "<stdout>"
|
||||
case YY_STATE_EOF(INITIAL):
|
||||
yyterminate();
|
||||
|
||||
@ -1120,9 +1088,9 @@ ECHO;
|
||||
*/
|
||||
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] )
|
||||
@ -1170,8 +1138,37 @@ static int yy_get_next_buffer (void)
|
||||
while ( num_to_read <= 0 )
|
||||
{ /* Not enough room in the buffer - grow it. */
|
||||
|
||||
/* just a shorter name for the current buffer */
|
||||
YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
|
||||
|
||||
int yy_c_buf_p_offset =
|
||||
(int) ((yy_c_buf_p) - b->yy_ch_buf);
|
||||
|
||||
if ( b->yy_is_our_buffer )
|
||||
{
|
||||
yy_size_t new_size = b->yy_buf_size * 2;
|
||||
|
||||
if ( new_size <= 0 )
|
||||
b->yy_buf_size += b->yy_buf_size / 8;
|
||||
else
|
||||
b->yy_buf_size *= 2;
|
||||
|
||||
b->yy_ch_buf = (char *)
|
||||
/* Include room in for 2 EOB chars. */
|
||||
_nsyyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 );
|
||||
}
|
||||
else
|
||||
/* Can't grow it, we don't own it. */
|
||||
b->yy_ch_buf = 0;
|
||||
|
||||
if ( ! b->yy_ch_buf )
|
||||
YY_FATAL_ERROR(
|
||||
"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
|
||||
"fatal error - scanner input buffer overflow" );
|
||||
|
||||
(yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
|
||||
|
||||
num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
|
||||
number_to_move - 1;
|
||||
|
||||
}
|
||||
|
||||
@ -1225,17 +1222,19 @@ 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);
|
||||
|
||||
(yy_state_ptr) = (yy_state_buf);
|
||||
*(yy_state_ptr)++ = yy_current_state;
|
||||
|
||||
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;
|
||||
(yy_last_accepting_cpos) = yy_cp;
|
||||
}
|
||||
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
|
||||
{
|
||||
yy_current_state = (int) yy_def[yy_current_state];
|
||||
@ -1243,7 +1242,6 @@ static int yy_get_next_buffer (void)
|
||||
yy_c = yy_meta[(unsigned int) yy_c];
|
||||
}
|
||||
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
|
||||
*(yy_state_ptr)++ = yy_current_state;
|
||||
}
|
||||
|
||||
return yy_current_state;
|
||||
@ -1256,9 +1254,15 @@ 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;
|
||||
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;
|
||||
(yy_last_accepting_cpos) = yy_cp;
|
||||
}
|
||||
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
|
||||
{
|
||||
yy_current_state = (int) yy_def[yy_current_state];
|
||||
@ -1267,8 +1271,6 @@ static int yy_get_next_buffer (void)
|
||||
}
|
||||
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
|
||||
yy_is_jam = (yy_current_state == 58);
|
||||
if ( ! yy_is_jam )
|
||||
*(yy_state_ptr)++ = yy_current_state;
|
||||
|
||||
return yy_is_jam ? 0 : yy_current_state;
|
||||
}
|
||||
@ -1676,7 +1678,7 @@ YY_BUFFER_STATE _nsyy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_l
|
||||
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;
|
||||
@ -1824,11 +1826,6 @@ static int yy_init_globals (void)
|
||||
(yy_init) = 0;
|
||||
(yy_start) = 0;
|
||||
|
||||
(yy_state_buf) = 0;
|
||||
(yy_state_ptr) = 0;
|
||||
(yy_full_match) = 0;
|
||||
(yy_lp) = 0;
|
||||
|
||||
/* Defined in main.c */
|
||||
#ifdef YY_STDINIT
|
||||
_nsyyin = stdin;
|
||||
@ -1859,9 +1856,6 @@ int _nsyylex_destroy (void)
|
||||
_nsyyfree((yy_buffer_stack) );
|
||||
(yy_buffer_stack) = NULL;
|
||||
|
||||
_nsyyfree ( (yy_state_buf) );
|
||||
(yy_state_buf) = NULL;
|
||||
|
||||
/* Reset the globals. This is important in a non-reentrant scanner so the next time
|
||||
* _nsyylex() is called, initialization will occur. */
|
||||
yy_init_globals( );
|
||||
@ -1876,7 +1870,7 @@ int _nsyylex_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];
|
||||
}
|
||||
@ -1885,7 +1879,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 )
|
||||
;
|
||||
|
||||
@ -1917,7 +1911,7 @@ void _nsyyfree (void * ptr )
|
||||
|
||||
#define YYTABLES_NAME "yytables"
|
||||
|
||||
#line 103 "freebsd/lib/libc/net/nslexer.l"
|
||||
#line 103 "../../freebsd/lib/libc/net/nslexer.l"
|
||||
|
||||
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -34,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>
|
||||
@ -49,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.
|
||||
@ -185,20 +196,7 @@ extern FILE *__libipsecyyin, *__libipsecyyout;
|
||||
#define EOB_ACT_END_OF_FILE 1
|
||||
#define EOB_ACT_LAST_MATCH 2
|
||||
|
||||
/* Note: We specifically omit the test for yy_rule_can_match_eol because it requires
|
||||
* access to the local variable yy_act. Since yyless() is a macro, it would break
|
||||
* existing scanners that call yyless() from OUTSIDE __libipsecyylex.
|
||||
* One obvious solution it to make yy_act a global. I tried that, and saw
|
||||
* a 5% performance hit in a non-__libipsecyylineno scanner, because yy_act is
|
||||
* normally declared as a register variable-- so it is not worth it.
|
||||
*/
|
||||
#define YY_LESS_LINENO(n) \
|
||||
do { \
|
||||
int yyl;\
|
||||
for ( yyl = n; yyl < __libipsecyyleng; ++yyl )\
|
||||
if ( __libipsecyytext[yyl] == '\n' )\
|
||||
--__libipsecyylineno;\
|
||||
}while(0)
|
||||
#define YY_LESS_LINENO(n)
|
||||
|
||||
/* Return all but the first "n" matched characters back to the input stream. */
|
||||
#define yyless(n) \
|
||||
@ -295,6 +293,7 @@ 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.
|
||||
@ -373,17 +372,17 @@ FILE *__libipsecyyin = (FILE *) 0, *__libipsecyyout = (FILE *) 0;
|
||||
|
||||
typedef int yy_state_type;
|
||||
|
||||
#define YY_FLEX_LEX_COMPAT
|
||||
extern int __libipsecyylineno;
|
||||
|
||||
int __libipsecyylineno = 1;
|
||||
|
||||
extern char __libipsecyytext[];
|
||||
extern char *__libipsecyytext;
|
||||
#define yytext_ptr __libipsecyytext
|
||||
|
||||
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 __libipsecyytext.
|
||||
@ -393,12 +392,6 @@ static void yy_fatal_error (yyconst char msg[] );
|
||||
__libipsecyyleng = (size_t) (yy_cp - yy_bp); \
|
||||
(yy_hold_char) = *yy_cp; \
|
||||
*yy_cp = '\0'; \
|
||||
if ( __libipsecyyleng + (yy_more_offset) >= YYLMAX ) \
|
||||
YY_FATAL_ERROR( "token too large, exceeds YYLMAX" ); \
|
||||
yy_flex_strncpy( &__libipsecyytext[(yy_more_offset)], (yytext_ptr), __libipsecyyleng + 1 ); \
|
||||
__libipsecyyleng += (yy_more_offset); \
|
||||
(yy_prev_more_offset) = (yy_more_offset); \
|
||||
(yy_more_offset) = 0; \
|
||||
(yy_c_buf_p) = yy_cp;
|
||||
|
||||
#define YY_NUM_RULES 26
|
||||
@ -410,36 +403,18 @@ struct yy_trans_info
|
||||
flex_int32_t yy_verify;
|
||||
flex_int32_t yy_nxt;
|
||||
};
|
||||
static yyconst flex_int16_t yy_acclist[131] =
|
||||
static yyconst flex_int16_t yy_accept[99] =
|
||||
{ 0,
|
||||
27, 26, 24, 26, 25, 26, 23, 26, 22, 26,
|
||||
21, 26, 22, 26, 22, 26, 22, 26, 22, 26,
|
||||
22, 26, 22, 26, 22, 26, 22, 26, 22, 26,
|
||||
22, 26, 22, 26, 24, 22, 9, 22, 22, 22,
|
||||
22, 22, 22, 22, 1, 22, 22, 14, 22, 22,
|
||||
22, 22, 22, 22, 22, 22, 22, 22, 15, 22,
|
||||
22, 22, 22, 22, 8, 22, 22, 22, 22, 2,
|
||||
22, 22, 11, 22, 22, 22, 22, 17, 22, 22,
|
||||
22, 22, 22, 22, 22, 4, 22, 22, 22, 22,
|
||||
22, 22, 22, 22, 22, 22, 5, 22, 22, 22,
|
||||
|
||||
22, 22, 6, 22, 22, 22, 22, 10, 22, 22,
|
||||
22, 13, 22, 20, 22, 16, 22, 3, 22, 7,
|
||||
22, 18, 22, 22, 22, 22, 19, 22, 12, 22
|
||||
} ;
|
||||
|
||||
static yyconst flex_int16_t yy_accept[100] =
|
||||
{ 0,
|
||||
1, 1, 1, 2, 3, 5, 7, 9, 11, 13,
|
||||
15, 17, 19, 21, 23, 25, 27, 29, 31, 33,
|
||||
35, 36, 36, 37, 39, 40, 41, 42, 43, 44,
|
||||
45, 47, 48, 50, 51, 52, 53, 54, 55, 56,
|
||||
57, 58, 59, 61, 62, 63, 64, 65, 67, 68,
|
||||
69, 70, 72, 73, 75, 76, 77, 78, 80, 81,
|
||||
82, 83, 84, 85, 86, 88, 89, 90, 91, 92,
|
||||
93, 94, 95, 96, 97, 99, 100, 101, 102, 103,
|
||||
105, 106, 107, 108, 110, 111, 112, 114, 116, 118,
|
||||
120, 122, 124, 125, 126, 127, 129, 131, 131
|
||||
0, 0, 27, 26, 24, 25, 23, 22, 21, 22,
|
||||
22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
|
||||
24, 0, 22, 9, 22, 22, 22, 22, 22, 22,
|
||||
1, 22, 14, 22, 22, 22, 22, 22, 22, 22,
|
||||
22, 22, 15, 22, 22, 22, 22, 8, 22, 22,
|
||||
22, 2, 22, 11, 22, 22, 22, 17, 22, 22,
|
||||
22, 22, 22, 22, 4, 22, 22, 22, 22, 22,
|
||||
22, 22, 22, 22, 5, 22, 22, 22, 22, 6,
|
||||
22, 22, 22, 10, 22, 22, 13, 20, 16, 3,
|
||||
7, 18, 22, 22, 22, 19, 12, 0
|
||||
|
||||
} ;
|
||||
|
||||
@ -570,43 +545,21 @@ static yyconst flex_int16_t yy_chk[226] =
|
||||
98, 98, 98, 98, 98
|
||||
} ;
|
||||
|
||||
/* Table of booleans, true if rule could match eol. */
|
||||
static yyconst flex_int32_t yy_rule_can_match_eol[27] =
|
||||
{ 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 1, 0, };
|
||||
static yy_state_type yy_last_accepting_state;
|
||||
static char *yy_last_accepting_cpos;
|
||||
|
||||
extern int __libipsecyy_flex_debug;
|
||||
int __libipsecyy_flex_debug = 0;
|
||||
|
||||
static yy_state_type *yy_state_buf=0, *yy_state_ptr=0;
|
||||
static char *yy_full_match;
|
||||
static int yy_lp;
|
||||
#define REJECT \
|
||||
{ \
|
||||
*yy_cp = (yy_hold_char); /* undo effects of setting up __libipsecyytext */ \
|
||||
yy_cp = (yy_full_match); /* restore poss. backed-over text */ \
|
||||
++(yy_lp); \
|
||||
goto find_rule; \
|
||||
}
|
||||
|
||||
static int yy_more_offset = 0;
|
||||
static int yy_prev_more_offset = 0;
|
||||
#define yymore() ((yy_more_offset) = yy_flex_strlen( __libipsecyytext ))
|
||||
#define YY_NEED_STRLEN
|
||||
/* The intent behind this definition is that it'll catch
|
||||
* any uses of REJECT which flex missed.
|
||||
*/
|
||||
#define REJECT reject_used_but_not_detected
|
||||
#define yymore() yymore_used_but_not_detected
|
||||
#define YY_MORE_ADJ 0
|
||||
#define YY_RESTORE_YY_MORE_OFFSET \
|
||||
{ \
|
||||
(yy_more_offset) = (yy_prev_more_offset); \
|
||||
__libipsecyyleng -= (yy_more_offset); \
|
||||
}
|
||||
#ifndef YYLMAX
|
||||
#define YYLMAX 8192
|
||||
#endif
|
||||
|
||||
char __libipsecyytext[YYLMAX];
|
||||
char *yytext_ptr;
|
||||
#line 1 "freebsd/lib/libipsec/policy_token.l"
|
||||
#define YY_RESTORE_YY_MORE_OFFSET
|
||||
char *__libipsecyytext;
|
||||
#line 1 "../../freebsd/lib/libipsec/policy_token.l"
|
||||
/* $FreeBSD$ */
|
||||
/* $KAME: policy_token.l,v 1.13 2003/05/09 05:19:55 sakane Exp $ */
|
||||
/*
|
||||
@ -637,7 +590,7 @@ char *yytext_ptr;
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
#line 34 "freebsd/lib/libipsec/policy_token.l"
|
||||
#line 34 "../../freebsd/lib/libipsec/policy_token.l"
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/socket.h>
|
||||
@ -653,17 +606,13 @@ char *yytext_ptr;
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
|
||||
#ifdef __rtems__
|
||||
/* XXX - Jennifer doesn't know where to get this from */
|
||||
static YY_BUFFER_STATE yy_current_buffer;
|
||||
#endif /* __rtems__ */
|
||||
#include "y.tab.h"
|
||||
#define yylval __libipsecyylval /* XXX */
|
||||
|
||||
int __libipsecyylex(void);
|
||||
#define YY_NO_INPUT 1
|
||||
/* common section */
|
||||
#line 667 "<stdout>"
|
||||
#line 616 "<stdout>"
|
||||
|
||||
#define INITIAL 0
|
||||
|
||||
@ -839,14 +788,14 @@ extern int __libipsecyylex (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 91 "freebsd/lib/libipsec/policy_token.l"
|
||||
#line 87 "../../freebsd/lib/libipsec/policy_token.l"
|
||||
|
||||
|
||||
#line 850 "<stdout>"
|
||||
#line 799 "<stdout>"
|
||||
|
||||
if ( !(yy_init) )
|
||||
{
|
||||
@ -856,12 +805,6 @@ YY_DECL
|
||||
YY_USER_INIT;
|
||||
#endif
|
||||
|
||||
/* Create the reject buffer large enough to save one state per allowed character. */
|
||||
if ( ! (yy_state_buf) )
|
||||
(yy_state_buf) = (yy_state_type *)__libipsecyyalloc(YY_STATE_BUF_SIZE );
|
||||
if ( ! (yy_state_buf) )
|
||||
YY_FATAL_ERROR( "out of dynamic memory in __libipsecyylex()" );
|
||||
|
||||
if ( ! (yy_start) )
|
||||
(yy_start) = 1; /* first start state */
|
||||
|
||||
@ -893,14 +836,15 @@ YY_DECL
|
||||
yy_bp = yy_cp;
|
||||
|
||||
yy_current_state = (yy_start);
|
||||
|
||||
(yy_state_ptr) = (yy_state_buf);
|
||||
*(yy_state_ptr)++ = yy_current_state;
|
||||
|
||||
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;
|
||||
(yy_last_accepting_cpos) = yy_cp;
|
||||
}
|
||||
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
|
||||
{
|
||||
yy_current_state = (int) yy_def[yy_current_state];
|
||||
@ -908,139 +852,125 @@ yy_match:
|
||||
yy_c = yy_meta[(unsigned int) yy_c];
|
||||
}
|
||||
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
|
||||
*(yy_state_ptr)++ = yy_current_state;
|
||||
++yy_cp;
|
||||
}
|
||||
while ( yy_base[yy_current_state] != 196 );
|
||||
|
||||
yy_find_action:
|
||||
yy_current_state = *--(yy_state_ptr);
|
||||
(yy_lp) = yy_accept[yy_current_state];
|
||||
find_rule: /* we branch to this label when backing up */
|
||||
for ( ; ; ) /* until we find what rule we matched */
|
||||
{
|
||||
if ( (yy_lp) && (yy_lp) < yy_accept[yy_current_state + 1] )
|
||||
{
|
||||
yy_act = yy_acclist[(yy_lp)];
|
||||
{
|
||||
(yy_full_match) = yy_cp;
|
||||
break;
|
||||
}
|
||||
}
|
||||
--yy_cp;
|
||||
yy_current_state = *--(yy_state_ptr);
|
||||
(yy_lp) = yy_accept[yy_current_state];
|
||||
yy_act = yy_accept[yy_current_state];
|
||||
if ( yy_act == 0 )
|
||||
{ /* have to back up */
|
||||
yy_cp = (yy_last_accepting_cpos);
|
||||
yy_current_state = (yy_last_accepting_state);
|
||||
yy_act = yy_accept[yy_current_state];
|
||||
}
|
||||
|
||||
YY_DO_BEFORE_ACTION;
|
||||
|
||||
if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] )
|
||||
{
|
||||
int yyl;
|
||||
for ( yyl = (yy_prev_more_offset); yyl < __libipsecyyleng; ++yyl )
|
||||
if ( __libipsecyytext[yyl] == '\n' )
|
||||
|
||||
__libipsecyylineno++;
|
||||
;
|
||||
}
|
||||
|
||||
do_action: /* This label is used only to access EOF actions. */
|
||||
|
||||
switch ( yy_act )
|
||||
{ /* beginning of action switch */
|
||||
case 0: /* must back up */
|
||||
/* undo the effects of YY_DO_BEFORE_ACTION */
|
||||
*yy_cp = (yy_hold_char);
|
||||
yy_cp = (yy_last_accepting_cpos);
|
||||
yy_current_state = (yy_last_accepting_state);
|
||||
goto yy_find_action;
|
||||
|
||||
case 1:
|
||||
YY_RULE_SETUP
|
||||
#line 93 "freebsd/lib/libipsec/policy_token.l"
|
||||
#line 89 "../../freebsd/lib/libipsec/policy_token.l"
|
||||
{ yylval.num = IPSEC_DIR_INBOUND; return(DIR); }
|
||||
YY_BREAK
|
||||
case 2:
|
||||
YY_RULE_SETUP
|
||||
#line 94 "freebsd/lib/libipsec/policy_token.l"
|
||||
#line 90 "../../freebsd/lib/libipsec/policy_token.l"
|
||||
{ yylval.num = IPSEC_DIR_OUTBOUND; return(DIR); }
|
||||
YY_BREAK
|
||||
case 3:
|
||||
YY_RULE_SETUP
|
||||
#line 96 "freebsd/lib/libipsec/policy_token.l"
|
||||
#line 92 "../../freebsd/lib/libipsec/policy_token.l"
|
||||
{ yylval.num = IPSEC_POLICY_DISCARD; return(ACTION); }
|
||||
YY_BREAK
|
||||
case 4:
|
||||
YY_RULE_SETUP
|
||||
#line 97 "freebsd/lib/libipsec/policy_token.l"
|
||||
#line 93 "../../freebsd/lib/libipsec/policy_token.l"
|
||||
{ yylval.num = IPSEC_POLICY_NONE; return(ACTION); }
|
||||
YY_BREAK
|
||||
case 5:
|
||||
YY_RULE_SETUP
|
||||
#line 98 "freebsd/lib/libipsec/policy_token.l"
|
||||
#line 94 "../../freebsd/lib/libipsec/policy_token.l"
|
||||
{ yylval.num = IPSEC_POLICY_IPSEC; return(ACTION); }
|
||||
YY_BREAK
|
||||
case 6:
|
||||
YY_RULE_SETUP
|
||||
#line 99 "freebsd/lib/libipsec/policy_token.l"
|
||||
#line 95 "../../freebsd/lib/libipsec/policy_token.l"
|
||||
{ yylval.num = IPSEC_POLICY_BYPASS; return(ACTION); }
|
||||
YY_BREAK
|
||||
case 7:
|
||||
YY_RULE_SETUP
|
||||
#line 100 "freebsd/lib/libipsec/policy_token.l"
|
||||
#line 96 "../../freebsd/lib/libipsec/policy_token.l"
|
||||
{ yylval.num = IPSEC_POLICY_ENTRUST; return(ACTION); }
|
||||
YY_BREAK
|
||||
case 8:
|
||||
YY_RULE_SETUP
|
||||
#line 102 "freebsd/lib/libipsec/policy_token.l"
|
||||
#line 98 "../../freebsd/lib/libipsec/policy_token.l"
|
||||
{ yylval.num = IPPROTO_ESP; return(PROTOCOL); }
|
||||
YY_BREAK
|
||||
case 9:
|
||||
YY_RULE_SETUP
|
||||
#line 103 "freebsd/lib/libipsec/policy_token.l"
|
||||
#line 99 "../../freebsd/lib/libipsec/policy_token.l"
|
||||
{ yylval.num = IPPROTO_AH; return(PROTOCOL); }
|
||||
YY_BREAK
|
||||
case 10:
|
||||
YY_RULE_SETUP
|
||||
#line 104 "freebsd/lib/libipsec/policy_token.l"
|
||||
#line 100 "../../freebsd/lib/libipsec/policy_token.l"
|
||||
{ yylval.num = IPPROTO_IPCOMP; return(PROTOCOL); }
|
||||
YY_BREAK
|
||||
case 11:
|
||||
YY_RULE_SETUP
|
||||
#line 105 "freebsd/lib/libipsec/policy_token.l"
|
||||
#line 101 "../../freebsd/lib/libipsec/policy_token.l"
|
||||
{ yylval.num = IPPROTO_TCP; return(PROTOCOL); }
|
||||
YY_BREAK
|
||||
case 12:
|
||||
YY_RULE_SETUP
|
||||
#line 107 "freebsd/lib/libipsec/policy_token.l"
|
||||
#line 103 "../../freebsd/lib/libipsec/policy_token.l"
|
||||
{ yylval.num = IPSEC_MODE_TRANSPORT; return(MODE); }
|
||||
YY_BREAK
|
||||
case 13:
|
||||
YY_RULE_SETUP
|
||||
#line 108 "freebsd/lib/libipsec/policy_token.l"
|
||||
#line 104 "../../freebsd/lib/libipsec/policy_token.l"
|
||||
{ yylval.num = IPSEC_MODE_TUNNEL; return(MODE); }
|
||||
YY_BREAK
|
||||
case 14:
|
||||
YY_RULE_SETUP
|
||||
#line 110 "freebsd/lib/libipsec/policy_token.l"
|
||||
#line 106 "../../freebsd/lib/libipsec/policy_token.l"
|
||||
{ return(ME); }
|
||||
YY_BREAK
|
||||
case 15:
|
||||
YY_RULE_SETUP
|
||||
#line 111 "freebsd/lib/libipsec/policy_token.l"
|
||||
#line 107 "../../freebsd/lib/libipsec/policy_token.l"
|
||||
{ return(ANY); }
|
||||
YY_BREAK
|
||||
case 16:
|
||||
YY_RULE_SETUP
|
||||
#line 113 "freebsd/lib/libipsec/policy_token.l"
|
||||
#line 109 "../../freebsd/lib/libipsec/policy_token.l"
|
||||
{ yylval.num = IPSEC_LEVEL_DEFAULT; return(LEVEL); }
|
||||
YY_BREAK
|
||||
case 17:
|
||||
YY_RULE_SETUP
|
||||
#line 114 "freebsd/lib/libipsec/policy_token.l"
|
||||
#line 110 "../../freebsd/lib/libipsec/policy_token.l"
|
||||
{ yylval.num = IPSEC_LEVEL_USE; return(LEVEL); }
|
||||
YY_BREAK
|
||||
case 18:
|
||||
YY_RULE_SETUP
|
||||
#line 115 "freebsd/lib/libipsec/policy_token.l"
|
||||
#line 111 "../../freebsd/lib/libipsec/policy_token.l"
|
||||
{ yylval.num = IPSEC_LEVEL_REQUIRE; return(LEVEL); }
|
||||
YY_BREAK
|
||||
case 19:
|
||||
YY_RULE_SETUP
|
||||
#line 116 "freebsd/lib/libipsec/policy_token.l"
|
||||
#line 112 "../../freebsd/lib/libipsec/policy_token.l"
|
||||
{
|
||||
yylval.val.len = strlen(__libipsecyytext + 7);
|
||||
yylval.val.buf = __libipsecyytext + 7;
|
||||
@ -1049,17 +979,17 @@ YY_RULE_SETUP
|
||||
YY_BREAK
|
||||
case 20:
|
||||
YY_RULE_SETUP
|
||||
#line 121 "freebsd/lib/libipsec/policy_token.l"
|
||||
#line 117 "../../freebsd/lib/libipsec/policy_token.l"
|
||||
{ yylval.num = IPSEC_LEVEL_UNIQUE; return(LEVEL); }
|
||||
YY_BREAK
|
||||
case 21:
|
||||
YY_RULE_SETUP
|
||||
#line 122 "freebsd/lib/libipsec/policy_token.l"
|
||||
#line 118 "../../freebsd/lib/libipsec/policy_token.l"
|
||||
{ return(SLASH); }
|
||||
YY_BREAK
|
||||
case 22:
|
||||
YY_RULE_SETUP
|
||||
#line 124 "freebsd/lib/libipsec/policy_token.l"
|
||||
#line 120 "../../freebsd/lib/libipsec/policy_token.l"
|
||||
{
|
||||
yylval.val.len = strlen(__libipsecyytext);
|
||||
yylval.val.buf = __libipsecyytext;
|
||||
@ -1068,26 +998,26 @@ YY_RULE_SETUP
|
||||
YY_BREAK
|
||||
case 23:
|
||||
YY_RULE_SETUP
|
||||
#line 130 "freebsd/lib/libipsec/policy_token.l"
|
||||
#line 126 "../../freebsd/lib/libipsec/policy_token.l"
|
||||
{ return(HYPHEN); }
|
||||
YY_BREAK
|
||||
case 24:
|
||||
YY_RULE_SETUP
|
||||
#line 132 "freebsd/lib/libipsec/policy_token.l"
|
||||
#line 128 "../../freebsd/lib/libipsec/policy_token.l"
|
||||
{ ; }
|
||||
YY_BREAK
|
||||
case 25:
|
||||
/* rule 25 can match eol */
|
||||
YY_RULE_SETUP
|
||||
#line 133 "freebsd/lib/libipsec/policy_token.l"
|
||||
#line 129 "../../freebsd/lib/libipsec/policy_token.l"
|
||||
{ ; }
|
||||
YY_BREAK
|
||||
case 26:
|
||||
YY_RULE_SETUP
|
||||
#line 135 "freebsd/lib/libipsec/policy_token.l"
|
||||
#line 131 "../../freebsd/lib/libipsec/policy_token.l"
|
||||
ECHO;
|
||||
YY_BREAK
|
||||
#line 1091 "<stdout>"
|
||||
#line 1021 "<stdout>"
|
||||
case YY_STATE_EOF(INITIAL):
|
||||
yyterminate();
|
||||
|
||||
@ -1229,9 +1159,9 @@ ECHO;
|
||||
*/
|
||||
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] )
|
||||
@ -1279,8 +1209,37 @@ static int yy_get_next_buffer (void)
|
||||
while ( num_to_read <= 0 )
|
||||
{ /* Not enough room in the buffer - grow it. */
|
||||
|
||||
/* just a shorter name for the current buffer */
|
||||
YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
|
||||
|
||||
int yy_c_buf_p_offset =
|
||||
(int) ((yy_c_buf_p) - b->yy_ch_buf);
|
||||
|
||||
if ( b->yy_is_our_buffer )
|
||||
{
|
||||
yy_size_t new_size = b->yy_buf_size * 2;
|
||||
|
||||
if ( new_size <= 0 )
|
||||
b->yy_buf_size += b->yy_buf_size / 8;
|
||||
else
|
||||
b->yy_buf_size *= 2;
|
||||
|
||||
b->yy_ch_buf = (char *)
|
||||
/* Include room in for 2 EOB chars. */
|
||||
__libipsecyyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 );
|
||||
}
|
||||
else
|
||||
/* Can't grow it, we don't own it. */
|
||||
b->yy_ch_buf = 0;
|
||||
|
||||
if ( ! b->yy_ch_buf )
|
||||
YY_FATAL_ERROR(
|
||||
"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
|
||||
"fatal error - scanner input buffer overflow" );
|
||||
|
||||
(yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
|
||||
|
||||
num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
|
||||
number_to_move - 1;
|
||||
|
||||
}
|
||||
|
||||
@ -1334,17 +1293,19 @@ 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);
|
||||
|
||||
(yy_state_ptr) = (yy_state_buf);
|
||||
*(yy_state_ptr)++ = yy_current_state;
|
||||
|
||||
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;
|
||||
(yy_last_accepting_cpos) = yy_cp;
|
||||
}
|
||||
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
|
||||
{
|
||||
yy_current_state = (int) yy_def[yy_current_state];
|
||||
@ -1352,7 +1313,6 @@ static int yy_get_next_buffer (void)
|
||||
yy_c = yy_meta[(unsigned int) yy_c];
|
||||
}
|
||||
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
|
||||
*(yy_state_ptr)++ = yy_current_state;
|
||||
}
|
||||
|
||||
return yy_current_state;
|
||||
@ -1365,9 +1325,15 @@ 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;
|
||||
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;
|
||||
(yy_last_accepting_cpos) = yy_cp;
|
||||
}
|
||||
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
|
||||
{
|
||||
yy_current_state = (int) yy_def[yy_current_state];
|
||||
@ -1376,8 +1342,6 @@ static int yy_get_next_buffer (void)
|
||||
}
|
||||
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
|
||||
yy_is_jam = (yy_current_state == 98);
|
||||
if ( ! yy_is_jam )
|
||||
*(yy_state_ptr)++ = yy_current_state;
|
||||
|
||||
return yy_is_jam ? 0 : yy_current_state;
|
||||
}
|
||||
@ -1452,11 +1416,6 @@ static int yy_get_next_buffer (void)
|
||||
*(yy_c_buf_p) = '\0'; /* preserve __libipsecyytext */
|
||||
(yy_hold_char) = *++(yy_c_buf_p);
|
||||
|
||||
if ( c == '\n' )
|
||||
|
||||
__libipsecyylineno++;
|
||||
;
|
||||
|
||||
return c;
|
||||
}
|
||||
#endif /* ifndef YY_NO_INPUT */
|
||||
@ -1785,7 +1744,7 @@ YY_BUFFER_STATE __libipsecyy_scan_bytes (yyconst char * yybytes, yy_size_t _yy
|
||||
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;
|
||||
@ -1923,9 +1882,6 @@ static int yy_init_globals (void)
|
||||
* This function is called from __libipsecyylex_destroy(), so don't allocate here.
|
||||
*/
|
||||
|
||||
/* We do not touch __libipsecyylineno unless the option is enabled. */
|
||||
__libipsecyylineno = 1;
|
||||
|
||||
(yy_buffer_stack) = 0;
|
||||
(yy_buffer_stack_top) = 0;
|
||||
(yy_buffer_stack_max) = 0;
|
||||
@ -1933,11 +1889,6 @@ static int yy_init_globals (void)
|
||||
(yy_init) = 0;
|
||||
(yy_start) = 0;
|
||||
|
||||
(yy_state_buf) = 0;
|
||||
(yy_state_ptr) = 0;
|
||||
(yy_full_match) = 0;
|
||||
(yy_lp) = 0;
|
||||
|
||||
/* Defined in main.c */
|
||||
#ifdef YY_STDINIT
|
||||
__libipsecyyin = stdin;
|
||||
@ -1968,9 +1919,6 @@ int __libipsecyylex_destroy (void)
|
||||
__libipsecyyfree((yy_buffer_stack) );
|
||||
(yy_buffer_stack) = NULL;
|
||||
|
||||
__libipsecyyfree ( (yy_state_buf) );
|
||||
(yy_state_buf) = NULL;
|
||||
|
||||
/* Reset the globals. This is important in a non-reentrant scanner so the next time
|
||||
* __libipsecyylex() is called, initialization will occur. */
|
||||
yy_init_globals( );
|
||||
@ -1985,7 +1933,7 @@ int __libipsecyylex_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];
|
||||
}
|
||||
@ -1994,7 +1942,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 )
|
||||
;
|
||||
|
||||
@ -2026,7 +1974,7 @@ void __libipsecyyfree (void * ptr )
|
||||
|
||||
#define YYTABLES_NAME "yytables"
|
||||
|
||||
#line 135 "freebsd/lib/libipsec/policy_token.l"
|
||||
#line 131 "../../freebsd/lib/libipsec/policy_token.l"
|
||||
|
||||
|
||||
|
||||
|
@ -46,10 +46,6 @@
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
|
||||
#ifdef __rtems__
|
||||
/* XXX - Jennifer doesn't know where to get this from */
|
||||
static YY_BUFFER_STATE yy_current_buffer;
|
||||
#endif /* __rtems__ */
|
||||
#include "y.tab.h"
|
||||
#define yylval __libipsecyylval /* XXX */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user