version 1.11, 2003/03/22 10:04:06
|
version 1.13, 2005/12/31 15:46:07
|
Line 1
|
Line 1
|
\ report words used from the various wordsets |
\ report words used from the various wordsets |
|
|
\ Copyright (C) 1996,1998,1999,2003 Free Software Foundation, Inc. |
\ Copyright (C) 1996,1998,1999,2003,2005 Free Software Foundation, Inc. |
|
|
\ This file is part of Gforth. |
\ This file is part of Gforth. |
|
|
Line 140 ans-report-words definitions
|
Line 140 ans-report-words definitions
|
>body ['] branch xt>threaded over ! |
>body ['] branch xt>threaded over ! |
cell+ >r >body r> ! ; |
cell+ >r >body r> ! ; |
|
|
|
: print-names ( endaddr startaddr -- ) |
|
space 1 -rot |
|
u+do ( pos ) |
|
i @ name>string nip 1+ { len } |
|
len + ( newpos ) |
|
dup cols 4 - >= if |
|
cr space drop len 1+ |
|
endif |
|
i @ .name |
|
cell +loop |
|
drop ; |
|
|
forth definitions |
forth definitions |
ans-report-words |
ans-report-words |
|
|
Line 153 ans-report-words
|
Line 165 ans-report-words
|
dup >r name>int >body dup @ swap cell+ 2@ dup |
dup >r name>int >body dup @ swap cell+ 2@ dup |
if |
if |
." from " r@ .name ." :" cr |
." from " r@ .name ." :" cr |
bounds |
bounds print-names cr |
u+do |
|
i @ .name |
|
cell |
|
+loop |
|
cr |
|
else |
else |
2drop |
2drop |
endif |
endif |