refactor: remove entry code from trie
This commit is contained in:
parent
4b772d003b
commit
0c742f45b0
7 changed files with 23 additions and 16 deletions
|
|
@ -38,13 +38,6 @@ static const size_t charset_len = sizeof(charset) - 1;
|
|||
*/
|
||||
typedef struct ttrie Trie;
|
||||
|
||||
typedef enum entry_type { Redirect, Paste, Unknown } EntryType;
|
||||
|
||||
typedef struct entry {
|
||||
EntryType type;
|
||||
char string[];
|
||||
} Entry;
|
||||
|
||||
typedef enum trie_exit_code {
|
||||
Ok = 0,
|
||||
NotFound,
|
||||
|
|
@ -52,10 +45,6 @@ typedef enum trie_exit_code {
|
|||
FileError
|
||||
} TrieExitCode;
|
||||
|
||||
uint64_t entry_new(Entry **entry_ptr, EntryType type, const char *string);
|
||||
|
||||
void entry_free(Entry *entry);
|
||||
|
||||
/**
|
||||
* Allocate & initialize a new trie, and populate it with the data from the
|
||||
* given data file.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue