diff options
| author | Tyge Løvset <[email protected]> | 2022-10-28 10:00:35 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-10-28 10:00:35 +0200 |
| commit | d63c37c043024854cfb4b63495e8f5ca3fc03ecd (patch) | |
| tree | 14c781006a0575c7f2b7515dc5742daaeb916973 /docs | |
| parent | 0243b64f830f55b924274cbc63f5dd1ed518c26f (diff) | |
| download | STC-modified-d63c37c043024854cfb4b63495e8f5ca3fc03ecd.tar.gz STC-modified-d63c37c043024854cfb4b63495e8f5ca3fc03ecd.zip | |
Renamed some semi-internal functions which appeared to be macros by their name.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/cmap_api.md | 8 | ||||
| -rw-r--r-- | docs/cstr_api.md | 2 |
2 files changed, 5 insertions, 5 deletions
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 <stc/cmap.h> /* 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 |
