* Fix PR/1791.
authorPaul Smith <psmith@gnu.org>
Fri, 23 Jun 2000 19:43:11 +0000 (19:43 +0000)
committerPaul Smith <psmith@gnu.org>
Fri, 23 Jun 2000 19:43:11 +0000 (19:43 +0000)
ChangeLog
main.c
make.h

index 5768488cb70135665f32afafcc561b7aa822dbc2..d30cfa424e056244ccf115df0f33b9523022d0aa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 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.
 
        * configure.in: Add a new option, --disable-nsec-timestamps, to
diff --git a/main.c b/main.c
index af4034951de58ad9851c050291f388c47cf3014b..c82591bb447748f76a14d951a1faab0bc1dd7864 100644 (file)
--- a/main.c
+++ b/main.c
@@ -1904,16 +1904,16 @@ int main (int argc, char ** argv)
         /* Nothing happened.  */
       case 0:
         /* Updated successfully.  */
-        status = EXIT_SUCCESS;
+        status = MAKE_SUCCESS;
+        break;
+      case 1:
+        /* We are under -q and would run some commands.  */
+        status = MAKE_TROUBLE;
         break;
       case 2:
         /* Updating failed.  POSIX.2 specifies exit status >1 for this;
            but in VMS, there is only success and failure.  */
-        status = EXIT_FAILURE ? 2 : EXIT_FAILURE;
-        break;
-      case 1:
-        /* We are under -q and would run some commands.  */
-        status = EXIT_FAILURE;
+        status = MAKE_FAILURE;
         break;
       default:
         abort ();
diff --git a/make.h b/make.h
index 8ddbb94a015d0ffe664e115309e3e4302a23d0da..bc4c1d43a0cc76c5142e28f7664f4b119dd9da78 100644 (file)
--- a/make.h
+++ b/make.h
@@ -532,25 +532,13 @@ extern int handling_fatal_signal;
 #endif
 
 #ifdef VMS
-# ifndef EXIT_FAILURE
-#  define EXIT_FAILURE 3
-# endif
-# ifndef EXIT_SUCCESS
-#  define EXIT_SUCCESS 1
-# endif
-# ifndef EXIT_TROUBLE
-#  define EXIT_TROUBLE 2
-# endif
+#  define MAKE_SUCCESS 1
+#  define MAKE_TROUBLE 2
+#  define MAKE_FAILURE 3
 #else
-# ifndef EXIT_FAILURE
-#  define EXIT_FAILURE 2
-# endif
-# ifndef EXIT_SUCCESS
-#  define EXIT_SUCCESS 0
-# endif
-# ifndef EXIT_TROUBLE
-#  define EXIT_TROUBLE 1
-# endif
+#  define MAKE_SUCCESS 0
+#  define MAKE_TROUBLE 1
+#  define MAKE_FAILURE 2
 #endif
 
 /* Set up heap debugging library dmalloc.  */