diff options
| author | Tyge Løvset <[email protected]> | 2022-09-23 13:17:22 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-09-23 13:17:22 +0200 |
| commit | 2c83996f1ad7ac7176833d1ecb76f59120bf52cd (patch) | |
| tree | 495527c129d630b67aed0d8528c70ef5aa418106 /examples/stack.c | |
| parent | 0ec40a5819a619b6b2777f24c555a8953e99ea9b (diff) | |
| download | STC-modified-2c83996f1ad7ac7176833d1ecb76f59120bf52cd.tar.gz STC-modified-2c83996f1ad7ac7176833d1ecb76f59120bf52cd.zip | |
Reverted c_forrange() macro with 3 or more args: swapped 1st and 2nd arg again.
Diffstat (limited to 'examples/stack.c')
| -rw-r--r-- | examples/stack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stack.c b/examples/stack.c index 210f8023..580b6428 100644 --- a/examples/stack.c +++ b/examples/stack.c @@ -14,12 +14,12 @@ int main() { c_auto (cstack_i, stack) c_auto (cstack_c, chars) { - c_forrange (int, i, 101) + c_forrange (i, int, 101) cstack_i_push(&stack, i*i); printf("%d\n", *cstack_i_top(&stack)); - c_forrange (int, i, 90) + c_forrange (i, int, 90) cstack_i_pop(&stack); c_foreach (i, cstack_i, stack) |
