Disable mixing of DMA and FIFO messages in the Solaris ESP kernel module.
[openbios.git] / forth / lib / creation.fs
blobc3d0db84c63212d84a8ab434f349fe98c7928d5b
1 \ tag: misc useful functions
2 \
3 \ C bindings
4 \
5 \ Copyright (C) 2003, 2004 Samuel Rydh
6 \
7 \ See the file "COPYING" for further information about
8 \ the copyright and warranty status of this work.
9 \
11 \ return xt of the word just defined
12 : last-xt ( -- xt )
13 latest @ na1+
16 \ -------------------------------------------------------------------------
17 \ word creation
18 \ -------------------------------------------------------------------------
20 : $is-ibuf ( size name name-len -- xt )
21 instance $buffer: drop
22 last-xt
25 : is-ibuf ( size -- xt )
26 0 0 $is-ibuf
29 : is-ivariable ( size name len -- xt )
30 4 -rot instance $buffer: drop
31 last-xt
34 : is-xt-func ( xt|0 wordstr len )
35 header 1 ,
36 ?dup if , then
37 ['] (semis) , reveal
40 : is-2xt-func ( xt1 xt2 wordstr len )
41 header 1 ,
42 swap , ,
43 ['] (semis) , reveal
46 : is-func-begin ( wordstr len )
47 header 1 ,
50 : is-func-end ( wordstr len )
51 ['] (semis) , reveal