From c4441f5fc665194fbd7a894a67a64a08c3beac42 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Wed, 8 Feb 2023 16:16:49 +0100 Subject: Changed to use lowercase flow-control macros in examples (uppercase will still be supported). Improved many examples to use c_make() to init containers. --- misc/examples/hashmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'misc/examples/hashmap.c') diff --git a/misc/examples/hashmap.c b/misc/examples/hashmap.c index bc4f2566..f59ed824 100644 --- a/misc/examples/hashmap.c +++ b/misc/examples/hashmap.c @@ -17,7 +17,7 @@ const char* call(const char* number) { } int main(void) { - c_AUTO (cmap_str, contacts) + c_auto (cmap_str, contacts) { cmap_str_emplace(&contacts, "Daniel", "798-1364"); cmap_str_emplace(&contacts, "Ashley", "645-7689"); @@ -40,7 +40,7 @@ int main(void) { cmap_str_erase(&contacts, "Ashley"); puts(""); - c_FORPAIR (contact, number, cmap_str, contacts) { + c_forpair (contact, number, cmap_str, contacts) { printf("Calling %s: %s\n", cstr_str(_.contact), call(cstr_str(_.number))); } puts(""); -- cgit v1.2.3