diff options
| author | tylo <[email protected]> | 2020-09-07 10:15:41 +0200 |
|---|---|---|
| committer | tylo <[email protected]> | 2020-09-07 10:17:15 +0200 |
| commit | 2dbbf289ae169bbe633632fa119557fab36fdbb4 (patch) | |
| tree | 90c0cbe1f989290f26f5671e34cb56ec6b93c951 /examples/words.c | |
| parent | 5b78847871217562dcddbb0bd34076a892eb49e1 (diff) | |
| download | STC-modified-2dbbf289ae169bbe633632fa119557fab36fdbb4.tar.gz STC-modified-2dbbf289ae169bbe633632fa119557fab36fdbb4.zip | |
Added back cmap insert()
Diffstat (limited to 'examples/words.c')
| -rw-r--r-- | examples/words.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/words.c b/examples/words.c index 92f98c85..af637b8d 100644 --- a/examples/words.c +++ b/examples/words.c @@ -29,7 +29,7 @@ int main1() cmap_si word_map = cmap_ini; c_foreach (w, cvec_str, words) - ++cmap_si_emplace(&word_map, w.item->str, 0).item->value; + cmap_si_insert(&word_map, w.item->str, 0).item->value += 1; c_foreach (pair, cmap_si, word_map) { printf("%d occurrences of word '%s'\n", |
