summaryrefslogtreecommitdiff
path: root/tern.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2014-10-11 20:32:17 -0700
committerMichael Pavone <pavone@retrodev.com>2014-10-11 20:32:17 -0700
commit7237def9b068c5b184cd38041d7eac5fdf8a9438 (patch)
treeb37476f4fa61cc9e7a7ff8e4469c1218a83b6d2f /tern.h
parentbee8289f02bc805f2a2e16d523d50374ee56b490 (diff)
Add support for disassembling VOS program modules
Diffstat (limited to 'tern.h')
-rw-r--r--tern.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tern.h b/tern.h
index e95e0c9..cdf6948 100644
--- a/tern.h
+++ b/tern.h
@@ -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_