mirror of
https://github.com/mirror/make.git
synced 2025-02-05 09:10:12 +08:00
* Fix PR/1791.
This commit is contained in:
parent
775b644765
commit
88187d9f4b
@ -1,5 +1,9 @@
|
|||||||
2000-06-23 Paul D. Smith <psmith@gnu.org>
|
2000-06-23 Paul D. Smith <psmith@gnu.org>
|
||||||
|
|
||||||
|
* main.c (main): Replace EXIT_SUCCESS, EXIT_FAILURE, and
|
||||||
|
EXIT_TROUBLE with MAKE_SUCCESS, MAKE_FAILURE, and MAKE_TROUBLE.
|
||||||
|
* make.h: Define these macros.
|
||||||
|
|
||||||
* Version 3.79.1 released.
|
* Version 3.79.1 released.
|
||||||
|
|
||||||
* configure.in: Add a new option, --disable-nsec-timestamps, to
|
* configure.in: Add a new option, --disable-nsec-timestamps, to
|
||||||
|
12
main.c
12
main.c
@ -1904,16 +1904,16 @@ int main (int argc, char ** argv)
|
|||||||
/* Nothing happened. */
|
/* Nothing happened. */
|
||||||
case 0:
|
case 0:
|
||||||
/* Updated successfully. */
|
/* Updated successfully. */
|
||||||
status = EXIT_SUCCESS;
|
status = MAKE_SUCCESS;
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
/* We are under -q and would run some commands. */
|
||||||
|
status = MAKE_TROUBLE;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
/* Updating failed. POSIX.2 specifies exit status >1 for this;
|
/* Updating failed. POSIX.2 specifies exit status >1 for this;
|
||||||
but in VMS, there is only success and failure. */
|
but in VMS, there is only success and failure. */
|
||||||
status = EXIT_FAILURE ? 2 : EXIT_FAILURE;
|
status = MAKE_FAILURE;
|
||||||
break;
|
|
||||||
case 1:
|
|
||||||
/* We are under -q and would run some commands. */
|
|
||||||
status = EXIT_FAILURE;
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
abort ();
|
abort ();
|
||||||
|
24
make.h
24
make.h
@ -532,25 +532,13 @@ extern int handling_fatal_signal;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef VMS
|
#ifdef VMS
|
||||||
# ifndef EXIT_FAILURE
|
# define MAKE_SUCCESS 1
|
||||||
# define EXIT_FAILURE 3
|
# define MAKE_TROUBLE 2
|
||||||
# endif
|
# define MAKE_FAILURE 3
|
||||||
# ifndef EXIT_SUCCESS
|
|
||||||
# define EXIT_SUCCESS 1
|
|
||||||
# endif
|
|
||||||
# ifndef EXIT_TROUBLE
|
|
||||||
# define EXIT_TROUBLE 2
|
|
||||||
# endif
|
|
||||||
#else
|
#else
|
||||||
# ifndef EXIT_FAILURE
|
# define MAKE_SUCCESS 0
|
||||||
# define EXIT_FAILURE 2
|
# define MAKE_TROUBLE 1
|
||||||
# endif
|
# define MAKE_FAILURE 2
|
||||||
# ifndef EXIT_SUCCESS
|
|
||||||
# define EXIT_SUCCESS 0
|
|
||||||
# endif
|
|
||||||
# ifndef EXIT_TROUBLE
|
|
||||||
# define EXIT_TROUBLE 1
|
|
||||||
# endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Set up heap debugging library dmalloc. */
|
/* Set up heap debugging library dmalloc. */
|
||||||
|
Loading…
Reference in New Issue
Block a user