aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/private/helpers.h
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-05-30 15:43:58 -0400
committerJustin M. Keyes <justinkz@gmail.com>2016-05-30 15:43:58 -0400
commit30531bc38dd2110099ba6fc6f5a1d32195a697eb (patch)
treed332a5bde3c621cc8fe42cc809f9399790ec8e04 /src/nvim/api/private/helpers.h
parent748898b4dd992c5a5d15a0e1f9f047fc42ba4fd3 (diff)
parent7a44f9e343c79a1dedf535b9146b308122085300 (diff)
downloadrneovim-30531bc38dd2110099ba6fc6f5a1d32195a697eb.tar.gz
rneovim-30531bc38dd2110099ba6fc6f5a1d32195a697eb.tar.bz2
rneovim-30531bc38dd2110099ba6fc6f5a1d32195a697eb.zip
Merge pull request #4845 from ZyX-I/luaviml'/lua'/encode_vim_to_object'/refactor-kvec
lib/kvec.h refactorings
Diffstat (limited to 'src/nvim/api/private/helpers.h')
-rw-r--r--src/nvim/api/private/helpers.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nvim/api/private/helpers.h b/src/nvim/api/private/helpers.h
index a0f14ac7a4..7ed726c7ce 100644
--- a/src/nvim/api/private/helpers.h
+++ b/src/nvim/api/private/helpers.h
@@ -62,12 +62,10 @@
#define NIL ((Object) {.type = kObjectTypeNil})
#define PUT(dict, k, v) \
- kv_push(KeyValuePair, \
- dict, \
- ((KeyValuePair) {.key = cstr_to_string(k), .value = v}))
+ kv_push(dict, ((KeyValuePair) { .key = cstr_to_string(k), .value = v }))
#define ADD(array, item) \
- kv_push(Object, array, item)
+ kv_push(array, item)
#define STATIC_CSTR_AS_STRING(s) ((String) {.data = s, .size = sizeof(s) - 1})