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.
This commit is contained in:
Thiago de Arruda
2014-09-03 11:46:35 -03:00
parent e2143674ae
commit c39ae3e4d4
4 changed files with 24 additions and 2 deletions

View File

@@ -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)