summaryrefslogtreecommitdiffhomepage
path: root/examples/README.md
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-09-15 23:12:58 +0200
committerTyge Løvset <[email protected]>2020-09-15 23:12:58 +0200
commit0ce57669673a5a22d8207ec884bcebb97cb18448 (patch)
treed76c4b38431efee766d97ba572fa3127a3e05976 /examples/README.md
parentf4435af2fc9e9187f7be0149c2eb916db27cb257 (diff)
downloadSTC-modified-0ce57669673a5a22d8207ec884bcebb97cb18448.tar.gz
STC-modified-0ce57669673a5a22d8207ec884bcebb97cb18448.zip
Simplified declare_ statement e.g. c_cmap(...)
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 5c9c990a..98e366df 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 cdef_cmap() macro to define {Viking -> int} hash map type:
+With this in place, we use the full c_cmap() macro to define {Viking -> int} hash map type:
```
-cdef_cmap(vk, Viking, int, c_default_destroy, vikingvw_equals, vikingvw_hash,
+c_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.