diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/eval.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/eval.h b/include/eval.h index c93d346..5ccecf4 100644 --- a/include/eval.h +++ b/include/eval.h @@ -14,9 +14,10 @@ struct T_pipe WRITE_PIPE, READ_PIPE, }; - T_pipe_type pipe_type = NOT_PIPE; + T_pipe_type pipe_type =T_pipe_type::NOT_PIPE; int fd = -1; -} T_pipe_not_pipe; +}; +inline T_pipe T_pipe_not_pipe; int eval_exe(const std::string &s, bool is_async); int eval_exe(const std::string &s, bool is_async, const T_lexer *lexer_instance, size_t i, const T_pipe &pi = T_pipe_not_pipe); |
