From 6026c19c421f68b112c57494c704749c4a94de62 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Sat, 13 Nov 1993 09:00:21 +0000 Subject: [PATCH] Use FATAL_EXIT_CODE rather than hardcoded 1 for fatal error. From-SVN: r6079 --- gcc/bi-lexer.c | 4 ++-- gcc/bi-parser.y | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/bi-lexer.c b/gcc/bi-lexer.c index d631fb60cd8..0766b5ff953 100644 --- a/gcc/bi-lexer.c +++ b/gcc/bi-lexer.c @@ -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; diff --git a/gcc/bi-parser.y b/gcc/bi-parser.y index 5e5df8f8aff..5b3be52b209 100644 --- a/gcc/bi-parser.y +++ b/gcc/bi-parser.y @@ -164,5 +164,5 @@ yyerror (s) char *s; { fprintf (stderr, "syntax error in input\n"); - exit (1); + exit (FATAL_EXIT_CODE); } -- 2.30.2