From d63c37c043024854cfb4b63495e8f5ca3fc03ecd Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Fri, 28 Oct 2022 10:00:35 +0200 Subject: Renamed some semi-internal functions which appeared to be macros by their name. --- docs/cmap_api.md | 8 ++++---- docs/cstr_api.md | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'docs') diff --git a/docs/cmap_api.md b/docs/cmap_api.md index bf56fcab..4b6ca4bc 100644 --- a/docs/cmap_api.md +++ b/docs/cmap_api.md @@ -90,9 +90,9 @@ cmap_X_raw cmap_X_value_toraw(cmap_X_value* pval); ``` Helpers: ```c -uint64_t c_default_hash(const X *obj); // macro, calls c_fasthash(obj, sizeof *obj) -uint64_t c_strhash(const char *str); // string hash funcion, uses strlen() -uint64_t c_fasthash(const void *data, size_t len); // base hash function +uint64_t c_default_hash(const X *obj); // macro, calls cfasthash(obj, sizeof *obj) +uint64_t cstrhash(const char *str); // string hash funcion, uses strlen() +uint64_t cfasthash(const void *data, size_t len); // base hash function // equalto template parameter functions: bool c_default_eq(const i_keyraw* a, const i_keyraw* b); // *a == *b @@ -381,7 +381,7 @@ static inline RViking Viking_toraw(const Viking* vp) { #define i_keyraw RViking #define i_keyfrom Viking_from #define i_opt c_no_clone // disable map cloning -#define i_hash(rp) (c_strhash(rp->name) ^ c_strhash(rp->country)) +#define i_hash(rp) (cstrhash(rp->name) ^ cstrhash(rp->country)) #define i_val int #include /* diff --git a/docs/cstr_api.md b/docs/cstr_api.md index a3211a52..5c7ba41c 100644 --- a/docs/cstr_api.md +++ b/docs/cstr_api.md @@ -136,7 +136,7 @@ int cstr_cmp(const cstr* s1, const cstr* s2); bool cstr_eq(const cstr* s1, const cstr* s2); bool cstr_hash(const cstr* self); -char* c_strnstrn(const char* str, const char* search, size_t slen, size_t nlen); +char* cstrnstrn(const char* str, const char* search, size_t slen, size_t nlen); ``` ## Types -- cgit v1.2.3