frontend: disable all fx.term includes when interactive mode is disabled

This commit is contained in:
2026-05-31 17:32:06 +01:00
parent 73ff8ba6aa
commit 290caf7aef
2 changed files with 8 additions and 2 deletions
+4 -1
View File
@@ -5,9 +5,12 @@
#include <bshell/runtime/opcode.h> #include <bshell/runtime/opcode.h>
#include <bshell/runtime/script-block.h> #include <bshell/runtime/script-block.h>
#include <fx/string.h> #include <fx/string.h>
#include <fx/term/print.h>
#include <stdio.h> #include <stdio.h>
#if BSHELL_INTERACTIVE == 1
#include <fx/term/print.h>
#endif
#if BSHELL_INTERACTIVE == 1 #if BSHELL_INTERACTIVE == 1
#define RED "[red]" #define RED "[red]"
#define YELLOW "[yellow]" #define YELLOW "[yellow]"
+4 -1
View File
@@ -1,5 +1,4 @@
#include "debug.h" #include "debug.h"
#include "line-ed/line-ed.h"
#include <bshell/ast.h> #include <bshell/ast.h>
#include <bshell/compile.h> #include <bshell/compile.h>
@@ -12,6 +11,10 @@
#include <bshell/verb.h> #include <bshell/verb.h>
#include <stdio.h> #include <stdio.h>
#if BSHELL_INTERACTIVE == 1
#include "line-ed/line-ed.h"
#endif
extern const fx_assembly *bshell_assembly_get(void); extern const fx_assembly *bshell_assembly_get(void);
extern const fx_assembly *bshell_runtime_assembly_get(void); extern const fx_assembly *bshell_runtime_assembly_get(void);
extern const fx_assembly *bshell_core_assembly_get(void); extern const fx_assembly *bshell_core_assembly_get(void);