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

Function undo_note_ns

src/pipeline/doc_links_cs.c:685–696  ·  view source on GitHub ↗

Remember the flags of namespace `ns` before the file's scope sets them. */

Source from the content-addressed store, hash-verified

683
684/* Remember the flags of namespace `ns` before the file's scope sets them. */
685static bool undo_note_ns(cs_index_t *ix, int ns) {
686 cs_undo_t *u = &ix->undo;
687 if (ns >= u->nnss) {
688 return true; /* made by this file: taken back as a whole */
689 }
690 if (!undo_room(ix, (void **)&u->flags, u->nflags, &u->cap_flags, sizeof(cs_ns_was_t))) {
691 return false;
692 }
693 u->flags[u->nflags++] =
694 (cs_ns_was_t){.ns = ns, .declared = ix->nss[ns].declared, .prod = ix->nss[ns].prod};
695 return true;
696}
697
698/* A type name declared in `f` at a place no namespace or outer type could be
699 * established for. Product code never binds test-only declarations, so a name

Callers 1

parse_regionFunction · 0.85

Calls 1

undo_roomFunction · 0.85

Tested by

no test coverage detected