diff options
| author | nyamatongwe <unknown> | 2000-07-07 04:20:28 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2000-07-07 04:20:28 +0000 | 
| commit | 805754653f16843247b12586cf0156c5551c5d7b (patch) | |
| tree | 9c9c4d02a7f147de46a7ef7d77bd541ed09a32f0 /include/PropSet.h | |
| parent | f07da1975de29f1426bf048d738a7db2eba6a477 (diff) | |
| download | scintilla-mirror-805754653f16843247b12586cf0156c5551c5d7b.tar.gz | |
Made PropSet into a hash table.
Diffstat (limited to 'include/PropSet.h')
| -rw-r--r-- | include/PropSet.h | 11 | 
1 files changed, 4 insertions, 7 deletions
| diff --git a/include/PropSet.h b/include/PropSet.h index ed580ee96..16b460ed8 100644 --- a/include/PropSet.h +++ b/include/PropSet.h @@ -107,21 +107,18 @@ public:  	}  }; -unsigned int HashString(const char *s); -  struct Property {      unsigned int hash;  	char *key;      char *val; -    Property() : hash(0), key(0), val(0) {} +    Property *next; +    Property() : hash(0), key(0), val(0), next(0) {}  };  class PropSet {  private: -    Property *properties; -	int size; -	int used; -	void EnsureCanAddEntry(); +    enum { hashRoots=31 }; +    Property *props[hashRoots];  public:  	PropSet *superPS;  	PropSet(); | 
