Added cor folder and cmc_callbacks is now common to all collections

Now every file includes core.h and hashtable-based collections include hashtable.h

The definition of cmc_heap_order has been kept inside heap.h because it is the only collection to use it
This commit is contained in:
Leonardo committed 2020-03-17 16:10:12 -03:00
1 parent d7f44e0dbe
commit 0089abc84a
20 files changed
+291 -1407

No files matched your search

+5 -5
View File
@@ -55,7 +55,7 @@ CMC_CREATE_UNIT(bidimap_test, true, {
.calloc = calloc,
.realloc = realloc,
.free = free },
&(struct cmc_callbacks_bidimap){ 0 });
&(struct cmc_callbacks){ 0 });
cmc_assert_not_equals(ptr, NULL, map);
@@ -69,7 +69,7 @@ CMC_CREATE_UNIT(bidimap_test, true, {
.calloc = calloc,
.realloc = realloc,
.free = free },
&(struct cmc_callbacks_bidimap){ 0 });
&(struct cmc_callbacks){ 0 });
cmc_assert_not_equals(ptr, NULL, map);
@@ -238,7 +238,7 @@ CMC_CREATE_UNIT(bidimap_test, true, {
.calloc = calloc,
.realloc = realloc,
.free = free },
&(struct cmc_callbacks_bidimap){ 0 });
&(struct cmc_callbacks){ 0 });
cmc_assert_not_equals(ptr, NULL, map);
@@ -271,7 +271,7 @@ CMC_CREATE_UNIT(bidimap_test, true, {
.calloc = calloc,
.realloc = realloc,
.free = free },
&(struct cmc_callbacks_bidimap){ 0 });
&(struct cmc_callbacks){ 0 });
cmc_assert_not_equals(ptr, NULL, map);
@@ -366,7 +366,7 @@ CMC_CREATE_UNIT(bidimap_test, true, {
// customize
bm_customize(map, &cmc_alloc_node_default,
&(struct cmc_callbacks_bidimap){ 0 });
&(struct cmc_callbacks){ 0 });
cmc_assert_equals(int32_t, cmc_flags.OK, bm_flag(map));
// Insert
+1 -1
View File
@@ -661,7 +661,7 @@ CMC_CREATE_UNIT(deque_test, true, {
// customize
d->flag = cmc_flags.ERROR;
d_customize(d, &cmc_alloc_node_default,
&(struct cmc_callbacks_deque){ 0 });
&(struct cmc_callbacks){ 0 });
cmc_assert_equals(int32_t, cmc_flags.OK, d_flag(d));
// push_front