Remove a node too

This commit is contained in:
Tony Garnock-Jones 2015-07-15 19:03:15 -04:00
parent 132f5b4218
commit 622f14496e
1 changed files with 4 additions and 0 deletions

4
main.c
View File

@ -384,6 +384,10 @@ int main(int argc, char *argv[]) {
printf("\nd node: %u/%u\n", tt_ptr_idx(d), tt_ptr_tag(d));
tt_arena_flush(&a);
tt_dump_arena_dot_styled("d", d, &a, TT_STYLE_TEXT_LABELS | TT_STYLE_HIDE_DETAILS);
tt_replace(&a, &d, tt_dict_remove(&a, d, LITERAL4("goog")));
printf("\ndPostRemove node: %u/%u\n", tt_ptr_idx(d), tt_ptr_tag(d));
tt_arena_flush(&a);
tt_dump_arena_dot_styled("dPostRemove", d, &a, TT_STYLE_TEXT_LABELS | TT_STYLE_HIDE_DETAILS);
tt_drop(&a, d);
}