loader.4th (262702) | loader.4th (262704) |
---|---|
1\ Copyright (c) 1999 Daniel C. Sobral <dcs@freebsd.org> 2\ All rights reserved. 3\ 4\ Redistribution and use in source and binary forms, with or without 5\ modification, are permitted provided that the following conditions 6\ are met: 7\ 1. Redistributions of source code must retain the above copyright 8\ notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17\ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18\ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19\ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20\ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21\ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22\ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23\ SUCH DAMAGE. 24\ | 1\ Copyright (c) 1999 Daniel C. Sobral <dcs@freebsd.org> 2\ All rights reserved. 3\ 4\ Redistribution and use in source and binary forms, with or without 5\ modification, are permitted provided that the following conditions 6\ are met: 7\ 1. Redistributions of source code must retain the above copyright 8\ notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17\ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18\ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19\ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20\ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21\ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22\ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23\ SUCH DAMAGE. 24\ |
25\ $FreeBSD: stable/10/sys/boot/forth/loader.4th 262702 2014-03-03 07:24:50Z dteske $ | 25\ $FreeBSD: stable/10/sys/boot/forth/loader.4th 262704 2014-03-03 07:31:55Z dteske $ |
26 27s" arch-i386" environment? [if] [if] 28 s" loader_version" environment? [if] 29 11 < [if] 30 .( Loader version 1.1+ required) cr 31 abort 32 [then] 33 [else] --- 194 unchanged lines hidden (view full) --- 228: ? 229 ['] ? execute 230 s" boot-conf" s" load kernel and modules, then autoboot" .? 231 s" read-conf" s" read a configuration file" .? 232 s" enable-module" s" enable loading of a module" .? 233 s" disable-module" s" disable loading of a module" .? 234 s" toggle-module" s" toggle loading of a module" .? 235 s" show-module" s" show module load data" .? | 26 27s" arch-i386" environment? [if] [if] 28 s" loader_version" environment? [if] 29 11 < [if] 30 .( Loader version 1.1+ required) cr 31 abort 32 [then] 33 [else] --- 194 unchanged lines hidden (view full) --- 228: ? 229 ['] ? execute 230 s" boot-conf" s" load kernel and modules, then autoboot" .? 231 s" read-conf" s" read a configuration file" .? 232 s" enable-module" s" enable loading of a module" .? 233 s" disable-module" s" disable loading of a module" .? 234 s" toggle-module" s" toggle loading of a module" .? 235 s" show-module" s" show module load data" .? |
236 s" try-include" s" try to load/interpret files" .? |
|
236; 237 | 237; 238 |
239: try-include ( -- ) \ see loader.4th(8) 240 ['] include ( -- xt ) \ get the execution token of `include' 241 catch ( xt -- exception# | 0 ) if \ failed 242 LF parse ( c -- s-addr/u ) 2drop \ advance >in to EOL (drop data) 243 \ ... prevents words unused by `include' from being interpreted 244 then 245; immediate \ interpret immediately for access to `source' (aka tib) 246 |
|
238only forth also 239 | 247only forth also 248 |