aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/PropSet.h
diff options
context:
space:
mode:
authornyamatongwe <unknown>2000-07-07 04:20:28 +0000
committernyamatongwe <unknown>2000-07-07 04:20:28 +0000
commit805754653f16843247b12586cf0156c5551c5d7b (patch)
tree9c9c4d02a7f147de46a7ef7d77bd541ed09a32f0 /include/PropSet.h
parentf07da1975de29f1426bf048d738a7db2eba6a477 (diff)
downloadscintilla-mirror-805754653f16843247b12586cf0156c5551c5d7b.tar.gz
Made PropSet into a hash table.
Diffstat (limited to 'include/PropSet.h')
-rw-r--r--include/PropSet.h11
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();