aboutsummaryrefslogtreecommitdiff
path: root/trie.inc
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-02-02 19:43:40 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-02-02 19:44:08 +0100
commit98cf44a23e4216c7e2ba156a67eabdf21a224c91 (patch)
tree7f1b437399f6103bba2133cb79633cf87c800309 /trie.inc
parentAdd -Wextra flag, fix resulting warnings. (diff)
downloadcalp-98cf44a23e4216c7e2ba156a67eabdf21a224c91.tar.gz
calp-98cf44a23e4216c7e2ba156a67eabdf21a224c91.tar.xz
Broke read_vcalendar of into own file.
Diffstat (limited to 'trie.inc')
-rw-r--r--trie.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/trie.inc b/trie.inc
index b1e0d0ed..532251b3 100644
--- a/trie.inc
+++ b/trie.inc
@@ -75,6 +75,9 @@ int TRIE_PUT(TYPE) ( TRIE(TYPE)* trie, char* key, TYPE* val ) {
return 0;
}
+/*
+ * TODO what happens when I give an invalid key?
+ */
TYPE* TRIE_GET(TYPE) ( TRIE(TYPE)* trie, char* key ) {
TRIE_NODE(TYPE)* n = trie->root->child;
char* subkey = key;