[gforth] / gforth / kernel / paths.fs  

gforth: gforth/kernel/paths.fs

Diff for /gforth/kernel/paths.fs between version 1.3 and 1.4

version 1.3, Sat May 2 21:29:09 1998 UTC version 1.4, Sun May 31 19:29:33 1998 UTC
Line 26 
Line 26 
                         seperator is |                          seperator is |
 .fpath                  displays the search path  .fpath                  displays the search path
 remark I:  remark I:
 a ~+ in the beginning of filename is expanded to the directory the  a ./ in the beginning of filename is expanded to the directory the
 current file comes from. ~+ can also be included in the search-path!  current file comes from. ./ can also be included in the search-path!
   ~+/ loads from the current directory
   
 remark II:  remark II:
 if there is no sufficient space for the search path increase it!  if there is no sufficient space for the search path increase it!
Line 142 
Line 143 
         2dup + c@ pathsep? IF EXIT THEN          2dup + c@ pathsep? IF EXIT THEN
   REPEAT ;    REPEAT ;
   
   : remove~+ ( -- )
       ofile count 3 min s" ~+/" compare 0=
       IF
           ofile count 3 /string ofile place
       THEN ;
   
 : expandtopic  : expandtopic
   ofile count 2 min s" ~+" compare 0=    ofile count 2 min s" ./" compare 0=
   IF    ofile count 2 /string tfile place    IF    ofile count 1 /string tfile place
         0 ofile c! sourcefilename extractpath ofile place need/          0 ofile c! sourcefilename extractpath ofile place need/
         tfile count over c@ pathsep? IF 1 /string THEN          tfile count over c@ pathsep? IF 1 /string THEN
         ofile +place          ofile +place
Line 187 
Line 194 
   drop r> tuck - ;    drop r> tuck - ;
   
 : reworkdir  : reworkdir
   expandtopic    remove~+
   ofile count compact// compact..    ofile count compact// compact..
   nip ofile c! ;    nip ofile c! ;
   
Line 204 
Line 211 
   >r    >r
   2dup absolut-path?    2dup absolut-path?
   IF    rdrop    IF    rdrop
         ofile place reworkdir ofile count r/o open-file          ofile place expandtopic reworkdir ofile count r/o open-file
         dup 0= IF >r ofile count r> THEN EXIT          dup 0= IF >r ofile count r> THEN EXIT
   ELSE  r> path>counted    ELSE  r> path>counted
         BEGIN  next-path dup          BEGIN  next-path dup


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

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help