Mercurial > repos > blastem
comparison tern.h @ 631:de6f00204fa2
Add support for disassembling VOS program modules
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 11 Oct 2014 20:32:17 -0700 |
parents | 51bf87f76d15 |
children | 1b2f8280ba81 |
comparison
equal
deleted
inserted
replaced
630:47123183c336 | 631:de6f00204fa2 |
---|---|
5 */ | 5 */ |
6 #ifndef TERN_H_ | 6 #ifndef TERN_H_ |
7 #define TERN_H_ | 7 #define TERN_H_ |
8 | 8 |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | |
11 #define MAX_INT_KEY_SIZE (sizeof(uint32_t) + 2) | |
10 | 12 |
11 typedef union { | 13 typedef union { |
12 void *ptrval; | 14 void *ptrval; |
13 intptr_t intval; | 15 intptr_t intval; |
14 } tern_val; | 16 } tern_val; |
29 intptr_t tern_find_int(tern_node * head, char * key, intptr_t def); | 31 intptr_t tern_find_int(tern_node * head, char * key, intptr_t def); |
30 tern_node * tern_insert_int(tern_node * head, char * key, intptr_t value); | 32 tern_node * tern_insert_int(tern_node * head, char * key, intptr_t value); |
31 void * tern_find_ptr_default(tern_node * head, char * key, void * def); | 33 void * tern_find_ptr_default(tern_node * head, char * key, void * def); |
32 void * tern_find_ptr(tern_node * head, char * key); | 34 void * tern_find_ptr(tern_node * head, char * key); |
33 tern_node * tern_insert_ptr(tern_node * head, char * key, void * value); | 35 tern_node * tern_insert_ptr(tern_node * head, char * key, void * value); |
36 char * tern_int_key(uint32_t key, char * buf); | |
34 | 37 |
35 #endif //TERN_H_ | 38 #endif //TERN_H_ |