diff options
Diffstat (limited to 'misc/examples/csset_erase.c')
| -rw-r--r-- | misc/examples/csset_erase.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/misc/examples/csset_erase.c b/misc/examples/csset_erase.c index 33eb2163..c281c626 100644 --- a/misc/examples/csset_erase.c +++ b/misc/examples/csset_erase.c @@ -5,12 +5,12 @@ int main() { - c_auto (csset_int, set) + c_AUTO (csset_int, set) { - c_forlist (i, int, {30, 20, 80, 40, 60, 90, 10, 70, 50}) + c_FORLIST (i, int, {30, 20, 80, 40, 60, 90, 10, 70, 50}) csset_int_insert(&set, *i.ref); - c_foreach (k, csset_int, set) + c_FOREACH (k, csset_int, set) printf(" %d", *k.ref); puts(""); @@ -19,7 +19,7 @@ int main() printf("Show values >= %d:\n", val); it = csset_int_lower_bound(&set, val); - c_foreach (k, csset_int, it, csset_int_end(&set)) + c_FOREACH (k, csset_int, it, csset_int_end(&set)) printf(" %d", *k.ref); puts(""); @@ -27,7 +27,7 @@ int main() while (it.ref != csset_int_end(&set).ref) it = csset_int_erase_at(&set, it); - c_foreach (k, csset_int, set) + c_FOREACH (k, csset_int, set) printf(" %d", *k.ref); puts(""); @@ -36,7 +36,7 @@ int main() it = csset_int_lower_bound(&set, val); csset_int_erase_range(&set, csset_int_begin(&set), it); - c_foreach (k, csset_int, set) + c_FOREACH (k, csset_int, set) printf(" %d", *k.ref); puts(""); } |
