aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/private/defs.h
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2016-06-19 21:06:03 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2016-08-31 21:40:20 +0200
commita2d25b7bf81728d913e7b317d33997c8b8268af2 (patch)
tree35a9a81aa16a7e0756a8d438207c7af0b53478b3 /src/nvim/api/private/defs.h
parent3bd3b3b76859b3eef80fa4969147efa881b60f40 (diff)
downloadrneovim-a2d25b7bf81728d913e7b317d33997c8b8268af2.tar.gz
rneovim-a2d25b7bf81728d913e7b317d33997c8b8268af2.tar.bz2
rneovim-a2d25b7bf81728d913e7b317d33997c8b8268af2.zip
api: unify buffer numbers and window ids with handles
also allow handle==0 meaning curbuf/curwin/curtab
Diffstat (limited to 'src/nvim/api/private/defs.h')
-rw-r--r--src/nvim/api/private/defs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/api/private/defs.h b/src/nvim/api/private/defs.h
index 5fb95a163f..3e0819ba3a 100644
--- a/src/nvim/api/private/defs.h
+++ b/src/nvim/api/private/defs.h
@@ -9,13 +9,15 @@
#define STRING_INIT {.data = NULL, .size = 0}
#define OBJECT_INIT { .type = kObjectTypeNil }
#define ERROR_INIT { .set = false }
-#define REMOTE_TYPE(type) typedef uint64_t type
+#define REMOTE_TYPE(type) typedef handle_T type
#ifdef INCLUDE_GENERATED_DECLARATIONS
# define ArrayOf(...) Array
# define DictionaryOf(...) Dictionary
#endif
+typedef int handle_T;
+
// Basic types
typedef enum {
kErrorTypeException,