diff options
Diffstat (limited to 'misc/examples/list_erase.c')
| -rw-r--r-- | misc/examples/list_erase.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/misc/examples/list_erase.c b/misc/examples/list_erase.c index c1a2aa97..18ad0d16 100644 --- a/misc/examples/list_erase.c +++ b/misc/examples/list_erase.c @@ -7,12 +7,12 @@ int main () { - c_with (IList L = IList_init(), IList_drop(&L)) + c_WITH (IList L = IList_init(), IList_drop(&L)) { - c_forlist (i, int, {10, 20, 30, 40, 50}) + c_FORLIST (i, int, {10, 20, 30, 40, 50}) IList_push(&L, *i.ref); - c_foreach (x, IList, L) + c_FOREACH (x, IList, L) printf("%d ", *x.ref); puts(""); // 10 20 30 40 50 @@ -25,7 +25,7 @@ int main () it = IList_erase_range(&L, it, end); // 10 30 // ^ printf("list contains:"); - c_foreach (x, IList, L) + c_FOREACH (x, IList, L) printf(" %d", *x.ref); puts(""); } |
