| 190 | } |
| 191 | |
| 192 | static struct link_ref * |
| 193 | add_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 | |
| 206 | static struct link_ref * |
| 207 | find_link_ref(struct link_ref **references, uint8_t *name, size_t length) |
no test coverage detected