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

This commit is contained in:
2026-05-31 17:31:37 +01:00
parent ee6fdfbc48
commit 73ff8ba6aa
3 changed files with 12 additions and 3 deletions
+4 -1
View File
@@ -1,8 +1,11 @@
#include <bshell/format.h>
#include <fx/term/print.h>
#include <fx/type.h>
#include <fx/value-type.h>
#if BSHELL_INTERACTIVE == 1
#include <fx/term/print.h>
#endif
static void format_value_fallback(const fx_value *value, fx_stream *dest)
{
#if BSHELL_INTERACTIVE == 1
+4 -1
View File
@@ -3,9 +3,12 @@
#include <fx/iterator.h>
#include <fx/reflection/type.h>
#include <fx/stringstream.h>
#include <fx/value.h>
#if BSHELL_INTERACTIVE == 1
#include <fx/term/print.h>
#include <fx/term/tty.h>
#include <fx/value.h>
#endif
static fx_namemap bshell_tables = FX_NAMEMAP_INIT;
+4 -1
View File
@@ -9,9 +9,12 @@
#include <fx/reflection/function.h>
#include <fx/reflection/type.h>
#include <fx/string.h>
#include <fx/term/print.h>
#include <fx/vector.h>
#if BSHELL_INTERACTIVE == 1
#include <fx/term/print.h>
#endif
enum cmdcall_type {
CMDCALL_NONE = 0,
CMDCALL_CMDLET,