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

Function rs_run_len_cmp

internal/cbm/doclink_rs.c:1751–1758  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1749}
1750
1751static int rs_run_len_cmp(const void *a, const void *b) {
1752 const rs_run_t *x = (const rs_run_t *)a;
1753 const rs_run_t *y = (const rs_run_t *)b;
1754 if (x->len != y->len) {
1755 return x->len < y->len ? -1 : 1;
1756 }
1757 return (x->pos > y->pos) - (x->pos < y->pos);
1758}
1759
1760/* Record the paragraph's backtick runs, in text order and by length: a code
1761 * span closes at the first later run of its opener's length, which is then a

Callers 1

rs_inline_backticksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected