| 251 | } |
| 252 | |
| 253 | static int |
| 254 | add_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 | |
| 272 | static struct footnote_ref * |
| 273 | find_footnote_ref(struct footnote_list *list, uint8_t *name, size_t length) |
no test coverage detected