diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-05-17 13:00:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-17 13:00:32 +0200 |
commit | 67176c3f20cf8f0b6c7d7c4d75093ea6b7c00b74 (patch) | |
tree | c1a0e185985227f05f1da2480de74739c779dfaf /src/nvim/marktree.c | |
parent | 189fb6203262340e7a59e782be970bcd8ae28e61 (diff) | |
parent | e2fdd53d8c015913e8be4ff708fc3488558c8906 (diff) | |
download | rneovim-67176c3f20cf8f0b6c7d7c4d75093ea6b7c00b74.tar.gz rneovim-67176c3f20cf8f0b6c7d7c4d75093ea6b7c00b74.tar.bz2 rneovim-67176c3f20cf8f0b6c7d7c4d75093ea6b7c00b74.zip |
Merge pull request #15534 from bfredl/monomap
refactor(map): avoid duplicated khash_t implementations for values and support sets
Diffstat (limited to 'src/nvim/marktree.c')
-rw-r--r-- | src/nvim/marktree.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/marktree.c b/src/nvim/marktree.c index 757906d42f..840b6b646e 100644 --- a/src/nvim/marktree.c +++ b/src/nvim/marktree.c @@ -359,7 +359,7 @@ uint64_t marktree_del_itr(MarkTree *b, MarkTreeIter *itr, bool rev) } b->n_keys--; - pmap_del(uint64_t)(b->id2node, id); + pmap_del(uint64_t)(b->id2node, id, NULL); // 5. bool itr_dirty = false; @@ -549,8 +549,8 @@ void marktree_clear(MarkTree *b) b->root = NULL; } if (b->id2node->table.keys) { - pmap_destroy(uint64_t)(b->id2node); - pmap_init(uint64_t, b->id2node); + map_destroy(uint64_t, b->id2node); + *b->id2node = (PMap(uint64_t)) MAP_INIT; } b->n_keys = 0; b->n_nodes = 0; |