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

Function cs_segments

internal/cbm/doclink_cs.c:2761–2767  ·  view source on GitHub ↗

Segments of a dotted name. */

Source from the content-addressed store, hash-verified

2759
2760/* Segments of a dotted name. */
2761static int cs_segments(const char *name) {
2762 int n = SKIP_ONE;
2763 for (const char *p = name; *p; p++) {
2764 n += *p == '.';
2765 }
2766 return n;
2767}
2768
2769/* What follows a namespace's name in a file with parse errors: the brace
2770 * that opens its block (returned), or the `;` of a file-scoped namespace

Callers 1

cs_place_namespaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected