--- gforth/look.fs 2002/09/14 10:59:31 1.17 +++ gforth/look.fs 2003/01/02 21:40:22 1.21 @@ -35,20 +35,27 @@ decimal \ rename to discover!!! +: xt>threaded ( xt -- x ) +\G produces the threaded-code cell for the primitive xt + threading-method 0= if + @ + then ; + : (look) ( xt startlfa -- lfa flag ) - false swap + swap + [IFDEF] decompile-prim + decompile-prim + [THEN] + >r false swap BEGIN @ dup WHILE - dup name>int - threading-method 0= if - @ - then - 3 pick = IF + dup name>int xt>threaded + r@ = IF nip dup THEN REPEAT - drop nip + drop rdrop dup 0<> ;