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/htstools.c | |
parent | 6c2120e0535ed51963229ca60438226fd3c3d8b9 (diff) |
Renamed inthash_* API to coucal_* one.
Diffstat (limited to 'src/htstools.c')
-rw-r--r-- | src/htstools.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/htstools.c b/src/htstools.c index eb5a56b..af41812 100644 --- a/src/htstools.c +++ b/src/htstools.c @@ -1079,7 +1079,7 @@ HTSEXT_API char *hts_getcategories(char *path, int type) { String profiles = STRING_EMPTY; char *rpath = path; find_handle h; - inthash hashCateg = NULL; + coucal hashCateg = NULL; if (rpath[0]) { if (rpath[strlen(rpath) - 1] == '/') { @@ -1091,8 +1091,8 @@ HTSEXT_API char *hts_getcategories(char *path, int type) { String iname = STRING_EMPTY; if (type == 1) { - hashCateg = inthash_new(0); - inthash_set_name(hashCateg, "hashCateg"); + hashCateg = coucal_new(0); + coucal_set_name(hashCateg, "hashCateg"); StringCat(categ, "Test category 1"); StringCat(categ, "\r\nTest category 2"); } @@ -1117,8 +1117,8 @@ HTSEXT_API char *hts_getcategories(char *path, int type) { if (n > 0) { if (strfield(line2, "category=")) { if (*(line2 + 9)) { - if (!inthash_read(hashCateg, line2 + 9, NULL)) { - inthash_write(hashCateg, line2 + 9, 0); + if (!coucal_read(hashCateg, line2 + 9, NULL)) { + coucal_write(hashCateg, line2 + 9, 0); if (StringLength(categ) > 0) { StringCat(categ, "\r\n"); } @@ -1146,7 +1146,7 @@ HTSEXT_API char *hts_getcategories(char *path, int type) { StringFree(iname); } if (hashCateg) { - inthash_delete(&hashCateg); + coucal_delete(&hashCateg); hashCateg = NULL; } if (type == 1) |