summaryrefslogtreecommitdiff
path: root/libhashtable/libhashtable.h
diff options
context:
space:
mode:
Diffstat (limited to 'libhashtable/libhashtable.h')
-rw-r--r--libhashtable/libhashtable.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/libhashtable/libhashtable.h b/libhashtable/libhashtable.h
deleted file mode 100644
index 7899124..0000000
--- a/libhashtable/libhashtable.h
+++ /dev/null
@@ -1,23 +0,0 @@
-struct entry {//linked list node.
- char *original;
- char *target;
- struct entry *prev;// doubly linked list. why?
- struct entry *next;
-};
-
-struct hitem {//dunno why I don't just have this as a linked list.
- struct entry *ll;
-};
-
-struct hashtable {
- int kl;//number of keys in the table
- struct hitem **bucket;
- int *keys;
-};
-unsigned short hash(char *v);//maybe use a seeded rand()? :) Thanks FreeArtMan
-void inittable(struct hashtable *ht);
-int ht_setkey(struct hashtable *ht,char *key,char *value);
-struct entry *ll_getentry(struct entry *start,char *msg);
-struct entry *ht_getentry(struct hashtable *ht,char *key);
-struct entry *ht_getnode(struct hashtable *ht,char *msg);
-char *ht_getvalue(struct hashtable *ht,char *msg);