diff th_datastruct.h @ 733:79d06eb6d39f

Rename "allocated" field to "is_allocated" in some structures.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 07 Dec 2022 11:57:43 +0200
parents 98d12f33da7b
children 2ae1045f6c18
line wrap: on
line diff
--- a/th_datastruct.h	Wed Dec 07 00:17:57 2022 +0200
+++ b/th_datastruct.h	Wed Dec 07 11:57:43 2022 +0200
@@ -59,7 +59,7 @@
     size_t size;    ///< Size of this ringbuffer in elements (aka pointers to data)
     size_t n;       ///< Number of elements currently in the ringbuffer (@p n <= @p size)
     void (*deallocator)(void *data); ///< De-allocator function that frees one element.
-    BOOL allocated;
+    BOOL is_allocated;
 } th_ringbuf_t;
 
 
@@ -77,7 +77,7 @@
 
 typedef struct
 {
-    BOOL allocated;
+    BOOL is_allocated;
     uint8_t *data;
     size_t size, len, mingrow;
 } th_growbuf_t;