[gforth] / gforth / history.fs  

gforth: gforth/history.fs

Diff for /gforth/history.fs between version 1.14 and 1.15

version 1.14, Tue Mar 4 22:09:53 1997 UTC version 1.15, Mon Sep 1 23:07:07 1997 UTC
Line 71 
Line 71 
   history file-size throw    history file-size throw
   2dup forward^ 2! 2dup backward^ 2! end^ 2! ;    2dup forward^ 2! 2dup backward^ 2! end^ 2! ;
   
 s" GFORTHHIST" getenv dup 0= [IF]  s" os-class" environment? [IF] s" unix" compare 0= [ELSE] true [THEN]
     2drop s" ~/.gforth-history"  [IF]
 [THEN] get-history  
   
 : history-cold  : history-cold
     Defers 'cold  
     s" GFORTHHIST" getenv dup 0= IF      s" GFORTHHIST" getenv dup 0= IF
         2drop s" ~/.gforth-history"          2drop s" ~/.gforth-history"
     THEN  get-history ;      THEN  get-history ;
   [ELSE]
   
   : history-dir
     s" TMP" getenv ?dup ?EXIT drop
     s" TEMP" getenv ?dup ?EXIT drop
     s" c:/" ;
   
   : history-file
     s" GFORTHHIST" getenv ?dup ?EXIT
     drop
     history-dir pad place
     s" /ghist.txt" pad +place pad count ;
   
   : history-cold
           history-file
           get-history ;
   [THEN]
   
 ' history-cold IS 'cold  ' history-cold INIT8 chained
   history-cold
   
 \ moving in history file                               16oct94py  \ moving in history file                               16oct94py
   


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

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help