frontend: disable all fx.term includes when interactive mode is disabled
This commit is contained in:
+4
-1
@@ -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
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user