aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/private/defs.h
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-05-23 15:49:40 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-05-23 16:06:58 -0300
commit1e67b13fdcb6ed7f2a951b9053f0a829b3a48906 (patch)
tree205f0d0438c7adaf76c32a46f828c91c48b58395 /src/nvim/api/private/defs.h
parent92307201b51c399e8109c91cc131ff3602389db1 (diff)
downloadrneovim-1e67b13fdcb6ed7f2a951b9053f0a829b3a48906.tar.gz
rneovim-1e67b13fdcb6ed7f2a951b9053f0a829b3a48906.tar.bz2
rneovim-1e67b13fdcb6ed7f2a951b9053f0a829b3a48906.zip
API: Refactor: Add macro infrastructure for typed arrays
- Add macros supporting typed arrays in the remote API - Refactor StringArray-related functions on top of the new macros
Diffstat (limited to 'src/nvim/api/private/defs.h')
-rw-r--r--src/nvim/api/private/defs.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nvim/api/private/defs.h b/src/nvim/api/private/defs.h
index 9b0639067d..a6c2eea8e5 100644
--- a/src/nvim/api/private/defs.h
+++ b/src/nvim/api/private/defs.h
@@ -34,10 +34,7 @@ REMOTE_TYPE(Tabpage);
typedef struct object Object;
-typedef struct {
- String *items;
- size_t size;
-} StringArray;
+TYPED_ARRAY_OF(String);
typedef struct {
Integer row, col;