Diff for /gforth/extend.fs between versions 1.15 and 1.19

version 1.15, 1996/02/09 17:34:09 version 1.19, 1997/01/04 16:32:28
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
   
 : 2Literal ( compilation w1 w2 -- ; run-time  -- w1 w2 ) \ double two-literal  : 2Literal ( compilation w1 w2 -- ; run-time  -- w1 w2 ) \ double two-literal
     swap postpone Literal  postpone Literal ; immediate restrict      swap postpone Literal  postpone Literal ; immediate restrict
   
 : dabs ( d1 -- d2 ) \ double  ' drop alias d>s ( d -- n ) \ double            d_to_s
     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
Line 79  decimal Line 78  decimal
 \ UNUSED                                                17may93jaw  \ UNUSED                                                17may93jaw
   
 : unused ( -- u ) \ core-ext  : unused ( -- u ) \ core-ext
     s0 @ 512 -        \ for stack      forthstart dup 3 cells + @ + here - ;
     here - ;  
   
 \ [COMPILE]                                             17may93jaw  \ [COMPILE]                                             17may93jaw
   
Line 95  decimal Line 93  decimal
 \ CONVERT                                               17may93jaw  \ CONVERT                                               17may93jaw
   
 : convert ( ud1 c-addr1 -- ud2 c-addr2 ) \ core-ext  : convert ( ud1 c-addr1 -- ud2 c-addr2 ) \ core-ext
     \ obsolescent; supersedet by @code{>number}.      \ obsolescent; superseded by @code{>number}.
     true >number drop ;      true >number drop ;
   
 \ ERASE                                                 17may93jaw  \ ERASE                                                 17may93jaw
Line 123  decimal Line 121  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 202  variable span ( -- a-addr ) \ core-ext Line 194  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.15  
changed lines
  Added in v.1.19


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