Diff for /gforth/hash.fs between versions 1.7 and 1.8

version 1.7, 1994/12/21 14:26:24 version 1.8, 1995/01/19 19:43:46
Line 29  Variable HashIndex Line 29  Variable HashIndex
   
   
 : hash-find ( addr len wordlist -- nfa / false )  : hash-find ( addr len wordlist -- nfa / false )
     $C + @ >r      [ 3 cells ] Literal + @ >r
     2dup hash r> xor cells HashTable @ + @ (hashfind) ;      2dup hash r> xor cells HashTable @ + @ (hashfind) ;
   
 \ hash vocabularies                                    16jul94py  \ hash vocabularies                                    16jul94py
Line 37  Variable HashIndex Line 37  Variable HashIndex
 : lastlink! ( addr link -- )  : lastlink! ( addr link -- )
   BEGIN  dup @ dup  WHILE  nip  REPEAT  drop ! ;    BEGIN  dup @ dup  WHILE  nip  REPEAT  drop ! ;
   
 : (reveal ( addr voc -- )  $C + dup @ 0< IF  2drop EXIT  THEN  : (reveal ( addr voc -- )  [ 3 cells ] Literal + dup @ 0< IF  2drop EXIT  THEN
   @ over cell+ count $1F and Hash xor cells >r    @ over cell+ count $1F and Hash xor cells >r
   HashPointer 8 $400 NewFix    HashPointer 2 Cells $400 NewFix
   tuck cell+ ! r> HashTable @ + insRule @    tuck cell+ ! r> HashTable @ + insRule @
   IF  dup @ 2 pick ! !  ELSE  lastlink!  THEN  revealed on ;    IF  dup @ 2 pick ! !  ELSE  lastlink!  THEN  revealed on ;
   

Removed from v.1.7  
changed lines
  Added in v.1.8


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