Fast forward changes (read desc)
Freezing tests outside of ./tests/main Formatting all files in ./src and ./tests except for ./tests/codecov Created makefile for automated code formatting using clang-format Now bidimap and deque operate with Functions Tables
This commit is contained in:
1 parent
b2bef4e3cc
commit
9344440f41
30 files changed
+985
-894
No files matched your search
+5
-2
@@ -76,7 +76,7 @@ static struct
|
||||
int ALLOC; // Allocation failed
|
||||
int EMPTY; // The collection is empty and the operation could not proceed
|
||||
int NOT_FOUND; // Key or value not found
|
||||
int INVALID; // Something is invalid
|
||||
int INVALID; // Invalid argument
|
||||
int OUT_OF_RANGE; // Index out of array range
|
||||
int DUPLICATE; // Duplicate key or value
|
||||
int ERROR; // Generic error, usually caused by unexpected behaviour
|
||||
@@ -275,7 +275,7 @@ struct cmc_callbacks_bidimap
|
||||
int (*cmp)(V, V); \
|
||||
\
|
||||
/* Copy function */ \
|
||||
K (*cpy)(V); \
|
||||
V (*cpy)(V); \
|
||||
\
|
||||
/* To string function */ \
|
||||
bool (*str)(FILE *, V); \
|
||||
@@ -412,6 +412,9 @@ struct cmc_callbacks_bidimap
|
||||
if (capacity >= UINTMAX_MAX * load) \
|
||||
return NULL; \
|
||||
\
|
||||
if (!f_val) \
|
||||
return NULL; \
|
||||
\
|
||||
size_t real_capacity = PFX##_impl_calculate_size(capacity / load); \
|
||||
\
|
||||
struct SNAME *_map_ = alloc->malloc(sizeof(struct SNAME)); \
|
||||
|
||||
+606
-564
File diff suppressed because it is too large.
Load diff
+1
-1
@@ -69,7 +69,7 @@ static struct
|
||||
int ALLOC; // Allocation failed
|
||||
int EMPTY; // The collection is empty and the operation could not proceed
|
||||
int NOT_FOUND; // Key or value not found
|
||||
int INVALID; // Something is invalid
|
||||
int INVALID; // Invalid argument
|
||||
int OUT_OF_RANGE; // Index out of array range
|
||||
int DUPLICATE; // Duplicate key or value
|
||||
int ERROR; // Generic error, usually caused by unexpected behaviour
|
||||
|
||||
+1
-1
@@ -69,7 +69,7 @@ static struct
|
||||
int ALLOC; // Allocation failed
|
||||
int EMPTY; // The collection is empty and the operation could not proceed
|
||||
int NOT_FOUND; // Key or value not found
|
||||
int INVALID; // Something is invalid
|
||||
int INVALID; // Invalid argument
|
||||
int OUT_OF_RANGE; // Index out of array range
|
||||
int DUPLICATE; // Duplicate key or value
|
||||
int ERROR; // Generic error, usually caused by unexpected behaviour
|
||||
|
||||
+1
-1
@@ -80,7 +80,7 @@ static struct
|
||||
int ALLOC; // Allocation failed
|
||||
int EMPTY; // The collection is empty and the operation could not proceed
|
||||
int NOT_FOUND; // Key or value not found
|
||||
int INVALID; // Something is invalid
|
||||
int INVALID; // Invalid argument
|
||||
int OUT_OF_RANGE; // Index out of array range
|
||||
int DUPLICATE; // Duplicate key or value
|
||||
int ERROR; // Generic error, usually caused by unexpected behaviour
|
||||
|
||||
@@ -71,7 +71,7 @@ static struct
|
||||
int ALLOC; // Allocation failed
|
||||
int EMPTY; // The collection is empty and the operation could not proceed
|
||||
int NOT_FOUND; // Key or value not found
|
||||
int INVALID; // Something is invalid
|
||||
int INVALID; // Invalid argument
|
||||
int OUT_OF_RANGE; // Index out of array range
|
||||
int DUPLICATE; // Duplicate key or value
|
||||
int ERROR; // Generic error, usually caused by unexpected behaviour
|
||||
|
||||
@@ -78,7 +78,7 @@ static struct
|
||||
int ALLOC; // Allocation failed
|
||||
int EMPTY; // The collection is empty and the operation could not proceed
|
||||
int NOT_FOUND; // Key or value not found
|
||||
int INVALID; // Something is invalid
|
||||
int INVALID; // Invalid argument
|
||||
int OUT_OF_RANGE; // Index out of array range
|
||||
int DUPLICATE; // Duplicate key or value
|
||||
int ERROR; // Generic error, usually caused by unexpected behaviour
|
||||
|
||||
+1
-1
@@ -93,7 +93,7 @@ static struct
|
||||
int ALLOC; // Allocation failed
|
||||
int EMPTY; // The collection is empty and the operation could not proceed
|
||||
int NOT_FOUND; // Key or value not found
|
||||
int INVALID; // Something is invalid
|
||||
int INVALID; // Invalid argument
|
||||
int OUT_OF_RANGE; // Index out of array range
|
||||
int DUPLICATE; // Duplicate key or value
|
||||
int ERROR; // Generic error, usually caused by unexpected behaviour
|
||||
|
||||
+1
-1
@@ -93,7 +93,7 @@ static struct
|
||||
int ALLOC; // Allocation failed
|
||||
int EMPTY; // The collection is empty and the operation could not proceed
|
||||
int NOT_FOUND; // Key or value not found
|
||||
int INVALID; // Something is invalid
|
||||
int INVALID; // Invalid argument
|
||||
int OUT_OF_RANGE; // Index out of array range
|
||||
int DUPLICATE; // Duplicate key or value
|
||||
int ERROR; // Generic error, usually caused by unexpected behaviour
|
||||
|
||||
+1
-1
@@ -71,7 +71,7 @@ static struct
|
||||
int ALLOC; // Allocation failed
|
||||
int EMPTY; // The collection is empty and the operation could not proceed
|
||||
int NOT_FOUND; // Key or value not found
|
||||
int INVALID; // Something is invalid
|
||||
int INVALID; // Invalid argument
|
||||
int OUT_OF_RANGE; // Index out of array range
|
||||
int DUPLICATE; // Duplicate key or value
|
||||
int ERROR; // Generic error, usually caused by unexpected behaviour
|
||||
|
||||
+1
-1
@@ -93,7 +93,7 @@ static struct
|
||||
int ALLOC; // Allocation failed
|
||||
int EMPTY; // The collection is empty and the operation could not proceed
|
||||
int NOT_FOUND; // Key or value not found
|
||||
int INVALID; // Something is invalid
|
||||
int INVALID; // Invalid argument
|
||||
int OUT_OF_RANGE; // Index out of array range
|
||||
int DUPLICATE; // Duplicate key or value
|
||||
int ERROR; // Generic error, usually caused by unexpected behaviour
|
||||
|
||||
@@ -72,7 +72,7 @@ static struct
|
||||
int ALLOC; // Allocation failed
|
||||
int EMPTY; // The collection is empty and the operation could not proceed
|
||||
int NOT_FOUND; // Key or value not found
|
||||
int INVALID; // Something is invalid
|
||||
int INVALID; // Invalid argument
|
||||
int OUT_OF_RANGE; // Index out of array range
|
||||
int DUPLICATE; // Duplicate key or value
|
||||
int ERROR; // Generic error, usually caused by unexpected behaviour
|
||||
|
||||
+1
-1
@@ -78,7 +78,7 @@ static struct
|
||||
int ALLOC; // Allocation failed
|
||||
int EMPTY; // The collection is empty and the operation could not proceed
|
||||
int NOT_FOUND; // Key or value not found
|
||||
int INVALID; // Something is invalid
|
||||
int INVALID; // Invalid argument
|
||||
int OUT_OF_RANGE; // Index out of array range
|
||||
int DUPLICATE; // Duplicate key or value
|
||||
int ERROR; // Generic error, usually caused by unexpected behaviour
|
||||
|
||||
+1
-1
@@ -69,7 +69,7 @@ static struct
|
||||
int ALLOC; // Allocation failed
|
||||
int EMPTY; // The collection is empty and the operation could not proceed
|
||||
int NOT_FOUND; // Key or value not found
|
||||
int INVALID; // Something is invalid
|
||||
int INVALID; // Invalid argument
|
||||
int OUT_OF_RANGE; // Index out of array range
|
||||
int DUPLICATE; // Duplicate key or value
|
||||
int ERROR; // Generic error, usually caused by unexpected behaviour
|
||||
|
||||
+1
-1
@@ -69,7 +69,7 @@ static struct
|
||||
int ALLOC; // Allocation failed
|
||||
int EMPTY; // The collection is empty and the operation could not proceed
|
||||
int NOT_FOUND; // Key or value not found
|
||||
int INVALID; // Something is invalid
|
||||
int INVALID; // Invalid argument
|
||||
int OUT_OF_RANGE; // Index out of array range
|
||||
int DUPLICATE; // Duplicate key or value
|
||||
int ERROR; // Generic error, usually caused by unexpected behaviour
|
||||
|
||||
Reference in new issue
Block a user