add new todo

This commit is contained in:
2026-04-13 17:42:18 +02:00
parent ff5815887e
commit 1d6355a216
+4
View File
@@ -193,6 +193,10 @@ void map_assure_growable_by_1(void **this, const char *file, int line) {
// TODO: this now just completely is wrong, though there will be no // TODO: this now just completely is wrong, though there will be no
// old_indexes in this case, assuming no bugs in the rest of the // old_indexes in this case, assuming no bugs in the rest of the
// program. // program.
// TODO: when setting a key to a gravestone, then while the mapping
// item to the right is FLAG_FREE, you can set this one to FLAG_FREE,
// go one index less, and if that is also a FLAG_GRAVESTONE, you can
// continue the process.
unsigned int mapping_index = map_pair_hash(this, pair); unsigned int mapping_index = map_pair_hash(this, pair);
header->mapping_arr[mapping_index] = i; header->mapping_arr[mapping_index] = i;
} }