summaryrefslogtreecommitdiffstats
path: root/sys/boot/common/interp_forth.c
diff options
context:
space:
mode:
authordcs <dcs@FreeBSD.org>2000-06-14 19:37:00 +0000
committerdcs <dcs@FreeBSD.org>2000-06-14 19:37:00 +0000
commitcb251cf529d74a7b1721edb7f1bf22b19f4c6f7f (patch)
treeaf934eb090c3b69ebadfedd1a7e88e7971d21b70 /sys/boot/common/interp_forth.c
parentce281cb5af1b2e03c9ab0f9655f5b1115637da37 (diff)
downloadFreeBSD-src-cb251cf529d74a7b1721edb7f1bf22b19f4c6f7f.zip
FreeBSD-src-cb251cf529d74a7b1721edb7f1bf22b19f4c6f7f.tar.gz
Remove the setting of sourceid from bf_vm(), as bf_vm() really has
no clue. Set sourceid to 0 when booting, which is the correct setting for stdin. Set sourceid to an arbitrary fd when include'ing, preserving and restoring the previous sourceid. This is possibly broken(), as 0 is a valid fd. Maybe we should +1 to this value. This fixes the version problem widely reported.
Diffstat (limited to 'sys/boot/common/interp_forth.c')
-rw-r--r--sys/boot/common/interp_forth.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/boot/common/interp_forth.c b/sys/boot/common/interp_forth.c
index fa7925a..1cf60c4 100644
--- a/sys/boot/common/interp_forth.c
+++ b/sys/boot/common/interp_forth.c
@@ -273,12 +273,8 @@ int
bf_run(char *line)
{
int result;
- CELL id;
- id = bf_vm->sourceID;
- bf_vm->sourceID.i = -1;
result = ficlExec(bf_vm, line);
- bf_vm->sourceID = id;
DEBUG("ficlExec '%s' = %d", line, result);
switch (result) {
OpenPOWER on IntegriCloud