Commit 6026c19c by Richard Stallman

Use FATAL_EXIT_CODE rather than hardcoded 1 for fatal error.

From-SVN: r6079
parent f7d4a1c9
...@@ -38,7 +38,7 @@ xmalloc (nbytes) ...@@ -38,7 +38,7 @@ xmalloc (nbytes)
if (!tmp) if (!tmp)
{ {
fprintf (stderr, "can't allocate %d bytes (out of virtual memory)\n", nbytes); fprintf (stderr, "can't allocate %d bytes (out of virtual memory)\n", nbytes);
exit (1); exit (FATAL_EXIT_CODE);
} }
return tmp; return tmp;
...@@ -60,7 +60,7 @@ xrealloc (block, nbytes) ...@@ -60,7 +60,7 @@ xrealloc (block, nbytes)
if (!tmp) if (!tmp)
{ {
fprintf (stderr, "can't reallocate %d bytes (out of virtual memory)\n", nbytes); fprintf (stderr, "can't reallocate %d bytes (out of virtual memory)\n", nbytes);
exit (1); exit (FATAL_EXIT_CODE);
} }
return tmp; return tmp;
......
...@@ -164,5 +164,5 @@ yyerror (s) ...@@ -164,5 +164,5 @@ yyerror (s)
char *s; char *s;
{ {
fprintf (stderr, "syntax error in input\n"); fprintf (stderr, "syntax error in input\n");
exit (1); exit (FATAL_EXIT_CODE);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment