Searched refs:freefn (Results 1 – 7 of 7) sorted by relevance
/third_party/ejdb/src/jbl/tests/ |
D | jbl_test_binn2.c | 1418 CU_ASSERT(value->freefn == NULL); in test_value_conversion() 1428 CU_ASSERT(value->freefn != NULL); in test_value_conversion() 1437 CU_ASSERT(value->freefn != NULL); in test_value_conversion() 1438 CU_ASSERT(value->freefn == &free); in test_value_conversion() 1450 CU_ASSERT(value->freefn == NULL); in test_value_conversion() 1461 CU_ASSERT(value->freefn != NULL); in test_value_conversion() 1471 CU_ASSERT(value->freefn == &free); in test_value_conversion() 1483 CU_ASSERT(value->freefn == NULL); in test_value_conversion() 1498 CU_ASSERT(value->freefn == NULL); in test_value_conversion() 1509 CU_ASSERT(value->freefn == NULL); in test_value_conversion() [all …]
|
/third_party/ejdb/src/jql/ |
D | jql.h | 110 void (*freefn)(void*, void*), void *op); 128 void (*freefn)(void*, void*), void *op); 143 void (*freefn)(void*, void*), void *op);
|
D | jql.c | 54 if (ptr && qv->freefn) { in _jql_jqval_destroy() 55 qv->freefn(ptr, qv->freefn_op); in _jql_jqval_destroy() 102 void (*freefn)(void*, void*), void *op) { in jql_set_json2() 107 qv->freefn = freefn; in jql_set_json2() 143 qv->freefn = 0; in jql_set_i64() 155 qv->freefn = 0; in jql_set_f64() 164 void (*freefn)(void*, void*), void *op) { in jql_set_str2() 169 qv->freefn = freefn; in jql_set_str2() 185 qv->freefn = 0; in jql_set_bool() 194 void (*freefn)(void*, void*), void *op) { in jql_set_regexp2() [all …]
|
D | jql_internal.h | 35 void (*freefn)(void*, void*); member
|
/third_party/ejdb/src/jbl/ |
D | binn.h | 232 binn_mem_free freefn; // used only when type == BINN_STRING or BINN_BLOB member 274 void binn_set_user_data(binn *item, void *user_data, binn_user_data_free freefn); 315 binn *binn_value(int type, void *pvalue, int size, binn_mem_free freefn); 370 ALWAYS_INLINE binn *binn_string(const char *str, binn_mem_free freefn) { in binn_string() argument 371 return binn_value(BINN_STRING, (void*) str, 0, freefn); in binn_string() 374 ALWAYS_INLINE binn *binn_blob(void *ptr, int size, binn_mem_free freefn) { in binn_blob() argument 375 return binn_value(BINN_BLOB, ptr, size, freefn); in binn_blob()
|
D | binn.c | 897 if (item->freefn) { in binn_free() 898 item->freefn(item->ptr); in binn_free() 2763 binn *binn_value(int type, void *pvalue, int size, binn_mem_free freefn) { in binn_value() argument 2778 if (freefn == BINN_TRANSIENT) { in binn_value() 2784 item->freefn = free_fn; in binn_value() 2790 item->freefn = freefn; in binn_value() 2811 item->freefn = free_fn; in binn_set_string() 2814 item->freefn = pfree; in binn_set_string() 2829 item->freefn = free_fn; in binn_set_blob() 2832 item->freefn = pfree; in binn_set_blob() [all …]
|
D | jbl.c | 302 jbl->bn.freefn = keep_on_destroy ? 0 : free; in jbl_from_buf_keep() 363 jbl->bn.freefn = 0; in jbl_clone_into_pool()
|