diff options
Diffstat (limited to 'malloc/obstack.c')
-rw-r--r-- | malloc/obstack.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/malloc/obstack.c b/malloc/obstack.c index a192441a49..76b7a95cd4 100644 --- a/malloc/obstack.c +++ b/malloc/obstack.c @@ -78,7 +78,9 @@ union fooround {long x; double d;}; /* The functions allocating more room by calling `obstack_chunk_alloc' jump to the handler pointed to by `obstack_alloc_failed_handler'. - This variable by default points to the internal function + This can be set to a user defined function which should either + abort gracefully or use longjump - but shouldn't return. This + variable by default points to the internal function `print_and_abort'. */ #if defined (__STDC__) && __STDC__ static void print_and_abort (void); @@ -142,9 +144,8 @@ struct obstack *_obstack; CHUNKFUN is the function to use to allocate chunks, and FREEFUN the function to free them. - Return nonzero if successful, zero if out of memory. - To recover from an out of memory error, - free up some memory, then call this again. */ + Return nonzero if successful, calls obstack_alloc_failed_handler if + allocation fails. */ int _obstack_begin (h, size, alignment, chunkfun, freefun) |