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

Function add_footnote_ref

libraries/hoedown/src/document.c:253–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251}
252
253static int
254add_footnote_ref(struct footnote_list *list, struct footnote_ref *ref)
255{
256 struct footnote_item *item = hoedown_calloc(1, sizeof(struct footnote_item));
257 if (!item)
258 return 0;
259 item->ref = ref;
260
261 if (list->head == NULL) {
262 list->head = list->tail = item;
263 } else {
264 list->tail->next = item;
265 list->tail = item;
266 }
267 list->count++;
268
269 return 1;
270}
271
272static struct footnote_ref *
273find_footnote_ref(struct footnote_list *list, uint8_t *name, size_t length)

Callers 2

char_linkFunction · 0.85
is_footnoteFunction · 0.85

Calls 1

hoedown_callocFunction · 0.85

Tested by

no test coverage detected