summaryrefslogtreecommitdiffhomepage
path: root/examples/stack.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-10-19 15:50:51 +0200
committerTyge Løvset <[email protected]>2022-10-19 15:50:51 +0200
commit0441f3844410c64b7e2d4a2604b4254b851e64c8 (patch)
tree2b30f21536fd589b890fa4644732e963036a9113 /examples/stack.c
parentbb3a457e5c2c9e6b069ab3dfba10f9d21686b035 (diff)
downloadSTC-modified-0441f3844410c64b7e2d4a2604b4254b851e64c8.tar.gz
STC-modified-0441f3844410c64b7e2d4a2604b4254b851e64c8.zip
Reverted back to c_forrrange from c_forloop. Still available but deprecated.
Diffstat (limited to 'examples/stack.c')
-rw-r--r--examples/stack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stack.c b/examples/stack.c
index fad2093b..a6a4a492 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_forloop (i, 101)
+ c_forrange (i, 101)
cstack_i_push(&stack, i*i);
printf("%d\n", *cstack_i_top(&stack));
- c_forloop (i, 90)
+ c_forrange (i, 90)
cstack_i_pop(&stack);
c_foreach (i, cstack_i, stack)