diff th_datastruct.c @ 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 d190dccc3ee6
children 31bc1ed07cf5
line wrap: on
line diff
--- a/th_datastruct.c	Wed Dec 07 00:17:57 2022 +0200
+++ b/th_datastruct.c	Wed Dec 07 11:57:43 2022 +0200
@@ -318,7 +318,7 @@
         return res;
     }
 
-    (*buf)->allocated = TRUE;
+    (*buf)->is_allocated = TRUE;
 
     return THERR_OK;
 }
@@ -349,7 +349,7 @@
 
     th_free(buf->data);
 
-    if (buf->allocated)
+    if (buf->is_allocated)
         th_free(buf);
 }
 
@@ -391,7 +391,7 @@
         return NULL;
 
     th_growbuf_init(buf, mingrow);
-    buf->allocated = TRUE;
+    buf->is_allocated = TRUE;
 
     return buf;
 }
@@ -401,7 +401,7 @@
 {
     th_free(buf->data);
 
-    if (buf->allocated)
+    if (buf->is_allocated)
         th_free(buf);
 }