MCPcopy Create free account
hub / github.com/codr7/hacktical-c / hc_memo_alloc_init

Function hc_memo_alloc_init

malloc2/malloc2.c:49–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49struct hc_memo_alloc *hc_memo_alloc_init(struct hc_memo_alloc *a,
50 struct hc_malloc *source) {
51 a->malloc.acquire = memo_acquire;
52 a->malloc.release = memo_release;
53 a->source = source;
54 hc_set_init(&a->memo, &hc_malloc_default, sizeof(struct memo *), memo_cmp);
55 a->memo.key = memo_key;
56 return a;
57}
58
59void hc_memo_alloc_deinit(struct hc_memo_alloc *a) {
60 hc_vector_do(&a->memo.items, _m) {

Callers 1

memo_testsFunction · 0.85

Calls 1

hc_set_initFunction · 0.85

Tested by 1

memo_testsFunction · 0.68