From 290caf7aef3d12903161ffd82aebc538d6974aba Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sun, 31 May 2026 17:32:06 +0100 Subject: [PATCH] frontend: disable all fx.term includes when interactive mode is disabled --- bshell/debug.c | 5 ++++- bshell/main.c | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/bshell/debug.c b/bshell/debug.c index def314c..eb9181e 100644 --- a/bshell/debug.c +++ b/bshell/debug.c @@ -5,9 +5,12 @@ #include #include #include -#include #include +#if BSHELL_INTERACTIVE == 1 +#include +#endif + #if BSHELL_INTERACTIVE == 1 #define RED "[red]" #define YELLOW "[yellow]" diff --git a/bshell/main.c b/bshell/main.c index 5d26039..483b21f 100644 --- a/bshell/main.c +++ b/bshell/main.c @@ -1,5 +1,4 @@ #include "debug.h" -#include "line-ed/line-ed.h" #include #include @@ -12,6 +11,10 @@ #include #include +#if BSHELL_INTERACTIVE == 1 +#include "line-ed/line-ed.h" +#endif + extern const fx_assembly *bshell_assembly_get(void); extern const fx_assembly *bshell_runtime_assembly_get(void); extern const fx_assembly *bshell_core_assembly_get(void);