aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/private/defs.h
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-09-09 08:59:48 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-09-12 13:25:28 -0300
commit2792a0e33c0845fdd5b1b752d99ee573f6534256 (patch)
tree6b7fd940dd8a93f2957ecc11c99f64db8662c398 /src/nvim/api/private/defs.h
parent38dcfb60627cbdfa2eaf5d0d991c872c85868f22 (diff)
downloadrneovim-2792a0e33c0845fdd5b1b752d99ee573f6534256.tar.gz
rneovim-2792a0e33c0845fdd5b1b752d99ee573f6534256.tar.bz2
rneovim-2792a0e33c0845fdd5b1b752d99ee573f6534256.zip
api/msgpack-rpc: Remove Position type, using arrays instead.
Diffstat (limited to 'src/nvim/api/private/defs.h')
-rw-r--r--src/nvim/api/private/defs.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/nvim/api/private/defs.h b/src/nvim/api/private/defs.h
index 689594f231..11800ed786 100644
--- a/src/nvim/api/private/defs.h
+++ b/src/nvim/api/private/defs.h
@@ -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
@@ -33,10 +32,6 @@ REMOTE_TYPE(Tabpage);
typedef struct object Object;
typedef struct {
- Integer row, col;
-} Position;
-
-typedef struct {
Object *items;
size_t size, capacity;
} Array;
@@ -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;