summaryrefslogtreecommitdiff
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-10-03 12:44:42 +0000
committerBram Moolenaar <Bram@vim.org>2006-10-03 12:44:42 +0000
commit60a495f02e7dec1db1776d8344cdd4da6a52a41f (patch)
tree11780489e9a53453161dd96e55dc36ed1db2614a /src/eval.c
parent89f3727bd9d8097336f763d9cdbe8d6055cab7c1 (diff)
downloadvim-60a495f02e7dec1db1776d8344cdd4da6a52a41f.zip
updated for version 7.0-111
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c
index f2abba7b2..d32efaa7b 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -622,6 +622,7 @@ static void f_setqflist __ARGS((typval_T *argvars, typval_T *rettv));
static void f_setreg __ARGS((typval_T *argvars, typval_T *rettv));
static void f_settabwinvar __ARGS((typval_T *argvars, typval_T *rettv));
static void f_setwinvar __ARGS((typval_T *argvars, typval_T *rettv));
+static void f_shellescape __ARGS((typval_T *argvars, typval_T *rettv));
static void f_simplify __ARGS((typval_T *argvars, typval_T *rettv));
static void f_sort __ARGS((typval_T *argvars, typval_T *rettv));
static void f_soundfold __ARGS((typval_T *argvars, typval_T *rettv));
@@ -7146,6 +7147,7 @@ static struct fst
{"setreg", 2, 3, f_setreg},
{"settabwinvar", 4, 4, f_settabwinvar},
{"setwinvar", 3, 3, f_setwinvar},
+ {"shellescape", 1, 1, f_shellescape},
{"simplify", 1, 1, f_simplify},
{"sort", 1, 2, f_sort},
{"soundfold", 1, 1, f_soundfold},
@@ -14605,6 +14607,18 @@ setwinvar(argvars, rettv, off)
}
/*
+ * "shellescape({string})" function
+ */
+ static void
+f_shellescape(argvars, rettv)
+ typval_T *argvars;
+ typval_T *rettv;
+{
+ rettv->vval.v_string = vim_strsave_shellescape(get_tv_string(&argvars[0]));
+ rettv->v_type = VAR_STRING;
+}
+
+/*
* "simplify()" function
*/
static void