From a4e2ee22fd57665d2388d5debc17db896a4a389f Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Thu, 3 Sep 2020 12:59:41 +0200 Subject: Changed constant _init to _ini to avoid conflict with _init() method. Reverted name cprique back to cpqueue. --- examples/words.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/words.c') diff --git a/examples/words.c b/examples/words.c index 98134cf6..275ffee7 100644 --- a/examples/words.c +++ b/examples/words.c @@ -11,7 +11,7 @@ declare_cmap_strkey(si, int); int main1() { - clist_str lwords = clist_init; + clist_str lwords = clist_ini; c_push(&lwords, clist_str, c_items( "this", "sentence", "is", "not", "a", "sentence", "this", "sentence", "is", "a", "hoax" @@ -21,13 +21,13 @@ int main1() printf("%s\n", w.item->value.str); puts(""); - cvec_str words = cvec_init; + cvec_str words = cvec_ini; c_push(&words, cvec_str, c_items( "this", "sentence", "is", "not", "a", "sentence", "this", "sentence", "is", "a", "hoax" )); - cmap_si word_map = cmap_init; + cmap_si word_map = cmap_ini; c_foreach (w, cvec_str, words) ++cmap_si_insert(&word_map, w.item->str, 0)->value; -- cgit v1.2.3