mirror of
https://github.com/neovim/neovim.git
synced 2025-10-14 22:06:07 +00:00
api/msgpack-rpc: Remove Position type, using arrays instead.
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
#define ARRAY_DICT_INIT {.size = 0, .items = NULL}
|
||||
#define STRING_INIT {.data = NULL, .size = 0}
|
||||
#define OBJECT_INIT { .type = kObjectTypeNil }
|
||||
#define POSITION_INIT { .row = 0, .col = 0 }
|
||||
#define REMOTE_TYPE(type) typedef uint64_t type
|
||||
|
||||
// Basic types
|
||||
@@ -32,10 +31,6 @@ REMOTE_TYPE(Tabpage);
|
||||
|
||||
typedef struct object Object;
|
||||
|
||||
typedef struct {
|
||||
Integer row, col;
|
||||
} Position;
|
||||
|
||||
typedef struct {
|
||||
Object *items;
|
||||
size_t size, capacity;
|
||||
@@ -52,7 +47,6 @@ typedef enum {
|
||||
// The following comments are markers that msgpack-gen.lua uses to extract
|
||||
// types, don't remove!
|
||||
// start custom types
|
||||
kObjectTypePosition,
|
||||
kObjectTypeBuffer,
|
||||
kObjectTypeWindow,
|
||||
kObjectTypeTabpage,
|
||||
@@ -69,7 +63,6 @@ typedef enum {
|
||||
struct object {
|
||||
ObjectType type;
|
||||
union {
|
||||
Position position;
|
||||
Buffer buffer;
|
||||
Window window;
|
||||
Tabpage tabpage;
|
||||
|
Reference in New Issue
Block a user