mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-21 10:13:03 +00:00
* src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
definition. * src/main.c (main): Use them. Suggested by Hans Aberg.
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
2001-11-14 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
|
* src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
|
||||||
|
definition.
|
||||||
|
* src/main.c (main): Use them.
|
||||||
|
Suggested by Hans Aberg.
|
||||||
|
|
||||||
2001-11-12 Akim Demaille <akim@epita.fr>
|
2001-11-12 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
Version 1.30b.
|
Version 1.30b.
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ main (int argc, char *argv[])
|
|||||||
|
|
||||||
output_files ();
|
output_files ();
|
||||||
|
|
||||||
exit (complain_message_count ? 1 : 0);
|
return complain_message_count ? EXIT_FAILURE : EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Abort for an internal error denoted by string S. */
|
/* Abort for an internal error denoted by string S. */
|
||||||
|
|||||||
12
src/system.h
12
src/system.h
@@ -40,6 +40,18 @@
|
|||||||
# include <stdlib.h>
|
# include <stdlib.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* The following test is to work around the gross typo in
|
||||||
|
systems like Sony NEWS-OS Release 4.0C, whereby EXIT_FAILURE
|
||||||
|
is defined to 0, not 1. */
|
||||||
|
#if !EXIT_FAILURE
|
||||||
|
# undef EXIT_FAILURE
|
||||||
|
# define EXIT_FAILURE 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef EXIT_SUCCESS
|
||||||
|
# define EXIT_SUCCESS 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#if HAVE_UNISTD_H
|
#if HAVE_UNISTD_H
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user