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

Function py_namespace_nonempty

internal/cbm/cbm.c:119–121  ·  view source on GitHub ↗

New facts use checked allocation and atomic publication; legacy extraction * arrays retain their existing contracts. */

Source from the content-addressed store, hash-verified

117/* New facts use checked allocation and atomic publication; legacy extraction
118 * arrays retain their existing contracts. */
119static bool py_namespace_nonempty(const char *s) {
120 return s && s[0];
121}
122
123static bool py_namespace_fact_valid(const CBMPyNamespaceFact *f) {
124 if (!f || f->name_count < 0 || (size_t)f->name_count > SIZE_MAX / sizeof(*f->names) ||

Callers 1

py_namespace_fact_validFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected