From 84443f176e56f9c4140d97c077ea104d5373a666 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sat, 9 May 2015 02:43:47 -0400 Subject: doc: v:servername, serverstart() --- src/nvim/eval.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nvim/eval.c') diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 906659a1f3..366afb1496 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -365,7 +365,7 @@ static struct vimvar { } vimvars[VV_LEN] = { /* - * The order here must match the VV_ defines in vim.h! + * The order here must match the VV_ defines in eval.h! * Initializing a union does not work, leave tv.vval empty to get zero's. */ {VV_NAME("count", VAR_NUMBER), VV_COMPAT+VV_RO}, @@ -13356,7 +13356,7 @@ static void f_serverlist(typval_T *argvars, typval_T *rettv) static void f_serverstart(typval_T *argvars, typval_T *rettv) { rettv->v_type = VAR_STRING; - rettv->vval.v_string = NULL; // Will hold the address of the new server. + rettv->vval.v_string = NULL; // Address of the new server if (check_restricted() || check_secure()) { return; -- cgit From 85c51baf064ed382d4abb2a64930667876f86afb Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Mon, 11 May 2015 13:41:24 -0400 Subject: passing-by: get_vim_var_str: mark non-null return --- src/nvim/eval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/eval.c') diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 366afb1496..16b368c555 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -16294,7 +16294,7 @@ long get_vim_var_nr(int idx) /* * Get string v: variable value. Uses a static buffer, can only be used once. */ -char_u *get_vim_var_str(int idx) +char_u *get_vim_var_str(int idx) FUNC_ATTR_NONNULL_RET { return get_tv_string(&vimvars[idx].vv_tv); } -- cgit