From 73ff8ba6aadce8afa26aa6f8493c01d9f5d77bcc Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sun, 31 May 2026 17:31:37 +0100 Subject: [PATCH] bshell.runtime: disable all fx.term includes when interactive mode is disabled --- bshell.runtime/format/format.c | 5 ++++- bshell.runtime/format/table.c | 5 ++++- bshell.runtime/runtime/cmdcall.c | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/bshell.runtime/format/format.c b/bshell.runtime/format/format.c index 55a6851..ae56da4 100644 --- a/bshell.runtime/format/format.c +++ b/bshell.runtime/format/format.c @@ -1,8 +1,11 @@ #include -#include #include #include +#if BSHELL_INTERACTIVE == 1 +#include +#endif + static void format_value_fallback(const fx_value *value, fx_stream *dest) { #if BSHELL_INTERACTIVE == 1 diff --git a/bshell.runtime/format/table.c b/bshell.runtime/format/table.c index 359f979..40dee3a 100644 --- a/bshell.runtime/format/table.c +++ b/bshell.runtime/format/table.c @@ -3,9 +3,12 @@ #include #include #include +#include + +#if BSHELL_INTERACTIVE == 1 #include #include -#include +#endif static fx_namemap bshell_tables = FX_NAMEMAP_INIT; diff --git a/bshell.runtime/runtime/cmdcall.c b/bshell.runtime/runtime/cmdcall.c index 80d5abf..3b33f1d 100644 --- a/bshell.runtime/runtime/cmdcall.c +++ b/bshell.runtime/runtime/cmdcall.c @@ -9,9 +9,12 @@ #include #include #include -#include #include +#if BSHELL_INTERACTIVE == 1 +#include +#endif + enum cmdcall_type { CMDCALL_NONE = 0, CMDCALL_CMDLET,