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

Function py_rec

internal/cbm/doclink_py.c:78–86  ·  view source on GitHub ↗

One record: its kind, then each field after a TAB, then a newline. */

Source from the content-addressed store, hash-verified

76
77/* One record: its kind, then each field after a TAB, then a newline. */
78static void py_rec(py_sb_t *sb, const char *kind, int nfields, const char *const *f,
79 const size_t *fl) {
80 py_put(sb, kind, strlen(kind));
81 for (int i = 0; i < nfields; i++) {
82 py_put(sb, "\t", 1);
83 py_put(sb, f[i], fl[i]);
84 }
85 py_put(sb, "\n", 1);
86}
87
88static const char *py_base(const char *path) {
89 const char *slash = strrchr(path, '/');

Callers 3

py_from_importFunction · 0.85
py_extlinkFunction · 0.85
py_confFunction · 0.85

Calls 1

py_putFunction · 0.85

Tested by

no test coverage detected