MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / add_link_ref

Function add_link_ref

libraries/hoedown/src/document.c:192–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192static struct link_ref *
193add_link_ref(
194 struct link_ref **references,
195 const uint8_t *name, size_t name_size)
196{
197 struct link_ref *ref = hoedown_calloc(1, sizeof(struct link_ref));
198
199 ref->id = hash_link_ref(name, name_size);
200 ref->next = references[ref->id % REF_TABLE_SIZE];
201
202 references[ref->id % REF_TABLE_SIZE] = ref;
203 return ref;
204}
205
206static struct link_ref *
207find_link_ref(struct link_ref **references, uint8_t *name, size_t length)

Callers 1

is_refFunction · 0.85

Calls 2

hoedown_callocFunction · 0.85
hash_link_refFunction · 0.85

Tested by

no test coverage detected