aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/map.h
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-09-12 11:54:36 +0200
committerbfredl <bjorn.linse@gmail.com>2023-09-13 10:37:48 +0200
commita6d745865a7f8b17f016b1879ed28376fed7b6b2 (patch)
tree94c5da3018d35b4a4fce1a29b725567190859cf5 /src/nvim/map.h
parent1c4a93b591828bc6970edad6282c004eb46f0b2d (diff)
downloadrneovim-a6d745865a7f8b17f016b1879ed28376fed7b6b2.tar.gz
rneovim-a6d745865a7f8b17f016b1879ed28376fed7b6b2.tar.bz2
rneovim-a6d745865a7f8b17f016b1879ed28376fed7b6b2.zip
refactor(highlight): merge redundant attr_entries and attr_entry_ids structs
An insert-only set now defines a monotonically increasing ordering by itself. It can be used to both lookup the key from index, and vice versa.
Diffstat (limited to 'src/nvim/map.h')
-rw-r--r--src/nvim/map.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/map.h b/src/nvim/map.h
index bfba014736..23a5ea36a3 100644
--- a/src/nvim/map.h
+++ b/src/nvim/map.h
@@ -142,7 +142,6 @@ MAP_DECLS(uint64_t, uint64_t)
MAP_DECLS(int64_t, int64_t)
MAP_DECLS(int64_t, ptr_t)
MAP_DECLS(uint32_t, uint32_t)
-MAP_DECLS(HlEntry, int)
MAP_DECLS(String, int)
MAP_DECLS(int, String)
MAP_DECLS(ColorKey, ColorItem)
@@ -150,6 +149,7 @@ MAP_DECLS(ColorKey, ColorItem)
#define set_has(T, set, key) set_has_##T(set, key)
#define set_put(T, set, key) set_put_##T(set, key, NULL)
#define set_put_ref(T, set, key, key_alloc) set_put_##T(set, key, key_alloc)
+#define set_put_idx(T, set, key, status) mh_put_##T(set, key, status)
#define set_del(T, set, key) set_del_##T(set, key)
#define set_destroy(T, set) (xfree((set)->keys), xfree((set)->h.hash))
#define set_clear(T, set) mh_clear(&(set)->h)