diff options
author | Jim Meyering <jim@meyering.net> | 2004-01-21 22:36:42 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-01-21 22:36:42 +0000 |
commit | bb35f361161f47b98528a2028fef81daada56a77 (patch) | |
tree | e25cb526195668d0cbf238bcbd892fd52386390d /lib | |
parent | a36ee874e8f0040d2b009a3ee76a7649a00a8d5e (diff) | |
download | coreutils-bb35f361161f47b98528a2028fef81daada56a77.tar.xz |
(obstack_exit_failure) [!defined _LIBC]:
Now a macro referring to exit_failure, instead of a separate
variable. Include "exitfail.h" to get it.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/obstack.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/obstack.c b/lib/obstack.c index 2ae9cdb6d..123a7a5d4 100644 --- a/lib/obstack.c +++ b/lib/obstack.c @@ -1,7 +1,8 @@ /* obstack.c - subroutines used implicitly by object stack macros Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1996, 1997, - 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. + 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, + Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -86,10 +87,12 @@ void (*obstack_alloc_failed_handler) (void) = print_and_abort; /* Exit value used when `print_and_abort' is used. */ # include <stdlib.h> -# ifndef _LIBC -# include "exit.h" -# endif +# ifdef _LIBC int obstack_exit_failure = EXIT_FAILURE; +# else +# include "exitfail.h" +# define obstack_exit_failure exit_failure +# endif /* The non-GNU-C macros copy the obstack into this global variable to avoid multiple evaluation. */ |