summaryrefslogtreecommitdiffhomepage
path: root/examples/README.md
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-09-16 09:59:18 +0200
committerTyge Løvset <[email protected]>2020-09-16 09:59:18 +0200
commit47b5b5ce53ed4607bf557e2b53a1286bc8041e94 (patch)
tree71219fd9554c957b4e120d34096318fc11f8fc80 /examples/README.md
parentd3d68271e1c4ff0f56d06730f79349197f46850c (diff)
downloadSTC-modified-47b5b5ce53ed4607bf557e2b53a1286bc8041e94.tar.gz
STC-modified-47b5b5ce53ed4607bf557e2b53a1286bc8041e94.zip
Changed earlier declare_<container>(..) macro to typedef_<container>(..)
Diffstat (limited to 'examples/README.md')
-rw-r--r--examples/README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/README.md b/examples/README.md
index d12cc522..8820f5cf 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -51,9 +51,9 @@ static inline Viking viking_fromVw(VikingVw vw) { // note: parameter is by value
Viking vk = {cstr(vw.name), cstr(vw.country)}; return vk;
}
```
-With this in place, we use the full c_cmap() macro to define {Viking -> int} hash map type:
+With this in place, we use the full typedef_cmap() macro to define {Viking -> int} hash map type:
```
-c_cmap(vk, Viking, int, c_default_destroy, vikingvw_equals, vikingvw_hash,
+typedef_cmap(vk, Viking, int, c_default_destroy, vikingvw_equals, vikingvw_hash,
viking_destroy, VikingVw, viking_toVw, viking_fromVw);
```
cmap_vk uses vikingvw_hash() for hash value calculations, and vikingvw_equals() for equality test. cmap_vk_destroy() will free all memory allocated for Viking keys and the hash table values.