[gforth] / gforth / hash.fs  

gforth: gforth/hash.fs

Diff for /gforth/hash.fs between version 1.15 and 1.16

version 1.15, Tue Jul 16 20:57:10 1996 UTC version 1.16, Sun Oct 20 20:35:24 1996 UTC
Line 111 
Line 111 
   
 : (initvoc) ( addr -- )  : (initvoc) ( addr -- )
     cell+ dup @  0< IF  drop EXIT  THEN      cell+ dup @  0< IF  drop EXIT  THEN
     insRule @ >r  insRule off  hash-alloc      dup 2 cells - @ hashsearch-map <> IF  drop EXIT  THEN
     3 cells - hashsearch-map over cell+ ! dup      insRule @ >r  insRule off  hash-alloc 3 cells - dup
     BEGIN  @ dup  WHILE  2dup swap (reveal  REPEAT      BEGIN  @ dup  WHILE  2dup swap (reveal  REPEAT
     2drop  r> insRule ! ;      2drop  r> insRule ! ;
   
 ' (initvoc) ' 'initvoc >body !  ' (initvoc) IS 'initvoc
   
 \ Hash-Find                                            01jan93py  \ Hash-Find                                            01jan93py
   
   : make-hash
     Root   hashsearch-map context @ cell+ !
     Forth  hashsearch-map context @ cell+ !
 addall          \ Baum aufbauen  addall          \ Baum aufbauen
 \ Baumsuche ist installiert.  ;
   
   make-hash  \ Baumsuche ist installiert.
   
 : hash-cold  ( -- ) Defers 'cold  : hash-cold  ( -- ) Defers 'cold
   HashPointer off  0 TO HashTable  HashIndex off    HashPointer off  0 TO HashTable  HashIndex off


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

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help