Home
last modified time | relevance | path

Searched refs:freefn (Results 1 – 7 of 7) sorted by relevance

/third_party/iowow/src/json/tests/
Djbl_test_binn2.c1417 CU_ASSERT(value->freefn == NULL); in test_value_conversion()
1427 CU_ASSERT(value->freefn != NULL); in test_value_conversion()
1436 CU_ASSERT(value->freefn != NULL); in test_value_conversion()
1437 CU_ASSERT(value->freefn == &free); in test_value_conversion()
1449 CU_ASSERT(value->freefn == NULL); in test_value_conversion()
1460 CU_ASSERT(value->freefn != NULL); in test_value_conversion()
1470 CU_ASSERT(value->freefn == &free); in test_value_conversion()
1482 CU_ASSERT(value->freefn == NULL); in test_value_conversion()
1497 CU_ASSERT(value->freefn == NULL); in test_value_conversion()
1508 CU_ASSERT(value->freefn == NULL); in test_value_conversion()
[all …]
/third_party/ejdb/src/jql/
Djql.c55 if (ptr && qv->freefn) { in _jql_jqval_destroy()
56 qv->freefn(ptr, qv->freefn_op); in _jql_jqval_destroy()
123 void (*freefn)(void*, void*), void *op in jql_set_json2()
130 qv->freefn = freefn; in jql_set_json2()
136 if (freefn) { in jql_set_json2()
137 freefn(val, op); in jql_set_json2()
175 qv->freefn = 0; in jql_set_i64()
192 qv->freefn = 0; in jql_set_f64()
205 void (*freefn)(void*, void*), void *op in jql_set_str2()
208 if (freefn) { in jql_set_str2()
[all …]
Djql.h98 void (*freefn)(void*, void*), void *op);
116 void (*freefn)(void*, void*), void *op);
133 void (*freefn)(void*, void*), void *op);
Djql_internal.h38 void (*freefn)(void*, void*); member
/third_party/iowow/src/json/
Diwbinn.h222 binn_mem_free freefn; // used only when type == BINN_STRING or BINN_BLOB member
264 void binn_set_user_data(binn *item, void *user_data, binn_user_data_free freefn);
305 IW_ALLOC binn* binn_value(int type, void *pvalue, int size, binn_mem_free freefn);
360 IW_ALLOC IW_INLINE binn* binn_string(const char *str, binn_mem_free freefn) { in binn_string() argument
361 return binn_value(BINN_STRING, (void*) str, 0, freefn); in binn_string()
364 IW_ALLOC IW_INLINE binn* binn_blob(void *ptr, int size, binn_mem_free freefn) { in binn_blob() argument
365 return binn_value(BINN_BLOB, ptr, size, freefn); in binn_blob()
Diwbinn.c901 if (item->freefn) { in binn_free()
902 item->freefn(item->ptr); in binn_free()
2767 binn* binn_value(int type, void *pvalue, int size, binn_mem_free freefn) { in binn_value() argument
2782 if (freefn == BINN_TRANSIENT) { in binn_value()
2788 item->freefn = free_fn; in binn_value()
2794 item->freefn = freefn; in binn_value()
2814 item->freefn = free_fn; in binn_set_string()
2828 item->freefn = free_fn; in binn_set_blob()
2831 item->freefn = pfree; in binn_set_blob()
3126 value->freefn = free; in binn_get_str()
[all …]
Diwjson.c340 jbl->bn.freefn = keep_on_destroy ? 0 : free; in jbl_from_buf_keep()
401 jbl->bn.freefn = 0; in jbl_clone_into_pool()