summaryrefslogtreecommitdiff
path: root/src/htscoremain.c
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2014-06-14 10:05:44 +0000
committerXavier Roche <xroche@users.noreply.github.com>2014-06-14 10:05:44 +0000
commit7a1e4b826522ee6a12928a813b31ccb41f247d43 (patch)
tree94ff7504cebb2d33416be9eb9212b7a5175575cd /src/htscoremain.c
parent6c2120e0535ed51963229ca60438226fd3c3d8b9 (diff)
Renamed inthash_* API to coucal_* one.
Diffstat (limited to 'src/htscoremain.c')
-rw-r--r--src/htscoremain.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/htscoremain.c b/src/htscoremain.c
index e5af672..2cfeb63 100644
--- a/src/htscoremain.c
+++ b/src/htscoremain.c
@@ -1984,7 +1984,7 @@ HTSEXT_API int hts_main2(int argc, char **argv, httrackp * opt) {
int found = 0;
char *filter = NULL;
cache_back cache;
- inthash cache_hashtable = inthash_new(0);
+ coucal cache_hashtable = coucal_new(0);
int sendb = 0;
if (isdigit((unsigned char) *(com + 1))) {
@@ -2515,7 +2515,7 @@ HTSEXT_API int hts_main2(int argc, char **argv, httrackp * opt) {
/* successfully read */
if (count > 0) {
- inthash hashtable = inthash_new(0);
+ coucal hashtable = coucal_new(0);
size_t loop;
for(loop = 0 ; bench[loop].type != DO_END ; loop++) {
size_t i;
@@ -2526,9 +2526,9 @@ HTSEXT_API int hts_main2(int argc, char **argv, httrackp * opt) {
if (bench[loop].type == DO_ADD
|| bench[loop].type == DO_DRY_ADD) {
size_t k;
- result = inthash_write(hashtable, name, (uintptr_t) expected);
+ result = coucal_write(hashtable, name, (uintptr_t) expected);
for(k = 0 ; k < /* stash_size*2 */ 32 ; k++) {
- (void) inthash_write(hashtable, name, (uintptr_t) expected);
+ (void) coucal_write(hashtable, name, (uintptr_t) expected);
}
/* revert logic */
if (bench[loop].type == DO_DRY_ADD) {
@@ -2538,9 +2538,9 @@ HTSEXT_API int hts_main2(int argc, char **argv, httrackp * opt) {
else if (bench[loop].type == DO_DEL
|| bench[loop].type == DO_DRY_DEL) {
size_t k;
- result = inthash_remove(hashtable, name);
+ result = coucal_remove(hashtable, name);
for(k = 0 ; k < /* stash_size*2 */ 32 ; k++) {
- (void) inthash_remove(hashtable, name);
+ (void) coucal_remove(hashtable, name);
}
/* revert logic */
if (bench[loop].type == DO_DRY_DEL) {
@@ -2550,7 +2550,7 @@ HTSEXT_API int hts_main2(int argc, char **argv, httrackp * opt) {
else if (bench[loop].type == TEST_ADD
|| bench[loop].type == TEST_DEL) {
intptr_t value = -1;
- result = inthash_readptr(hashtable, name, &value);
+ result = coucal_readptr(hashtable, name, &value);
if (bench[loop].type == TEST_ADD && result
&& value != expected) {
fprintf(stderr, "value failed for %s (expected %ld, got %ld)\n",
@@ -2573,7 +2573,7 @@ HTSEXT_API int hts_main2(int argc, char **argv, httrackp * opt) {
}
}
}
- inthash_delete(&hashtable);
+ coucal_delete(&hashtable);
fprintf(stderr, "all hashtable tests were successful!\n");
} else {
fprintf(stderr, "Malformed number\n");