diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-04-22 15:04:11 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-04-22 15:04:56 -0400 |
commit | 2df588fb6ebc77d067e390e5c70c5da0298a47b2 (patch) | |
tree | 75767a5bae269ec1790a830761a04ed4dfb64fcc /allocator.c | |
parent | 17709633dca5cb3d2b0b34a353bdf68c112c10e4 (diff) |
improved arr system
Diffstat (limited to 'allocator.c')
-rw-r--r-- | allocator.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/allocator.c b/allocator.c index 8baedb5..98005ef 100644 --- a/allocator.c +++ b/allocator.c @@ -74,7 +74,7 @@ static void *allocr_calloc(Allocator *a, size_t n, size_t sz) { #endif if (n == 0 || sz == 0) return NULL; if (a == NULL) return err_calloc(n, sz); - /* OPTIM: use calloc */ + /* @OPTIM: use calloc */ size_t bytes = n * sz; void *data = allocr_malloc(a, bytes); memset(data, 0, bytes); @@ -88,11 +88,11 @@ static void allocr_free(Allocator *a, void *data, size_t size) { if (a == NULL) { free(data); } - /* OPTIM */ + /* @OPTIM */ (void)size; } -/* OPTIM */ +/* @OPTIM */ static void *allocr_realloc(Allocator *a, void *data, size_t old_size, size_t new_size) { #if NO_ALLOCATOR a = NULL; |