[gforth] / gforth / savesys.fs  

gforth: gforth/savesys.fs

Diff for /gforth/savesys.fs between version 1.8 and 1.9

version 1.8, Sun Dec 31 13:39:13 2006 UTC version 1.9, Sat Sep 22 15:11:36 2007 UTC
Line 24 
Line 24 
     addr1 addr2 u move      addr1 addr2 u move
     addr2 u ;      addr2 u ;
   
   : delete-prefix ( c-addr1 u1 c-addr2 u2 -- c-addr3 u3 )
       \ if c-addr2 u2 is a prefix of c-addr1 u1, delete it
       2over 2over string-prefix? if
           nip /string
       else
           2drop
       endif ;
   
 : update-image-included-files ( -- )  : update-image-included-files ( -- )
     included-files 2@ { addr cnt }      included-files 2@ { addr cnt }
     image-included-files 2@ { old-addr old-cnt }      image-included-files 2@ { old-addr old-cnt }
Line 33 
Line 41 
     old-addr new-addr old-cnt 2* cells move      old-addr new-addr old-cnt 2* cells move
     cnt old-cnt      cnt old-cnt
     U+DO      U+DO
         addr i 2* cells + 2@ save-mem-dict          addr i 2* cells + 2@
           s" GFORTHDESTDIR" getenv delete-prefix save-mem-dict
         new-addr i 2* cells + 2!          new-addr i 2* cells + 2!
     LOOP      LOOP
     maxalign ;      maxalign ;


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

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help