src/server/daemon/func.c

changeset 490
d218607f5a7e
parent 415
d938228c382e
equal deleted inserted replaced
489:921f83a8943f 490:d218607f5a7e
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;

mercurial