--- gforth/stuff.fs 2004/08/27 15:53:50 1.36 +++ gforth/stuff.fs 2004/12/31 13:23:58 1.41 @@ -1,6 +1,6 @@ \ miscelleneous words -\ Copyright (C) 1996,1997,1998,2000,2003 Free Software Foundation, Inc. +\ Copyright (C) 1996,1997,1998,2000,2003,2004 Free Software Foundation, Inc. \ This file is part of Gforth. @@ -286,3 +286,31 @@ AUser CSP \G followed by a list of the items; TOS is the right-most item. ." <" fdepth 0 .r ." > " fdepth 0 max maxdepth-.s @ min dup 0 ?DO dup i - 1- floats fp@ + f@ 16 5 11 f.rdp space LOOP drop ; + +\ defer stuff + +[ifundef] defer@ : defer@ >body @ ; [then] + +:noname ' defer@ ; +:noname postpone ['] postpone defer@ ; +interpret/compile: action-of ( interpretation "name" -- xt; compilation "name" -- ; run-time -- xt ) \ gforth +\G @i{Xt} is the XT that is currently assigned to @i{name}. + +' action-of +comp' action-of drop +interpret/compile: what's ( interpretation "name" -- xt; compilation "name" -- ; run-time -- xt ) \ gforth-obsolete +\G Old name of @code{action-of} + + +: typewhite ( addr n -- ) \ gforth +\G Like type, but white space is printed instead of the characters. + \ bounds u+do + 0 max bounds ?do + i c@ #tab = if \ check for tab + #tab + else + bl + then + emit + loop ; +