mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
(EXIT_FAILURE): Define.
(ARGMATCH_DIE): Use it.
This commit is contained in:
1 parent
115a5d0e61
commit
e42efa6866
1 file changed
+9
-1
+9
-1
@@ -48,9 +48,17 @@
|
||||
|
||||
extern char *program_name;
|
||||
|
||||
/* 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
|
||||
|
||||
/* Non failing version of argmatch call this function after failing. */
|
||||
#ifndef ARGMATCH_DIE
|
||||
# define ARGMATCH_DIE exit (2)
|
||||
# define ARGMATCH_DIE exit (EXIT_FAILURE)
|
||||
#endif
|
||||
|
||||
static void
|
||||
|
||||
Reference in new issue
Block a user