diff options
author | dcs <dcs@FreeBSD.org> | 2000-06-14 19:37:00 +0000 |
---|---|---|
committer | dcs <dcs@FreeBSD.org> | 2000-06-14 19:37:00 +0000 |
commit | cb251cf529d74a7b1721edb7f1bf22b19f4c6f7f (patch) | |
tree | af934eb090c3b69ebadfedd1a7e88e7971d21b70 /sys/boot/common/interp_forth.c | |
parent | ce281cb5af1b2e03c9ab0f9655f5b1115637da37 (diff) | |
download | FreeBSD-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.c | 4 |
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) { |