[gforth] / gforth / fixpath.fs  

gforth: gforth/fixpath.fs

Diff for /gforth/fixpath.fs between version 1.4 and 1.5

version 1.4, Sun Mar 23 21:11:01 2003 UTC version 1.5, Sun Aug 24 22:58:54 2003 UTC
Line 20 
Line 20 
   
 ." Fixing " 3 arg type ."  with " 2 arg type cr  ." Fixing " 3 arg type ."  with " 2 arg type cr
   
 $7410 Constant gforth.exe  $CCE0 Constant gforth.exe
 $68D0 Constant gforth-fast.exe  $C4F0 Constant gforth-fast.exe
 $81E0 Constant gforth-ditc.exe  $89F0 Constant gforth-ditc.exe
 $81E0 Constant gforth-itc.exe  $6BF0 Constant gforth-itc.exe
   $6880 Constant gforth-prof.exe
   
 include string.fs  include string.fs
   
Line 32 
Line 33 
 Variable exe$  Variable exe$
   
 pathes$ 1 1 $del  pathes$ 1 1 $del
 s" //" pathes$ 0 $ins  s" /cygdrive/" pathes$ 0 $ins
 : fixpathes ( addr u -- )  : fixpathes ( addr u -- )
   bounds ?DO  I c@ '\ = IF  '/ I c!  THEN  LOOP ;    bounds ?DO  I c@ '\ = IF  '/ I c!  THEN  LOOP ;
 pathes$ $@ fixpathes  pathes$ $@ fixpathes
 s" .:" pathes$ 0 $ins  s" .;" pathes$ 0 $ins
   
 : fix-exe ( offset addr u -- )  : fix-exe ( offset addr u -- )
   path$ $@ exe$ $! s" \" exe$ $+! exe$ $+!    path$ $@ exe$ $! s" \" exe$ $+! exe$ $+!


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

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help