summaryrefslogtreecommitdiff
path: root/3rdparty/libconfig/grammar.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2013-09-09 13:23:29 +0200
committerHaru <haru@dotalux.com>2013-09-17 01:56:14 +0200
commite6a9f7cfdb5ee6d27c12d35f2ecf8317595317b6 (patch)
tree9b0a9a5b61c790ccbecc9c751e5cb6012edcd285 /3rdparty/libconfig/grammar.c
parentb8bf9548d76a46650b8559d621e81072d340bc04 (diff)
downloadhercules-e6a9f7cfdb5ee6d27c12d35f2ecf8317595317b6.tar.gz
hercules-e6a9f7cfdb5ee6d27c12d35f2ecf8317595317b6.tar.bz2
hercules-e6a9f7cfdb5ee6d27c12d35f2ecf8317595317b6.tar.xz
hercules-e6a9f7cfdb5ee6d27c12d35f2ecf8317595317b6.zip
Re-generated libconfig parser and scanner
This overrides previous manual edits to the machine-generated files, and is supposed to make it much easier to maintain in future. There should be no functional changes at all, but if there's any issue, please let me know. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to '3rdparty/libconfig/grammar.c')
-rw-r--r--3rdparty/libconfig/grammar.c68
1 files changed, 38 insertions, 30 deletions
diff --git a/3rdparty/libconfig/grammar.c b/3rdparty/libconfig/grammar.c
index e95a569f6..0331c1854 100644
--- a/3rdparty/libconfig/grammar.c
+++ b/3rdparty/libconfig/grammar.c
@@ -1,10 +1,9 @@
-
-/* A Bison parser, made by GNU Bison 2.4.1. */
+/* A Bison parser, made by GNU Bison 2.4.3. */
/* Skeleton implementation for Bison's Yacc-like parsers in C
- Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
- Free Software Foundation, Inc.
+ Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
+ 2009, 2010 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
@@ -46,7 +45,7 @@
#define YYBISON 1
/* Bison version. */
-#define YYBISON_VERSION "2.4.1"
+#define YYBISON_VERSION "2.4.3"
/* Skeleton name. */
#define YYSKELETON_NAME "yacc.c"
@@ -130,7 +129,7 @@ void libconfig_yyerror(void *scanner, struct parse_context *ctx,
/* Line 189 of yacc.c */
-#line 134 "grammar.c"
+#line 133 "grammar.c"
/* Enabling traces. */
#ifndef YYDEBUG
@@ -219,7 +218,7 @@ typedef union YYSTYPE
/* Line 214 of yacc.c */
-#line 223 "grammar.c"
+#line 222 "grammar.c"
} YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
@@ -231,7 +230,7 @@ typedef union YYSTYPE
/* Line 264 of yacc.c */
-#line 235 "grammar.c"
+#line 234 "grammar.c"
#ifdef short
# undef short
@@ -281,7 +280,7 @@ typedef short int yytype_int16;
#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
#ifndef YY_
-# if YYENABLE_NLS
+# if defined YYENABLE_NLS && YYENABLE_NLS
# if ENABLE_NLS
# include <libintl.h> /* INFRINGES ON USER NAME SPACE */
# define YY_(msgid) dgettext ("bison-runtime", msgid)
@@ -660,9 +659,18 @@ static const yytype_uint8 yystos[] =
/* Like YYERROR except do call yyerror. This remains here temporarily
to ease the transition to the new meaning of YYERROR, for GCC.
- Once GCC version 2 has supplanted version 1, this can go. */
+ Once GCC version 2 has supplanted version 1, this can go. However,
+ YYFAIL appears to be in use. Nevertheless, it is formally deprecated
+ in Bison 2.4.2's NEWS entry, where a plan to phase it out is
+ discussed. */
#define YYFAIL goto yyerrlab
+#if defined YYFAIL
+ /* This is here to suppress warnings from the GCC cpp's
+ -Wunused-macros. Normally we don't worry about that warning, but
+ some users do, and we want to make it easy for users to remove
+ YYFAIL uses, which will produce warnings from Bison 2.5. */
+#endif
#define YYRECOVERING() (!!yyerrstatus)
@@ -719,7 +727,7 @@ while (YYID (0))
we won't break user code: when these are the locations we know. */
#ifndef YY_LOCATION_PRINT
-# if YYLTYPE_IS_TRIVIAL
+# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
# define YY_LOCATION_PRINT(File, Loc) \
fprintf (File, "%d.%d-%d.%d", \
(Loc).first_line, (Loc).first_column, \
@@ -1477,7 +1485,7 @@ yyreduce:
{
case 11:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 123 "grammar.y"
{
ctx->setting = config_setting_add(ctx->parent, (yyvsp[(1) - (1)].sval), CONFIG_TYPE_NONE);
@@ -1496,7 +1504,7 @@ yyreduce:
case 13:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 142 "grammar.y"
{
if(IN_LIST())
@@ -1515,7 +1523,7 @@ yyreduce:
case 14:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 157 "grammar.y"
{
if(ctx->parent)
@@ -1525,7 +1533,7 @@ yyreduce:
case 15:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 165 "grammar.y"
{
if(IN_LIST())
@@ -1544,7 +1552,7 @@ yyreduce:
case 16:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 180 "grammar.y"
{
if(ctx->parent)
@@ -1554,21 +1562,21 @@ yyreduce:
case 21:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 194 "grammar.y"
{ parsectx_append_string(ctx, (yyvsp[(1) - (1)].sval)); free((yyvsp[(1) - (1)].sval)); }
break;
case 22:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 195 "grammar.y"
{ parsectx_append_string(ctx, (yyvsp[(2) - (2)].sval)); free((yyvsp[(2) - (2)].sval)); }
break;
case 23:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 200 "grammar.y"
{
if(IN_ARRAY() || IN_LIST())
@@ -1593,7 +1601,7 @@ yyreduce:
case 24:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 220 "grammar.y"
{
if(IN_ARRAY() || IN_LIST())
@@ -1620,7 +1628,7 @@ yyreduce:
case 25:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 242 "grammar.y"
{
if(IN_ARRAY() || IN_LIST())
@@ -1647,7 +1655,7 @@ yyreduce:
case 26:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 264 "grammar.y"
{
if(IN_ARRAY() || IN_LIST())
@@ -1674,7 +1682,7 @@ yyreduce:
case 27:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 286 "grammar.y"
{
if(IN_ARRAY() || IN_LIST())
@@ -1701,7 +1709,7 @@ yyreduce:
case 28:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 308 "grammar.y"
{
if(IN_ARRAY() || IN_LIST())
@@ -1724,7 +1732,7 @@ yyreduce:
case 29:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 326 "grammar.y"
{
if(IN_ARRAY() || IN_LIST())
@@ -1754,7 +1762,7 @@ yyreduce:
case 38:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 374 "grammar.y"
{
if(IN_LIST())
@@ -1773,7 +1781,7 @@ yyreduce:
case 39:
-/* Line 1455 of yacc.c */
+/* Line 1464 of yacc.c */
#line 389 "grammar.y"
{
if(ctx->parent)
@@ -1783,8 +1791,8 @@ yyreduce:
-/* Line 1455 of yacc.c */
-#line 1788 "grammar.c"
+/* Line 1464 of yacc.c */
+#line 1796 "grammar.c"
default: break;
}
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
@@ -1995,7 +2003,7 @@ yyreturn:
-/* Line 1675 of yacc.c */
+/* Line 1684 of yacc.c */
#line 395 "grammar.y"