MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / go_linkdef_cmp

Function go_linkdef_cmp

internal/cbm/doclink_go.c:962–967  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

960}
961
962static int go_linkdef_cmp(const void *a, const void *b) {
963 const go_linkdef_t *x = (const go_linkdef_t *)a;
964 const go_linkdef_t *y = (const go_linkdef_t *)b;
965 int c = go_linktext_cmp(x->text, x->text_len, y->text, y->text_len, false);
966 return c ? c : x->order - y->order;
967}
968
969/* The first definition of the link text `key`, or NULL. */
970static const go_linkdef_t *go_find_linkdef(const go_doc_t *d, const char *key, size_t key_len) {

Callers

nothing calls this directly

Calls 1

go_linktext_cmpFunction · 0.85

Tested by

no test coverage detected