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

Function py_base

internal/cbm/doclink_py.c:88–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88static const char *py_base(const char *path) {
89 const char *slash = strrchr(path, '/');
90 return slash ? slash + 1 : path;
91}
92
93static bool py_field_ok(const char *s, size_t n) {
94 if (n == 0 || n > PY_SCOPE_FIELD_MAX) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected