[gforth] / gforth / extend.fs  

gforth: gforth/extend.fs

Diff for /gforth/extend.fs between version 1.5 and 1.7

version 1.5, Thu Aug 25 15:25:22 1994 UTC version 1.7, Fri Sep 2 15:23:35 1994 UTC
Line 72 
Line 72 
 : erase ( 0 1 chars um/mod nip )  0 fill ;  : erase ( 0 1 chars um/mod nip )  0 fill ;
 : blank ( 0 1 chars um/mod nip ) bl fill ;  : blank ( 0 1 chars um/mod nip ) bl fill ;
   
   \ SEARCH                                                02sep94py
   
   : search   ( buf buflen text textlen -- restbuf restlen flag )
     2over  2 pick - 1+ 3 pick c@ >r
     BEGIN  r@ scan dup  WHILE
            >r >r  2dup r@ -text
            0= IF  >r drop 2drop r> r> r> rot + 1- rdrop true  EXIT  THEN
            r> r>  1 /string   REPEAT
     2drop 2drop  rdrop false ;
   
 \ ROLL                                                  17may93jaw  \ ROLL                                                  17may93jaw
   
 : roll  dup 1+ pick >r  : roll  dup 1+ pick >r
         cells sp@ 2 cells + dup cell+ rot move drop r> ;          cells sp@ cell+ dup cell+ rot move drop r> ;
   
 \ SOURCE-ID SAVE-INPUT RESTORE-INPUT                    11jun93jaw  \ SOURCE-ID SAVE-INPUT RESTORE-INPUT                    11jun93jaw
   


Generate output suitable for use with a patch program
Legend:
Removed from v.1.5  
changed lines
  Added in v.1.7

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help