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/cmap_api.md | |
| 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/cmap_api.md')
| -rw-r--r-- | docs/cmap_api.md | 8 |
1 files changed, 4 insertions, 4 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> /* |
