summaryrefslogtreecommitdiffstats
path: root/sys/boot/ficl
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1998-11-06 23:22:26 +0000
committerjkh <jkh@FreeBSD.org>1998-11-06 23:22:26 +0000
commit4ab0ef7d7447c3abc0f64545d974e1cc91457094 (patch)
tree4c6a2e219ba54a7b96dbe82b05163f19873f5f1f /sys/boot/ficl
parentd539a87b020432df01445b07b69542daccf0ea16 (diff)
downloadFreeBSD-src-4ab0ef7d7447c3abc0f64545d974e1cc91457094.zip
FreeBSD-src-4ab0ef7d7447c3abc0f64545d974e1cc91457094.tar.gz
Submit better fix to the prompt bug.
Diffstat (limited to 'sys/boot/ficl')
-rw-r--r--sys/boot/ficl/ficl.c2
-rw-r--r--sys/boot/ficl/ficl.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/boot/ficl/ficl.c b/sys/boot/ficl/ficl.c
index 6bf6503..a69500f 100644
--- a/sys/boot/ficl/ficl.c
+++ b/sys/boot/ficl/ficl.c
@@ -221,8 +221,10 @@ int ficlExec(FICL_VM *pVM, char *pText)
break;
case VM_OUTOFTEXT:
+#ifdef TESTMAIN
if ((pVM->state != COMPILE) && (pVM->sourceID.i == 0))
ficlTextOut(pVM, FICL_PROMPT, 0);
+#endif
break;
case VM_USEREXIT:
diff --git a/sys/boot/ficl/ficl.h b/sys/boot/ficl/ficl.h
index 6932119..b961d51 100644
--- a/sys/boot/ficl/ficl.h
+++ b/sys/boot/ficl/ficl.h
@@ -207,10 +207,8 @@ struct ficl_dict;
** the Good Stuff starts here...
*/
#define FICL_VER "2.02"
-#ifdef TESTMAIN
+#ifndef FICL_PROMPT
# define FICL_PROMPT "ok> "
-#else
-# define FICL_PROMPT ""
#endif
/*
OpenPOWER on IntegriCloud