Mercurial > hg > octave-lyh > gnulib-hg
changeset 5071:d525afe1916c
* malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this var.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Fri, 21 May 2004 04:51:32 +0000 |
parents | 57d23334289f |
children | d7698ffc0e5e |
files | lib/ChangeLog lib/obstack.c |
diffstat | 2 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,10 @@ +2004-05-20 Paul Eggert <eggert@cs.ucla.edu> + + * malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this + var. Add comment explaining why libc still defines it. This + merges the following patch from glibc: + http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html + 2004-05-19 Paul Eggert <eggert@cs.ucla.edu> * obstack.c (_obstack): Remove unused variable. It hasn't been
--- a/lib/obstack.c +++ b/lib/obstack.c @@ -102,6 +102,13 @@ # define obstack_exit_failure exit_failure # endif +# ifdef _LIBC +/* A looong time ago (before 1994, anyway; we're not sure) this global variable + was used by non-GNU-C macros to avoid multiple evaluation. The GNU C + library still exports it because somebody might use it. */ +struct obstack *_obstack; +# endif + /* Define a macro that either calls functions with the traditional malloc/free calling interface, or calls functions with the mmalloc/mfree interface (that adds an extra first argument), based on the state of use_extra_arg.