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 /docs/cmap_api.md | |
| 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 'docs/cmap_api.md')
| -rw-r--r-- | docs/cmap_api.md | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/cmap_api.md b/docs/cmap_api.md index b81a9ea3..05217fe8 100644 --- a/docs/cmap_api.md +++ b/docs/cmap_api.md @@ -15,19 +15,19 @@ using_cmap(X, Key, Mapped, keyEquals, keyHash, mappedDestroy); using_cmap(X, Key, Mapped, keyEquals, keyHash, mappedDestroy, mappedFromRaw, mappedToRaw, RawMapped); using_cmap(X, Key, Mapped, keyEqualsRaw, keyHashRaw, mappedDestroy, mappedFromRaw, mappedToRaw, RawMapped, keyDestroy, keyFromRaw, keyToRaw, RawKey); -using_cmap_keyarg(X, Key, Mapped, keyEquals, keyHash, keyDestroy); -using_cmap_keyarg(X, Key, Mapped, keyEqualsRaw, keyHashRaw, keyDestroy, keyFromRaw, keyToRaw, RawKey); +using_cmap_keydef(X, Key, Mapped, keyEquals, keyHash, keyDestroy); +using_cmap_keydef(X, Key, Mapped, keyEqualsRaw, keyHashRaw, keyDestroy, keyFromRaw, keyToRaw, RawKey); -using_cmap_strkey(X, Mapped); // using_cmap(str, cstr, Mapped, ...) +using_cmap_strkey(X, Mapped); // using_cmap(X, cstr, Mapped, ...) using_cmap_strkey(X, Mapped, mappedDestroy); using_cmap_strkey(X, Mapped, mappedDestroy, mappedFromRaw, mappedToRaw, RawMapped); -using_cmap_strval(X, Key); // using_cmap(str, Key, cstr, ...) +using_cmap_strval(X, Key); // using_cmap(X, Key, cstr, ...) using_cmap_strval(X, Key, keyEquals, keyHash); using_cmap_strval(X, Key, keyEquals, keyHash, keyDestroy); using_cmap_strval(X, Key, keyEqualsRaw, keyHashRaw, keyDestroy, keyFromRaw, keyToRaw, RawKey); -using_cmap_str() // using_cmap(str, cstr, cstr, ...) +using_cmap_str() // using_cmap(str, cstr, cstr, ...) ``` The `using_cmap()` macro family must be instantiated in the global scope. Default values are given above for args not specified. `X` is a type tag name and @@ -293,8 +293,8 @@ 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: -using_cmap_keyarg(vk, Viking, int, vikingraw_equals, vikingraw_hash, +// With this in place, we use the using_cmap_keydef() macro to define {Viking -> int} hash map type: +using_cmap_keydef(vk, Viking, int, vikingraw_equals, vikingraw_hash, viking_del, viking_fromRaw, viking_toRaw, VikingRaw); int main() |
