]> git.ipfire.org Git - thirdparty/gnulib.git/commit
obstack: use int where glibc does
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 5 May 2025 21:02:14 +0000 (14:02 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 5 May 2025 21:16:20 +0000 (14:16 -0700)
commitaedff5e6d6e1e4589167c5c03eaa7e7fb581bb49
treeec95b54949d09e0b3a07d8e8362685dd0a2cadb3
parentac60d111d13a894127411c1b52a839cf3396b8ce
obstack: use int where glibc does

Make it easier to merge with glibc, by using int where
the glibc API uses int, when compiling for glibc.
This does not affect Gnulib behavior.
* lib/obstack.in.h (_OBSTACK_INDEX_T): New macro.
* lib/obstack.in.h (struct obstack):
* lib/obstack.c (_obstack_begin_worker, obstack_begin)
(_obstack_begin_1, _obstack_newchunk, _obstack_memory_used):
Use _OBSTACK_INDEX_T, not _OBSTACK_SIZE_T, for API components
where glibc uses int.
ChangeLog
lib/obstack.c
lib/obstack.in.h