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

Function md_section_cmp

internal/cbm/doclink_md.c:983–990  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

981} md_scan_t;
982
983static int md_section_cmp(const void *a, const void *b) {
984 const md_section_t *x = (const md_section_t *)a;
985 const md_section_t *y = (const md_section_t *)b;
986 if (x->line != y->line) {
987 return x->line < y->line ? -1 : 1;
988 }
989 return strcmp(x->qn, y->qn);
990}
991
992static int md_section_ptr_qn_cmp(const void *a, const void *b) {
993 const md_section_t *x = *(const md_section_t *const *)a;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected