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

Function c_closes_block

internal/cbm/doclink_c.c:360–368  ·  view source on GitHub ↗

The end command of the open code block on this line, if any. */

Source from the content-addressed store, hash-verified

358
359/* The end command of the open code block on this line, if any. */
360static bool c_closes_block(const c_line_t *ln, int open) {
361 for (size_t i = 0; i < ln->n; i++) {
362 size_t cl = c_command_at(ln->p, i, ln->n);
363 if (cl && c_word_is(ln->p + i + SKIP_ONE, cl, C_BLOCK_CLOSE[open])) {
364 return true;
365 }
366 }
367 return false;
368}
369
370static void c_harvest(CBMExtractCtx *ctx, const CBMDefinition *def, const char *doc,
371 uint32_t doc_line) {

Callers 1

c_harvestFunction · 0.85

Calls 2

c_command_atFunction · 0.85
c_word_isFunction · 0.85

Tested by

no test coverage detected