diff options
author | epochqwert <epoch@hacking.allowed.org> | 2015-04-30 13:39:15 -0500 |
---|---|---|
committer | epochqwert <epoch@hacking.allowed.org> | 2015-04-30 13:39:15 -0500 |
commit | 8a679c4ce561110321504d6149888e8868a1b249 (patch) | |
tree | 5283cf47eb8c2f3cce2346ab9ee845e3e38dca11 /libhashtable.c | |
parent | 8248b0d0feb145ec1c2a28dee5af44c4d7a25690 (diff) | |
download | libhashtable-8a679c4ce561110321504d6149888e8868a1b249.tar.gz libhashtable-8a679c4ce561110321504d6149888e8868a1b249.zip |
made genheader.sh not use static sizes for grepping out the structs.
Diffstat (limited to 'libhashtable.c')
-rw-r--r-- | libhashtable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libhashtable.c b/libhashtable.c index 9eb0ed4..e838433 100644 --- a/libhashtable.c +++ b/libhashtable.c @@ -3,7 +3,7 @@ #include <string.h> #include "hashtable.h" -/* +/* _A_ struct entry {//linked list node. char *original; void *target; @@ -20,7 +20,7 @@ struct hashtable { struct hitem **bucket; int *keys; }; -*/ + _B_ */ unsigned short hash(char *key) {//maybe use a seeded rand()? :) Thanks FreeArtMan return (strlen(key)<<8)+(key[0]<<4)+key[1]; |