aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-07-19 21:32:04 +0200
committerGitHub <noreply@github.com>2019-07-19 21:32:04 +0200
commitafef973262bea3fe1563dc0571bb4168ac0914aa (patch)
tree3fda5cd682a39ee34a8d1b4a2f8dbcb2b13c19c0 /src/nvim/eval.c
parentd5f7099be23e217a1fe1f5443257f1b5d1eacfea (diff)
downloadrneovim-afef973262bea3fe1563dc0571bb4168ac0914aa.tar.gz
rneovim-afef973262bea3fe1563dc0571bb4168ac0914aa.tar.bz2
rneovim-afef973262bea3fe1563dc0571bb4168ac0914aa.zip
doc [ci skip] #10383
- test/README.md: document luassert `TableFormatLevel` - CONTRIBUTING.md: absorb parts of the old "Development tips" wiki page
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 2dc6a287a1..aa79d4ce5f 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -12076,6 +12076,14 @@ static void f_jobresize(typval_T *argvars, typval_T *rettv, FunPtr fptr)
rettv->vval.v_number = 1;
}
+/// Builds a process argument vector from a VimL object (typval_T).
+///
+/// @param[in] cmd_tv VimL object
+/// @param[out] cmd Returns the command or executable name.
+/// @param[out] executable Returns `false` if argv[0] is not executable.
+///
+/// @returns Result of `shell_build_argv()` if `cmd_tv` is a String.
+/// Else, string values of `cmd_tv` copied to a (char **) list.
static char **tv_to_argv(typval_T *cmd_tv, const char **cmd, bool *executable)
{
if (cmd_tv->v_type == VAR_STRING) {