aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-05 10:03:14 +0000
committer_ov4 <ov4@ov4.org>2026-10-05 10:03:14 +0000
commit6d852035446ff5db6d5d5c0cd1dacf84db1a3709 (patch)
treec303db94c3d4e51873575b1629f070be800be7ae
parentd97297934dd57e033325abaa2d9e41f389b08f75 (diff)
fix enum class
-rw-r--r--include/eval.h5
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);