]> gcc.gnu.org Git - gcc.git/commitdiff
Use FATAL_EXIT_CODE rather than hardcoded 1 for fatal error.
authorRichard Stallman <rms@gnu.org>
Sat, 13 Nov 1993 09:00:21 +0000 (09:00 +0000)
committerRichard Stallman <rms@gnu.org>
Sat, 13 Nov 1993 09:00:21 +0000 (09:00 +0000)
From-SVN: r6079

gcc/bi-lexer.c
gcc/bi-parser.y

index d631fb60cd84dd7644b223c56b83e3abb3bf65e5..0766b5ff95360c623cf82c9318b9332089d6ff9d 100644 (file)
@@ -38,7 +38,7 @@ xmalloc (nbytes)
   if (!tmp)
     {
       fprintf (stderr, "can't allocate %d bytes (out of virtual memory)\n", nbytes);
-      exit (1);
+      exit (FATAL_EXIT_CODE);
     }
 
   return tmp;
@@ -60,7 +60,7 @@ xrealloc (block, nbytes)
   if (!tmp)
     {
       fprintf (stderr, "can't reallocate %d bytes (out of virtual memory)\n", nbytes);
-      exit (1);
+      exit (FATAL_EXIT_CODE);
     }
 
   return tmp;
index 5e5df8f8aff547012fd48cc8aa6ceac42c4bdd96..5b3be52b2099bf8ac45aca2c46fcc8cbc37179df 100644 (file)
@@ -164,5 +164,5 @@ yyerror (s)
      char *s;
 {
   fprintf (stderr, "syntax error in input\n");
-  exit (1);
+  exit (FATAL_EXIT_CODE);
 }
This page took 0.062226 seconds and 5 git commands to generate.