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

Function find_footnote_ref

libraries/hoedown/src/document.c:272–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272static struct footnote_ref *
273find_footnote_ref(struct footnote_list *list, uint8_t *name, size_t length)
274{
275 unsigned int hash = hash_link_ref(name, length);
276 struct footnote_item *item = NULL;
277
278 item = list->head;
279
280 while (item != NULL) {
281 if (item->ref->id == hash)
282 return item->ref;
283 item = item->next;
284 }
285
286 return NULL;
287}
288
289static void
290free_footnote_ref(struct footnote_ref *ref)

Callers 1

char_linkFunction · 0.85

Calls 1

hash_link_refFunction · 0.85

Tested by

no test coverage detected