diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2015-02-17 01:28:37 -0500 |
---|---|---|
committer | Michael Reed <m.reed@mykolab.com> | 2015-03-24 19:29:29 -0400 |
commit | adfc8cf50a138a25bbe22f3c6e50ce7bd8c143e7 (patch) | |
tree | 9c8c297e14087032ac240b02065cd049cb4ac6e5 /src | |
parent | ab68ac4c0221a3cfef13d86d0ebf9fc7bad710f7 (diff) | |
download | rneovim-adfc8cf50a138a25bbe22f3c6e50ce7bd8c143e7.tar.gz rneovim-adfc8cf50a138a25bbe22f3c6e50ce7bd8c143e7.tar.bz2 rneovim-adfc8cf50a138a25bbe22f3c6e50ce7bd8c143e7.zip |
doc: Misc. cleanup
Add missing parentheses and whatnot, move dangling comment, etc. Some
specific items worth mentioning:
Fixed some references to non-existent tags, found via `make html`
msgpack_rpc/channel.c:
ELOG already prefixes each line with "error @ ..."
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/eval.c | 11 | ||||
-rw-r--r-- | src/nvim/main.c | 2 | ||||
-rw-r--r-- | src/nvim/msgpack_rpc/channel.c | 2 |
3 files changed, 6 insertions, 9 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 9e4b110e8b..08ad33e60e 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -345,13 +345,6 @@ typedef enum { VAR_FLAVOUR_VIMINFO /* all uppercase */ } var_flavour_T; -/* - * Array to hold the value of v: variables. - * The value is in a dictitem, so that it can also be used in the v: scope. - * The reason to use this table anyway is for very quick access to the - * variables with the VV_ defines. - */ - /* values for vv_flags: */ #define VV_COMPAT 1 /* compatible, also used without "v:" */ #define VV_RO 2 /* read-only */ @@ -359,6 +352,10 @@ typedef enum { #define VV_NAME(s, t) s, {{t, 0, {0}}, 0, {0}}, {0} +// Array to hold the value of v: variables. +// The value is in a dictitem, so that it can also be used in the v: scope. +// The reason to use this table anyway is for very quick access to the +// variables with the VV_ defines. static struct vimvar { char *vv_name; /* name of variable, without v: */ dictitem_T vv_di; /* value and name for key */ diff --git a/src/nvim/main.c b/src/nvim/main.c index d2d252a425..9f4bc22ae0 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -1961,7 +1961,7 @@ static void mainerr(int n, const char *str) } -/// Prints help message and exits; used for 'nvim -h' & 'nvim --help' +/// Prints help message for "nvim -h" or "nvim --help" and exits. static void usage(void) { signal_stop(); // kill us with CTRL-C here, if you like diff --git a/src/nvim/msgpack_rpc/channel.c b/src/nvim/msgpack_rpc/channel.c index 25d41e7328..e8dab05ba0 100644 --- a/src/nvim/msgpack_rpc/channel.c +++ b/src/nvim/msgpack_rpc/channel.c @@ -723,7 +723,7 @@ static void complete_call(msgpack_object *obj, Channel *channel) static void call_set_error(Channel *channel, char *msg) { - ELOG("Msgpack-RPC error: %s", msg); + ELOG("msgpack-rpc: %s", msg); for (size_t i = 0; i < kv_size(channel->call_stack); i++) { ChannelCallFrame *frame = kv_A(channel->call_stack, i); frame->returned = true; |