diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-09-03 11:46:35 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-09-12 13:25:28 -0300 |
commit | c39ae3e4d475c868f8ba76116735501ea97dfae1 (patch) | |
tree | 3950b82edf564f2938924a3e7db55201eb7c055f /scripts/msgpack-gen.lua | |
parent | e2143674ae20fbadbea004bd54d6f5dc32b83803 (diff) | |
download | rneovim-c39ae3e4d475c868f8ba76116735501ea97dfae1.tar.gz rneovim-c39ae3e4d475c868f8ba76116735501ea97dfae1.tar.bz2 rneovim-c39ae3e4d475c868f8ba76116735501ea97dfae1.zip |
map/msgpack-rpc: Declare/define maps rpc method handlers
The new map type uses `String` instances as keys to avoid unnecessary copying to
zero-terminated buffers.
Diffstat (limited to 'scripts/msgpack-gen.lua')
-rw-r--r-- | scripts/msgpack-gen.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/msgpack-gen.lua b/scripts/msgpack-gen.lua index 43459743e2..7967aad232 100644 --- a/scripts/msgpack-gen.lua +++ b/scripts/msgpack-gen.lua @@ -93,6 +93,7 @@ output:write([[ #include "nvim/map.h" #include "nvim/log.h" +#include "nvim/vim.h" #include "nvim/os/msgpack_rpc.h" #include "nvim/os/msgpack_rpc_helpers.h" #include "nvim/api/private/helpers.h" @@ -268,8 +269,6 @@ end output:write('\n}\n\n') output:write([[ -#define min(X, Y) (X < Y ? X : Y) - Object msgpack_rpc_dispatch(uint64_t channel_id, msgpack_object *req, Error *error) |