From 732910ad461ae94a876d9e661922717553181b07 Mon Sep 17 00:00:00 2001 From: Ákos Kőrösi Date: Sat, 23 May 2026 22:30:30 +0200 Subject: refactor more for Channels --- src/syntax.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/syntax.h') diff --git a/src/syntax.h b/src/syntax.h index 07d5437..02e3145 100644 --- a/src/syntax.h +++ b/src/syntax.h @@ -201,10 +201,11 @@ typedef struct { static const Channel STDIN_CHA = {.fd = STDIN_FILENO, .parent_proc_closable = false, .child_proc_closable = false}; static const Channel STDOUT_CHA = {.fd = STDOUT_FILENO, .parent_proc_closable = false, .child_proc_closable = false}; +DECLARE_VEC(Channel, ChannelVec) + typedef struct { char** args; FdRedirectVec redirects; Channel read_cha, write_cha; - IntVec parent_open_fds; - IntVec child_open_fds; + ChannelVec other_open_channels; } ExecutableCommand; -- cgit v1.2.3