Use FATAL_EXIT_CODE rather than hardcoded 1 for fatal error.

From-SVN: r6079
This commit is contained in:
Richard Stallman
1993-11-13 09:00:21 +00:00
parent f7d4a1c989
commit 6026c19c42
2 changed files with 3 additions and 3 deletions

View 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;

View File

@@ -164,5 +164,5 @@ yyerror (s)
char *s;
{
fprintf (stderr, "syntax error in input\n");
exit (1);
exit (FATAL_EXIT_CODE);
}