summaryrefslogtreecommitdiffhomepage
path: root/docs/cmap_api.md
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-01-05 15:14:32 +0100
committerTyge Løvset <[email protected]>2022-01-05 15:14:32 +0100
commitead3df255f79f60257ae9626e7d52838de3caa67 (patch)
tree96e67304ff45b541ddc8b5119b6b0c4d7eb6a84b /docs/cmap_api.md
parent7083c748e2c00d0236146d21f9b20cfe69f953e6 (diff)
downloadSTC-modified-ead3df255f79f60257ae9626e7d52838de3caa67.tar.gz
STC-modified-ead3df255f79f60257ae9626e7d52838de3caa67.zip
Added docs on checkauto util program. Renamed (mainly internal) c_rawstr type to crawstr.
Diffstat (limited to 'docs/cmap_api.md')
-rw-r--r--docs/cmap_api.md10
1 files changed, 4 insertions, 6 deletions
diff --git a/docs/cmap_api.md b/docs/cmap_api.md
index c5311e27..13f21ef5 100644
--- a/docs/cmap_api.md
+++ b/docs/cmap_api.md
@@ -84,18 +84,16 @@ cmap_X_raw cmap_X_value_toraw(cmap_X_value* pval);
```
Helpers:
```c
-uint64_t c_strhash(const char *str); // utility function
+uint64_t c_strhash(const char *str); // utility function
// hash template parameter functions:
-uint64_t c_default_hash(const void *data, size_t len); // key is any integral type
-uint64_t c_hash32(const void* data, size_t is4); // key is one 32-bit int
-uint64_t c_hash64(const void* data, size_t is8); // key is one 64-bit int
-uint64_t c_rawstr_hash(const char* const* strp, size_t unused);
+uint64_t c_default_hash(const void *data, size_t len); // key is any integral type
+uint64_t c_hash32(const void* data, size_t is4); // key is one 32-bit int
+uint64_t c_hash64(const void* data, size_t is8); // key is one 64-bit int
// equalto template parameter functions:
bool c_default_eq(const i_keyraw* a, const i_keyraw* b); // *a == *b
bool c_memcmp_eq(const i_keyraw* a, const i_keyraw* b); // !memcmp(a, b, sizeof *a)
-bool c_rawstr_eq(const char* const* a, const char* const* b); // !strcmp(*a, *b)
```
## Types