diff options
author | ckelsel <ckelsel@hotmail.com> | 2017-08-30 19:44:19 +0800 |
---|---|---|
committer | ckelsel <ckelsel@hotmail.com> | 2017-08-30 19:44:19 +0800 |
commit | 9ae353ab44724808a41794589b68c1b4339d572a (patch) | |
tree | 7f3091f1b66b1b0eaa240db0186575940c33c86c /src/nvim/msgpack_rpc/helpers.c | |
parent | 0b6fa3a553da3b83419c48fcbb6fb3ec413598e0 (diff) | |
parent | 5566f30006a73c30dfbdeece2e08830826d28aa4 (diff) | |
download | rneovim-9ae353ab44724808a41794589b68c1b4339d572a.tar.gz rneovim-9ae353ab44724808a41794589b68c1b4339d572a.tar.bz2 rneovim-9ae353ab44724808a41794589b68c1b4339d572a.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/nvim/msgpack_rpc/helpers.c')
-rw-r--r-- | src/nvim/msgpack_rpc/helpers.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/nvim/msgpack_rpc/helpers.c b/src/nvim/msgpack_rpc/helpers.c index 444c6cc256..fecae11d45 100644 --- a/src/nvim/msgpack_rpc/helpers.c +++ b/src/nvim/msgpack_rpc/helpers.c @@ -88,7 +88,12 @@ bool msgpack_rpc_to_object(const msgpack_object *const obj, Object *const arg) { bool ret = true; kvec_t(MPToAPIObjectStackItem) stack = KV_INITIAL_VALUE; - kv_push(stack, ((MPToAPIObjectStackItem) { obj, arg, false, 0 })); + kv_push(stack, ((MPToAPIObjectStackItem) { + .mobj = obj, + .aobj = arg, + .container = false, + .idx = 0, + })); while (ret && kv_size(stack)) { MPToAPIObjectStackItem cur = kv_last(stack); if (!cur.container) { @@ -361,7 +366,7 @@ typedef struct { size_t idx; } APIToMPObjectStackItem; -/// Convert type used by Neovim API to msgpack +/// Convert type used by Nvim API to msgpack type. /// /// @param[in] result Object to convert. /// @param[out] res Structure that defines where conversion results are saved. |