summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/hashmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/examples/hashmap.c')
-rw-r--r--misc/examples/hashmap.c4
1 files changed, 2 insertions, 2 deletions
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("");