summaryrefslogtreecommitdiff
path: root/src/htscore.h
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2013-06-23 19:40:47 +0000
committerXavier Roche <xroche@users.noreply.github.com>2013-06-23 19:40:47 +0000
commit0817df2fb67e3a2be95b311c4c2d42d2a1e1bc41 (patch)
tree25123b396b822a7c2219eb3456eef3dfd9a6462a /src/htscore.h
parentf42a5fa5dd4b5b8b91b66e7b47602be12aa298b2 (diff)
Trashed historical link heap hashtable, and replaced it by cleaner code using new cuckoo hashtables
I can not believe I kept such a terible and frightening code for such a long time, geez.
Diffstat (limited to 'src/htscore.h')
-rw-r--r--src/htscore.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/htscore.h b/src/htscore.h
index d718dfe..2c7a30b 100644
--- a/src/htscore.h
+++ b/src/htscore.h
@@ -261,9 +261,14 @@ struct cache_back {
typedef struct hash_struct hash_struct;
#endif
struct hash_struct {
- lien_url **liens; // pointeur sur liens
- int max_lien; // indice le plus grand rencontré
- int hash[3][HTS_HASH_SIZE]; // tables pour sav/adr-fil/former_adr-former_fil
+ /* Links big array reference */
+ const lien_url **liens;
+ /* Savename (case insensitive ; lowercased) */
+ inthash sav;
+ /* Address and path */
+ inthash adrfil;
+ /* Former address and path */
+ inthash former_adrfil;
};
#ifndef HTS_DEF_FWSTRUCT_filecreate_params