37 #include "func.h" |
37 #include "func.h" |
38 |
38 |
39 CxMap *function_map; |
39 CxMap *function_map; |
40 |
40 |
41 void func_init() { |
41 void func_init() { |
42 function_map = cxHashMapCreate(cxDefaultAllocator, 256); |
42 function_map = cxHashMapCreate(cxDefaultAllocator, CX_STORE_POINTERS, 256); |
43 } |
43 } |
44 |
44 |
45 void add_function(FuncStruct *func) { |
45 void add_function(FuncStruct *func) { |
46 struct FuncStruct *f = malloc(sizeof(FuncStruct)); |
46 struct FuncStruct *f = malloc(sizeof(FuncStruct)); |
47 *f = *func; |
47 *f = *func; |