diff options
author | Michael Pavone <pavone@retrodev.com> | 2014-12-30 19:11:34 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2014-12-30 19:11:34 -0800 |
commit | fd85c8d7a74d44f169db4a51a600295042682ee8 (patch) | |
tree | d8052a699c4a576d5023aee7537ff0f7fee50dd5 /tern.h | |
parent | c61ca95add7b82aadef09aea8b4c48774e079069 (diff) | |
parent | 3c8d04a6b51184d9856cebd2e445791e451cb56a (diff) |
Merge
Diffstat (limited to 'tern.h')
-rw-r--r-- | tern.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -8,6 +8,8 @@ #include <stdint.h> +#define MAX_INT_KEY_SIZE (sizeof(uint32_t) + 2) + typedef union { void *ptrval; intptr_t intval; @@ -31,5 +33,6 @@ tern_node * tern_insert_int(tern_node * head, char * key, intptr_t value); void * tern_find_ptr_default(tern_node * head, char * key, void * def); void * tern_find_ptr(tern_node * head, char * key); tern_node * tern_insert_ptr(tern_node * head, char * key, void * value); +char * tern_int_key(uint32_t key, char * buf); #endif //TERN_H_ |