diff options
| author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-06-02 11:24:02 -0300 | 
|---|---|---|
| committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-06-02 11:24:02 -0300 | 
| commit | cab8cf970c09ea465d30e11eb356e2e5d37dc544 (patch) | |
| tree | 5d274c892e4d53f5e976ae8f6f58aba030785e02 /src/nvim/os/shell.h | |
| parent | 52a9a5b0b0c53a1481d901f39ed0d1e7e86c3853 (diff) | |
| parent | 4aecb71b0e819aa84a430dacdab2146229c410a5 (diff) | |
| download | rneovim-cab8cf970c09ea465d30e11eb356e2e5d37dc544.tar.gz rneovim-cab8cf970c09ea465d30e11eb356e2e5d37dc544.tar.bz2 rneovim-cab8cf970c09ea465d30e11eb356e2e5d37dc544.zip | |
Merge pull request #710 'Automatically generate declarations'
Diffstat (limited to 'src/nvim/os/shell.h')
| -rw-r--r-- | src/nvim/os/shell.h | 29 | 
1 files changed, 3 insertions, 26 deletions
| diff --git a/src/nvim/os/shell.h b/src/nvim/os/shell.h index 226ef97579..e912baedf8 100644 --- a/src/nvim/os/shell.h +++ b/src/nvim/os/shell.h @@ -2,7 +2,6 @@  #define NVIM_OS_SHELL_H  #include <stdbool.h> -  #include "nvim/types.h"  // Flags for mch_call_shell() second argument @@ -17,29 +16,7 @@ typedef enum {    kShellOptHideMess = 128,  ///< previously a global variable from os_unix.c  } ShellOpts; -/// Builds the argument vector for running the shell configured in `sh` -/// ('shell' option), optionally with a command that will be passed with `shcf` -/// ('shellcmdflag'). -/// -/// @param cmd Command string. If NULL it will run an interactive shell. -/// @param extra_shell_opt Extra argument to the shell. If NULL it is ignored -/// @return A newly allocated argument vector. It must be freed with -///         `shell_free_argv` when no longer needed. -char ** shell_build_argv(char_u *cmd, char_u *extra_shell_arg); - -/// Releases the memory allocated by `shell_build_argv`. -/// -/// @param argv The argument vector. -void shell_free_argv(char **argv); - -/// Calls the user shell for running a command, interactive session or -/// wildcard expansion. It uses the shell set in the `sh` option. -/// -/// @param cmd The command to be executed. If NULL it will run an interactive -///        shell -/// @param opts Various options that control how the shell will work -/// @param extra_shell_arg Extra argument to be passed to the shell -int os_call_shell(char_u *cmd, ShellOpts opts, char_u *extra_shell_arg); - +#ifdef INCLUDE_GENERATED_DECLARATIONS +# include "os/shell.h.generated.h" +#endif  #endif  // NVIM_OS_SHELL_H - | 
