summaryrefslogtreecommitdiffhomepage
path: root/docs/cmap_api.md
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-10-20 16:17:33 +0200
committerTyge Løvset <[email protected]>2022-10-20 16:17:33 +0200
commit14f67d1936fa76be436eaaee739861268ca534f7 (patch)
treec365789721d90cb09c311f0a65527ba31832da8b /docs/cmap_api.md
parent79d43229e64c53cd8b358a02a58fdbe124aa5e0f (diff)
downloadSTC-modified-14f67d1936fa76be436eaaee739861268ca534f7.tar.gz
STC-modified-14f67d1936fa76be436eaaee739861268ca534f7.zip
Switch from #define i_val_bind to i_val_class and i_key_class.
i_val_bind/i_key_bind is deprecated but available for now.
Diffstat (limited to 'docs/cmap_api.md')
-rw-r--r--docs/cmap_api.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/cmap_api.md b/docs/cmap_api.md
index 10bca836..119b72f2 100644
--- a/docs/cmap_api.md
+++ b/docs/cmap_api.md
@@ -298,10 +298,10 @@ static inline void Viking_drop(Viking* vk) {
}
#define i_type Vikings
-#define i_key_bind Viking
+#define i_key_class Viking
#define i_val int
/*
- i_key_bind implies these defines, unless they are already defined:
+ i_key_class implies these defines, unless they are already defined:
#define i_cmp Viking_cmp
#define i_hash Viking_hash
#define i_keyclone Viking_clone
@@ -377,7 +377,7 @@ static inline RViking Viking_toraw(const Viking* vp) {
// With this in place, we define the Viking => int hash map type:
#define i_type Vikings
-#define i_key_bind Viking
+#define i_key_class Viking
#define i_keyraw RViking
#define i_keyfrom Viking_from
#define i_opt c_no_clone // disable map cloning
@@ -385,7 +385,7 @@ static inline RViking Viking_toraw(const Viking* vp) {
#define i_val int
#include <stc/cmap.h>
/*
- i_key_bind implies these defines, unless they are already defined:
+ i_key_class implies these defines, unless they are already defined:
#define i_cmp RViking_cmp
//#define i_hash RViking_hash // already defined above.
//#define i_keyclone Viking_clone // not used because c_no_clone