| \ Hashed dictionaries 15jul94py |
\ Hashed dictionaries 15jul94py |
| |
|
| \ Copyright (C) 1995 Free Software Foundation, Inc. |
\ Copyright (C) 1995,1998 Free Software Foundation, Inc. |
| |
|
| \ This file is part of Gforth. |
\ This file is part of Gforth. |
| |
|
| |
|
| : inithash ( wid -- ) |
: inithash ( wid -- ) |
| wordlist-extend |
wordlist-extend |
| insRule @ >r insRule off hash-alloc 3 cells - dup |
insRule @ >r insRule off hash-alloc 3 cells - |
| |
dup wordlist-id |
| BEGIN @ dup WHILE 2dup swap (reveal REPEAT |
BEGIN @ dup WHILE 2dup swap (reveal REPEAT |
| 2drop r> insRule ! ; |
2drop r> insRule ! ; |
| |
|
| has? cross 0= |
has? cross 0= |
| [IF] |
[IF] |
| : make-hash |
: make-hash |
| hashsearch-map forth-wordlist cell+ ! |
hashsearch-map forth-wordlist wordlist-map ! |
| addall ; |
addall ; |
| make-hash \ Baumsuche ist installiert. |
make-hash \ Baumsuche ist installiert. |
| [ELSE] |
[ELSE] |
| hashsearch-map forth-wordlist cell+ ! |
hashsearch-map forth-wordlist wordlist-map ! |
| [THEN] |
[THEN] |
| |
|
| \ for ec version display that vocabulary goes hashed |
\ for ec version display that vocabulary goes hashed |