From 2bdbf387261285d07e4b62d1e23c9e43efb14604 Mon Sep 17 00:00:00 2001 From: Ákos Kőrösi Date: Tue, 19 May 2026 21:13:19 +0200 Subject: restructure dir, create makefile --- src/expand.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/expand.h (limited to 'src/expand.h') diff --git a/src/expand.h b/src/expand.h new file mode 100644 index 0000000..b353f39 --- /dev/null +++ b/src/expand.h @@ -0,0 +1,31 @@ +# pragma once + +#include "preproc.h" +#include "utils.h" + +typedef enum { + SLOT_STR, + SLOT_SPEC, + SLOT_PROC_IN, + SLOT_PROC_OUT, +} SlotKind; + +typedef struct { + SlotKind kind; + union { + char* str; + SpecialToken spec; + Region* proc_reg; + } as; +} Slot; + +DECLARE_VEC(Slot, SlotVec) + +typedef struct { + SlotVec cmd_slots; + Connector conn; +} ExpandedPipelineElement; + +DECLARE_VEC(ExpandedPipelineElement, ExpandedPipeline) + +ExpandedPipeline expand_pipeline(Pipeline* pl, ShellState* shstate); -- cgit v1.2.3