--- embedaddon/strongswan/src/libstrongswan/settings/settings_parser.h 2020/06/03 09:46:44 1.1 +++ embedaddon/strongswan/src/libstrongswan/settings/settings_parser.h 2021/03/17 00:20:08 1.1.1.2 @@ -33,17 +33,25 @@ #ifndef YY_SETTINGS_PARSER_SETTINGS_SETTINGS_PARSER_H_INCLUDED # define YY_SETTINGS_PARSER_SETTINGS_SETTINGS_PARSER_H_INCLUDED /* Debug traces. */ -#ifndef YYDEBUG -# define YYDEBUG 1 -#endif +#ifndef SETTINGS_PARSER_DEBUG +# if defined YYDEBUG #if YYDEBUG +# define SETTINGS_PARSER_DEBUG 1 +# else +# define SETTINGS_PARSER_DEBUG 0 +# endif +# else /* ! defined YYDEBUG */ +# define SETTINGS_PARSER_DEBUG 1 +# endif /* ! defined YYDEBUG */ +#endif /* ! defined SETTINGS_PARSER_DEBUG */ +#if SETTINGS_PARSER_DEBUG extern int settings_parser_debug; #endif /* Token type. */ -#ifndef YYTOKENTYPE -# define YYTOKENTYPE - enum yytokentype +#ifndef SETTINGS_PARSER_TOKENTYPE +# define SETTINGS_PARSER_TOKENTYPE + enum settings_parser_tokentype { NAME = 258, STRING = 259, @@ -64,27 +72,35 @@ extern int settings_parser_debug; #define STRING_ERROR 264 /* Value type. */ -#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED +#if ! defined SETTINGS_PARSER_STYPE && ! defined SETTINGS_PARSER_STYPE_IS_DECLARED -union YYSTYPE +union SETTINGS_PARSER_STYPE { -#line 78 "settings/settings_parser.y" /* yacc.c:1909 */ +#line 85 "settings/settings_parser.y" /* yacc.c:1909 */ char *s; struct section_t *sec; struct kv_t *kv; array_t *refs; -#line 79 "settings/settings_parser.h" /* yacc.c:1909 */ +#line 87 "settings/settings_parser.h" /* yacc.c:1909 */ }; -typedef union YYSTYPE YYSTYPE; -# define YYSTYPE_IS_TRIVIAL 1 -# define YYSTYPE_IS_DECLARED 1 +typedef union SETTINGS_PARSER_STYPE SETTINGS_PARSER_STYPE; +# define SETTINGS_PARSER_STYPE_IS_TRIVIAL 1 +# define SETTINGS_PARSER_STYPE_IS_DECLARED 1 #endif int settings_parser_parse (parser_helper_t *ctx); +/* "%code provides" blocks. */ +#line 74 "settings/settings_parser.y" /* yacc.c:1909 */ + + #define YY_DECL \ + int settings_parser_lex(SETTINGS_PARSER_STYPE *yylval, void *yyscanner) + YY_DECL; + +#line 105 "settings/settings_parser.h" /* yacc.c:1909 */ #endif /* !YY_SETTINGS_PARSER_SETTINGS_SETTINGS_PARSER_H_INCLUDED */