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

Function op_token

src/pipeline/pass_operator.c:640–646  ·  view source on GitHub ↗

A Go identifier-or-DNS token at p (the group name). */

Source from the content-addressed store, hash-verified

638
639/* A Go identifier-or-DNS token at p (the group name). */
640static void op_token(const char *p, char *out, size_t out_sz) {
641 size_t n = 0;
642 while (p[n] && (op_ident_char(p[n]) || p[n] == '.' || p[n] == '-') && n + SKIP_ONE < out_sz) {
643 n++;
644 }
645 snprintf(out, out_sz, "%.*s", (int)n, p);
646}
647
648/* Owned strings. */
649typedef struct {

Callers 1

op_scan_groupsFunction · 0.85

Calls 1

op_ident_charFunction · 0.85

Tested by

no test coverage detected