From 6d852035446ff5db6d5d5c0cd1dacf84db1a3709 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Mon, 5 Oct 2026 10:03:14 +0000 Subject: fix enum class --- include/eval.h | 5 +++-- 1 file 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); -- cgit v1.3.1-4-g156e