From: Ralph Ronnquist Date: Fri, 22 Jul 2022 05:40:51 +0000 (+1000) Subject: updated vector ABI X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=da225d6f240bffd052502c0cf8804522514a7e61;p=rrq%2Frrqmisc.git updated vector ABI --- diff --git a/logic/Relation.c b/logic/Relation.c index 868a477..19a9194 100644 --- a/logic/Relation.c +++ b/logic/Relation.c @@ -14,7 +14,7 @@ Relation *Relation_create(TupleSchema *schema) { .fill = 0, .holes = 0, .type = (ItemKeyFun*) schema }, .constraints = (Vector) { - .variant = single_index_level, + .variant = Single_index_level, .size = 0, .entries = 0 }, @@ -132,7 +132,7 @@ Vector *Relation_add(Relation *r,Tuple *item) { // Add the new tuple HashVector_add( &r->content, item ); Vector_iterate( &r->constraints, 0, knockout_add, item ); - return HashVector_contents( &data.knockouts, single_index_level, 0 ); + return HashVector_contents( &data.knockouts, Single_index_level, 0 ); } return 0; } @@ -140,7 +140,7 @@ Vector *Relation_add(Relation *r,Tuple *item) { Vector *Relation_delete(Relation *r,Tuple *item) { Knockout data; (void) knockout_clear( &data, r, item, 0 ); - return HashVector_contents( &data.knockouts, single_index_level, 0 ); + return HashVector_contents( &data.knockouts, Single_index_level, 0 ); } void *Relation_next(Relation *r,VectorIndex *index,Tuple *query) {