diff options
author | dcs <dcs@FreeBSD.org> | 1999-02-04 17:13:49 +0000 |
---|---|---|
committer | dcs <dcs@FreeBSD.org> | 1999-02-04 17:13:49 +0000 |
commit | 72ab07e9dba7c0449e325b07698b6102e22b9bb0 (patch) | |
tree | 02728a0a86ac7bf440869bb9360af1ba2b09a073 | |
parent | 755c131c9f9186c9e5988ecd80463ebaf5736541 (diff) | |
download | FreeBSD-src-72ab07e9dba7c0449e325b07698b6102e22b9bb0.zip FreeBSD-src-72ab07e9dba7c0449e325b07698b6102e22b9bb0.tar.gz |
Make FICL_TRACE default.
Add freebsd.fr, for FreeBSD specific forth source. Add $ and %, to
replace the lost @ and - functionality of include. $ has the opposite
behavior of @ though, since the default behavior was inverted.
-rw-r--r-- | sys/boot/ficl/Makefile | 6 | ||||
-rw-r--r-- | sys/boot/ficl/softwords/freebsd.fr | 36 |
2 files changed, 39 insertions, 3 deletions
diff --git a/sys/boot/ficl/Makefile b/sys/boot/ficl/Makefile index 260254e..1bda576 100644 --- a/sys/boot/ficl/Makefile +++ b/sys/boot/ficl/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.6 1998/11/05 08:39:42 jkh Exp $ +# $Id: Makefile,v 1.7 1999/01/18 19:05:26 msmith Exp $ # LIB= ficl NOPROFILE= yes @@ -9,12 +9,12 @@ SRCS= ${BASE_SRCS} softcore.c CLEANFILES= softcore.c testmain # Standard softwords -SOFTWORDS= softcore.fr jhlocal.fr marker.fr +SOFTWORDS= softcore.fr jhlocal.fr marker.fr freebsd.fr # Optional OO extension softwords #SOFTWORDS+= oo.fr classes.fr .PATH: ${.CURDIR}/softwords -CFLAGS+= -I${.CURDIR} +CFLAGS+= -I${.CURDIR} -DFICL_TRACE softcore.c: ${SOFTWORDS} softcore.awk (cd ${.CURDIR}/softwords; cat ${SOFTWORDS} | awk -f softcore.awk) > ${.TARGET} diff --git a/sys/boot/ficl/softwords/freebsd.fr b/sys/boot/ficl/softwords/freebsd.fr new file mode 100644 index 0000000..5cc004d --- /dev/null +++ b/sys/boot/ficl/softwords/freebsd.fr @@ -0,0 +1,36 @@ +\ ** Copyright (c) 1998 Daniel C. Sobral <dcs@freebsd.org> +\ ** All rights reserved. +\ ** +\ ** Redistribution and use in source and binary forms, with or without +\ ** modification, are permitted provided that the following conditions +\ ** are met: +\ ** 1. Redistributions of source code must retain the above copyright +\ ** notice, this list of conditions and the following disclaimer. +\ ** 2. Redistributions in binary form must reproduce the above copyright +\ ** notice, this list of conditions and the following disclaimer in the +\ ** documentation and/or other materials provided with the distribution. +\ ** +\ ** THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND +\ ** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +\ ** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +\ ** ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE +\ ** FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +\ ** DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +\ ** OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +\ ** HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +\ ** LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +\ ** OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +\ ** SUCH DAMAGE. +\ ** +\ ** $Id: freebsd.fr,v 1.1 1999/02/04 16:19:22 root Exp root $ + +\ Words for use in scripts: +\ % ignore errors here +\ $ echo this line + +: tib> source >in @ tuck over >in ! - >r + r> ; +: % tib> ['] evaluate catch drop ; +: $ tib> 2dup type ['] evaluate catch throw ; + +\ ** E N D F R E E B S D . F R + |