aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/PropSet.h
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2000-07-07 04:20:28 +0000
committernyamatongwe <devnull@localhost>2000-07-07 04:20:28 +0000
commitf7365a9122fbe2ccd580b98a39774fbb752b42c9 (patch)
tree9c9c4d02a7f147de46a7ef7d77bd541ed09a32f0 /include/PropSet.h
parenta31b4dfe2fc7a3ecad0ab504abcfd3b0a8e6b390 (diff)
downloadscintilla-mirror-f7365a9122fbe2ccd580b98a39774fbb752b42c9.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();