bshell.runtime: disable all fx.term includes when interactive mode is disabled
This commit is contained in:
@@ -1,8 +1,11 @@
|
|||||||
#include <bshell/format.h>
|
#include <bshell/format.h>
|
||||||
#include <fx/term/print.h>
|
|
||||||
#include <fx/type.h>
|
#include <fx/type.h>
|
||||||
#include <fx/value-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)
|
static void format_value_fallback(const fx_value *value, fx_stream *dest)
|
||||||
{
|
{
|
||||||
#if BSHELL_INTERACTIVE == 1
|
#if BSHELL_INTERACTIVE == 1
|
||||||
|
|||||||
@@ -3,9 +3,12 @@
|
|||||||
#include <fx/iterator.h>
|
#include <fx/iterator.h>
|
||||||
#include <fx/reflection/type.h>
|
#include <fx/reflection/type.h>
|
||||||
#include <fx/stringstream.h>
|
#include <fx/stringstream.h>
|
||||||
|
#include <fx/value.h>
|
||||||
|
|
||||||
|
#if BSHELL_INTERACTIVE == 1
|
||||||
#include <fx/term/print.h>
|
#include <fx/term/print.h>
|
||||||
#include <fx/term/tty.h>
|
#include <fx/term/tty.h>
|
||||||
#include <fx/value.h>
|
#endif
|
||||||
|
|
||||||
static fx_namemap bshell_tables = FX_NAMEMAP_INIT;
|
static fx_namemap bshell_tables = FX_NAMEMAP_INIT;
|
||||||
|
|
||||||
|
|||||||
@@ -9,9 +9,12 @@
|
|||||||
#include <fx/reflection/function.h>
|
#include <fx/reflection/function.h>
|
||||||
#include <fx/reflection/type.h>
|
#include <fx/reflection/type.h>
|
||||||
#include <fx/string.h>
|
#include <fx/string.h>
|
||||||
#include <fx/term/print.h>
|
|
||||||
#include <fx/vector.h>
|
#include <fx/vector.h>
|
||||||
|
|
||||||
|
#if BSHELL_INTERACTIVE == 1
|
||||||
|
#include <fx/term/print.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
enum cmdcall_type {
|
enum cmdcall_type {
|
||||||
CMDCALL_NONE = 0,
|
CMDCALL_NONE = 0,
|
||||||
CMDCALL_CMDLET,
|
CMDCALL_CMDLET,
|
||||||
|
|||||||
Reference in New Issue
Block a user