Mercurial > hg > octave-jordi > gnulib-hg
comparison lib/obstack.c @ 4696:4753d416bf20
Use "exit.h" rather than rolling EXIT_FAILURE ourselves in each module.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Fri, 12 Sep 2003 20:14:10 +0000 |
parents | 117a6d2af03b |
children | 8f430f14ff21 |
comparison
equal
deleted
inserted
replaced
4695:4cd5b2420ecf | 4696:4753d416bf20 |
---|---|
80 static void print_and_abort (void); | 80 static void print_and_abort (void); |
81 void (*obstack_alloc_failed_handler) (void) = print_and_abort; | 81 void (*obstack_alloc_failed_handler) (void) = print_and_abort; |
82 | 82 |
83 /* Exit value used when `print_and_abort' is used. */ | 83 /* Exit value used when `print_and_abort' is used. */ |
84 # include <stdlib.h> | 84 # include <stdlib.h> |
85 # ifndef EXIT_FAILURE | 85 # ifndef _LIBC |
86 # define EXIT_FAILURE 1 | 86 # include "exit.h" |
87 # endif | 87 # endif |
88 int obstack_exit_failure = EXIT_FAILURE; | 88 int obstack_exit_failure = EXIT_FAILURE; |
89 | 89 |
90 /* The non-GNU-C macros copy the obstack into this global variable | 90 /* The non-GNU-C macros copy the obstack into this global variable |
91 to avoid multiple evaluation. */ | 91 to avoid multiple evaluation. */ |