projects
/
rrq
/
rrqmisc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use nibble vector
[rrq/rrqmisc.git]
/
logic
/
Relation.c
diff --git
a/logic/Relation.c
b/logic/Relation.c
index 868a47776f0f495e476618bdc7927a5148d98107..19a9194d79c0247a851584ee8be40e0b8fee356b 100644
(file)
--- 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) {
.fill = 0, .holes = 0, .type = (ItemKeyFun*) schema
},
.constraints = (Vector) {
- .variant =
s
ingle_index_level,
+ .variant =
S
ingle_index_level,
.size = 0,
.entries = 0
},
.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 );
// Add the new tuple
HashVector_add( &r->content, item );
Vector_iterate( &r->constraints, 0, knockout_add, item );
- return HashVector_contents( &data.knockouts,
s
ingle_index_level, 0 );
+ return HashVector_contents( &data.knockouts,
S
ingle_index_level, 0 );
}
return 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 );
Vector *Relation_delete(Relation *r,Tuple *item) {
Knockout data;
(void) knockout_clear( &data, r, item, 0 );
- return HashVector_contents( &data.knockouts,
s
ingle_index_level, 0 );
+ return HashVector_contents( &data.knockouts,
S
ingle_index_level, 0 );
}
void *Relation_next(Relation *r,VectorIndex *index,Tuple *query) {
}
void *Relation_next(Relation *r,VectorIndex *index,Tuple *query) {