@@@ fltfmt mess
[mLib] / mem / pool.h
index 5a843ab..e401be3 100644 (file)
@@ -50,7 +50,7 @@
 
 typedef struct pool_chunk {
   struct pool_chunk *next;             /* Next memory chunk in the chain */
-  char *p;                             /* Free area in this chunk */
+  unsigned char *p;                    /* Free area in this chunk */
   size_t left;                         /* Amount of memory left */
 } pool_chunk;
 
@@ -64,6 +64,8 @@ typedef struct pool {
   pool_chunk *c;                       /* Pointer to memory chunk list */
   pool_resource *r;                    /* Pointer to resource list */
   arena *pa;                           /* Arena for real allocation */
+  unsigned f;                          /* Flags */
+#define PF_VALGRIND 1u                 /*   Special valgrind hacks active */
 } pool;
 
 typedef struct pool_file {