73 #define COMMONSAF_RET_STOP 2 |
73 #define COMMONSAF_RET_STOP 2 |
74 #define COMMONSAF_REQ_ABORTED -1 |
74 #define COMMONSAF_REQ_ABORTED -1 |
75 #define COMMONSAF_RET_ERROR -2 |
75 #define COMMONSAF_RET_ERROR -2 |
76 |
76 |
77 void common_saf_init() { |
77 void common_saf_init() { |
78 var_names = cxHashMapCreate(cxDefaultAllocator, 32); |
78 var_names = cxHashMapCreate(cxDefaultAllocator, CX_STORE_POINTERS, 32); |
79 |
79 |
80 cxMapPut(var_names, cx_hash_key_str("insert-client"), (void*)(intptr_t)COMMONSAF_INSERT_CLIENT); |
80 cxMapPut(var_names, cx_hash_key_str("insert-client"), (void*)(intptr_t)COMMONSAF_INSERT_CLIENT); |
81 cxMapPut(var_names, cx_hash_key_str("insert-vars"), (void*)(intptr_t)COMMONSAF_INSERT_VARS); |
81 cxMapPut(var_names, cx_hash_key_str("insert-vars"), (void*)(intptr_t)COMMONSAF_INSERT_VARS); |
82 cxMapPut(var_names, cx_hash_key_str("insert-reqpb"), (void*)(intptr_t)COMMONSAF_INSERT_REQPB); |
82 cxMapPut(var_names, cx_hash_key_str("insert-reqpb"), (void*)(intptr_t)COMMONSAF_INSERT_REQPB); |
83 cxMapPut(var_names, cx_hash_key_str("insert-headers"), (void*)(intptr_t)COMMONSAF_INSERT_HEADERS); |
83 cxMapPut(var_names, cx_hash_key_str("insert-headers"), (void*)(intptr_t)COMMONSAF_INSERT_HEADERS); |