diff options
| author | Tyge Løvset <[email protected]> | 2020-11-03 08:38:26 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2020-11-03 08:38:26 +0100 |
| commit | cc8fd2c9d8b5b8170a02ec33168d60bb92cd781d (patch) | |
| tree | cf7a840ddb4b3a557302eb114831a38025ef44cb /examples/words.c | |
| parent | 7171182ce7e0106f8f0fc47ed8f1fe1f58b2ea5d (diff) | |
| download | STC-modified-cc8fd2c9d8b5b8170a02ec33168d60bb92cd781d.tar.gz STC-modified-cc8fd2c9d8b5b8170a02ec33168d60bb92cd781d.zip | |
renamed __init to _inits
Diffstat (limited to 'examples/words.c')
| -rw-r--r-- | examples/words.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/words.c b/examples/words.c index 3ee285e8..cde1ffa0 100644 --- a/examples/words.c +++ b/examples/words.c @@ -11,7 +11,7 @@ using_cmap_strkey(si, int); int main1() { - clist_str lwords = clist__init; + clist_str lwords = clist_inits; c_push_items(&lwords, clist_str, { "this", "sentence", "is", "not", "a", "sentence", "this", "sentence", "is", "a", "hoax" @@ -21,13 +21,13 @@ int main1() c_print(1, "{}\n", w.val->str); puts(""); - cvec_str words = cvec__init; + cvec_str words = cvec_inits; c_push_items(&words, cvec_str, { "this", "sentence", "is", "not", "a", "sentence", "this", "sentence", "is", "a", "hoax" }); - cmap_si word_map = cmap__init; + cmap_si word_map = cmap_inits; c_foreach (w, cvec_str, words) cmap_si_emplace(&word_map, w.val->str, 0).first->second += 1; |
