]> git.saurik.com Git - bison.git/blobdiff - src/parse-gram.y
DJGPP specific file.
[bison.git] / src / parse-gram.y
index 4a98630033c076258e0faecc691725cc13d9a558..d4f2731e6cea38f41b8e85ec7f03f0d110f5d4b2 100644 (file)
@@ -20,6 +20,7 @@
    02110-1301  USA
 */
 
+#include <config.h>
 #include "system.h"
 
 #include "complain.h"
@@ -53,9 +54,8 @@ static void add_param (char const *, char *, location);
 
 static symbol_class current_class = unknown_sym;
 static uniqstr current_type = 0;
-symbol *current_lhs;
-location current_lhs_location;
-assoc current_assoc;
+static symbol *current_lhs;
+static location current_lhs_location;
 static int current_prec = 0;
 %}
 
@@ -539,8 +539,11 @@ static void
 version_check (location const *loc, char const *version)
 {
   if (strverscmp (version, PACKAGE_VERSION) > 0)
-    complain_at (*loc, "require bison %s, but have %s",
-                version, PACKAGE_VERSION);
+    {
+      complain_at (*loc, "require bison %s, but have %s",
+                  version, PACKAGE_VERSION);
+      exit (63);
+    }
 }
 
 static void