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

Function upper_count

src/pipeline/doc_links_cs.c:5923–5925  ·  view source on GitHub ↗

How many entities `e` takes its openness from: its bases, and the shared * trees' parts that belong to it (what they derive from, it derives from). */

Source from the content-addressed store, hash-verified

5921/* How many entities `e` takes its openness from: its bases, and the shared
5922 * trees' parts that belong to it (what they derive from, it derives from). */
5923static int upper_count(const cs_entity_t *e) {
5924 return e->nbases + (e->twin >= 0 ? SKIP_ONE : 0);
5925}
5926
5927static int upper_at(const cs_entity_t *e, int k) {
5928 return k < e->nbases ? e->bases[k] : e->twin;

Callers 1

spread_openFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected