bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

parser: pretend we are Bison 3.5


From: Akim Demaille
Subject: parser: pretend we are Bison 3.5
Date: Sun, 8 Dec 2019 16:40:30 +0100

commit d55f240991e7d5528d57d66833e8f202dceb39fa
Author: Akim Demaille <address@hidden>
Date:   Sun Dec 8 15:50:17 2019 +0100

    parser: pretend we are Bison 3.5
    
    * src/parse-gram.y: Accept we're Bison 3.5.

diff --git a/src/parse-gram.c b/src/parse-gram.c
index 3d67b671..ca735d6a 100644
--- a/src/parse-gram.c
+++ b/src/parse-gram.c
@@ -1,4 +1,4 @@
-/* A Bison parser, made by GNU Bison 3.4.91.18-42a6c.  */
+/* A Bison parser, made by GNU Bison 3.4.92.  */
 
 /* Bison implementation for Yacc-like parsers in C
 
@@ -48,7 +48,7 @@
 #define YYBISON 1
 
 /* Bison version.  */
-#define YYBISON_VERSION "3.4.91.18-42a6c"
+#define YYBISON_VERSION "3.4.92"
 
 /* Skeleton name.  */
 #define YYSKELETON_NAME "yacc.c"
@@ -354,13 +354,6 @@ typedef int yy_state_fast_t;
     _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
 # define YY_IGNORE_MAYBE_UNINITIALIZED_END      \
     _Pragma ("GCC diagnostic pop")
-# if defined __cplusplus
-#  define YY_IGNORE_USELESS_CAST_BEGIN                          \
-     _Pragma ("GCC diagnostic push")                            \
-     _Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"")
-#  define YY_IGNORE_USELESS_CAST_END            \
-     _Pragma ("GCC diagnostic pop")
-# endif
 #else
 # define YY_INITIAL_VALUE(Value) Value
 #endif
@@ -368,13 +361,21 @@ typedef int yy_state_fast_t;
 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
 # define YY_IGNORE_MAYBE_UNINITIALIZED_END
 #endif
+#ifndef YY_INITIAL_VALUE
+# define YY_INITIAL_VALUE(Value) /* Nothing. */
+#endif
+
+#if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__
+# define YY_IGNORE_USELESS_CAST_BEGIN                          \
+    _Pragma ("GCC diagnostic push")                            \
+    _Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"")
+# define YY_IGNORE_USELESS_CAST_END            \
+    _Pragma ("GCC diagnostic pop")
+#endif
 #ifndef YY_IGNORE_USELESS_CAST_BEGIN
 # define YY_IGNORE_USELESS_CAST_BEGIN
 # define YY_IGNORE_USELESS_CAST_END
 #endif
-#ifndef YY_INITIAL_VALUE
-# define YY_INITIAL_VALUE(Value) /* Nothing. */
-#endif
 
 
 #define YY_ASSERT(E) ((void) (0 && (E)))
@@ -3063,9 +3064,9 @@ handle_require (location const *loc, char const *version)
       return;
     }
 
-  /* Pretend to be at least 3.4, to check features published in 3.4
-     while developping it.  */
-  const char* api_version = "3.4";
+  /* Pretend to be at least 3.5, to check features published in that
+     version while developping it.  */
+  const char* api_version = "3.5";
   const char* package_version =
     0 < strverscmp (api_version, PACKAGE_VERSION)
     ? api_version : PACKAGE_VERSION;
diff --git a/src/parse-gram.h b/src/parse-gram.h
index c9d6bd4b..b57fdd5a 100644
--- a/src/parse-gram.h
+++ b/src/parse-gram.h
@@ -1,4 +1,4 @@
-/* A Bison parser, made by GNU Bison 3.4.91.18-42a6c.  */
+/* A Bison parser, made by GNU Bison 3.4.92.  */
 
 /* Bison interface for Yacc-like parsers in C
 
diff --git a/src/parse-gram.y b/src/parse-gram.y
index 0d1cc3f9..5815abcf 100644
--- a/src/parse-gram.y
+++ b/src/parse-gram.y
@@ -1021,9 +1021,9 @@ handle_require (location const *loc, char const *version)
       return;
     }
 
-  /* Pretend to be at least 3.4, to check features published in 3.4
-     while developping it.  */
-  const char* api_version = "3.4";
+  /* Pretend to be at least 3.5, to check features published in that
+     version while developping it.  */
+  const char* api_version = "3.5";
   const char* package_version =
     0 < strverscmp (api_version, PACKAGE_VERSION)
     ? api_version : PACKAGE_VERSION;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]