Diff for /gforth/history.fs between versions 1.13 and 1.14

version 1.13, 1996/09/30 13:16:11 version 1.14, 1997/03/04 22:09:53
Line 66  interpret/compile: ctrl  ( "<char>" -- c Line 66  interpret/compile: ctrl  ( "<char>" -- c
   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 ;
   
 : get-history ( addr len -- wid )  : get-history ( addr len -- )
   force-open to history    force-open 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" GFORTHHIST" getenv dup 0= [IF]
       2drop s" ~/.gforth-history"
   [THEN] get-history
   
 : history-cold  : history-cold
     Defers 'cold      Defers 'cold
     s" ~/.gforth-history" get-history ;      s" GFORTHHIST" getenv dup 0= IF
           2drop s" ~/.gforth-history"
       THEN  get-history ;
   
 ' history-cold IS 'cold  ' history-cold IS 'cold
   

Removed from v.1.13  
changed lines
  Added in v.1.14


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>