]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
obstack: rename to _OBSTACK_CHUNK_SIZE_T
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 5 May 2025 21:02:15 +0000 (14:02 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 5 May 2025 21:16:20 +0000 (14:16 -0700)
* lib/obstack.in.h (_OBSTACK_CHUNK_SIZE_T):
Rename from _CHUNK_SIZE_T, for namespace prefix consistency.

ChangeLog
lib/obstack.in.h

index ed1c57575b52b7f93e5d9a8821632a5cac274695..771309c182d625bf5dbe9b37571bff5d21ea23d7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2025-05-05  Paul Eggert  <eggert@cs.ucla.edu>
 
+       obstack: rename to _OBSTACK_CHUNK_SIZE_T
+       * lib/obstack.in.h (_OBSTACK_CHUNK_SIZE_T):
+       Rename from _CHUNK_SIZE_T, for namespace prefix consistency.
+
        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.
index 125b1b801b68576856996c7663502bd74f05f0ca..4f79f40e94d3e5c76e55ea6b2091378190a49959 100644 (file)
 /* In Gnulib, we use sane types, especially for 64-bit hosts.  */
 # define _OBSTACK_INDEX_T size_t
 # define _OBSTACK_SIZE_T size_t
-# define _CHUNK_SIZE_T size_t
+# define _OBSTACK_CHUNK_SIZE_T size_t
 # define _OBSTACK_CAST(type, expr) (expr)
 # define _OBSTACK_CHUNK_CONTENTS_SIZE FLEXIBLE_ARRAY_MEMBER
 #else
 /* For backward compatibility, glibc limits object sizes to int range.  */
 # define _OBSTACK_INDEX_T int
 # define _OBSTACK_SIZE_T unsigned int
-# define _CHUNK_SIZE_T unsigned long
+# define _OBSTACK_CHUNK_SIZE_T unsigned long
 # define _OBSTACK_CAST(type, expr) ((type) (expr))
 # define _OBSTACK_CHUNK_CONTENTS_SIZE 4
 #endif
@@ -195,7 +195,7 @@ struct _obstack_chunk           /* Lives at front of each chunk. */
 
 struct obstack          /* control current object in current chunk */
 {
-  _CHUNK_SIZE_T chunk_size;     /* preferred size to allocate chunks in */
+  _OBSTACK_CHUNK_SIZE_T chunk_size;  /* preferred size to allocate chunks in */
   struct _obstack_chunk *chunk; /* address of current struct obstack_chunk */
   char *object_base;            /* address of object we are building */
   char *next_free;              /* where to add next char to current object */