From c39ae3e4d475c868f8ba76116735501ea97dfae1 Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Wed, 3 Sep 2014 11:46:35 -0300 Subject: 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. --- scripts/msgpack-gen.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts/msgpack-gen.lua') 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) -- cgit