aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.h
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-03-29 21:34:14 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-31 08:07:47 -0300
commit0d61b1c470466118c601a107d7a17b9edd107c53 (patch)
tree297f39c2206f7cb9c87b07821db08e3f8aea1aad /src/os_unix.h
parent607e1c7ee42cb9bfd66cb84d4fb54060f3b4135b (diff)
downloadrneovim-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/os_unix.h')
-rw-r--r--src/os_unix.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/os_unix.h b/src/os_unix.h
index 48ce4f8e87..6b35d6822b 100644
--- a/src/os_unix.h
+++ b/src/os_unix.h
@@ -1,5 +1,8 @@
#ifndef NEOVIM_OS_UNIX_H
#define NEOVIM_OS_UNIX_H
+
+#include "os/shell.h"
+
/* os_unix.c */
void mch_write(char_u *s, int len);
void mch_startjmp(void);
@@ -42,7 +45,7 @@ int mch_screenmode(char_u *arg);
int mch_get_shellsize(void);
void mch_set_shellsize(void);
void mch_new_shellsize(void);
-int mch_call_shell(char_u *cmd, int options, char_u *extra_shell_arg);
+int mch_call_shell(char_u *cmd, ShellOpts opts, char_u *extra_shell_arg);
int mch_expandpath(garray_T *gap, char_u *path, int flags);
int mch_expand_wildcards(int num_pat, char_u **pat, int *num_file,
char_u ***file,