| 270 | } |
| 271 | |
| 272 | static struct footnote_ref * |
| 273 | find_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 | |
| 289 | static void |
| 290 | free_footnote_ref(struct footnote_ref *ref) |
no test coverage detected