]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Update from GNU libc.
authorJim Meyering <jim@meyering.net>
Sat, 31 Aug 2002 16:52:18 +0000 (16:52 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 31 Aug 2002 16:52:18 +0000 (16:52 +0000)
lib/obstack.c

index 0244da3839954d5af8381cb945d5060ca0b4c08f..8dd118b0def9ab74780f47037526fe082680586e 100644 (file)
@@ -1,5 +1,5 @@
 /* obstack.c - subroutines used implicitly by object stack macros
-   Copyright (C) 1988-1994,96,97,98,99,2000,2001 Free Software Foundation, Inc.
+   Copyright (C) 1988-1994, 1996-2001, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.  Its master source is NOT part of
    the C library, however.  The master source lives in /gd/gnu/lib.
 
 # include <config.h>
 #endif
 
-#include "obstack.h"
+#ifdef _LIBC
+# include <obstack.h>
+#else
+# include "obstack.h"
+#endif
 
 /* NOTE BEFORE MODIFYING THIS FILE: This version number must be
    incremented whenever callers compiled using an old obstack.h can no
@@ -338,6 +342,9 @@ _obstack_newchunk (h, length)
   /* The new chunk certainly contains no empty object yet.  */
   h->maybe_empty_object = 0;
 }
+# ifdef _LIBC
+libc_hidden_def (_obstack_newchunk)
+# endif
 
 /* Return nonzero if object OBJ has been allocated from obstack H.
    This is here for debugging.
@@ -468,9 +475,8 @@ _obstack_memory_used (h)
 #   define _(Str) (Str)
 #  endif
 # endif
-# if defined _LIBC && defined USE_IN_LIBIO
+# ifdef _LIBC
 #  include <libio/iolibio.h>
-#  define fputs(s, f) _IO_fputs (s, f)
 # endif
 
 # ifndef __attribute__