Diff for /gforth/ans-report.fs between versions 1.7 and 1.14

version 1.7, 2002/03/22 18:40:00 version 1.14, 2006/12/17 15:38:26
Line 1 Line 1
 \ report words used from the various wordsets  \ report words used from the various wordsets
   
 \ Copyright (C) 1996,1998,1999 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 42 Line 42
 vocabulary ans-report-words ans-report-words definitions  vocabulary ans-report-words ans-report-words definitions
   
 : wordset ( "name" -- )  : wordset ( "name" -- )
     lastxt >body      latestxt >body
     create      create
     0 , \ link to next wordset      0 , \ link to next wordset
     0 0 2, \ array of nfas      0 0 2, \ array of nfas
     ( lastlinkp ) last @ swap ! \ set link ptr of last wordset      ( lastlinkp ) latest swap ! \ set link ptr of last wordset
 ;  ;
   
 wordlist constant wordsets wordsets set-current  wordlist constant wordsets wordsets set-current
 create CORE 0 , 0 0 2,  create CORE 0 , 0 0 2,
 wordset CORE-EXT  wordset CORE-EXT
   wordset CORE-EXT-obsolescent
 wordset BLOCK  wordset BLOCK
 wordset BLOCK-EXT  wordset BLOCK-EXT
 wordset DOUBLE  wordset DOUBLE
Line 72  wordset SEARCH-EXT Line 73  wordset SEARCH-EXT
 wordset STRING  wordset STRING
 wordset TOOLS  wordset TOOLS
 wordset TOOLS-EXT  wordset TOOLS-EXT
   wordset TOOLS-EXT-obsolescent
 wordset non-ANS  wordset non-ANS
 ans-report-words definitions  ans-report-words definitions
   
Line 137  ans-report-words definitions Line 139  ans-report-words definitions
     \    dodefer: over code-address!      \    dodefer: over code-address!
     \    >body ! ;      \    >body ! ;
     dup @ docol: <> -12 and throw \ for colon defs only      dup @ docol: <> -12 and throw \ for colon defs only
     >body ['] branch compile-prim over !      >body ['] branch xt>threaded over !
     cell+ >r >body r@ - 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 167  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

Removed from v.1.7  
changed lines
  Added in v.1.14


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>