]> git.saurik.com Git - bison.git/commitdiff
maint: an envvar equal to "00" is 0.
authorAkim Demaille <akim@lrde.epita.fr>
Tue, 5 Jun 2012 16:02:49 +0000 (18:02 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Tue, 5 Jun 2012 16:02:49 +0000 (18:02 +0200)
* src/output.c (prepare): here.
Reported by Paul Eggert.

src/output.c

index 96c69da47ad22a7c0ac278ee0adcc9216863394c..37b15cfb7840c3e7cb88a857c3ffbf0277d46d68 100644 (file)
@@ -668,10 +668,10 @@ output_skeleton (void)
 static void
 prepare (void)
 {
-  /* BISON_USE_PUSH_FOR_PULL is for the test suite and should not be documented
-     for the user.  */
+  /* BISON_USE_PUSH_FOR_PULL is for the test suite and should not be
+     documented for the user.  */
   char const *cp = getenv ("BISON_USE_PUSH_FOR_PULL");
-  bool use_push_for_pull_flag = cp && *cp && STRNEQ (cp, "0");
+  bool use_push_for_pull_flag = cp && *cp && strtol (cp, 0, 10);
 
   /* Flags. */
   MUSCLE_INSERT_BOOL ("defines_flag", defines_flag);