aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/private/helpers.h
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-05-17 13:00:32 +0200
committerGitHub <noreply@github.com>2023-05-17 13:00:32 +0200
commit67176c3f20cf8f0b6c7d7c4d75093ea6b7c00b74 (patch)
treec1a0e185985227f05f1da2480de74739c779dfaf /src/nvim/api/private/helpers.h
parent189fb6203262340e7a59e782be970bcd8ae28e61 (diff)
parente2fdd53d8c015913e8be4ff708fc3488558c8906 (diff)
downloadrneovim-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.h12
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
///