I will murder cmake

This commit is contained in:
Jef Roosens 2022-11-15 17:05:14 +01:00
parent 0b97f124c5
commit 614ae1c711
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
5 changed files with 23 additions and 15 deletions

View file

@ -51,7 +51,7 @@ void ttnode_free(TernaryTrieNode *node);
* @param c character to represent
* @return pointer to newly allocated struct
*/
inline TernaryTrieInnerNode *ttinode_init(char c) {
TernaryTrieInnerNode *ttinode_init(char c) {
TernaryTrieInnerNode *node = calloc(1, sizeof(TernaryTrieInnerNode));
node->key = c;
@ -63,7 +63,7 @@ inline TernaryTrieInnerNode *ttinode_init(char c) {
*
* @return pointer to newly allocated struct
*/
inline TernaryTrieNode *ttnode_init() { return calloc(1, sizeof(TernaryTrieNode)); }
TernaryTrieNode *ttnode_init() { return calloc(1, sizeof(TernaryTrieNode)); }
/**
* Free a TernaryTrieInnerNode and its underlying tree structure. This should
@ -109,7 +109,7 @@ void ttnode_free(TernaryTrieNode *node) {
* @param node node to add string to
* @param string string to add
*/
inline void ttnode_set_string(TernaryTrieNode *node, const char *string) {
void ttnode_set_string(TernaryTrieNode *node, const char *string) {
node->type = 2;
node->size = strlen(string);
node->ptr.string = my_strdup(string);
@ -301,7 +301,7 @@ void ttinode_remove(TernaryTrieInnerNode *node, const char c) {
* @param node node to remove character from
* @param c character to remove
*/
inline void ttnode_remove(TernaryTrieNode *node, const char c) {
void ttnode_remove(TernaryTrieNode *node, const char c) {
ttinode_remove(node->ptr.root, c);
node->size--;