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

Function cs_row_of

internal/cbm/doclink_cs.c:1230–1241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1228 * placed at all. */
1229
1230static uint32_t cs_row_of(cs_scan_t *s, uint32_t pos) {
1231 const char *src = s->ctx->source;
1232 if (pos < s->row_pos) {
1233 s->row_pos = 0;
1234 s->row = 0;
1235 }
1236 for (uint32_t i = s->row_pos; i < pos; i++) {
1237 s->row += src[i] == '\n';
1238 }
1239 s->row_pos = pos;
1240 return s->row;
1241}
1242
1243/* A new entry of the brace list; its index, or CBM_NOT_FOUND. */
1244static int cs_brace_push(cs_scan_t *s, uint32_t pos, char kind) {

Callers 3

cs_brace_pushFunction · 0.85
cs_lex_keywordFunction · 0.85
cs_scan_tokensFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected