freebsd-skq/sys/boot/ficl/softwords/fileaccess.fr
Daniel C. Sobral be88b71603 Upgrade to FICL version 3.02. Anything wrong is my fault, everything right is
due Jon Mini.

PR:		36308
Submitted by:	Jon Mini <mini@haikugeek.com>
MFC after:	4 weeks
2002-04-09 17:45:28 +00:00

27 lines
389 B
Forth

\ #if FICL_WANT_FILE
\ **
\ ** File Access words for ficl
\ ** submitted by Larry Hastings, larry@hastings.org
\ **
\
\ $FreeBSD$
: r/o 1 ;
: r/w 3 ;
: w/o 2 ;
: bin 8 or ;
: included
r/o bin open-file 0= if
locals| f | end-locals
f include-file
f close-file drop
else
drop
endif
;
: include parse-word included ; immediate
\ #endif