Diff for /gforth/extend.fs between versions 1.16 and 1.18

version 1.16, 1996/02/13 11:12:17 version 1.18, 1996/09/10 16:08:36
Line 30  decimal Line 30  decimal
   
 \ VALUE 2>R 2R> 2R@                                     17may93jaw  \ VALUE 2>R 2R> 2R@                                     17may93jaw
   
 : value ( w -- ) \ core-ext  : value ( w "name" -- ) \ core-ext
   (constant) , ;    (constant) , ;
 \ !! 2value  \ !! 2value
   
Line 39  decimal Line 39  decimal
   
 ' drop alias d>s ( d -- n ) \ double            d_to_s  ' drop alias d>s ( d -- n ) \ double            d_to_s
   
 : dabs ( d1 -- d2 ) \ double  
     dup 0< IF dnegate THEN ;  
   
 : m*/ ( d1 n2 u3 -- dqout ) \ double m-star-slash  : m*/ ( d1 n2 u3 -- dqout ) \ double m-star-slash
     >r s>d >r abs -rot      >r s>d >r abs -rot
     s>d r> xor r> swap >r >r dabs rot tuck um* 2swap um*      s>d r> xor r> swap >r >r dabs rot tuck um* 2swap um*
Line 125  decimal Line 122  decimal
     REPEAT      REPEAT
     2drop 2drop  rdrop false ;      2drop 2drop  rdrop false ;
   
 \ ROLL                                                  17may93jaw  
   
 : roll  ( x0 x1 .. xn n -- x1 .. xn x0 ) \ core-ext  
   dup 1+ pick >r  
   cells sp@ cell+ dup cell+ rot move drop r> ;  
   
 \ SOURCE-ID SAVE-INPUT RESTORE-INPUT                    11jun93jaw  \ SOURCE-ID SAVE-INPUT RESTORE-INPUT                    11jun93jaw
   
 : source-id ( -- 0 | -1 | fileid ) \ core-ext source-i-d  : source-id ( -- 0 | -1 | fileid ) \ core-ext source-i-d
Line 204  variable span ( -- a-addr ) \ core-ext Line 195  variable span ( -- a-addr ) \ core-ext
         key decode ( maxlen span c-addr pos2 flag )          key decode ( maxlen span c-addr pos2 flag )
         >r 2over = r> or          >r 2over = r> or
     UNTIL      UNTIL
     type-rest drop      2 pick swap /string type
     2drop nip span ! ;      nip span ! ;
   

Removed from v.1.16  
changed lines
  Added in v.1.18


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