summaryrefslogtreecommitdiffstats
path: root/sys/boot/ficl
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>1998-11-06 03:47:08 +0000
committermsmith <msmith@FreeBSD.org>1998-11-06 03:47:08 +0000
commitf224c679079f44d2e8508a5a610e9721d946d53a (patch)
tree76a8f87f0b473151779e8e08fba997da686b8a39 /sys/boot/ficl
parent8602321e78d6bbdd78dda945691d51b45d7d8293 (diff)
downloadFreeBSD-src-f224c679079f44d2e8508a5a610e9721d946d53a.zip
FreeBSD-src-f224c679079f44d2e8508a5a610e9721d946d53a.tar.gz
Don't not print the prompt string; not doing this has funny side-effects.
Make the prompt an empty string instead.
Diffstat (limited to 'sys/boot/ficl')
-rw-r--r--sys/boot/ficl/ficl.c2
-rw-r--r--sys/boot/ficl/ficl.h8
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/boot/ficl/ficl.c b/sys/boot/ficl/ficl.c
index 7322b81..6bf6503 100644
--- a/sys/boot/ficl/ficl.c
+++ b/sys/boot/ficl/ficl.c
@@ -220,12 +220,10 @@ int ficlExec(FICL_VM *pVM, char *pText)
except = VM_OUTOFTEXT;
break;
-#ifdef TESTMAIN
case VM_OUTOFTEXT:
if ((pVM->state != COMPILE) && (pVM->sourceID.i == 0))
ficlTextOut(pVM, FICL_PROMPT, 0);
break;
-#endif
case VM_USEREXIT:
break;
diff --git a/sys/boot/ficl/ficl.h b/sys/boot/ficl/ficl.h
index 9fcce10..6932119 100644
--- a/sys/boot/ficl/ficl.h
+++ b/sys/boot/ficl/ficl.h
@@ -206,8 +206,12 @@ struct ficl_dict;
/*
** the Good Stuff starts here...
*/
-#define FICL_VER "2.02"
-#define FICL_PROMPT "ok> "
+#define FICL_VER "2.02"
+#ifdef TESTMAIN
+# define FICL_PROMPT "ok> "
+#else
+# define FICL_PROMPT ""
+#endif
/*
** ANS Forth requires false to be zero, and true to be the ones
OpenPOWER on IntegriCloud