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). */
| 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). */ |
| 5923 | static int upper_count(const cs_entity_t *e) { |
| 5924 | return e->nbases + (e->twin >= 0 ? SKIP_ONE : 0); |
| 5925 | } |
| 5926 | |
| 5927 | static int upper_at(const cs_entity_t *e, int k) { |
| 5928 | return k < e->nbases ? e->bases[k] : e->twin; |