mirror of
https://github.com/neovim/neovim.git
synced 2025-10-10 03:46:31 +00:00
api: unify buffer numbers and window ids with handles
also allow handle==0 meaning curbuf/curwin/curtab
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user