diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-06-18 15:56:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-18 15:56:04 -0400 |
commit | d5ddebe9e23ea60be26b34a02f016194cf8d6874 (patch) | |
tree | cd754bb5cd359ae52d60d3fd6a7609473e43b6cb | |
parent | 1e93e24f5e6e36fa89ebbc234b8c91a21ef0b788 (diff) | |
parent | 8c28baa7c709c024398e4c0fae7a55113adf7ce2 (diff) | |
download | rneovim-d5ddebe9e23ea60be26b34a02f016194cf8d6874.tar.gz rneovim-d5ddebe9e23ea60be26b34a02f016194cf8d6874.tar.bz2 rneovim-d5ddebe9e23ea60be26b34a02f016194cf8d6874.zip |
Merge #4938 from justinmk/coverity
coverity/149459: CHECKED_RETURN (false positive)
-rw-r--r-- | runtime/doc/eval.txt | 3 | ||||
-rw-r--r-- | runtime/doc/msgpack_rpc.txt | 9 | ||||
-rw-r--r-- | runtime/doc/starting.txt | 3 | ||||
-rw-r--r-- | src/nvim/eval.c | 2 |
4 files changed, 9 insertions, 8 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 16f9713d2a..ef2d0ce203 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -2198,8 +2198,7 @@ and({expr}, {expr}) *and()* api_info() *api_info()* - Return Dictionary containing api metadata. - See |api-metadata|. + Returns Dictionary of |api-metadata|. append({lnum}, {expr}) *append()* diff --git a/runtime/doc/msgpack_rpc.txt b/runtime/doc/msgpack_rpc.txt index 7fff0959d0..cfd9084cfc 100644 --- a/runtime/doc/msgpack_rpc.txt +++ b/runtime/doc/msgpack_rpc.txt @@ -9,7 +9,7 @@ RPC API for Nvim *RPC* *rpc* *msgpack-rpc* 1. Introduction |rpc-intro| 2. API mapping |rpc-api| 3. Connecting |rpc-connecting| -4. Clients |rpc-client| +4. Clients |rpc-api-client| 5. Types |rpc-types| 6. Vimscript functions |rpc-vim-functions| @@ -51,11 +51,10 @@ There are three ways to obtain API metadata: msgpack-rpc. This is best for clients written in dynamic languages which can define functions at runtime. - 2. Start Nvim with the `--api-info` command-line option, which dumps a blob - of msgpack metadata to standard output. This is useful for clients - written in statically-compiled languages. + 2. Start Nvim with the |--api-info| option. Useful for clients written in + statically-compiled languages. -3. In vimscript the metadata is available as |api_info()|. + 3. Use the |api_info()| vimscript function. To get a human-readable list of API functions: > :new|put =map(api_info().functions, 'v:val.name') diff --git a/runtime/doc/starting.txt b/runtime/doc/starting.txt index c9cb849164..ad2649b765 100644 --- a/runtime/doc/starting.txt +++ b/runtime/doc/starting.txt @@ -350,6 +350,9 @@ argument. *-W* -W {scriptout} Like -w, but do not append, overwrite an existing file. + *--api-info* +--api-info Print msgpack-encoded |api-metadata| and exit. + ============================================================================== 2. Initialization *initialization* *startup* diff --git a/src/nvim/eval.c b/src/nvim/eval.c index e2cebf0751..7cfa14d6ec 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -7472,7 +7472,7 @@ static void f_and(typval_T *argvars, typval_T *rettv) static void f_api_info(typval_T *argvars, typval_T *rettv) { Dictionary metadata = api_metadata(); - object_to_vim(DICTIONARY_OBJ(metadata), rettv, NULL); + (void)object_to_vim(DICTIONARY_OBJ(metadata), rettv, NULL); api_free_dictionary(metadata); } |