mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
tools: Commit flex (2.6.4) & bison (3.3.2) output from Debian buster
These files are in tree so that people can build (including from git) without needing less-than-a-decade-old flex and bison. We should update them periodically. Debian buster has been Debian stable for a while. Our CI is running buster. There should be no significant functional change; it's possible that there are bugfixes but I have not reviewed the changes. I *have* checked that the flex I am using has the fix for CVE-2016-6354. CC: Paul Durrant <paul@xen.org> CC: Andrew Cooper <andrew.cooper3@citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> Reviewed-by: Anthony PERARD <anthony.perard@citrix.com> Release-acked-by: Paul Durrant <paul@xen.org>
This commit is contained in:
1 parent
4f4f6a67ac
commit
fde76f895d
4 files changed
+1033
-411
No files matched your search
+451
-225
File diff suppressed because it is too large.
Load diff
+428
-43
@@ -13,11 +13,245 @@
|
||||
#define FLEX_SCANNER
|
||||
#define YY_FLEX_MAJOR_VERSION 2
|
||||
#define YY_FLEX_MINOR_VERSION 6
|
||||
#define YY_FLEX_SUBMINOR_VERSION 1
|
||||
#define YY_FLEX_SUBMINOR_VERSION 4
|
||||
#if YY_FLEX_SUBMINOR_VERSION > 0
|
||||
#define FLEX_BETA
|
||||
#endif
|
||||
|
||||
#ifdef yy_create_buffer
|
||||
#define xlu__cfg_yy_create_buffer_ALREADY_DEFINED
|
||||
#else
|
||||
#define yy_create_buffer xlu__cfg_yy_create_buffer
|
||||
#endif
|
||||
|
||||
#ifdef yy_delete_buffer
|
||||
#define xlu__cfg_yy_delete_buffer_ALREADY_DEFINED
|
||||
#else
|
||||
#define yy_delete_buffer xlu__cfg_yy_delete_buffer
|
||||
#endif
|
||||
|
||||
#ifdef yy_scan_buffer
|
||||
#define xlu__cfg_yy_scan_buffer_ALREADY_DEFINED
|
||||
#else
|
||||
#define yy_scan_buffer xlu__cfg_yy_scan_buffer
|
||||
#endif
|
||||
|
||||
#ifdef yy_scan_string
|
||||
#define xlu__cfg_yy_scan_string_ALREADY_DEFINED
|
||||
#else
|
||||
#define yy_scan_string xlu__cfg_yy_scan_string
|
||||
#endif
|
||||
|
||||
#ifdef yy_scan_bytes
|
||||
#define xlu__cfg_yy_scan_bytes_ALREADY_DEFINED
|
||||
#else
|
||||
#define yy_scan_bytes xlu__cfg_yy_scan_bytes
|
||||
#endif
|
||||
|
||||
#ifdef yy_init_buffer
|
||||
#define xlu__cfg_yy_init_buffer_ALREADY_DEFINED
|
||||
#else
|
||||
#define yy_init_buffer xlu__cfg_yy_init_buffer
|
||||
#endif
|
||||
|
||||
#ifdef yy_flush_buffer
|
||||
#define xlu__cfg_yy_flush_buffer_ALREADY_DEFINED
|
||||
#else
|
||||
#define yy_flush_buffer xlu__cfg_yy_flush_buffer
|
||||
#endif
|
||||
|
||||
#ifdef yy_load_buffer_state
|
||||
#define xlu__cfg_yy_load_buffer_state_ALREADY_DEFINED
|
||||
#else
|
||||
#define yy_load_buffer_state xlu__cfg_yy_load_buffer_state
|
||||
#endif
|
||||
|
||||
#ifdef yy_switch_to_buffer
|
||||
#define xlu__cfg_yy_switch_to_buffer_ALREADY_DEFINED
|
||||
#else
|
||||
#define yy_switch_to_buffer xlu__cfg_yy_switch_to_buffer
|
||||
#endif
|
||||
|
||||
#ifdef yypush_buffer_state
|
||||
#define xlu__cfg_yypush_buffer_state_ALREADY_DEFINED
|
||||
#else
|
||||
#define yypush_buffer_state xlu__cfg_yypush_buffer_state
|
||||
#endif
|
||||
|
||||
#ifdef yypop_buffer_state
|
||||
#define xlu__cfg_yypop_buffer_state_ALREADY_DEFINED
|
||||
#else
|
||||
#define yypop_buffer_state xlu__cfg_yypop_buffer_state
|
||||
#endif
|
||||
|
||||
#ifdef yyensure_buffer_stack
|
||||
#define xlu__cfg_yyensure_buffer_stack_ALREADY_DEFINED
|
||||
#else
|
||||
#define yyensure_buffer_stack xlu__cfg_yyensure_buffer_stack
|
||||
#endif
|
||||
|
||||
#ifdef yylex
|
||||
#define xlu__cfg_yylex_ALREADY_DEFINED
|
||||
#else
|
||||
#define yylex xlu__cfg_yylex
|
||||
#endif
|
||||
|
||||
#ifdef yyrestart
|
||||
#define xlu__cfg_yyrestart_ALREADY_DEFINED
|
||||
#else
|
||||
#define yyrestart xlu__cfg_yyrestart
|
||||
#endif
|
||||
|
||||
#ifdef yylex_init
|
||||
#define xlu__cfg_yylex_init_ALREADY_DEFINED
|
||||
#else
|
||||
#define yylex_init xlu__cfg_yylex_init
|
||||
#endif
|
||||
|
||||
#ifdef yylex_init_extra
|
||||
#define xlu__cfg_yylex_init_extra_ALREADY_DEFINED
|
||||
#else
|
||||
#define yylex_init_extra xlu__cfg_yylex_init_extra
|
||||
#endif
|
||||
|
||||
#ifdef yylex_destroy
|
||||
#define xlu__cfg_yylex_destroy_ALREADY_DEFINED
|
||||
#else
|
||||
#define yylex_destroy xlu__cfg_yylex_destroy
|
||||
#endif
|
||||
|
||||
#ifdef yyget_debug
|
||||
#define xlu__cfg_yyget_debug_ALREADY_DEFINED
|
||||
#else
|
||||
#define yyget_debug xlu__cfg_yyget_debug
|
||||
#endif
|
||||
|
||||
#ifdef yyset_debug
|
||||
#define xlu__cfg_yyset_debug_ALREADY_DEFINED
|
||||
#else
|
||||
#define yyset_debug xlu__cfg_yyset_debug
|
||||
#endif
|
||||
|
||||
#ifdef yyget_extra
|
||||
#define xlu__cfg_yyget_extra_ALREADY_DEFINED
|
||||
#else
|
||||
#define yyget_extra xlu__cfg_yyget_extra
|
||||
#endif
|
||||
|
||||
#ifdef yyset_extra
|
||||
#define xlu__cfg_yyset_extra_ALREADY_DEFINED
|
||||
#else
|
||||
#define yyset_extra xlu__cfg_yyset_extra
|
||||
#endif
|
||||
|
||||
#ifdef yyget_in
|
||||
#define xlu__cfg_yyget_in_ALREADY_DEFINED
|
||||
#else
|
||||
#define yyget_in xlu__cfg_yyget_in
|
||||
#endif
|
||||
|
||||
#ifdef yyset_in
|
||||
#define xlu__cfg_yyset_in_ALREADY_DEFINED
|
||||
#else
|
||||
#define yyset_in xlu__cfg_yyset_in
|
||||
#endif
|
||||
|
||||
#ifdef yyget_out
|
||||
#define xlu__cfg_yyget_out_ALREADY_DEFINED
|
||||
#else
|
||||
#define yyget_out xlu__cfg_yyget_out
|
||||
#endif
|
||||
|
||||
#ifdef yyset_out
|
||||
#define xlu__cfg_yyset_out_ALREADY_DEFINED
|
||||
#else
|
||||
#define yyset_out xlu__cfg_yyset_out
|
||||
#endif
|
||||
|
||||
#ifdef yyget_leng
|
||||
#define xlu__cfg_yyget_leng_ALREADY_DEFINED
|
||||
#else
|
||||
#define yyget_leng xlu__cfg_yyget_leng
|
||||
#endif
|
||||
|
||||
#ifdef yyget_text
|
||||
#define xlu__cfg_yyget_text_ALREADY_DEFINED
|
||||
#else
|
||||
#define yyget_text xlu__cfg_yyget_text
|
||||
#endif
|
||||
|
||||
#ifdef yyget_lineno
|
||||
#define xlu__cfg_yyget_lineno_ALREADY_DEFINED
|
||||
#else
|
||||
#define yyget_lineno xlu__cfg_yyget_lineno
|
||||
#endif
|
||||
|
||||
#ifdef yyset_lineno
|
||||
#define xlu__cfg_yyset_lineno_ALREADY_DEFINED
|
||||
#else
|
||||
#define yyset_lineno xlu__cfg_yyset_lineno
|
||||
#endif
|
||||
|
||||
#ifdef yyget_column
|
||||
#define xlu__cfg_yyget_column_ALREADY_DEFINED
|
||||
#else
|
||||
#define yyget_column xlu__cfg_yyget_column
|
||||
#endif
|
||||
|
||||
#ifdef yyset_column
|
||||
#define xlu__cfg_yyset_column_ALREADY_DEFINED
|
||||
#else
|
||||
#define yyset_column xlu__cfg_yyset_column
|
||||
#endif
|
||||
|
||||
#ifdef yywrap
|
||||
#define xlu__cfg_yywrap_ALREADY_DEFINED
|
||||
#else
|
||||
#define yywrap xlu__cfg_yywrap
|
||||
#endif
|
||||
|
||||
#ifdef yyget_lval
|
||||
#define xlu__cfg_yyget_lval_ALREADY_DEFINED
|
||||
#else
|
||||
#define yyget_lval xlu__cfg_yyget_lval
|
||||
#endif
|
||||
|
||||
#ifdef yyset_lval
|
||||
#define xlu__cfg_yyset_lval_ALREADY_DEFINED
|
||||
#else
|
||||
#define yyset_lval xlu__cfg_yyset_lval
|
||||
#endif
|
||||
|
||||
#ifdef yyget_lloc
|
||||
#define xlu__cfg_yyget_lloc_ALREADY_DEFINED
|
||||
#else
|
||||
#define yyget_lloc xlu__cfg_yyget_lloc
|
||||
#endif
|
||||
|
||||
#ifdef yyset_lloc
|
||||
#define xlu__cfg_yyset_lloc_ALREADY_DEFINED
|
||||
#else
|
||||
#define yyset_lloc xlu__cfg_yyset_lloc
|
||||
#endif
|
||||
|
||||
#ifdef yyalloc
|
||||
#define xlu__cfg_yyalloc_ALREADY_DEFINED
|
||||
#else
|
||||
#define yyalloc xlu__cfg_yyalloc
|
||||
#endif
|
||||
|
||||
#ifdef yyrealloc
|
||||
#define xlu__cfg_yyrealloc_ALREADY_DEFINED
|
||||
#else
|
||||
#define yyrealloc xlu__cfg_yyrealloc
|
||||
#endif
|
||||
|
||||
#ifdef yyfree
|
||||
#define xlu__cfg_yyfree_ALREADY_DEFINED
|
||||
#else
|
||||
#define yyfree xlu__cfg_yyfree
|
||||
#endif
|
||||
|
||||
/* First, we deal with platform-specific or compiler-specific issues. */
|
||||
|
||||
/* begin standard C headers. */
|
||||
@@ -88,10 +322,16 @@ typedef unsigned int flex_uint32_t;
|
||||
#define UINT32_MAX (4294967295U)
|
||||
#endif
|
||||
|
||||
#ifndef SIZE_MAX
|
||||
#define SIZE_MAX (~(size_t)0)
|
||||
#endif
|
||||
|
||||
#endif /* ! C99 */
|
||||
|
||||
#endif /* ! FLEXINT_H */
|
||||
|
||||
/* begin standard C++ headers. */
|
||||
|
||||
/* TODO: this is always defined, so inline it */
|
||||
#define yyconst const
|
||||
|
||||
@@ -192,21 +432,21 @@ struct yy_buffer_state
|
||||
};
|
||||
#endif /* !YY_STRUCT_YY_BUFFER_STATE */
|
||||
|
||||
void xlu__cfg_yyrestart (FILE *input_file ,yyscan_t yyscanner );
|
||||
void xlu__cfg_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
|
||||
YY_BUFFER_STATE xlu__cfg_yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner );
|
||||
void xlu__cfg_yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
|
||||
void xlu__cfg_yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
|
||||
void xlu__cfg_yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
|
||||
void xlu__cfg_yypop_buffer_state (yyscan_t yyscanner );
|
||||
void yyrestart ( FILE *input_file , yyscan_t yyscanner );
|
||||
void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer , yyscan_t yyscanner );
|
||||
YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size , yyscan_t yyscanner );
|
||||
void yy_delete_buffer ( YY_BUFFER_STATE b , yyscan_t yyscanner );
|
||||
void yy_flush_buffer ( YY_BUFFER_STATE b , yyscan_t yyscanner );
|
||||
void yypush_buffer_state ( YY_BUFFER_STATE new_buffer , yyscan_t yyscanner );
|
||||
void yypop_buffer_state ( yyscan_t yyscanner );
|
||||
|
||||
YY_BUFFER_STATE xlu__cfg_yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
|
||||
YY_BUFFER_STATE xlu__cfg_yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
|
||||
YY_BUFFER_STATE xlu__cfg_yy_scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner );
|
||||
YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size , yyscan_t yyscanner );
|
||||
YY_BUFFER_STATE yy_scan_string ( const char *yy_str , yyscan_t yyscanner );
|
||||
YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len , yyscan_t yyscanner );
|
||||
|
||||
void *xlu__cfg_yyalloc (yy_size_t ,yyscan_t yyscanner );
|
||||
void *xlu__cfg_yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
|
||||
void xlu__cfg_yyfree (void * ,yyscan_t yyscanner );
|
||||
void *yyalloc ( yy_size_t , yyscan_t yyscanner );
|
||||
void *yyrealloc ( void *, yy_size_t , yyscan_t yyscanner );
|
||||
void yyfree ( void * , yyscan_t yyscanner );
|
||||
|
||||
#define xlu__cfg_yywrap(yyscanner) (/*CONSTCOND*/1)
|
||||
#define YY_SKIP_YYWRAP
|
||||
@@ -231,50 +471,50 @@ void xlu__cfg_yyfree (void * ,yyscan_t yyscanner );
|
||||
#define YY_EXTRA_TYPE void *
|
||||
#endif
|
||||
|
||||
int xlu__cfg_yylex_init (yyscan_t* scanner);
|
||||
int yylex_init (yyscan_t* scanner);
|
||||
|
||||
int xlu__cfg_yylex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner);
|
||||
int yylex_init_extra ( YY_EXTRA_TYPE user_defined, yyscan_t* scanner);
|
||||
|
||||
/* Accessor methods to globals.
|
||||
These are made visible to non-reentrant scanners for convenience. */
|
||||
|
||||
int xlu__cfg_yylex_destroy (yyscan_t yyscanner );
|
||||
int yylex_destroy ( yyscan_t yyscanner );
|
||||
|
||||
int xlu__cfg_yyget_debug (yyscan_t yyscanner );
|
||||
int yyget_debug ( yyscan_t yyscanner );
|
||||
|
||||
void xlu__cfg_yyset_debug (int debug_flag ,yyscan_t yyscanner );
|
||||
void yyset_debug ( int debug_flag , yyscan_t yyscanner );
|
||||
|
||||
YY_EXTRA_TYPE xlu__cfg_yyget_extra (yyscan_t yyscanner );
|
||||
YY_EXTRA_TYPE yyget_extra ( yyscan_t yyscanner );
|
||||
|
||||
void xlu__cfg_yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
|
||||
void yyset_extra ( YY_EXTRA_TYPE user_defined , yyscan_t yyscanner );
|
||||
|
||||
FILE *xlu__cfg_yyget_in (yyscan_t yyscanner );
|
||||
FILE *yyget_in ( yyscan_t yyscanner );
|
||||
|
||||
void xlu__cfg_yyset_in (FILE * _in_str ,yyscan_t yyscanner );
|
||||
void yyset_in ( FILE * _in_str , yyscan_t yyscanner );
|
||||
|
||||
FILE *xlu__cfg_yyget_out (yyscan_t yyscanner );
|
||||
FILE *yyget_out ( yyscan_t yyscanner );
|
||||
|
||||
void xlu__cfg_yyset_out (FILE * _out_str ,yyscan_t yyscanner );
|
||||
void yyset_out ( FILE * _out_str , yyscan_t yyscanner );
|
||||
|
||||
int xlu__cfg_yyget_leng (yyscan_t yyscanner );
|
||||
int yyget_leng ( yyscan_t yyscanner );
|
||||
|
||||
char *xlu__cfg_yyget_text (yyscan_t yyscanner );
|
||||
char *yyget_text ( yyscan_t yyscanner );
|
||||
|
||||
int xlu__cfg_yyget_lineno (yyscan_t yyscanner );
|
||||
int yyget_lineno ( yyscan_t yyscanner );
|
||||
|
||||
void xlu__cfg_yyset_lineno (int _line_number ,yyscan_t yyscanner );
|
||||
void yyset_lineno ( int _line_number , yyscan_t yyscanner );
|
||||
|
||||
int xlu__cfg_yyget_column (yyscan_t yyscanner );
|
||||
int yyget_column ( yyscan_t yyscanner );
|
||||
|
||||
void xlu__cfg_yyset_column (int _column_no ,yyscan_t yyscanner );
|
||||
void yyset_column ( int _column_no , yyscan_t yyscanner );
|
||||
|
||||
YYSTYPE * xlu__cfg_yyget_lval (yyscan_t yyscanner );
|
||||
YYSTYPE * yyget_lval ( yyscan_t yyscanner );
|
||||
|
||||
void xlu__cfg_yyset_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner );
|
||||
void yyset_lval ( YYSTYPE * yylval_param , yyscan_t yyscanner );
|
||||
|
||||
YYLTYPE *xlu__cfg_yyget_lloc (yyscan_t yyscanner );
|
||||
YYLTYPE *yyget_lloc ( yyscan_t yyscanner );
|
||||
|
||||
void xlu__cfg_yyset_lloc (YYLTYPE * yylloc_param ,yyscan_t yyscanner );
|
||||
void yyset_lloc ( YYLTYPE * yylloc_param , yyscan_t yyscanner );
|
||||
|
||||
/* Macros after this point can all be overridden by user definitions in
|
||||
* section 1.
|
||||
@@ -282,18 +522,18 @@ void xlu__cfg_yyset_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner );
|
||||
|
||||
#ifndef YY_SKIP_YYWRAP
|
||||
#ifdef __cplusplus
|
||||
extern "C" int xlu__cfg_yywrap (yyscan_t yyscanner );
|
||||
extern "C" int yywrap ( yyscan_t yyscanner );
|
||||
#else
|
||||
extern int xlu__cfg_yywrap (yyscan_t yyscanner );
|
||||
extern int yywrap ( yyscan_t yyscanner );
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef yytext_ptr
|
||||
static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
|
||||
static void yy_flex_strncpy ( char *, const char *, int , yyscan_t yyscanner);
|
||||
#endif
|
||||
|
||||
#ifdef YY_NEED_STRLEN
|
||||
static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
|
||||
static int yy_flex_strlen ( const char * , yyscan_t yyscanner);
|
||||
#endif
|
||||
|
||||
#ifndef YY_NO_INPUT
|
||||
@@ -321,10 +561,10 @@ static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
|
||||
#ifndef YY_DECL
|
||||
#define YY_DECL_IS_OURS 1
|
||||
|
||||
extern int xlu__cfg_yylex \
|
||||
(YYSTYPE * yylval_param,YYLTYPE * yylloc_param ,yyscan_t yyscanner);
|
||||
extern int yylex \
|
||||
(YYSTYPE * yylval_param, YYLTYPE * yylloc_param , yyscan_t yyscanner);
|
||||
|
||||
#define YY_DECL int xlu__cfg_yylex \
|
||||
#define YY_DECL int yylex \
|
||||
(YYSTYPE * yylval_param, YYLTYPE * yylloc_param , yyscan_t yyscanner)
|
||||
#endif /* !YY_DECL */
|
||||
|
||||
@@ -342,8 +582,153 @@ extern int xlu__cfg_yylex \
|
||||
#undef YY_DECL
|
||||
#endif
|
||||
|
||||
#ifndef xlu__cfg_yy_create_buffer_ALREADY_DEFINED
|
||||
#undef yy_create_buffer
|
||||
#endif
|
||||
#ifndef xlu__cfg_yy_delete_buffer_ALREADY_DEFINED
|
||||
#undef yy_delete_buffer
|
||||
#endif
|
||||
#ifndef xlu__cfg_yy_scan_buffer_ALREADY_DEFINED
|
||||
#undef yy_scan_buffer
|
||||
#endif
|
||||
#ifndef xlu__cfg_yy_scan_string_ALREADY_DEFINED
|
||||
#undef yy_scan_string
|
||||
#endif
|
||||
#ifndef xlu__cfg_yy_scan_bytes_ALREADY_DEFINED
|
||||
#undef yy_scan_bytes
|
||||
#endif
|
||||
#ifndef xlu__cfg_yy_init_buffer_ALREADY_DEFINED
|
||||
#undef yy_init_buffer
|
||||
#endif
|
||||
#ifndef xlu__cfg_yy_flush_buffer_ALREADY_DEFINED
|
||||
#undef yy_flush_buffer
|
||||
#endif
|
||||
#ifndef xlu__cfg_yy_load_buffer_state_ALREADY_DEFINED
|
||||
#undef yy_load_buffer_state
|
||||
#endif
|
||||
#ifndef xlu__cfg_yy_switch_to_buffer_ALREADY_DEFINED
|
||||
#undef yy_switch_to_buffer
|
||||
#endif
|
||||
#ifndef xlu__cfg_yypush_buffer_state_ALREADY_DEFINED
|
||||
#undef yypush_buffer_state
|
||||
#endif
|
||||
#ifndef xlu__cfg_yypop_buffer_state_ALREADY_DEFINED
|
||||
#undef yypop_buffer_state
|
||||
#endif
|
||||
#ifndef xlu__cfg_yyensure_buffer_stack_ALREADY_DEFINED
|
||||
#undef yyensure_buffer_stack
|
||||
#endif
|
||||
#ifndef xlu__cfg_yylex_ALREADY_DEFINED
|
||||
#undef yylex
|
||||
#endif
|
||||
#ifndef xlu__cfg_yyrestart_ALREADY_DEFINED
|
||||
#undef yyrestart
|
||||
#endif
|
||||
#ifndef xlu__cfg_yylex_init_ALREADY_DEFINED
|
||||
#undef yylex_init
|
||||
#endif
|
||||
#ifndef xlu__cfg_yylex_init_extra_ALREADY_DEFINED
|
||||
#undef yylex_init_extra
|
||||
#endif
|
||||
#ifndef xlu__cfg_yylex_destroy_ALREADY_DEFINED
|
||||
#undef yylex_destroy
|
||||
#endif
|
||||
#ifndef xlu__cfg_yyget_debug_ALREADY_DEFINED
|
||||
#undef yyget_debug
|
||||
#endif
|
||||
#ifndef xlu__cfg_yyset_debug_ALREADY_DEFINED
|
||||
#undef yyset_debug
|
||||
#endif
|
||||
#ifndef xlu__cfg_yyget_extra_ALREADY_DEFINED
|
||||
#undef yyget_extra
|
||||
#endif
|
||||
#ifndef xlu__cfg_yyset_extra_ALREADY_DEFINED
|
||||
#undef yyset_extra
|
||||
#endif
|
||||
#ifndef xlu__cfg_yyget_in_ALREADY_DEFINED
|
||||
#undef yyget_in
|
||||
#endif
|
||||
#ifndef xlu__cfg_yyset_in_ALREADY_DEFINED
|
||||
#undef yyset_in
|
||||
#endif
|
||||
#ifndef xlu__cfg_yyget_out_ALREADY_DEFINED
|
||||
#undef yyget_out
|
||||
#endif
|
||||
#ifndef xlu__cfg_yyset_out_ALREADY_DEFINED
|
||||
#undef yyset_out
|
||||
#endif
|
||||
#ifndef xlu__cfg_yyget_leng_ALREADY_DEFINED
|
||||
#undef yyget_leng
|
||||
#endif
|
||||
#ifndef xlu__cfg_yyget_text_ALREADY_DEFINED
|
||||
#undef yyget_text
|
||||
#endif
|
||||
#ifndef xlu__cfg_yyget_lineno_ALREADY_DEFINED
|
||||
#undef yyget_lineno
|
||||
#endif
|
||||
#ifndef xlu__cfg_yyset_lineno_ALREADY_DEFINED
|
||||
#undef yyset_lineno
|
||||
#endif
|
||||
#ifndef xlu__cfg_yyget_column_ALREADY_DEFINED
|
||||
#undef yyget_column
|
||||
#endif
|
||||
#ifndef xlu__cfg_yyset_column_ALREADY_DEFINED
|
||||
#undef yyset_column
|
||||
#endif
|
||||
#ifndef xlu__cfg_yywrap_ALREADY_DEFINED
|
||||
#undef yywrap
|
||||
#endif
|
||||
#ifndef xlu__cfg_yyget_lval_ALREADY_DEFINED
|
||||
#undef yyget_lval
|
||||
#endif
|
||||
#ifndef xlu__cfg_yyset_lval_ALREADY_DEFINED
|
||||
#undef yyset_lval
|
||||
#endif
|
||||
#ifndef xlu__cfg_yyget_lloc_ALREADY_DEFINED
|
||||
#undef yyget_lloc
|
||||
#endif
|
||||
#ifndef xlu__cfg_yyset_lloc_ALREADY_DEFINED
|
||||
#undef yyset_lloc
|
||||
#endif
|
||||
#ifndef xlu__cfg_yyalloc_ALREADY_DEFINED
|
||||
#undef yyalloc
|
||||
#endif
|
||||
#ifndef xlu__cfg_yyrealloc_ALREADY_DEFINED
|
||||
#undef yyrealloc
|
||||
#endif
|
||||
#ifndef xlu__cfg_yyfree_ALREADY_DEFINED
|
||||
#undef yyfree
|
||||
#endif
|
||||
#ifndef xlu__cfg_yytext_ALREADY_DEFINED
|
||||
#undef yytext
|
||||
#endif
|
||||
#ifndef xlu__cfg_yyleng_ALREADY_DEFINED
|
||||
#undef yyleng
|
||||
#endif
|
||||
#ifndef xlu__cfg_yyin_ALREADY_DEFINED
|
||||
#undef yyin
|
||||
#endif
|
||||
#ifndef xlu__cfg_yyout_ALREADY_DEFINED
|
||||
#undef yyout
|
||||
#endif
|
||||
#ifndef xlu__cfg_yy_flex_debug_ALREADY_DEFINED
|
||||
#undef yy_flex_debug
|
||||
#endif
|
||||
#ifndef xlu__cfg_yylineno_ALREADY_DEFINED
|
||||
#undef yylineno
|
||||
#endif
|
||||
#ifndef xlu__cfg_yytables_fload_ALREADY_DEFINED
|
||||
#undef yytables_fload
|
||||
#endif
|
||||
#ifndef xlu__cfg_yytables_destroy_ALREADY_DEFINED
|
||||
#undef yytables_destroy
|
||||
#endif
|
||||
#ifndef xlu__cfg_yyTABLES_NAME_ALREADY_DEFINED
|
||||
#undef yyTABLES_NAME
|
||||
#endif
|
||||
|
||||
#line 105 "libxlu_cfg_l.l"
|
||||
|
||||
#line 348 "libxlu_cfg_l.h"
|
||||
#line 733 "libxlu_cfg_l.h"
|
||||
#undef xlu__cfg_yyIN_HEADER
|
||||
#endif /* xlu__cfg_yyHEADER_H */
|
||||
+146
-139
@@ -1,8 +1,9 @@
|
||||
/* A Bison parser, made by GNU Bison 3.0.4. */
|
||||
/* A Bison parser, made by GNU Bison 3.3.2. */
|
||||
|
||||
/* Bison implementation for Yacc-like parsers in C
|
||||
|
||||
Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
|
||||
Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 Free Software Foundation,
|
||||
Inc.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -40,11 +41,14 @@
|
||||
define necessary library symbols; they are noted "INFRINGES ON
|
||||
USER NAME SPACE" below. */
|
||||
|
||||
/* Undocumented macros, especially those whose name start with YY_,
|
||||
are private implementation details. Do not rely on them. */
|
||||
|
||||
/* Identify Bison output. */
|
||||
#define YYBISON 1
|
||||
|
||||
/* Bison version. */
|
||||
#define YYBISON_VERSION "3.0.4"
|
||||
#define YYBISON_VERSION "3.3.2"
|
||||
|
||||
/* Skeleton name. */
|
||||
#define YYSKELETON_NAME "yacc.c"
|
||||
@@ -67,20 +71,23 @@
|
||||
#define yynerrs xlu__cfg_yynerrs
|
||||
|
||||
|
||||
/* Copy the first part of user declarations. */
|
||||
#line 19 "libxlu_cfg_y.y" /* yacc.c:339 */
|
||||
/* First part of user prologue. */
|
||||
#line 19 "libxlu_cfg_y.y" /* yacc.c:337 */
|
||||
|
||||
#define ctx_scanner ctx->scanner
|
||||
#include "libxlu_cfg_i.h"
|
||||
#include "libxlu_cfg_l.h"
|
||||
|
||||
#line 78 "libxlu_cfg_y.c" /* yacc.c:339 */
|
||||
|
||||
#line 82 "libxlu_cfg_y.c" /* yacc.c:337 */
|
||||
# ifndef YY_NULLPTR
|
||||
# if defined __cplusplus && 201103L <= __cplusplus
|
||||
# define YY_NULLPTR nullptr
|
||||
# if defined __cplusplus
|
||||
# if 201103L <= __cplusplus
|
||||
# define YY_NULLPTR nullptr
|
||||
# else
|
||||
# define YY_NULLPTR 0
|
||||
# endif
|
||||
# else
|
||||
# define YY_NULLPTR 0
|
||||
# define YY_NULLPTR ((void*)0)
|
||||
# endif
|
||||
# endif
|
||||
|
||||
@@ -122,12 +129,12 @@ extern int xlu__cfg_yydebug;
|
||||
|
||||
union YYSTYPE
|
||||
{
|
||||
#line 25 "libxlu_cfg_y.y" /* yacc.c:355 */
|
||||
#line 25 "libxlu_cfg_y.y" /* yacc.c:352 */
|
||||
|
||||
char *string;
|
||||
XLU_ConfigValue *value;
|
||||
|
||||
#line 131 "libxlu_cfg_y.c" /* yacc.c:355 */
|
||||
#line 138 "libxlu_cfg_y.c" /* yacc.c:352 */
|
||||
};
|
||||
|
||||
typedef union YYSTYPE YYSTYPE;
|
||||
@@ -155,9 +162,7 @@ int xlu__cfg_yyparse (CfgParseContext *ctx);
|
||||
|
||||
#endif /* !YY_XLU_CFG_YY_LIBXLU_CFG_Y_H_INCLUDED */
|
||||
|
||||
/* Copy the second part of user declarations. */
|
||||
|
||||
#line 161 "libxlu_cfg_y.c" /* yacc.c:358 */
|
||||
|
||||
#ifdef short
|
||||
# undef short
|
||||
@@ -178,13 +183,13 @@ typedef signed char yytype_int8;
|
||||
#ifdef YYTYPE_UINT16
|
||||
typedef YYTYPE_UINT16 yytype_uint16;
|
||||
#else
|
||||
typedef unsigned short int yytype_uint16;
|
||||
typedef unsigned short yytype_uint16;
|
||||
#endif
|
||||
|
||||
#ifdef YYTYPE_INT16
|
||||
typedef YYTYPE_INT16 yytype_int16;
|
||||
#else
|
||||
typedef short int yytype_int16;
|
||||
typedef short yytype_int16;
|
||||
#endif
|
||||
|
||||
#ifndef YYSIZE_T
|
||||
@@ -196,7 +201,7 @@ typedef short int yytype_int16;
|
||||
# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
|
||||
# define YYSIZE_T size_t
|
||||
# else
|
||||
# define YYSIZE_T unsigned int
|
||||
# define YYSIZE_T unsigned
|
||||
# endif
|
||||
#endif
|
||||
|
||||
@@ -232,15 +237,6 @@ typedef short int yytype_int16;
|
||||
# define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__))
|
||||
#endif
|
||||
|
||||
#if !defined _Noreturn \
|
||||
&& (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112)
|
||||
# if defined _MSC_VER && 1200 <= _MSC_VER
|
||||
# define _Noreturn __declspec (noreturn)
|
||||
# else
|
||||
# define _Noreturn YY_ATTRIBUTE ((__noreturn__))
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* Suppress unused-variable warnings by "using" E. */
|
||||
#if ! defined lint || defined __GNUC__
|
||||
# define YYUSE(E) ((void) (E))
|
||||
@@ -248,7 +244,7 @@ typedef short int yytype_int16;
|
||||
# define YYUSE(E) /* empty */
|
||||
#endif
|
||||
|
||||
#if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
|
||||
#if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
|
||||
/* Suppress an incorrect diagnostic about yylval being uninitialized. */
|
||||
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
|
||||
_Pragma ("GCC diagnostic push") \
|
||||
@@ -412,16 +408,16 @@ union yyalloc
|
||||
/* YYNSTATES -- Number of states. */
|
||||
#define YYNSTATES 32
|
||||
|
||||
/* YYTRANSLATE[YYX] -- Symbol number corresponding to YYX as returned
|
||||
by yylex, with out-of-bounds checking. */
|
||||
#define YYUNDEFTOK 2
|
||||
#define YYMAXUTOK 262
|
||||
|
||||
/* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM
|
||||
as returned by yylex, with out-of-bounds checking. */
|
||||
#define YYTRANSLATE(YYX) \
|
||||
((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
|
||||
((unsigned) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
|
||||
|
||||
/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
|
||||
as returned by yylex, without out-of-bounds checking. */
|
||||
as returned by yylex. */
|
||||
static const yytype_uint8 yytranslate[] =
|
||||
{
|
||||
0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||||
@@ -586,22 +582,22 @@ static const yytype_uint8 yyr2[] =
|
||||
|
||||
#define YYRECOVERING() (!!yyerrstatus)
|
||||
|
||||
#define YYBACKUP(Token, Value) \
|
||||
do \
|
||||
if (yychar == YYEMPTY) \
|
||||
{ \
|
||||
yychar = (Token); \
|
||||
yylval = (Value); \
|
||||
YYPOPSTACK (yylen); \
|
||||
yystate = *yyssp; \
|
||||
goto yybackup; \
|
||||
} \
|
||||
else \
|
||||
{ \
|
||||
yyerror (&yylloc, ctx, YY_("syntax error: cannot back up")); \
|
||||
YYERROR; \
|
||||
} \
|
||||
while (0)
|
||||
#define YYBACKUP(Token, Value) \
|
||||
do \
|
||||
if (yychar == YYEMPTY) \
|
||||
{ \
|
||||
yychar = (Token); \
|
||||
yylval = (Value); \
|
||||
YYPOPSTACK (yylen); \
|
||||
yystate = *yyssp; \
|
||||
goto yybackup; \
|
||||
} \
|
||||
else \
|
||||
{ \
|
||||
yyerror (&yylloc, ctx, YY_("syntax error: cannot back up")); \
|
||||
YYERROR; \
|
||||
} \
|
||||
while (0)
|
||||
|
||||
/* Error token number */
|
||||
#define YYTERROR 1
|
||||
@@ -660,10 +656,10 @@ do { \
|
||||
/* Print *YYLOCP on YYO. Private, do not rely on its existence. */
|
||||
|
||||
YY_ATTRIBUTE_UNUSED
|
||||
static unsigned
|
||||
static int
|
||||
yy_location_print_ (FILE *yyo, YYLTYPE const * const yylocp)
|
||||
{
|
||||
unsigned res = 0;
|
||||
int res = 0;
|
||||
int end_col = 0 != yylocp->last_column ? yylocp->last_column - 1 : 0;
|
||||
if (0 <= yylocp->first_line)
|
||||
{
|
||||
@@ -706,41 +702,41 @@ do { \
|
||||
} while (0)
|
||||
|
||||
|
||||
/*----------------------------------------.
|
||||
| Print this symbol's value on YYOUTPUT. |
|
||||
`----------------------------------------*/
|
||||
/*-----------------------------------.
|
||||
| Print this symbol's value on YYO. |
|
||||
`-----------------------------------*/
|
||||
|
||||
static void
|
||||
yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp, CfgParseContext *ctx)
|
||||
yy_symbol_value_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp, CfgParseContext *ctx)
|
||||
{
|
||||
FILE *yyo = yyoutput;
|
||||
YYUSE (yyo);
|
||||
FILE *yyoutput = yyo;
|
||||
YYUSE (yyoutput);
|
||||
YYUSE (yylocationp);
|
||||
YYUSE (ctx);
|
||||
if (!yyvaluep)
|
||||
return;
|
||||
# ifdef YYPRINT
|
||||
if (yytype < YYNTOKENS)
|
||||
YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
|
||||
YYPRINT (yyo, yytoknum[yytype], *yyvaluep);
|
||||
# endif
|
||||
YYUSE (yytype);
|
||||
}
|
||||
|
||||
|
||||
/*--------------------------------.
|
||||
| Print this symbol on YYOUTPUT. |
|
||||
`--------------------------------*/
|
||||
/*---------------------------.
|
||||
| Print this symbol on YYO. |
|
||||
`---------------------------*/
|
||||
|
||||
static void
|
||||
yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp, CfgParseContext *ctx)
|
||||
yy_symbol_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp, CfgParseContext *ctx)
|
||||
{
|
||||
YYFPRINTF (yyoutput, "%s %s (",
|
||||
YYFPRINTF (yyo, "%s %s (",
|
||||
yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]);
|
||||
|
||||
YY_LOCATION_PRINT (yyoutput, *yylocationp);
|
||||
YYFPRINTF (yyoutput, ": ");
|
||||
yy_symbol_value_print (yyoutput, yytype, yyvaluep, yylocationp, ctx);
|
||||
YYFPRINTF (yyoutput, ")");
|
||||
YY_LOCATION_PRINT (yyo, *yylocationp);
|
||||
YYFPRINTF (yyo, ": ");
|
||||
yy_symbol_value_print (yyo, yytype, yyvaluep, yylocationp, ctx);
|
||||
YYFPRINTF (yyo, ")");
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------.
|
||||
@@ -774,7 +770,7 @@ do { \
|
||||
static void
|
||||
yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, YYLTYPE *yylsp, int yyrule, CfgParseContext *ctx)
|
||||
{
|
||||
unsigned long int yylno = yyrline[yyrule];
|
||||
unsigned long yylno = yyrline[yyrule];
|
||||
int yynrhs = yyr2[yyrule];
|
||||
int yyi;
|
||||
YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
|
||||
@@ -785,7 +781,7 @@ yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, YYLTYPE *yylsp, int yyrule
|
||||
YYFPRINTF (stderr, " $%d = ", yyi + 1);
|
||||
yy_symbol_print (stderr,
|
||||
yystos[yyssp[yyi + 1 - yynrhs]],
|
||||
&(yyvsp[(yyi + 1) - (yynrhs)])
|
||||
&yyvsp[(yyi + 1) - (yynrhs)]
|
||||
, &(yylsp[(yyi + 1) - (yynrhs)]) , ctx);
|
||||
YYFPRINTF (stderr, "\n");
|
||||
}
|
||||
@@ -889,7 +885,10 @@ yytnamerr (char *yyres, const char *yystr)
|
||||
case '\\':
|
||||
if (*++yyp != '\\')
|
||||
goto do_not_strip_quotes;
|
||||
/* Fall through. */
|
||||
else
|
||||
goto append;
|
||||
|
||||
append:
|
||||
default:
|
||||
if (yyres)
|
||||
yyres[yyn] = *yyp;
|
||||
@@ -907,7 +906,7 @@ yytnamerr (char *yyres, const char *yystr)
|
||||
if (! yyres)
|
||||
return yystrlen (yystr);
|
||||
|
||||
return yystpcpy (yyres, yystr) - yyres;
|
||||
return (YYSIZE_T) (yystpcpy (yyres, yystr) - yyres);
|
||||
}
|
||||
# endif
|
||||
|
||||
@@ -985,10 +984,10 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
|
||||
yyarg[yycount++] = yytname[yyx];
|
||||
{
|
||||
YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULLPTR, yytname[yyx]);
|
||||
if (! (yysize <= yysize1
|
||||
&& yysize1 <= YYSTACK_ALLOC_MAXIMUM))
|
||||
if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)
|
||||
yysize = yysize1;
|
||||
else
|
||||
return 2;
|
||||
yysize = yysize1;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1000,6 +999,7 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
|
||||
case N: \
|
||||
yyformat = S; \
|
||||
break
|
||||
default: /* Avoid compiler warnings. */
|
||||
YYCASE_(0, YY_("syntax error"));
|
||||
YYCASE_(1, YY_("syntax error, unexpected %s"));
|
||||
YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
|
||||
@@ -1011,9 +1011,10 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
|
||||
|
||||
{
|
||||
YYSIZE_T yysize1 = yysize + yystrlen (yyformat);
|
||||
if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
|
||||
if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)
|
||||
yysize = yysize1;
|
||||
else
|
||||
return 2;
|
||||
yysize = yysize1;
|
||||
}
|
||||
|
||||
if (*yymsg_alloc < yysize)
|
||||
@@ -1064,49 +1065,48 @@ yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, YYLTYPE *yylocatio
|
||||
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
|
||||
switch (yytype)
|
||||
{
|
||||
case 3: /* IDENT */
|
||||
case 3: /* IDENT */
|
||||
#line 40 "libxlu_cfg_y.y" /* yacc.c:1257 */
|
||||
{ free(((*yyvaluep).string)); }
|
||||
#line 1071 "libxlu_cfg_y.c" /* yacc.c:1257 */
|
||||
#line 1072 "libxlu_cfg_y.c" /* yacc.c:1257 */
|
||||
break;
|
||||
|
||||
case 4: /* STRING */
|
||||
#line 40 "libxlu_cfg_y.y" /* yacc.c:1257 */
|
||||
{ free(((*yyvaluep).string)); }
|
||||
#line 1077 "libxlu_cfg_y.c" /* yacc.c:1257 */
|
||||
#line 1078 "libxlu_cfg_y.c" /* yacc.c:1257 */
|
||||
break;
|
||||
|
||||
case 5: /* NUMBER */
|
||||
#line 40 "libxlu_cfg_y.y" /* yacc.c:1257 */
|
||||
{ free(((*yyvaluep).string)); }
|
||||
#line 1083 "libxlu_cfg_y.c" /* yacc.c:1257 */
|
||||
#line 1084 "libxlu_cfg_y.c" /* yacc.c:1257 */
|
||||
break;
|
||||
|
||||
case 19: /* value */
|
||||
#line 44 "libxlu_cfg_y.y" /* yacc.c:1257 */
|
||||
{ xlu__cfg_value_free(((*yyvaluep).value)); }
|
||||
#line 1089 "libxlu_cfg_y.c" /* yacc.c:1257 */
|
||||
#line 1090 "libxlu_cfg_y.c" /* yacc.c:1257 */
|
||||
break;
|
||||
|
||||
case 20: /* atom */
|
||||
#line 40 "libxlu_cfg_y.y" /* yacc.c:1257 */
|
||||
{ free(((*yyvaluep).string)); }
|
||||
#line 1095 "libxlu_cfg_y.c" /* yacc.c:1257 */
|
||||
#line 1096 "libxlu_cfg_y.c" /* yacc.c:1257 */
|
||||
break;
|
||||
|
||||
case 21: /* valuelist */
|
||||
#line 44 "libxlu_cfg_y.y" /* yacc.c:1257 */
|
||||
{ xlu__cfg_value_free(((*yyvaluep).value)); }
|
||||
#line 1101 "libxlu_cfg_y.c" /* yacc.c:1257 */
|
||||
#line 1102 "libxlu_cfg_y.c" /* yacc.c:1257 */
|
||||
break;
|
||||
|
||||
case 22: /* values */
|
||||
#line 44 "libxlu_cfg_y.y" /* yacc.c:1257 */
|
||||
{ xlu__cfg_value_free(((*yyvaluep).value)); }
|
||||
#line 1107 "libxlu_cfg_y.c" /* yacc.c:1257 */
|
||||
#line 1108 "libxlu_cfg_y.c" /* yacc.c:1257 */
|
||||
break;
|
||||
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -1212,23 +1212,31 @@ YYLTYPE yylloc = yyloc_default;
|
||||
yylsp[0] = yylloc;
|
||||
goto yysetstate;
|
||||
|
||||
|
||||
/*------------------------------------------------------------.
|
||||
| yynewstate -- Push a new state, which is found in yystate. |
|
||||
| yynewstate -- push a new state, which is found in yystate. |
|
||||
`------------------------------------------------------------*/
|
||||
yynewstate:
|
||||
yynewstate:
|
||||
/* In all cases, when you get here, the value and location stacks
|
||||
have just been pushed. So pushing a state here evens the stacks. */
|
||||
yyssp++;
|
||||
|
||||
yysetstate:
|
||||
*yyssp = yystate;
|
||||
|
||||
/*--------------------------------------------------------------------.
|
||||
| yynewstate -- set current state (the top of the stack) to yystate. |
|
||||
`--------------------------------------------------------------------*/
|
||||
yysetstate:
|
||||
*yyssp = (yytype_int16) yystate;
|
||||
|
||||
if (yyss + yystacksize - 1 <= yyssp)
|
||||
#if !defined yyoverflow && !defined YYSTACK_RELOCATE
|
||||
goto yyexhaustedlab;
|
||||
#else
|
||||
{
|
||||
/* Get the current used size of the three stacks, in elements. */
|
||||
YYSIZE_T yysize = yyssp - yyss + 1;
|
||||
YYSIZE_T yysize = (YYSIZE_T) (yyssp - yyss + 1);
|
||||
|
||||
#ifdef yyoverflow
|
||||
# if defined yyoverflow
|
||||
{
|
||||
/* Give user a chance to reallocate the stack. Use copies of
|
||||
these so that the &'s don't force the real ones into
|
||||
@@ -1246,15 +1254,11 @@ YYLTYPE yylloc = yyloc_default;
|
||||
&yyvs1, yysize * sizeof (*yyvsp),
|
||||
&yyls1, yysize * sizeof (*yylsp),
|
||||
&yystacksize);
|
||||
|
||||
yyls = yyls1;
|
||||
yyss = yyss1;
|
||||
yyvs = yyvs1;
|
||||
yyls = yyls1;
|
||||
}
|
||||
#else /* no yyoverflow */
|
||||
# ifndef YYSTACK_RELOCATE
|
||||
goto yyexhaustedlab;
|
||||
# else
|
||||
# else /* defined YYSTACK_RELOCATE */
|
||||
/* Extend the stack our own way. */
|
||||
if (YYMAXDEPTH <= yystacksize)
|
||||
goto yyexhaustedlab;
|
||||
@@ -1271,23 +1275,23 @@ YYLTYPE yylloc = yyloc_default;
|
||||
YYSTACK_RELOCATE (yyss_alloc, yyss);
|
||||
YYSTACK_RELOCATE (yyvs_alloc, yyvs);
|
||||
YYSTACK_RELOCATE (yyls_alloc, yyls);
|
||||
# undef YYSTACK_RELOCATE
|
||||
# undef YYSTACK_RELOCATE
|
||||
if (yyss1 != yyssa)
|
||||
YYSTACK_FREE (yyss1);
|
||||
}
|
||||
# endif
|
||||
#endif /* no yyoverflow */
|
||||
|
||||
yyssp = yyss + yysize - 1;
|
||||
yyvsp = yyvs + yysize - 1;
|
||||
yylsp = yyls + yysize - 1;
|
||||
|
||||
YYDPRINTF ((stderr, "Stack size increased to %lu\n",
|
||||
(unsigned long int) yystacksize));
|
||||
(unsigned long) yystacksize));
|
||||
|
||||
if (yyss + yystacksize - 1 <= yyssp)
|
||||
YYABORT;
|
||||
}
|
||||
#endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */
|
||||
|
||||
YYDPRINTF ((stderr, "Entering state %d\n", yystate));
|
||||
|
||||
@@ -1296,11 +1300,11 @@ YYLTYPE yylloc = yyloc_default;
|
||||
|
||||
goto yybackup;
|
||||
|
||||
|
||||
/*-----------.
|
||||
| yybackup. |
|
||||
`-----------*/
|
||||
yybackup:
|
||||
|
||||
/* Do appropriate processing given the current state. Read a
|
||||
lookahead token if we need one and don't already have one. */
|
||||
|
||||
@@ -1373,7 +1377,7 @@ yydefault:
|
||||
|
||||
|
||||
/*-----------------------------.
|
||||
| yyreduce -- Do a reduction. |
|
||||
| yyreduce -- do a reduction. |
|
||||
`-----------------------------*/
|
||||
yyreduce:
|
||||
/* yyn is the number of a rule to reduce with. */
|
||||
@@ -1389,79 +1393,80 @@ yyreduce:
|
||||
GCC warning that YYVAL may be used uninitialized. */
|
||||
yyval = yyvsp[1-yylen];
|
||||
|
||||
/* Default location. */
|
||||
/* Default location. */
|
||||
YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen);
|
||||
yyerror_range[1] = yyloc;
|
||||
YY_REDUCE_PRINT (yyn);
|
||||
switch (yyn)
|
||||
{
|
||||
case 9:
|
||||
#line 58 "libxlu_cfg_y.y" /* yacc.c:1646 */
|
||||
#line 58 "libxlu_cfg_y.y" /* yacc.c:1652 */
|
||||
{ xlu__cfg_set_store(ctx,(yyvsp[-2].string),XLU_OP_ASSIGNMENT,(yyvsp[0].value),(yylsp[0]).first_line); }
|
||||
#line 1401 "libxlu_cfg_y.c" /* yacc.c:1646 */
|
||||
#line 1406 "libxlu_cfg_y.c" /* yacc.c:1652 */
|
||||
break;
|
||||
|
||||
case 10:
|
||||
#line 59 "libxlu_cfg_y.y" /* yacc.c:1646 */
|
||||
#line 59 "libxlu_cfg_y.y" /* yacc.c:1652 */
|
||||
{ xlu__cfg_set_store(ctx,(yyvsp[-2].string),XLU_OP_ADDITION,(yyvsp[0].value),(yylsp[0]).first_line); }
|
||||
#line 1407 "libxlu_cfg_y.c" /* yacc.c:1646 */
|
||||
#line 1412 "libxlu_cfg_y.c" /* yacc.c:1652 */
|
||||
break;
|
||||
|
||||
case 13:
|
||||
#line 64 "libxlu_cfg_y.y" /* yacc.c:1646 */
|
||||
#line 64 "libxlu_cfg_y.y" /* yacc.c:1652 */
|
||||
{ (yyval.value)= xlu__cfg_string_mk(ctx,(yyvsp[0].string),&(yylsp[0])); }
|
||||
#line 1413 "libxlu_cfg_y.c" /* yacc.c:1646 */
|
||||
#line 1418 "libxlu_cfg_y.c" /* yacc.c:1652 */
|
||||
break;
|
||||
|
||||
case 14:
|
||||
#line 65 "libxlu_cfg_y.y" /* yacc.c:1646 */
|
||||
#line 65 "libxlu_cfg_y.y" /* yacc.c:1652 */
|
||||
{ (yyval.value)= (yyvsp[-1].value); }
|
||||
#line 1419 "libxlu_cfg_y.c" /* yacc.c:1646 */
|
||||
#line 1424 "libxlu_cfg_y.c" /* yacc.c:1652 */
|
||||
break;
|
||||
|
||||
case 15:
|
||||
#line 67 "libxlu_cfg_y.y" /* yacc.c:1646 */
|
||||
#line 67 "libxlu_cfg_y.y" /* yacc.c:1652 */
|
||||
{ (yyval.string)= (yyvsp[0].string); }
|
||||
#line 1425 "libxlu_cfg_y.c" /* yacc.c:1646 */
|
||||
#line 1430 "libxlu_cfg_y.c" /* yacc.c:1652 */
|
||||
break;
|
||||
|
||||
case 16:
|
||||
#line 68 "libxlu_cfg_y.y" /* yacc.c:1646 */
|
||||
#line 68 "libxlu_cfg_y.y" /* yacc.c:1652 */
|
||||
{ (yyval.string)= (yyvsp[0].string); }
|
||||
#line 1431 "libxlu_cfg_y.c" /* yacc.c:1646 */
|
||||
#line 1436 "libxlu_cfg_y.c" /* yacc.c:1652 */
|
||||
break;
|
||||
|
||||
case 17:
|
||||
#line 70 "libxlu_cfg_y.y" /* yacc.c:1646 */
|
||||
#line 70 "libxlu_cfg_y.y" /* yacc.c:1652 */
|
||||
{ (yyval.value)= xlu__cfg_list_mk(ctx,NULL,&yylloc); }
|
||||
#line 1437 "libxlu_cfg_y.c" /* yacc.c:1646 */
|
||||
#line 1442 "libxlu_cfg_y.c" /* yacc.c:1652 */
|
||||
break;
|
||||
|
||||
case 18:
|
||||
#line 71 "libxlu_cfg_y.y" /* yacc.c:1646 */
|
||||
#line 71 "libxlu_cfg_y.y" /* yacc.c:1652 */
|
||||
{ (yyval.value)= (yyvsp[0].value); }
|
||||
#line 1443 "libxlu_cfg_y.c" /* yacc.c:1646 */
|
||||
#line 1448 "libxlu_cfg_y.c" /* yacc.c:1652 */
|
||||
break;
|
||||
|
||||
case 19:
|
||||
#line 72 "libxlu_cfg_y.y" /* yacc.c:1646 */
|
||||
#line 72 "libxlu_cfg_y.y" /* yacc.c:1652 */
|
||||
{ (yyval.value)= (yyvsp[-2].value); }
|
||||
#line 1449 "libxlu_cfg_y.c" /* yacc.c:1646 */
|
||||
#line 1454 "libxlu_cfg_y.c" /* yacc.c:1652 */
|
||||
break;
|
||||
|
||||
case 20:
|
||||
#line 74 "libxlu_cfg_y.y" /* yacc.c:1646 */
|
||||
#line 74 "libxlu_cfg_y.y" /* yacc.c:1652 */
|
||||
{ (yyval.value)= xlu__cfg_list_mk(ctx,(yyvsp[-1].value),&(yylsp[-1])); }
|
||||
#line 1455 "libxlu_cfg_y.c" /* yacc.c:1646 */
|
||||
#line 1460 "libxlu_cfg_y.c" /* yacc.c:1652 */
|
||||
break;
|
||||
|
||||
case 21:
|
||||
#line 75 "libxlu_cfg_y.y" /* yacc.c:1646 */
|
||||
#line 75 "libxlu_cfg_y.y" /* yacc.c:1652 */
|
||||
{ xlu__cfg_list_append(ctx,(yyvsp[-4].value),(yyvsp[-1].value)); (yyval.value)= (yyvsp[-4].value); }
|
||||
#line 1461 "libxlu_cfg_y.c" /* yacc.c:1646 */
|
||||
#line 1466 "libxlu_cfg_y.c" /* yacc.c:1652 */
|
||||
break;
|
||||
|
||||
|
||||
#line 1465 "libxlu_cfg_y.c" /* yacc.c:1646 */
|
||||
#line 1470 "libxlu_cfg_y.c" /* yacc.c:1652 */
|
||||
default: break;
|
||||
}
|
||||
/* User semantic actions sometimes alter yychar, and that requires
|
||||
@@ -1487,14 +1492,13 @@ yyreduce:
|
||||
/* Now 'shift' the result of the reduction. Determine what state
|
||||
that goes to, based on the state we popped back to and the rule
|
||||
number reduced by. */
|
||||
|
||||
yyn = yyr1[yyn];
|
||||
|
||||
yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
|
||||
if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
|
||||
yystate = yytable[yystate];
|
||||
else
|
||||
yystate = yydefgoto[yyn - YYNTOKENS];
|
||||
{
|
||||
const int yylhs = yyr1[yyn] - YYNTOKENS;
|
||||
const int yyi = yypgoto[yylhs] + *yyssp;
|
||||
yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp
|
||||
? yytable[yyi]
|
||||
: yydefgoto[yylhs]);
|
||||
}
|
||||
|
||||
goto yynewstate;
|
||||
|
||||
@@ -1577,14 +1581,11 @@ yyerrlab:
|
||||
| yyerrorlab -- error raised explicitly by YYERROR. |
|
||||
`---------------------------------------------------*/
|
||||
yyerrorlab:
|
||||
/* Pacify compilers when the user code never invokes YYERROR and the
|
||||
label yyerrorlab therefore never appears in user code. */
|
||||
if (0)
|
||||
YYERROR;
|
||||
|
||||
/* Pacify compilers like GCC when the user code never invokes
|
||||
YYERROR and the label yyerrorlab therefore never appears in user
|
||||
code. */
|
||||
if (/*CONSTCOND*/ 0)
|
||||
goto yyerrorlab;
|
||||
|
||||
yyerror_range[1] = yylsp[1-yylen];
|
||||
/* Do not reclaim the symbols of the rule whose action triggered
|
||||
this YYERROR. */
|
||||
YYPOPSTACK (yylen);
|
||||
@@ -1650,6 +1651,7 @@ yyacceptlab:
|
||||
yyresult = 0;
|
||||
goto yyreturn;
|
||||
|
||||
|
||||
/*-----------------------------------.
|
||||
| yyabortlab -- YYABORT comes here. |
|
||||
`-----------------------------------*/
|
||||
@@ -1657,6 +1659,7 @@ yyabortlab:
|
||||
yyresult = 1;
|
||||
goto yyreturn;
|
||||
|
||||
|
||||
#if !defined yyoverflow || YYERROR_VERBOSE
|
||||
/*-------------------------------------------------.
|
||||
| yyexhaustedlab -- memory exhaustion comes here. |
|
||||
@@ -1667,6 +1670,10 @@ yyexhaustedlab:
|
||||
/* Fall through. */
|
||||
#endif
|
||||
|
||||
|
||||
/*-----------------------------------------------------.
|
||||
| yyreturn -- parsing is finished, return the result. |
|
||||
`-----------------------------------------------------*/
|
||||
yyreturn:
|
||||
if (yychar != YYEMPTY)
|
||||
{
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
/* A Bison parser, made by GNU Bison 3.0.4. */
|
||||
/* A Bison parser, made by GNU Bison 3.3.2. */
|
||||
|
||||
/* Bison interface for Yacc-like parsers in C
|
||||
|
||||
Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
|
||||
Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 Free Software Foundation,
|
||||
Inc.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -30,6 +31,9 @@
|
||||
This special exception was added by the Free Software Foundation in
|
||||
version 2.2 of Bison. */
|
||||
|
||||
/* Undocumented macros, especially those whose name start with YY_,
|
||||
are private implementation details. Do not rely on them. */
|
||||
|
||||
#ifndef YY_XLU_CFG_YY_LIBXLU_CFG_Y_H_INCLUDED
|
||||
# define YY_XLU_CFG_YY_LIBXLU_CFG_Y_H_INCLUDED
|
||||
/* Debug traces. */
|
||||
@@ -58,12 +62,12 @@ extern int xlu__cfg_yydebug;
|
||||
|
||||
union YYSTYPE
|
||||
{
|
||||
#line 25 "libxlu_cfg_y.y" /* yacc.c:1909 */
|
||||
#line 25 "libxlu_cfg_y.y" /* yacc.c:1921 */
|
||||
|
||||
char *string;
|
||||
XLU_ConfigValue *value;
|
||||
|
||||
#line 67 "libxlu_cfg_y.h" /* yacc.c:1909 */
|
||||
#line 71 "libxlu_cfg_y.h" /* yacc.c:1921 */
|
||||
};
|
||||
|
||||
typedef union YYSTYPE YYSTYPE;
|
||||
|
||||