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

Function cr_py_string

internal/cbm/result_compact.c:320–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320static bool cr_py_string(cr_ctx_t *c, const char **field) {
321 if (!*field)
322 return true;
323 if (c->phase == CR_COUNT && c->refs == SIZE_MAX) {
324 c->failed = true;
325 return false;
326 }
327 if (c->phase == CR_MEASURE && !cr_py_size(c, strlen(*field) + 1))
328 return false;
329 cr_str(c, field);
330 return !c->failed;
331}
332
333static void cr_walk_py_namespace(cr_ctx_t *c, CBMPyNamespaceFacts *facts) {
334 if (!cr_py_size(c, (size_t)facts->count * sizeof(*facts->items)))

Callers 1

cr_walk_py_namespaceFunction · 0.85

Calls 2

cr_py_sizeFunction · 0.85
cr_strFunction · 0.85

Tested by

no test coverage detected