aboutsummaryrefslogtreecommitdiff
path: root/src/allocator.h
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2026-06-21 17:12:55 +0200
committerThomas Schmucker <ts@its1.de>2026-06-21 17:12:55 +0200
commitf67c54eb50b488ecd2e92ae4c495e89bd3da5663 (patch)
treef452270f69a727f7c515ff9c00c4022e0758a5a5 /src/allocator.h
parentc353b1a162065e4efb7da30d8e57631654ebd6fc (diff)
downloaddata-structures-master.tar.gz
data-structures-master.tar.bz2
data-structures-master.zip
cleanup allocator interfaceHEADmaster
Diffstat (limited to 'src/allocator.h')
-rw-r--r--src/allocator.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/allocator.h b/src/allocator.h
index dd9bb16..2c0c5b9 100644
--- a/src/allocator.h
+++ b/src/allocator.h
@@ -3,6 +3,9 @@
3#include <stddef.h> /* size_t */ 3#include <stddef.h> /* size_t */
4 4
5struct allocator { 5struct allocator {
6#ifndef NDEBUG
7 struct allocator *self;
8#endif
6 void *(*allocate)(struct allocator *allocator, size_t n); 9 void *(*allocate)(struct allocator *allocator, size_t n);
7 void (*deallocate)(struct allocator *allocator, void *ptr); 10 void (*deallocate)(struct allocator *allocator, void *ptr);
8}; 11};