diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2014-06-14 10:05:44 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2014-06-14 10:05:44 +0000 |
commit | 7a1e4b826522ee6a12928a813b31ccb41f247d43 (patch) | |
tree | 94ff7504cebb2d33416be9eb9212b7a5175575cd /src/htsindex.c | |
parent | 6c2120e0535ed51963229ca60438226fd3c3d8b9 (diff) |
Renamed inthash_* API to coucal_* one.
Diffstat (limited to 'src/htsindex.c')
-rw-r--r-- | src/htsindex.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/htsindex.c b/src/htsindex.c index 8414d4b..2f633fd 100644 --- a/src/htsindex.c +++ b/src/htsindex.c @@ -144,7 +144,7 @@ int index_keyword(const char *html_data, LLint size, const char *mime, // //int WordIndexSize = 1024; - inthash WordIndexHash = NULL; + coucal WordIndexHash = NULL; FILE *tmpfp = NULL; // @@ -190,7 +190,7 @@ int index_keyword(const char *html_data, LLint size, const char *mime, // Create hash structure // Hash tables rulez da world! - WordIndexHash = inthash_new(0); + WordIndexHash = coucal_new(0); if (!WordIndexHash) return 0; @@ -252,7 +252,7 @@ int index_keyword(const char *html_data, LLint size, const char *mime, /* Store it ? */ if (len >= KEYW_MIN_LEN) { hts_primindex_words++; - if (inthash_inc(WordIndexHash, keyword)) { /* added new */ + if (coucal_inc(WordIndexHash, keyword)) { /* added new */ fprintf(tmpfp, "%s\n", keyword); } } @@ -285,7 +285,7 @@ int index_keyword(const char *html_data, LLint size, const char *mime, if (strnotempty(line)) { intptr_t e = 0; - if (inthash_read(WordIndexHash, line, &e)) { + if (coucal_read(WordIndexHash, line, &e)) { //if (e) { char BIGSTK savelst[HTS_URLMAXSIZE * 2]; @@ -313,7 +313,7 @@ int index_keyword(const char *html_data, LLint size, const char *mime, tmpfp = NULL; // Clear hash table - inthash_delete(&WordIndexHash); + coucal_delete(&WordIndexHash); #endif return 1; } |