Adding functions table to hashmap and some fixes in bidimap and queue
This commit is contained in:
1 parent
13f63cea23
commit
7dd6218017
4 files changed
+971
-881
No files matched your search
+4
-1
@@ -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
File diff suppressed because it is too large.
Load diff
@@ -504,6 +504,8 @@ struct cmc_callbacks_queue
|
||||
} \
|
||||
\
|
||||
result->count = _queue_->count; \
|
||||
result->front = 0; \
|
||||
result->back = _queue_->count; \
|
||||
\
|
||||
return result; \
|
||||
} \
|
||||
|
||||
Reference in new issue
Block a user