MCPcopy Create free account
hub / github.com/commonmark/cmark / refcmp

Function refcmp

src/references.c:79–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79static int
80refcmp(const void *p1, const void *p2) {
81 cmark_reference *r1 = *(cmark_reference **)p1;
82 cmark_reference *r2 = *(cmark_reference **)p2;
83 int res = labelcmp(r1->label, r2->label);
84 return res ? res : ((int)r1->age - (int)r2->age);
85}
86
87static int
88refsearch(const void *label, const void *p2) {

Callers

nothing calls this directly

Calls 1

labelcmpFunction · 0.85

Tested by

no test coverage detected