summaryrefslogtreecommitdiffhomepage
path: root/docs/cmap_api.md
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-12-20 23:10:04 +0100
committerGitHub <[email protected]>2021-12-20 23:10:04 +0100
commit85d01062dc86821513bf9c306231aceca5bab222 (patch)
tree026f96746b3ea4bc23a3a740e2521807b993a0f9 /docs/cmap_api.md
parente38e9164d816bf1ee1f1dcc40f69ac158562fb1a (diff)
downloadSTC-modified-85d01062dc86821513bf9c306231aceca5bab222.tar.gz
STC-modified-85d01062dc86821513bf9c306231aceca5bab222.zip
Update cmap_api.md
Diffstat (limited to 'docs/cmap_api.md')
-rw-r--r--docs/cmap_api.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/cmap_api.md b/docs/cmap_api.md
index 8531eb82..b05ae5a8 100644
--- a/docs/cmap_api.md
+++ b/docs/cmap_api.md
@@ -272,11 +272,11 @@ typedef struct {
#define Viking_init() ((Viking){cstr_null, cstr_null})
-static inline bool RViking_eq(const Viking* a, const Viking* b) {
+static inline bool Viking_eq(const Viking* a, const Viking* b) {
return cstr_equals_s(a->name, b->name) && cstr_equals_s(a->country, b->country);
}
-static inline uint32_t RViking_hash(const Viking* a, int ignored) {
+static inline uint32_t Viking_hash(const Viking* a, int ignored) {
return c_strhash(a->name.str) ^ (c_strhash(a->country.str) >> 15);
}
@@ -285,7 +285,7 @@ static inline Viking Viking_clone(Viking v) {
v.country = cstr_clone(v.country);
}
-void inline Viking_drop(Viking* vk) {
+static inline void Viking_drop(Viking* vk) {
cstr_drop(&vk->name);
cstr_drop(&vk->country);
}
@@ -294,8 +294,8 @@ void inline Viking_drop(Viking* vk) {
#define i_key_bind Viking
#define i_val int
// i_key_bind auto-binds:
-// #define i_eq RViking_eq
-// #define i_hash RViking_hash
+// #define i_eq Viking_eq
+// #define i_hash Viking_hash
// #define i_keyfrom Viking_clone
// #define i_drop Viking_drop
#include <stc/cmap.h>