]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Thu, 20 May 2004 21:55:10 +0000 (21:55 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 20 May 2004 21:55:10 +0000 (21:55 +0000)
2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>

* malloc/obstack.c (_obstack) [!defined _LIBC]: Remove; not used.
Add comment explaining why libc still defines it.

ChangeLog
malloc/obstack.c

index 5b797d20e55649d782aafc54d7e0a47c6ae56557..909f9f4d710b423a8178deb4875317775af0e382 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * malloc/obstack.c (_obstack) [!defined _LIBC]: Remove; not used.
+       Add comment explaining why libc still defines it.
+
 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
 
        * malloc/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
index 47a4b16b5350466f19b3230fd1e1ab5b49414e44..4b3ccda9068293818aa0217bc49584f6cfb6b301 100644 (file)
@@ -95,10 +95,12 @@ int obstack_exit_failure = EXIT_FAILURE;
 #  define obstack_exit_failure exit_failure
 # endif
 
-/* The non-GNU-C macros copy the obstack into this global variable
-   to avoid multiple evaluation.  */
-
+# 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