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

Function find_link_ref

libraries/hoedown/src/document.c:206–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206static struct link_ref *
207find_link_ref(struct link_ref **references, uint8_t *name, size_t length)
208{
209 unsigned int hash = hash_link_ref(name, length);
210 struct link_ref *ref = NULL;
211
212 ref = references[hash % REF_TABLE_SIZE];
213
214 while (ref != NULL) {
215 if (ref->id == hash)
216 return ref;
217
218 ref = ref->next;
219 }
220
221 return NULL;
222}
223
224static void
225free_link_refs(struct link_ref **references)

Callers 1

char_linkFunction · 0.85

Calls 1

hash_link_refFunction · 0.85

Tested by

no test coverage detected