James McCoy
37e64d79cc
object_to_vim: Fix buffer/window/tabpage conversion on BE systems
...
Since data.integer is a different (larger) integer type than
data.{buffer,window,tabpage}, we cannot abuse the union by using
data.integer to access the value for all 4 types. Instead, remove the
{buffer,window,tabpage} members and always use the integer member.
In order to accomodate this, perform distinct validation and coercion
between the Integer type and Buffer/Window/Tabpage types in
object_to_vim, msgpack_rpc helpers, and gendispatch.lua.
2016-11-02 10:06:27 -04:00
Björn Linse
31df051ed9
Merge pull request #4568 from bfredl/multirequest
...
atomic multi request for async remote plugins
2016-10-22 12:50:50 +02:00
Björn Linse
f6968dc0f7
api: call multiple methods atomically (useful in async contexts)
...
remove unused response_id parameter of handle_nvim_... helpers
2016-10-22 10:51:32 +02:00
Björn Linse
caf85b80ae
api: move verbatim c code out of gendispatch.lua and into c files
...
Remove max_fname_len check, which caused false successful lookups,
and was an optimization for a very rare case.
2016-10-19 09:06:30 +02:00
Björn Linse
78ea090f29
api: add blanket implementation of "since"
2016-09-27 16:54:55 +02:00
Björn Linse
50c26017a3
api: define the set of function attributes to expose in the metadata
2016-09-27 16:54:55 +02:00
Björn Linse
6f55d1377f
api: restore old return type of deprecated ui_try_resize method
2016-09-27 16:10:34 +02:00
Björn Linse
c61bf43a90
gendispatch: warn for deprecated alias if the deprecated function has implemation
2016-09-15 10:44:38 +02:00
Björn Linse
5f42184873
api: remove unnecessary initializations causing warnings in api dispatch ( #5337 )
...
Left over change from acb7c82
(fix leak when a api function is
incorrectly called with a list.). These initializations are now never
used and causes warnings in static analysis
2016-09-14 13:10:04 +02:00
Björn Linse
acb7c826b3
api: fix leak when a api function is incorrectly called with a list.
...
This applies both to msgpack-rpc and eval.
2016-08-31 21:57:06 +02:00
Björn Linse
1c22cab2fd
api: consistently use nvim_ prefix and update documentation
2016-08-31 21:57:06 +02:00
Björn Linse
e536abc1e1
api: Allow blacklist functions that shouldn't be accesible from eval
...
Blacklist deprecated functions and functions depending on channel_id
2016-08-31 21:57:06 +02:00
Björn Linse
a2d25b7bf8
api: unify buffer numbers and window ids with handles
...
also allow handle==0 meaning curbuf/curwin/curtab
2016-08-31 21:40:20 +02:00
Björn Linse
3bd3b3b768
api: auto generate api function wrappers for viml
2016-08-31 21:40:20 +02:00
Björn Linse
de3a515123
api: rename "msgpack_rpc/defs.h" to "api/private/dispatch.h" and use the header generator.
2016-08-31 21:40:20 +02:00