]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Remove the setting of sourceid from bf_vm(), as bf_vm() really has
authorDaniel C. Sobral <dcs@FreeBSD.org>
Wed, 14 Jun 2000 19:37:00 +0000 (19:37 +0000)
committerDaniel C. Sobral <dcs@FreeBSD.org>
Wed, 14 Jun 2000 19:37:00 +0000 (19:37 +0000)
commit18ee60a57616434a5c49b4d75f07f57d63d1db60
tree2cb18e672729b902c3f37a7af0ed82f0340f0679
parent933aec2f75b7a3cbfcede381696c517e22f455d6
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.
sys/boot/common/interp.c
sys/boot/common/interp_forth.c