From a8735889c76f4c1b65fc306ffd5de92029048197 Mon Sep 17 00:00:00 2001 From: Leonardo Vencovsky Date: Thu, 9 Mar 2023 16:51:48 +0100 Subject: [PATCH] Quickfix for ALLOC_NODE --- src/cmc/cmc/bitset/code.h | 6 +++--- src/cmc/cmc/bitset/header.h | 6 +++--- src/cmc/cmc/bitset/struct.h | 2 +- src/cmc/cmc/deque/code.h | 4 ++-- src/cmc/cmc/deque/ext/code.h | 2 +- src/cmc/cmc/deque/ext/header.h | 2 +- src/cmc/cmc/deque/header.h | 4 ++-- src/cmc/cmc/deque/struct.h | 2 +- src/cmc/cmc/hashbidimap/code.h | 4 ++-- src/cmc/cmc/hashbidimap/ext/code.h | 2 +- src/cmc/cmc/hashbidimap/ext/header.h | 2 +- src/cmc/cmc/hashbidimap/header.h | 4 ++-- src/cmc/cmc/hashbidimap/struct.h | 2 +- src/cmc/cmc/hashmap/code.h | 4 ++-- src/cmc/cmc/hashmap/ext/code.h | 2 +- src/cmc/cmc/hashmap/ext/header.h | 2 +- src/cmc/cmc/hashmap/header.h | 4 ++-- src/cmc/cmc/hashmap/struct.h | 2 +- src/cmc/cmc/hashmultimap/code.h | 4 ++-- src/cmc/cmc/hashmultimap/header.h | 4 ++-- src/cmc/cmc/hashmultimap/struct.h | 2 +- src/cmc/cmc/hashmultiset/code.h | 4 ++-- src/cmc/cmc/hashmultiset/header.h | 4 ++-- src/cmc/cmc/hashmultiset/struct.h | 2 +- src/cmc/cmc/hashset/code.h | 4 ++-- src/cmc/cmc/hashset/header.h | 4 ++-- src/cmc/cmc/hashset/struct.h | 2 +- src/cmc/cmc/heap/code.h | 4 ++-- src/cmc/cmc/heap/header.h | 4 ++-- src/cmc/cmc/heap/struct.h | 2 +- src/cmc/cmc/intervalheap/code.h | 4 ++-- src/cmc/cmc/intervalheap/header.h | 4 ++-- src/cmc/cmc/intervalheap/struct.h | 2 +- src/cmc/cmc/linkedlist/code.h | 4 ++-- src/cmc/cmc/linkedlist/header.h | 4 ++-- src/cmc/cmc/linkedlist/struct.h | 2 +- src/cmc/cmc/list/code.h | 6 +++--- src/cmc/cmc/list/ext/code.h | 4 ++-- src/cmc/cmc/list/ext/header.h | 4 ++-- src/cmc/cmc/list/header.h | 6 +++--- src/cmc/cmc/list/struct.h | 2 +- src/cmc/cmc/queue/code.h | 4 ++-- src/cmc/cmc/queue/ext/code.h | 2 +- src/cmc/cmc/queue/ext/header.h | 2 +- src/cmc/cmc/queue/header.h | 4 ++-- src/cmc/cmc/queue/struct.h | 2 +- src/cmc/cmc/sortedlist/code.h | 4 ++-- src/cmc/cmc/sortedlist/header.h | 4 ++-- src/cmc/cmc/sortedlist/struct.h | 2 +- src/cmc/cmc/stack/code.h | 4 ++-- src/cmc/cmc/stack/ext/code.h | 2 +- src/cmc/cmc/stack/ext/header.h | 2 +- src/cmc/cmc/stack/header.h | 4 ++-- src/cmc/cmc/stack/struct.h | 2 +- src/cmc/cmc/treemap/code.h | 4 ++-- src/cmc/cmc/treemap/header.h | 4 ++-- src/cmc/cmc/treemap/struct.h | 2 +- src/cmc/cmc/treeset/code.h | 4 ++-- src/cmc/cmc/treeset/header.h | 4 ++-- src/cmc/cmc/treeset/struct.h | 2 +- src/cmc/cor/alloc.h | 2 +- 61 files changed, 99 insertions(+), 99 deletions(-) diff --git a/src/cmc/cmc/bitset/code.h b/src/cmc/cmc/bitset/code.h index 4d1d895..17cb723 100644 --- a/src/cmc/cmc/bitset/code.h +++ b/src/cmc/cmc/bitset/code.h @@ -34,7 +34,7 @@ struct SNAME *CMC_(PFX, _new)(size_t n_bits) return CMC_(PFX, _new_custom)(n_bits, NULL, NULL); } -struct SNAME *CMC_(PFX, _new_custom)(size_t n_bits, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks) +struct SNAME *CMC_(PFX, _new_custom)(size_t n_bits, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV CMC_DEV_FCALL; @@ -80,7 +80,7 @@ struct SNAME CMC_(PFX, _init)(size_t n_bits) return CMC_(PFX, _init_custom)(n_bits, NULL, NULL); } -struct SNAME CMC_(PFX, _init_custom)(size_t n_bits, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks) +struct SNAME CMC_(PFX, _init_custom)(size_t n_bits, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV CMC_DEV_FCALL; @@ -130,7 +130,7 @@ void CMC_(PFX, _release)(struct SNAME _bitset_) free(_bitset_.buffer); } -void CMC_(PFX, _customize)(struct SNAME *_bitset_, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks) +void CMC_(PFX, _customize)(struct SNAME *_bitset_, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV CMC_DEV_FCALL; diff --git a/src/cmc/cmc/bitset/header.h b/src/cmc/cmc/bitset/header.h index a6fd51a..81b5acf 100644 --- a/src/cmc/cmc/bitset/header.h +++ b/src/cmc/cmc/bitset/header.h @@ -24,12 +24,12 @@ /* Collection Allocation and Deallocation */ struct SNAME *CMC_(PFX, _new)(size_t n_bits); -struct SNAME *CMC_(PFX, _new_custom)(size_t n_bits, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks); +struct SNAME *CMC_(PFX, _new_custom)(size_t n_bits, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); struct SNAME CMC_(PFX, _init)(size_t n_bits); -struct SNAME CMC_(PFX, _init_custom)(size_t n_bits, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks); +struct SNAME CMC_(PFX, _init_custom)(size_t n_bits, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); void CMC_(PFX, _free)(struct SNAME *_bitset_); void CMC_(PFX, _release)(struct SNAME _bitset_); -void CMC_(PFX, _customize)(struct SNAME *_bitset_, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks); +void CMC_(PFX, _customize)(struct SNAME *_bitset_, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); /* Collection Input and Output */ bool CMC_(PFX, _set)(struct SNAME *_bitset_, size_t bit_index); bool CMC_(PFX, _set_range)(struct SNAME *_bitset_, size_t from, size_t to); diff --git a/src/cmc/cmc/bitset/struct.h b/src/cmc/cmc/bitset/struct.h index dd9a69c..d5f24d4 100644 --- a/src/cmc/cmc/bitset/struct.h +++ b/src/cmc/cmc/bitset/struct.h @@ -36,7 +36,7 @@ struct SNAME /* Flags indicating errors or success */ int flag; /* Custom allocation functions */ - CMC_ALLOC_TYPE *alloc; + CMC_ALLOC_TYPE alloc; /* Custom callback functions */ CMC_CALLBACKS_DECL; }; diff --git a/src/cmc/cmc/deque/code.h b/src/cmc/cmc/deque/code.h index 382323a..5b3b45b 100644 --- a/src/cmc/cmc/deque/code.h +++ b/src/cmc/cmc/deque/code.h @@ -34,7 +34,7 @@ struct SNAME *CMC_(PFX, _new)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_va return CMC_(PFX, _new_custom)(capacity, f_val, NULL, NULL); } -struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, +struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV @@ -122,7 +122,7 @@ void CMC_(PFX, _free)(struct SNAME *_deque_) _deque_->alloc->free(_deque_); } -void CMC_(PFX, _customize)(struct SNAME *_deque_, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks) +void CMC_(PFX, _customize)(struct SNAME *_deque_, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV CMC_DEV_FCALL; diff --git a/src/cmc/cmc/deque/ext/code.h b/src/cmc/cmc/deque/ext/code.h index d93bcbb..6946293 100644 --- a/src/cmc/cmc/deque/ext/code.h +++ b/src/cmc/cmc/deque/ext/code.h @@ -39,7 +39,7 @@ struct SNAME CMC_(PFX, _init)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_va return CMC_(PFX, _init_custom)(capacity, f_val, NULL, NULL); } -struct SNAME CMC_(PFX, _init_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, +struct SNAME CMC_(PFX, _init_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV diff --git a/src/cmc/cmc/deque/ext/header.h b/src/cmc/cmc/deque/ext/header.h index 79ab65d..23696d6 100644 --- a/src/cmc/cmc/deque/ext/header.h +++ b/src/cmc/cmc/deque/ext/header.h @@ -31,7 +31,7 @@ #ifdef CMC_EXT_INIT struct SNAME CMC_(PFX, _init)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val); -struct SNAME CMC_(PFX, _init_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, +struct SNAME CMC_(PFX, _init_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); void CMC_(PFX, _release)(struct SNAME _deque_); diff --git a/src/cmc/cmc/deque/header.h b/src/cmc/cmc/deque/header.h index c71c862..e313665 100644 --- a/src/cmc/cmc/deque/header.h +++ b/src/cmc/cmc/deque/header.h @@ -41,12 +41,12 @@ struct CMC_DEF_FVAL(SNAME) /* Collection Allocation and Deallocation */ struct SNAME *CMC_(PFX, _new)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val); -struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, +struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); void CMC_(PFX, _clear)(struct SNAME *_deque_); void CMC_(PFX, _free)(struct SNAME *_deque_); /* Customization of Allocation and Callbacks */ -void CMC_(PFX, _customize)(struct SNAME *_deque_, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks); +void CMC_(PFX, _customize)(struct SNAME *_deque_, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); /* Collection Input and Output */ bool CMC_(PFX, _push_front)(struct SNAME *_deque_, V value); bool CMC_(PFX, _push_back)(struct SNAME *_deque_, V value); diff --git a/src/cmc/cmc/deque/struct.h b/src/cmc/cmc/deque/struct.h index 20d9722..cb85e11 100644 --- a/src/cmc/cmc/deque/struct.h +++ b/src/cmc/cmc/deque/struct.h @@ -39,7 +39,7 @@ struct SNAME /* Functions Table */ struct CMC_DEF_FVAL(SNAME) * f_val; /* Custom allocation functions */ - CMC_ALLOC_TYPE *alloc; + CMC_ALLOC_TYPE alloc; /* Custom callback functions */ CMC_CALLBACKS_DECL; }; diff --git a/src/cmc/cmc/hashbidimap/code.h b/src/cmc/cmc/hashbidimap/code.h index 01af80f..b1e2e2e 100644 --- a/src/cmc/cmc/hashbidimap/code.h +++ b/src/cmc/cmc/hashbidimap/code.h @@ -43,7 +43,7 @@ struct SNAME *CMC_(PFX, _new)(size_t capacity, double load, struct CMC_DEF_FKEY( } struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, double load, struct CMC_DEF_FKEY(SNAME) * f_key, - struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, + struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV @@ -134,7 +134,7 @@ void CMC_(PFX, _free)(struct SNAME *_map_) _map_->alloc->free(_map_); } -void CMC_(PFX, _customize)(struct SNAME *_map_, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks) +void CMC_(PFX, _customize)(struct SNAME *_map_, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV CMC_DEV_FCALL; diff --git a/src/cmc/cmc/hashbidimap/ext/code.h b/src/cmc/cmc/hashbidimap/ext/code.h index 5474190..678fa07 100644 --- a/src/cmc/cmc/hashbidimap/ext/code.h +++ b/src/cmc/cmc/hashbidimap/ext/code.h @@ -41,7 +41,7 @@ struct SNAME CMC_(PFX, _init)(size_t capacity, double load, struct CMC_DEF_FKEY( } struct SNAME CMC_(PFX, _init_custom)(size_t capacity, double load, struct CMC_DEF_FKEY(SNAME) * f_key, - struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, + struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV diff --git a/src/cmc/cmc/hashbidimap/ext/header.h b/src/cmc/cmc/hashbidimap/ext/header.h index 897fd7b..11fae3d 100644 --- a/src/cmc/cmc/hashbidimap/ext/header.h +++ b/src/cmc/cmc/hashbidimap/ext/header.h @@ -33,7 +33,7 @@ struct SNAME CMC_(PFX, _init)(size_t capacity, double load, struct CMC_DEF_FKEY(SNAME) * f_key, struct CMC_DEF_FVAL(SNAME) * f_val); struct SNAME CMC_(PFX, _init_custom)(size_t capacity, double load, struct CMC_DEF_FKEY(SNAME) * f_key, - struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, + struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); void CMC_(PFX, _release)(struct SNAME _map_); diff --git a/src/cmc/cmc/hashbidimap/header.h b/src/cmc/cmc/hashbidimap/header.h index b78a463..1a3d235 100644 --- a/src/cmc/cmc/hashbidimap/header.h +++ b/src/cmc/cmc/hashbidimap/header.h @@ -60,12 +60,12 @@ struct CMC_DEF_FVAL(SNAME) struct SNAME *CMC_(PFX, _new)(size_t capacity, double load, struct CMC_DEF_FKEY(SNAME) * f_key, struct CMC_DEF_FVAL(SNAME) * f_val); struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, double load, struct CMC_DEF_FKEY(SNAME) * f_key, - struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, + struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); void CMC_(PFX, _clear)(struct SNAME *_map_); void CMC_(PFX, _free)(struct SNAME *_map_); /* Customization of Allocation and Callbacks */ -void CMC_(PFX, _customize)(struct SNAME *_map_, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks); +void CMC_(PFX, _customize)(struct SNAME *_map_, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); /* Collection Input and Output */ bool CMC_(PFX, _insert)(struct SNAME *_map_, K key, V value); bool CMC_(PFX, _update_key)(struct SNAME *_map_, V val, K new_key); diff --git a/src/cmc/cmc/hashbidimap/struct.h b/src/cmc/cmc/hashbidimap/struct.h index dc44064..910f5f1 100644 --- a/src/cmc/cmc/hashbidimap/struct.h +++ b/src/cmc/cmc/hashbidimap/struct.h @@ -39,7 +39,7 @@ struct SNAME /* Value function table */ struct CMC_DEF_FVAL(SNAME) * f_val; /* Custom allocation functions */ - CMC_ALLOC_TYPE *alloc; + CMC_ALLOC_TYPE alloc; /* Custom callback functions */ CMC_CALLBACKS_DECL; /* Methods */ diff --git a/src/cmc/cmc/hashmap/code.h b/src/cmc/cmc/hashmap/code.h index e37a1e9..f595415 100644 --- a/src/cmc/cmc/hashmap/code.h +++ b/src/cmc/cmc/hashmap/code.h @@ -33,7 +33,7 @@ struct SNAME *CMC_(PFX, _new)(size_t capacity, double load, struct CMC_DEF_FKEY( } struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, double load, struct CMC_DEF_FKEY(SNAME) * f_key, - struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, + struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV @@ -136,7 +136,7 @@ void CMC_(PFX, _free)(struct SNAME *_map_) _map_->alloc->free(_map_); } -void CMC_(PFX, _customize)(struct SNAME *_map_, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks) +void CMC_(PFX, _customize)(struct SNAME *_map_, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV CMC_DEV_FCALL; diff --git a/src/cmc/cmc/hashmap/ext/code.h b/src/cmc/cmc/hashmap/ext/code.h index 3e84937..9844ada 100644 --- a/src/cmc/cmc/hashmap/ext/code.h +++ b/src/cmc/cmc/hashmap/ext/code.h @@ -41,7 +41,7 @@ struct SNAME CMC_(PFX, _init)(size_t capacity, double load, struct CMC_DEF_FKEY( } struct SNAME CMC_(PFX, _init_custom)(size_t capacity, double load, struct CMC_DEF_FKEY(SNAME) * f_key, - struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, + struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV diff --git a/src/cmc/cmc/hashmap/ext/header.h b/src/cmc/cmc/hashmap/ext/header.h index edb1cbe..4bd06a9 100644 --- a/src/cmc/cmc/hashmap/ext/header.h +++ b/src/cmc/cmc/hashmap/ext/header.h @@ -33,7 +33,7 @@ struct SNAME CMC_(PFX, _init)(size_t capacity, double load, struct CMC_DEF_FKEY(SNAME) * f_key, struct CMC_DEF_FVAL(SNAME) * f_val); struct SNAME CMC_(PFX, _init_custom)(size_t capacity, double load, struct CMC_DEF_FKEY(SNAME) * f_key, - struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, + struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); void CMC_(PFX, _release)(struct SNAME _map_); diff --git a/src/cmc/cmc/hashmap/header.h b/src/cmc/cmc/hashmap/header.h index f48d75f..81a4c54 100644 --- a/src/cmc/cmc/hashmap/header.h +++ b/src/cmc/cmc/hashmap/header.h @@ -60,12 +60,12 @@ struct CMC_DEF_FVAL(SNAME) struct SNAME *CMC_(PFX, _new)(size_t capacity, double load, struct CMC_DEF_FKEY(SNAME) * f_key, struct CMC_DEF_FVAL(SNAME) * f_val); struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, double load, struct CMC_DEF_FKEY(SNAME) * f_key, - struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, + struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); void CMC_(PFX, _clear)(struct SNAME *_map_); void CMC_(PFX, _free)(struct SNAME *_map_); /* Customization of Allocation and Callbacks */ -void CMC_(PFX, _customize)(struct SNAME *_map_, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks); +void CMC_(PFX, _customize)(struct SNAME *_map_, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); /* Collection Input and Output */ bool CMC_(PFX, _insert)(struct SNAME *_map_, K key, V value); bool CMC_(PFX, _update)(struct SNAME *_map_, K key, V new_value, V *old_value); diff --git a/src/cmc/cmc/hashmap/struct.h b/src/cmc/cmc/hashmap/struct.h index 01cc998..323d361 100644 --- a/src/cmc/cmc/hashmap/struct.h +++ b/src/cmc/cmc/hashmap/struct.h @@ -40,7 +40,7 @@ struct SNAME /* Value function table */ struct CMC_DEF_FVAL(SNAME) * f_val; /* Custom allocation functions */ - CMC_ALLOC_TYPE *alloc; + CMC_ALLOC_TYPE alloc; /* Custom callback functions */ CMC_CALLBACKS_DECL; }; diff --git a/src/cmc/cmc/hashmultimap/code.h b/src/cmc/cmc/hashmultimap/code.h index a5e70cc..8d7a58c 100644 --- a/src/cmc/cmc/hashmultimap/code.h +++ b/src/cmc/cmc/hashmultimap/code.h @@ -39,7 +39,7 @@ struct SNAME *CMC_(PFX, _new)(size_t capacity, double load, struct CMC_DEF_FKEY( } struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, double load, struct CMC_DEF_FKEY(SNAME) * f_key, - struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, + struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV @@ -167,7 +167,7 @@ void CMC_(PFX, _free)(struct SNAME *_map_) _map_->alloc->free(_map_); } -void CMC_(PFX, _customize)(struct SNAME *_map_, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks) +void CMC_(PFX, _customize)(struct SNAME *_map_, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV CMC_DEV_FCALL; diff --git a/src/cmc/cmc/hashmultimap/header.h b/src/cmc/cmc/hashmultimap/header.h index 5a949bc..0070af1 100644 --- a/src/cmc/cmc/hashmultimap/header.h +++ b/src/cmc/cmc/hashmultimap/header.h @@ -60,12 +60,12 @@ struct CMC_DEF_FVAL(SNAME) struct SNAME *CMC_(PFX, _new)(size_t capacity, double load, struct CMC_DEF_FKEY(SNAME) * f_key, struct CMC_DEF_FVAL(SNAME) * f_val); struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, double load, struct CMC_DEF_FKEY(SNAME) * f_key, - struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, + struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); void CMC_(PFX, _clear)(struct SNAME *_map_); void CMC_(PFX, _free)(struct SNAME *_map_); /* Customization of Allocation and Callbacks */ -void CMC_(PFX, _customize)(struct SNAME *_map_, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks); +void CMC_(PFX, _customize)(struct SNAME *_map_, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); /* Collection Input and Output */ bool CMC_(PFX, _insert)(struct SNAME *_map_, K key, V value); bool CMC_(PFX, _update)(struct SNAME *_map_, K key, V new_value, V *old_value); diff --git a/src/cmc/cmc/hashmultimap/struct.h b/src/cmc/cmc/hashmultimap/struct.h index ae39925..5dad01f 100644 --- a/src/cmc/cmc/hashmultimap/struct.h +++ b/src/cmc/cmc/hashmultimap/struct.h @@ -40,7 +40,7 @@ struct SNAME /* Value function table */ struct CMC_DEF_FVAL(SNAME) * f_val; /* Custom allocation functions */ - CMC_ALLOC_TYPE *alloc; + CMC_ALLOC_TYPE alloc; /* Custom callback functions */ CMC_CALLBACKS_DECL; }; diff --git a/src/cmc/cmc/hashmultiset/code.h b/src/cmc/cmc/hashmultiset/code.h index 8bb56d0..55411df 100644 --- a/src/cmc/cmc/hashmultiset/code.h +++ b/src/cmc/cmc/hashmultiset/code.h @@ -37,7 +37,7 @@ struct SNAME *CMC_(PFX, _new)(size_t capacity, double load, struct CMC_DEF_FVAL( } struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, double load, struct CMC_DEF_FVAL(SNAME) * f_val, - CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks) + CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV CMC_DEV_FCALL; @@ -133,7 +133,7 @@ void CMC_(PFX, _free)(struct SNAME *_set_) _set_->alloc->free(_set_); } -void CMC_(PFX, _customize)(struct SNAME *_set_, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks) +void CMC_(PFX, _customize)(struct SNAME *_set_, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV CMC_DEV_FCALL; diff --git a/src/cmc/cmc/hashmultiset/header.h b/src/cmc/cmc/hashmultiset/header.h index 35f2eaa..e555844 100644 --- a/src/cmc/cmc/hashmultiset/header.h +++ b/src/cmc/cmc/hashmultiset/header.h @@ -42,11 +42,11 @@ struct CMC_DEF_FVAL(SNAME) /* Collection Allocation and Deallocation */ struct SNAME *CMC_(PFX, _new)(size_t capacity, double load, struct CMC_DEF_FVAL(SNAME) * f_val); struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, double load, struct CMC_DEF_FVAL(SNAME) * f_val, - CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks); + CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); void CMC_(PFX, _clear)(struct SNAME *_set_); void CMC_(PFX, _free)(struct SNAME *_set_); /* Customization of Allocation and Callbacks */ -void CMC_(PFX, _customize)(struct SNAME *_set_, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks); +void CMC_(PFX, _customize)(struct SNAME *_set_, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); /* Collection Input and Output */ bool CMC_(PFX, _insert)(struct SNAME *_set_, V value); bool CMC_(PFX, _insert_many)(struct SNAME *_set_, V value, size_t count); diff --git a/src/cmc/cmc/hashmultiset/struct.h b/src/cmc/cmc/hashmultiset/struct.h index 63601a5..dbc29f4 100644 --- a/src/cmc/cmc/hashmultiset/struct.h +++ b/src/cmc/cmc/hashmultiset/struct.h @@ -39,7 +39,7 @@ struct SNAME /* Key function table */ struct CMC_DEF_FVAL(SNAME) * f_val; /* Custom allocation functions */ - CMC_ALLOC_TYPE *alloc; + CMC_ALLOC_TYPE alloc; /* Custom callback functions */ CMC_CALLBACKS_DECL; }; diff --git a/src/cmc/cmc/hashset/code.h b/src/cmc/cmc/hashset/code.h index 6303dd2..5d43024 100644 --- a/src/cmc/cmc/hashset/code.h +++ b/src/cmc/cmc/hashset/code.h @@ -36,7 +36,7 @@ struct SNAME *CMC_(PFX, _new)(size_t capacity, double load, struct CMC_DEF_FVAL( } struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, double load, struct CMC_DEF_FVAL(SNAME) * f_val, - CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks) + CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV CMC_DEV_FCALL; @@ -131,7 +131,7 @@ void CMC_(PFX, _free)(struct SNAME *_set_) _set_->alloc->free(_set_); } -void CMC_(PFX, _customize)(struct SNAME *_set_, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks) +void CMC_(PFX, _customize)(struct SNAME *_set_, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV CMC_DEV_FCALL; diff --git a/src/cmc/cmc/hashset/header.h b/src/cmc/cmc/hashset/header.h index d071c89..709b20e 100644 --- a/src/cmc/cmc/hashset/header.h +++ b/src/cmc/cmc/hashset/header.h @@ -42,11 +42,11 @@ struct CMC_DEF_FVAL(SNAME) /* Collection Allocation and Deallocation */ struct SNAME *CMC_(PFX, _new)(size_t capacity, double load, struct CMC_DEF_FVAL(SNAME) * f_val); struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, double load, struct CMC_DEF_FVAL(SNAME) * f_val, - CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks); + CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); void CMC_(PFX, _clear)(struct SNAME *_set_); void CMC_(PFX, _free)(struct SNAME *_set_); /* Customization of Allocation and Callbacks */ -void CMC_(PFX, _customize)(struct SNAME *_set_, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks); +void CMC_(PFX, _customize)(struct SNAME *_set_, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); /* Collection Input and Output */ bool CMC_(PFX, _insert)(struct SNAME *_set_, V value); bool CMC_(PFX, _remove)(struct SNAME *_set_, V value); diff --git a/src/cmc/cmc/hashset/struct.h b/src/cmc/cmc/hashset/struct.h index c80627a..75ca526 100644 --- a/src/cmc/cmc/hashset/struct.h +++ b/src/cmc/cmc/hashset/struct.h @@ -38,7 +38,7 @@ struct SNAME /* Value function table */ struct CMC_DEF_FVAL(SNAME) * f_val; /* Custom allocation functions */ - CMC_ALLOC_TYPE *alloc; + CMC_ALLOC_TYPE alloc; /* Custom callback functions */ CMC_CALLBACKS_DECL; }; diff --git a/src/cmc/cmc/heap/code.h b/src/cmc/cmc/heap/code.h index 5af0ef8..6ffe16b 100644 --- a/src/cmc/cmc/heap/code.h +++ b/src/cmc/cmc/heap/code.h @@ -36,7 +36,7 @@ struct SNAME *CMC_(PFX, _new)(size_t capacity, enum cmc_heap_order HO, struct CM } struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, enum cmc_heap_order HO, struct CMC_DEF_FVAL(SNAME) * f_val, - CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks) + CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV CMC_DEV_FCALL; @@ -118,7 +118,7 @@ void CMC_(PFX, _free)(struct SNAME *_heap_) _heap_->alloc->free(_heap_); } -void CMC_(PFX, _customize)(struct SNAME *_heap_, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks) +void CMC_(PFX, _customize)(struct SNAME *_heap_, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV CMC_DEV_FCALL; diff --git a/src/cmc/cmc/heap/header.h b/src/cmc/cmc/heap/header.h index aecbe20..0c0f477 100644 --- a/src/cmc/cmc/heap/header.h +++ b/src/cmc/cmc/heap/header.h @@ -42,11 +42,11 @@ struct CMC_DEF_FVAL(SNAME) /* Collection Allocation and Deallocation */ struct SNAME *CMC_(PFX, _new)(size_t capacity, enum cmc_heap_order HO, struct CMC_DEF_FVAL(SNAME) * f_val); struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, enum cmc_heap_order HO, struct CMC_DEF_FVAL(SNAME) * f_val, - CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks); + CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); void CMC_(PFX, _clear)(struct SNAME *_heap_); void CMC_(PFX, _free)(struct SNAME *_heap_); /* Customization of Allocation and Callbacks */ -void CMC_(PFX, _customize)(struct SNAME *_heap_, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks); +void CMC_(PFX, _customize)(struct SNAME *_heap_, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); /* Collection Input and Output */ bool CMC_(PFX, _insert)(struct SNAME *_heap_, V value); bool CMC_(PFX, _remove)(struct SNAME *_heap_); diff --git a/src/cmc/cmc/heap/struct.h b/src/cmc/cmc/heap/struct.h index d8878a5..1f5c9eb 100644 --- a/src/cmc/cmc/heap/struct.h +++ b/src/cmc/cmc/heap/struct.h @@ -37,7 +37,7 @@ struct SNAME /* Value function table */ struct CMC_DEF_FVAL(SNAME) * f_val; /* Custom allocation functions */ - CMC_ALLOC_TYPE *alloc; + CMC_ALLOC_TYPE alloc; /* Custom callback functions */ CMC_CALLBACKS_DECL; }; diff --git a/src/cmc/cmc/intervalheap/code.h b/src/cmc/cmc/intervalheap/code.h index 793def2..c90ac92 100644 --- a/src/cmc/cmc/intervalheap/code.h +++ b/src/cmc/cmc/intervalheap/code.h @@ -37,7 +37,7 @@ struct SNAME *CMC_(PFX, _new)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_va return CMC_(PFX, _new_custom)(capacity, f_val, NULL, NULL); } -struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, +struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV @@ -121,7 +121,7 @@ void CMC_(PFX, _free)(struct SNAME *_heap_) _heap_->alloc->free(_heap_); } -void CMC_(PFX, _customize)(struct SNAME *_heap_, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks) +void CMC_(PFX, _customize)(struct SNAME *_heap_, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV CMC_DEV_FCALL; diff --git a/src/cmc/cmc/intervalheap/header.h b/src/cmc/cmc/intervalheap/header.h index 4259203..a1c0a21 100644 --- a/src/cmc/cmc/intervalheap/header.h +++ b/src/cmc/cmc/intervalheap/header.h @@ -42,12 +42,12 @@ struct CMC_DEF_FVAL(SNAME) /* Collection Functions */ /* Collection Allocation and Deallocation */ struct SNAME *CMC_(PFX, _new)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val); -struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, +struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); void CMC_(PFX, _clear)(struct SNAME *_heap_); void CMC_(PFX, _free)(struct SNAME *_heap_); /* Customization of Allocation and Callbacks */ -void CMC_(PFX, _customize)(struct SNAME *_heap_, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks); +void CMC_(PFX, _customize)(struct SNAME *_heap_, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); /* Collection Input and Output */ bool CMC_(PFX, _insert)(struct SNAME *_heap_, V value); bool CMC_(PFX, _remove_max)(struct SNAME *_heap_); diff --git a/src/cmc/cmc/intervalheap/struct.h b/src/cmc/cmc/intervalheap/struct.h index f8fc69d..544f001 100644 --- a/src/cmc/cmc/intervalheap/struct.h +++ b/src/cmc/cmc/intervalheap/struct.h @@ -38,7 +38,7 @@ struct SNAME /* Value function table */ struct CMC_DEF_FVAL(SNAME) * f_val; /* Custom allocation functions */ - CMC_ALLOC_TYPE *alloc; + CMC_ALLOC_TYPE alloc; /* Custom callback functions */ CMC_CALLBACKS_DECL; }; diff --git a/src/cmc/cmc/linkedlist/code.h b/src/cmc/cmc/linkedlist/code.h index f5cd8ce..3e91600 100644 --- a/src/cmc/cmc/linkedlist/code.h +++ b/src/cmc/cmc/linkedlist/code.h @@ -35,7 +35,7 @@ struct SNAME *CMC_(PFX, _new)(struct CMC_DEF_FVAL(SNAME) * f_val) return CMC_(PFX, _new_custom)(f_val, NULL, NULL); } -struct SNAME *CMC_(PFX, _new_custom)(struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, +struct SNAME *CMC_(PFX, _new_custom)(struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV @@ -105,7 +105,7 @@ void CMC_(PFX, _free)(struct SNAME *_list_) _list_->alloc->free(_list_); } -void CMC_(PFX, _customize)(struct SNAME *_list_, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks) +void CMC_(PFX, _customize)(struct SNAME *_list_, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV CMC_DEV_FCALL; diff --git a/src/cmc/cmc/linkedlist/header.h b/src/cmc/cmc/linkedlist/header.h index 31a9760..5184f17 100644 --- a/src/cmc/cmc/linkedlist/header.h +++ b/src/cmc/cmc/linkedlist/header.h @@ -42,12 +42,12 @@ struct CMC_DEF_FVAL(SNAME) /* Collection Functions */ /* Collection Allocation and Deallocation */ struct SNAME *CMC_(PFX, _new)(struct CMC_DEF_FVAL(SNAME) * f_val); -struct SNAME *CMC_(PFX, _new_custom)(struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, +struct SNAME *CMC_(PFX, _new_custom)(struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); void CMC_(PFX, _clear)(struct SNAME *_list_); void CMC_(PFX, _free)(struct SNAME *_list_); /* Customization of Allocation and Callbacks */ -void CMC_(PFX, _customize)(struct SNAME *_list_, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks); +void CMC_(PFX, _customize)(struct SNAME *_list_, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); /* Collection Input and Output */ bool CMC_(PFX, _push_front)(struct SNAME *_list_, V value); bool CMC_(PFX, _push_at)(struct SNAME *_list_, V value, size_t index); diff --git a/src/cmc/cmc/linkedlist/struct.h b/src/cmc/cmc/linkedlist/struct.h index c80afcc..8f36003 100644 --- a/src/cmc/cmc/linkedlist/struct.h +++ b/src/cmc/cmc/linkedlist/struct.h @@ -41,7 +41,7 @@ struct SNAME struct CMC_DEF_FVAL(SNAME) * f_val; /* Custom allocation functions */ - CMC_ALLOC_TYPE *alloc; + CMC_ALLOC_TYPE alloc; /* Custom callback functions */ CMC_CALLBACKS_DECL; diff --git a/src/cmc/cmc/list/code.h b/src/cmc/cmc/list/code.h index fd1974c..f038a14 100644 --- a/src/cmc/cmc/list/code.h +++ b/src/cmc/cmc/list/code.h @@ -43,10 +43,10 @@ struct SNAME *CMC_(PFX, _new)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_va } #ifdef CMC_SAC -struct SNAME *CMC_(PFX, _new_custom)(struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, +struct SNAME *CMC_(PFX, _new_custom)(struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) #else -struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, +struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) #endif { @@ -138,7 +138,7 @@ void CMC_(PFX, _free)(struct SNAME *_list_) _list_->alloc->free(_list_); } -void CMC_(PFX, _customize)(struct SNAME *_list_, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks) +void CMC_(PFX, _customize)(struct SNAME *_list_, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV CMC_DEV_FCALL; diff --git a/src/cmc/cmc/list/ext/code.h b/src/cmc/cmc/list/ext/code.h index 9297853..d1d5b04 100644 --- a/src/cmc/cmc/list/ext/code.h +++ b/src/cmc/cmc/list/ext/code.h @@ -48,10 +48,10 @@ struct SNAME CMC_(PFX, _init)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_va } #ifdef CMC_SAC -struct SNAME CMC_(PFX, _init_custom)(struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, +struct SNAME CMC_(PFX, _init_custom)(struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) #else -struct SNAME CMC_(PFX, _init_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, +struct SNAME CMC_(PFX, _init_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) #endif { diff --git a/src/cmc/cmc/list/ext/header.h b/src/cmc/cmc/list/ext/header.h index d1fe650..61f5bf5 100644 --- a/src/cmc/cmc/list/ext/header.h +++ b/src/cmc/cmc/list/ext/header.h @@ -32,11 +32,11 @@ #ifdef CMC_SAC struct SNAME CMC_(PFX, _init)(struct CMC_DEF_FVAL(SNAME) * f_val); -struct SNAME CMC_(PFX, _init_custom)(struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, +struct SNAME CMC_(PFX, _init_custom)(struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); #else struct SNAME CMC_(PFX, _init)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val); -struct SNAME CMC_(PFX, _init_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, +struct SNAME CMC_(PFX, _init_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); #endif void CMC_(PFX, _release)(struct SNAME _list_); diff --git a/src/cmc/cmc/list/header.h b/src/cmc/cmc/list/header.h index 39458b0..ea714cf 100644 --- a/src/cmc/cmc/list/header.h +++ b/src/cmc/cmc/list/header.h @@ -42,17 +42,17 @@ struct CMC_DEF_FVAL(SNAME) /* Collection Allocation and Deallocation */ #ifdef CMC_SAC struct SNAME *CMC_(PFX, _new)(struct CMC_DEF_FVAL(SNAME) * f_val); -struct SNAME *CMC_(PFX, _new_custom)(struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, +struct SNAME *CMC_(PFX, _new_custom)(struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); #else struct SNAME *CMC_(PFX, _new)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val); -struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, +struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); #endif void CMC_(PFX, _clear)(struct SNAME *_list_); void CMC_(PFX, _free)(struct SNAME *_list_); /* Customization of Allocation and Callbacks */ -void CMC_(PFX, _customize)(struct SNAME *_list_, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks); +void CMC_(PFX, _customize)(struct SNAME *_list_, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); /* Collection Input and Output */ bool CMC_(PFX, _push_front)(struct SNAME *_list_, V value); bool CMC_(PFX, _push_at)(struct SNAME *_list_, V value, size_t index); diff --git a/src/cmc/cmc/list/struct.h b/src/cmc/cmc/list/struct.h index 0d4cfa0..d4d39f8 100644 --- a/src/cmc/cmc/list/struct.h +++ b/src/cmc/cmc/list/struct.h @@ -39,7 +39,7 @@ struct SNAME /* Value function table */ struct CMC_DEF_FVAL(SNAME) * f_val; /* Custom allocation functions */ - CMC_ALLOC_TYPE *alloc; + CMC_ALLOC_TYPE alloc; /* Custom callback functions */ CMC_CALLBACKS_DECL; }; diff --git a/src/cmc/cmc/queue/code.h b/src/cmc/cmc/queue/code.h index e97a5ba..0d18358 100644 --- a/src/cmc/cmc/queue/code.h +++ b/src/cmc/cmc/queue/code.h @@ -34,7 +34,7 @@ struct SNAME *CMC_(PFX, _new)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_va return CMC_(PFX, _new_custom)(capacity, f_val, NULL, NULL); } -struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, +struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV @@ -121,7 +121,7 @@ void CMC_(PFX, _free)(struct SNAME *_queue_) _queue_->alloc->free(_queue_); } -void CMC_(PFX, _customize)(struct SNAME *_queue_, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks) +void CMC_(PFX, _customize)(struct SNAME *_queue_, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV CMC_DEV_FCALL; diff --git a/src/cmc/cmc/queue/ext/code.h b/src/cmc/cmc/queue/ext/code.h index 2c4a422..180c01b 100644 --- a/src/cmc/cmc/queue/ext/code.h +++ b/src/cmc/cmc/queue/ext/code.h @@ -39,7 +39,7 @@ struct SNAME CMC_(PFX, _init)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_va return CMC_(PFX, _init_custom)(capacity, f_val, NULL, NULL); } -struct SNAME CMC_(PFX, _init_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, +struct SNAME CMC_(PFX, _init_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV diff --git a/src/cmc/cmc/queue/ext/header.h b/src/cmc/cmc/queue/ext/header.h index 84f5af2..304599c 100644 --- a/src/cmc/cmc/queue/ext/header.h +++ b/src/cmc/cmc/queue/ext/header.h @@ -31,7 +31,7 @@ #ifdef CMC_EXT_INIT struct SNAME CMC_(PFX, _init)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val); -struct SNAME CMC_(PFX, _init_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, +struct SNAME CMC_(PFX, _init_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); void CMC_(PFX, _release)(struct SNAME _queue_); diff --git a/src/cmc/cmc/queue/header.h b/src/cmc/cmc/queue/header.h index eb57205..0604461 100644 --- a/src/cmc/cmc/queue/header.h +++ b/src/cmc/cmc/queue/header.h @@ -41,12 +41,12 @@ struct CMC_DEF_FVAL(SNAME) /* Collection Allocation and Deallocation */ struct SNAME *CMC_(PFX, _new)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val); -struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, +struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); void CMC_(PFX, _clear)(struct SNAME *_queue_); void CMC_(PFX, _free)(struct SNAME *_queue_); /* Customization of Allocation and Callbacks */ -void CMC_(PFX, _customize)(struct SNAME *_queue_, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks); +void CMC_(PFX, _customize)(struct SNAME *_queue_, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); /* Collection Input and Output */ bool CMC_(PFX, _enqueue)(struct SNAME *_queue_, V value); bool CMC_(PFX, _dequeue)(struct SNAME *_queue_); diff --git a/src/cmc/cmc/queue/struct.h b/src/cmc/cmc/queue/struct.h index ad161e3..9d63f73 100644 --- a/src/cmc/cmc/queue/struct.h +++ b/src/cmc/cmc/queue/struct.h @@ -39,7 +39,7 @@ struct SNAME /* Value function table */ struct CMC_DEF_FVAL(SNAME) * f_val; /* Custom allocation functions */ - CMC_ALLOC_TYPE *alloc; + CMC_ALLOC_TYPE alloc; /* Custom callback functions */ CMC_CALLBACKS_DECL; }; diff --git a/src/cmc/cmc/sortedlist/code.h b/src/cmc/cmc/sortedlist/code.h index 53068f2..f8a2aed 100644 --- a/src/cmc/cmc/sortedlist/code.h +++ b/src/cmc/cmc/sortedlist/code.h @@ -37,7 +37,7 @@ struct SNAME *CMC_(PFX, _new)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_va return CMC_(PFX, _new_custom)(capacity, f_val, NULL, NULL); } -struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, +struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV @@ -110,7 +110,7 @@ void CMC_(PFX, _free)(struct SNAME *_list_) _list_->alloc->free(_list_); } -void CMC_(PFX, _customize)(struct SNAME *_list_, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks) +void CMC_(PFX, _customize)(struct SNAME *_list_, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV CMC_DEV_FCALL; diff --git a/src/cmc/cmc/sortedlist/header.h b/src/cmc/cmc/sortedlist/header.h index 2084e6c..672446e 100644 --- a/src/cmc/cmc/sortedlist/header.h +++ b/src/cmc/cmc/sortedlist/header.h @@ -41,12 +41,12 @@ struct CMC_DEF_FVAL(SNAME) /* Collection Allocation and Deallocation */ struct SNAME *CMC_(PFX, _new)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val); -struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, +struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); void CMC_(PFX, _clear)(struct SNAME *_list_); void CMC_(PFX, _free)(struct SNAME *_list_); /* Customization of Allocation and Callbacks */ -void CMC_(PFX, _customize)(struct SNAME *_list_, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks); +void CMC_(PFX, _customize)(struct SNAME *_list_, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); /* Collection Input and Output */ bool CMC_(PFX, _insert)(struct SNAME *_list_, V value); bool CMC_(PFX, _remove)(struct SNAME *_list_, size_t index); diff --git a/src/cmc/cmc/sortedlist/struct.h b/src/cmc/cmc/sortedlist/struct.h index d2952bd..64d0f72 100644 --- a/src/cmc/cmc/sortedlist/struct.h +++ b/src/cmc/cmc/sortedlist/struct.h @@ -37,7 +37,7 @@ struct SNAME /* Value function table */ struct CMC_DEF_FVAL(SNAME) * f_val; /* Custom allocation functions */ - CMC_ALLOC_TYPE *alloc; + CMC_ALLOC_TYPE alloc; /* Custom callback functions */ CMC_CALLBACKS_DECL; }; diff --git a/src/cmc/cmc/stack/code.h b/src/cmc/cmc/stack/code.h index 35cbaed..a5968ef 100644 --- a/src/cmc/cmc/stack/code.h +++ b/src/cmc/cmc/stack/code.h @@ -34,7 +34,7 @@ struct SNAME *CMC_(PFX, _new)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_va return CMC_(PFX, _new_custom)(capacity, f_val, NULL, NULL); } -struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, +struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV @@ -108,7 +108,7 @@ void CMC_(PFX, _free)(struct SNAME *_stack_) _stack_->alloc->free(_stack_); } -void CMC_(PFX, _customize)(struct SNAME *_stack_, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks) +void CMC_(PFX, _customize)(struct SNAME *_stack_, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV CMC_DEV_FCALL; diff --git a/src/cmc/cmc/stack/ext/code.h b/src/cmc/cmc/stack/ext/code.h index dd65227..1812dd9 100644 --- a/src/cmc/cmc/stack/ext/code.h +++ b/src/cmc/cmc/stack/ext/code.h @@ -39,7 +39,7 @@ struct SNAME CMC_(PFX, _init)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_va return CMC_(PFX, _init_custom)(capacity, f_val, NULL, NULL); } -struct SNAME CMC_(PFX, _init_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, +struct SNAME CMC_(PFX, _init_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV diff --git a/src/cmc/cmc/stack/ext/header.h b/src/cmc/cmc/stack/ext/header.h index 4243b22..9df05e2 100644 --- a/src/cmc/cmc/stack/ext/header.h +++ b/src/cmc/cmc/stack/ext/header.h @@ -31,7 +31,7 @@ #ifdef CMC_EXT_INIT struct SNAME CMC_(PFX, _init)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val); -struct SNAME CMC_(PFX, _init_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, +struct SNAME CMC_(PFX, _init_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); void CMC_(PFX, _release)(struct SNAME _stack_); diff --git a/src/cmc/cmc/stack/header.h b/src/cmc/cmc/stack/header.h index d3be67a..bdd1954 100644 --- a/src/cmc/cmc/stack/header.h +++ b/src/cmc/cmc/stack/header.h @@ -41,12 +41,12 @@ struct CMC_DEF_FVAL(SNAME) /* Collection Allocation and Deallocation */ struct SNAME *CMC_(PFX, _new)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val); -struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, +struct SNAME *CMC_(PFX, _new_custom)(size_t capacity, struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); void CMC_(PFX, _clear)(struct SNAME *_stack_); void CMC_(PFX, _free)(struct SNAME *_stack_); /* Customization of Allocation and Callbacks */ -void CMC_(PFX, _customize)(struct SNAME *_stack_, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks); +void CMC_(PFX, _customize)(struct SNAME *_stack_, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); /* Collection Input and Output */ bool CMC_(PFX, _push)(struct SNAME *_stack_, V value); bool CMC_(PFX, _pop)(struct SNAME *_stack_); diff --git a/src/cmc/cmc/stack/struct.h b/src/cmc/cmc/stack/struct.h index bc20cce..8269704 100644 --- a/src/cmc/cmc/stack/struct.h +++ b/src/cmc/cmc/stack/struct.h @@ -36,7 +36,7 @@ struct SNAME /* Value function table */ struct CMC_DEF_FVAL(SNAME) * f_val; /* Custom allocation functions */ - CMC_ALLOC_TYPE *alloc; + CMC_ALLOC_TYPE alloc; /* Custom callback functions */ CMC_CALLBACKS_DECL; }; diff --git a/src/cmc/cmc/treemap/code.h b/src/cmc/cmc/treemap/code.h index b2b480e..16418ca 100644 --- a/src/cmc/cmc/treemap/code.h +++ b/src/cmc/cmc/treemap/code.h @@ -41,7 +41,7 @@ struct SNAME *CMC_(PFX, _new)(struct CMC_DEF_FKEY(SNAME) * f_key, struct CMC_DEF } struct SNAME *CMC_(PFX, _new_custom)(struct CMC_DEF_FKEY(SNAME) * f_key, struct CMC_DEF_FVAL(SNAME) * f_val, - CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks) + CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV CMC_DEV_FCALL; @@ -152,7 +152,7 @@ void CMC_(PFX, _free)(struct SNAME *_map_) _map_->alloc->free(_map_); } -void CMC_(PFX, _customize)(struct SNAME *_map_, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks) +void CMC_(PFX, _customize)(struct SNAME *_map_, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV CMC_DEV_FCALL; diff --git a/src/cmc/cmc/treemap/header.h b/src/cmc/cmc/treemap/header.h index 278dcf4..9dae776 100644 --- a/src/cmc/cmc/treemap/header.h +++ b/src/cmc/cmc/treemap/header.h @@ -60,11 +60,11 @@ struct CMC_DEF_FVAL(SNAME) /* Collection Allocation and Deallocation */ struct SNAME *CMC_(PFX, _new)(struct CMC_DEF_FKEY(SNAME) * f_key, struct CMC_DEF_FVAL(SNAME) * f_val); struct SNAME *CMC_(PFX, _new_custom)(struct CMC_DEF_FKEY(SNAME) * f_key, struct CMC_DEF_FVAL(SNAME) * f_val, - CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks); + CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); void CMC_(PFX, _clear)(struct SNAME *_map_); void CMC_(PFX, _free)(struct SNAME *_map_); /* Customization of Allocation and Callbacks */ -void CMC_(PFX, _customize)(struct SNAME *_map_, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks); +void CMC_(PFX, _customize)(struct SNAME *_map_, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); /* Collection Input and Output */ bool CMC_(PFX, _insert)(struct SNAME *_map_, K key, V value); bool CMC_(PFX, _update)(struct SNAME *_map_, K key, V new_value, V *old_value); diff --git a/src/cmc/cmc/treemap/struct.h b/src/cmc/cmc/treemap/struct.h index bdd9afb..15dc7b8 100644 --- a/src/cmc/cmc/treemap/struct.h +++ b/src/cmc/cmc/treemap/struct.h @@ -41,7 +41,7 @@ struct SNAME struct CMC_DEF_FVAL(SNAME) * f_val; /* Custom allocation functions */ - CMC_ALLOC_TYPE *alloc; + CMC_ALLOC_TYPE alloc; /* Custom callback functions */ CMC_CALLBACKS_DECL; diff --git a/src/cmc/cmc/treeset/code.h b/src/cmc/cmc/treeset/code.h index 2b06371..84ba1b8 100644 --- a/src/cmc/cmc/treeset/code.h +++ b/src/cmc/cmc/treeset/code.h @@ -40,7 +40,7 @@ struct SNAME *CMC_(PFX, _new)(struct CMC_DEF_FVAL(SNAME) * f_val) return CMC_(PFX, _new_custom)(f_val, NULL, NULL); } -struct SNAME *CMC_(PFX, _new_custom)(struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, +struct SNAME *CMC_(PFX, _new_custom)(struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV @@ -147,7 +147,7 @@ void CMC_(PFX, _free)(struct SNAME *_set_) _set_->alloc->free(_set_); } -void CMC_(PFX, _customize)(struct SNAME *_set_, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks) +void CMC_(PFX, _customize)(struct SNAME *_set_, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks) { #ifdef CMC_DEV CMC_DEV_FCALL; diff --git a/src/cmc/cmc/treeset/header.h b/src/cmc/cmc/treeset/header.h index 0d72089..681a8c1 100644 --- a/src/cmc/cmc/treeset/header.h +++ b/src/cmc/cmc/treeset/header.h @@ -42,12 +42,12 @@ struct CMC_DEF_FVAL(SNAME) /* Collection Functions */ /* Collection Allocation and Deallocation */ struct SNAME *CMC_(PFX, _new)(struct CMC_DEF_FVAL(SNAME) * f_val); -struct SNAME *CMC_(PFX, _new_custom)(struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE *alloc, +struct SNAME *CMC_(PFX, _new_custom)(struct CMC_DEF_FVAL(SNAME) * f_val, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); void CMC_(PFX, _clear)(struct SNAME *_set_); void CMC_(PFX, _free)(struct SNAME *_set_); /* Customization of Allocation and Callbacks */ -void CMC_(PFX, _customize)(struct SNAME *_set_, CMC_ALLOC_TYPE *alloc, CMC_CALLBACK_TYPE callbacks); +void CMC_(PFX, _customize)(struct SNAME *_set_, CMC_ALLOC_TYPE alloc, CMC_CALLBACK_TYPE callbacks); /* Collection Input and Output */ bool CMC_(PFX, _insert)(struct SNAME *_set_, V value); bool CMC_(PFX, _remove)(struct SNAME *_set_, V value); diff --git a/src/cmc/cmc/treeset/struct.h b/src/cmc/cmc/treeset/struct.h index e13d087..7570677 100644 --- a/src/cmc/cmc/treeset/struct.h +++ b/src/cmc/cmc/treeset/struct.h @@ -38,7 +38,7 @@ struct SNAME struct CMC_DEF_FVAL(SNAME) * f_val; /* Custom allocation functions */ - CMC_ALLOC_TYPE *alloc; + CMC_ALLOC_TYPE alloc; /* Custom callback functions */ CMC_CALLBACKS_DECL; diff --git a/src/cmc/cor/alloc.h b/src/cmc/cor/alloc.h index 2fddb2a..1f1cd38 100644 --- a/src/cmc/cor/alloc.h +++ b/src/cmc/cor/alloc.h @@ -52,7 +52,7 @@ * by the standard library. */ -#define CMC_ALLOC_TYPE struct CMC_ALLOC_NODE_NAME +#define CMC_ALLOC_TYPE struct CMC_ALLOC_NODE_NAME * static struct CMC_ALLOC_NODE_NAME {