diff options
Diffstat (limited to 'misc/examples/new_map.c')
| -rw-r--r-- | misc/examples/new_map.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/misc/examples/new_map.c b/misc/examples/new_map.c index 9cee987d..a4d5289c 100644 --- a/misc/examples/new_map.c +++ b/misc/examples/new_map.c @@ -42,10 +42,10 @@ int point_cmp(const Point* a, const Point* b) { int main() { - c_AUTO (cmap_int, map) - c_AUTO (cmap_pnt, pmap) - c_AUTO (cmap_str, smap) - c_AUTO (cset_str, sset) + c_auto (cmap_int, map) + c_auto (cmap_pnt, pmap) + c_auto (cmap_str, smap) + c_auto (cset_str, sset) { cmap_int_insert(&map, 123, 321); cmap_int_insert(&map, 456, 654); @@ -53,7 +53,7 @@ int main() pmap = c_make(cmap_pnt, {{{42, 14}, 1}, {{32, 94}, 2}, {{62, 81}, 3}}); - c_FOREACH (i, cmap_pnt, pmap) + c_foreach (i, cmap_pnt, pmap) printf(" (%d, %d: %d)", i.ref->first.x, i.ref->first.y, i.ref->second); puts(""); @@ -68,7 +68,7 @@ int main() "So long", }); - c_FOREACH (i, cset_str, sset) + c_foreach (i, cset_str, sset) printf(" %s\n", cstr_str(i.ref)); } } |
