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/api/private/helpers.h | |
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/api/private/helpers.h')
-rw-r--r-- | src/nvim/api/private/helpers.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nvim/api/private/helpers.h b/src/nvim/api/private/helpers.h index 2623c97c9d..bac501ed62 100644 --- a/src/nvim/api/private/helpers.h +++ b/src/nvim/api/private/helpers.h @@ -122,13 +122,13 @@ #define api_free_window(value) #define api_free_tabpage(value) -EXTERN PMap(handle_T) buffer_handles INIT(= MAP_INIT); -EXTERN PMap(handle_T) window_handles INIT(= MAP_INIT); -EXTERN PMap(handle_T) tabpage_handles INIT(= MAP_INIT); +EXTERN PMap(int) buffer_handles INIT(= MAP_INIT); +EXTERN PMap(int) window_handles INIT(= MAP_INIT); +EXTERN PMap(int) tabpage_handles INIT(= MAP_INIT); -#define handle_get_buffer(h) pmap_get(handle_T)(&buffer_handles, (h)) -#define handle_get_window(h) pmap_get(handle_T)(&window_handles, (h)) -#define handle_get_tabpage(h) pmap_get(handle_T)(&tabpage_handles, (h)) +#define handle_get_buffer(h) pmap_get(int)(&buffer_handles, (h)) +#define handle_get_window(h) pmap_get(int)(&window_handles, (h)) +#define handle_get_tabpage(h) pmap_get(int)(&tabpage_handles, (h)) /// Structure used for saving state for :try /// |