]> Savannah Git Hosting - gnulib.git/commit
obstack: 64-bit obstack support, part 3
authorAlan Modra <amodra@gmail.com>
Wed, 29 Oct 2014 03:33:00 +0000 (14:03 +1030)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 29 Oct 2014 07:23:39 +0000 (00:23 -0700)
commit82a38a0d7776d99e7afc03e0d8df93fa253f1e35
tree75f863628cf1d9bc90b77401d07ba343be7f1aac
parentbb2ab7ecb6c92895e69837414f238568f013a603
obstack: 64-bit obstack support, part 3

This finally enables full 64-bit obstack support.  The glibc shared library
specific code is removed from obstack.c too, and the error handling code
conditionally compiled under control of another macro,
_OBSTACK_NO_ERROR_HANDLER.

* lib/obstack.h: Include string.h earlier.
(_OBSTACK_INTERFACE_VERSION): Define.
(_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
* lib/obstack.c: Don't include shlib-compat.h.
(OBSTACK_INTERFACE_VERSION): Delete.
(_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
glibc code is compatible with version 2.  Don't include stdio.h for
__GNU_LIBRARY.
(obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
(_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
glibc shared library specific source.
lib/obstack.c
lib/obstack.h