]> git.saurik.com Git - bison.git/commitdiff
(_AT_DATA_CALC_Y): Do not include <assert.h>.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 21 Nov 2002 05:28:09 +0000 (05:28 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 21 Nov 2002 05:28:09 +0000 (05:28 +0000)
Replace all instances of assert with abort.

tests/calc.at

index d566c1dbd34168779fa6f2674c22111e353edbc1..63c3233fdaad7a9c84925fb80dc992a2f467802a 100644 (file)
@@ -46,7 +46,6 @@ AT_DATA_GRAMMAR([calc.y],
 # include <string.h>
 #endif
 #include <ctype.h>
-#include <assert.h>
 
 extern void perror (const char *s);
 
@@ -308,8 +307,10 @@ main (int argc, const char **argv)
   yydebug = 1;
 #endif
   status = yyparse (]AT_PARAM_IF([&result, &count])[);
-  assert (global_result == result);
-  assert (global_count  == count);
+  if (global_result != result)
+    abort ();
+  if (global_count != count)
+    abort ();
   return status;
 }
 ]])