From b100f9aa77027e4371154820ea8a0353bfd13223 Mon Sep 17 00:00:00 2001 From: Will Newton Date: Mon, 23 Jun 2014 16:53:30 +0100 Subject: malloc/obstack: Merge from gnulib Merge the latest version of the obstack.c and obstack.h files from gnulib. The majority of this change is coding style and cosmetic comment changes but it also fixes a -Wundef warning in the build as a side effect. 2014-07-02 Will Newton * malloc/obstack.c: Merge from gnulib master. [HAVE_CONFIG_H]: Remove conditional code. [!_LIBC]: Include config.h. [!ELIDE_CODE]: Don't include inttypes.h, include stdint.h unconditionally. (print_and_abort): Mark as _Noreturn. (_obstack_allocated_p): Mark as __attribute_pure__. (obstack_free): Rename to __obstack_free. [!__attribute__]: Remove conditional code. * malloc/obstack.h: Merge from gnulib master. [__cplusplus]: Move conditional down. [!__attribute_pure__]: Define __attribute_pure__ here if it is not already defined. (_obstack_memory_used): Mark as __attribute_pure__. [!__obstack_free]: Define as obstack_free. [__GNUC__]: Remove check for ancient NeXT gcc. --- ChangeLog | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 934c47c..986210c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,23 @@ 2014-07-02 Will Newton + + * malloc/obstack.c: Merge from gnulib master. + [HAVE_CONFIG_H]: Remove conditional code. + [!_LIBC]: Include config.h. + [!ELIDE_CODE]: Don't include inttypes.h, include + stdint.h unconditionally. + (print_and_abort): Mark as _Noreturn. + (_obstack_allocated_p): Mark as __attribute_pure__. + (obstack_free): Rename to __obstack_free. + [!__attribute__]: Remove conditional code. + * malloc/obstack.h: Merge from gnulib master. + [__cplusplus]: Move conditional down. + [!__attribute_pure__]: Define __attribute_pure__ here + if it is not already defined. + (_obstack_memory_used): Mark as __attribute_pure__. + [!__obstack_free]: Define as obstack_free. + [__GNUC__]: Remove check for ancient NeXT gcc. + +2014-07-02 Will Newton Paul Eggert * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers. -- cgit v1.1