[gforth] / gforth / history.fs  

gforth: gforth/history.fs

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

version 1.4, Tue Nov 15 15:55:37 1994 UTC version 1.5, Sun Apr 30 23:18:21 1995 UTC
Line 7 
Line 7 
 2Variable end^  2Variable end^
   
 : get-history ( addr len -- wid )  : get-history ( addr len -- wid )
     check-file-prefix drop
   2dup r/w open-file 0<    2dup r/w open-file 0<
   IF  drop r/w create-file throw  ELSE  nip nip  THEN    IF  drop r/w create-file throw  ELSE  nip nip  THEN
   to history    to history
   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" gforth.history" get-history  s" ~/gforth.history" get-history
   
 : history-cold  Defers 'cold  : history-cold  Defers 'cold
   s" gforth.history" get-history ;    s" ~/gforth.history" get-history ;
   
 ' history-cold IS 'cold  ' history-cold IS 'cold
   


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