summaryrefslogtreecommitdiff
path: root/usr/src/common/ficl/softcore/fileaccess.fr
blob: 2c192ad6e5aba6c35d379bd9ddb5be2a21feab4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
S" FICL_WANT_FILE" ENVIRONMENT? drop [if]
\ **
\ ** File Access words for ficl
\ ** submitted by Larry Hastings, larry@hastings.org
\ **

: r/o 1 ;
: r/w 3 ;
: w/o 2 ;
: bin 8 or ;

: included
    r/o bin open-file 0= if
        include-file
    else
        drop
    endif
    ;

: include parse-word included ;

[endif]