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

Function cmp_section_node

src/pipeline/pass_semantic_edges.c:1949–1958  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1947}
1948
1949static int cmp_section_node(const void *pa, const void *pb) {
1950 const cbm_gbuf_node_t *a = *(const cbm_gbuf_node_t *const *)pa;
1951 const cbm_gbuf_node_t *b = *(const cbm_gbuf_node_t *const *)pb;
1952 int c = strcmp(a->qualified_name ? a->qualified_name : "",
1953 b->qualified_name ? b->qualified_name : "");
1954 if (c) {
1955 return c;
1956 }
1957 return (a->start_line > b->start_line) - (a->start_line < b->start_line);
1958}
1959
1960/* Heading kinds that are about the project, not about code: a release
1961 * number, or one of these words (a trailing '*' matches any ending). */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected