mirror of
https://github.com/neovim/neovim.git
synced 2026-08-29 10:31:48 +00:00
refactor(metadata): generate all metadata in lua
Then we can just load metadata in C as a single msgpack blob. Which also can be used directly as binarly data, instead of first unpacking all the functions and ui_events metadata to immediately pack it again, which was a bit of a silly walk (and one extra usecase of `msgpack_rpc_from_object` which will get yak shaved in the next PR)
This commit is contained in:
@@ -442,8 +442,7 @@ static void f_and(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
|
||||
/// "api_info()" function
|
||||
static void f_api_info(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
|
||||
{
|
||||
Dictionary metadata = api_metadata();
|
||||
object_to_vim(DICTIONARY_OBJ(metadata), rettv, NULL);
|
||||
object_to_vim(api_metadata(), rettv, NULL);
|
||||
}
|
||||
|
||||
/// "atan2()" function
|
||||
|
||||
Reference in New Issue
Block a user