Adding functions table to hashmap and some fixes in bidimap and queue

This commit is contained in:
Leonardo committed 2020-02-06 01:04:25 -03:00
1 parent 13f63cea23
commit 7dd6218017
4 files changed
+971 -881

No files matched your search

+4 -1
View File
@@ -412,7 +412,7 @@ struct cmc_callbacks_bidimap
if (capacity >= UINTMAX_MAX * load) \
return NULL; \
\
if (!f_val) \
if (!f_key || !f_val) \
return NULL; \
\
size_t real_capacity = PFX##_impl_calculate_size(capacity / load); \
@@ -461,6 +461,9 @@ struct cmc_callbacks_bidimap
if (capacity >= UINTMAX_MAX * load) \
return NULL; \
\
if (!f_key || !f_val) \
return NULL; \
\
size_t real_capacity = PFX##_impl_calculate_size(capacity / load); \
\
if (!alloc) \
+864 -815
View File
File diff suppressed because it is too large. Load diff
+2
View File
@@ -504,6 +504,8 @@ struct cmc_callbacks_queue
} \
\
result->count = _queue_->count; \
result->front = 0; \
result->back = _queue_->count; \
\
return result; \
} \