diff options
| author | Tyge Løvset <[email protected]> | 2021-02-21 20:26:54 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-02-21 20:26:54 +0100 |
| commit | b4fe781e2caeed3f0dec670def76df9bf4cefc95 (patch) | |
| tree | e6bd30027e4d29797655184a57dc06b5669ffa9b /examples | |
| parent | 9ad1de563150b5819a17ceb07e5bb1a83f39f2b4 (diff) | |
| download | STC-modified-b4fe781e2caeed3f0dec670def76df9bf4cefc95.tar.gz STC-modified-b4fe781e2caeed3f0dec670def76df9bf4cefc95.zip | |
Renamed using_c*map_keyarg() to using_c*map_keydef().
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/advanced.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/advanced.c b/examples/advanced.c index 391230f6..728e056f 100644 --- a/examples/advanced.c +++ b/examples/advanced.c @@ -34,9 +34,9 @@ static inline VikingRaw viking_toRaw(Viking* vk) { VikingRaw raw = {vk->name.str, vk->country.str}; return raw; } -// With this in place, we use the using_cmap_keyarg() macro to define {Viking -> int} hash map type: +// With this in place, we use the using_cmap_keydef() macro to define {Viking -> int} hash map type: -using_cmap_keyarg(vk, Viking, int, vikingraw_equals, vikingraw_hash, +using_cmap_keydef(vk, Viking, int, vikingraw_equals, vikingraw_hash, viking_del, viking_fromRaw, viking_toRaw, VikingRaw); int main() |
