diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-29 21:34:14 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-31 08:07:47 -0300 |
commit | 0d61b1c470466118c601a107d7a17b9edd107c53 (patch) | |
tree | 297f39c2206f7cb9c87b07821db08e3f8aea1aad /src/eval.c | |
parent | 607e1c7ee42cb9bfd66cb84d4fb54060f3b4135b (diff) | |
download | rneovim-0d61b1c470466118c601a107d7a17b9edd107c53.tar.gz rneovim-0d61b1c470466118c601a107d7a17b9edd107c53.tar.bz2 rneovim-0d61b1c470466118c601a107d7a17b9edd107c53.zip |
Refactor SHELL_* defines into enum typedef
The SHELL_* defines are the bitflags that can be passed to `mch_call_shell`.
The enum is defined in 'os/shell.h', where all shell-related functions will
eventually be defined.
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c index 847082aebf..f3644cceb0 100644 --- a/src/eval.c +++ b/src/eval.c @@ -61,6 +61,7 @@ #include "version.h" #include "window.h" #include "os/os.h" +#include "os/shell.h" #if defined(FEAT_FLOAT) && defined(HAVE_MATH_H) # include <math.h> @@ -14543,7 +14544,7 @@ static void f_system(typval_T *argvars, typval_T *rettv) } res = get_cmd_output(get_tv_string(&argvars[0]), infile, - SHELL_SILENT | SHELL_COOKED); + kShellOptSilent | kShellOptCooked); #ifdef USE_CR /* translate <CR> into <NL> */ |