summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/coroutines.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-05-04 11:51:56 +0200
committerTyge Løvset <[email protected]>2023-05-04 16:19:00 +0200
commitb03148caa1d6fc660e6e7c5986dd6fd38779bedc (patch)
tree6e4c7972437f6e8e6fddf39b0f48a2b0ace05af8 /misc/examples/coroutines.c
parent6b23e35287f26dad63abd755c5f365b443e025a3 (diff)
downloadSTC-modified-b03148caa1d6fc660e6e7c5986dd6fd38779bedc.tar.gz
STC-modified-b03148caa1d6fc660e6e7c5986dd6fd38779bedc.zip
Updates in coroutines.h: No longer *required* with cco_final:, but only when no cleanup is needed.
Diffstat (limited to 'misc/examples/coroutines.c')
-rw-r--r--misc/examples/coroutines.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/examples/coroutines.c b/misc/examples/coroutines.c
index a5db3291..9071fee0 100644
--- a/misc/examples/coroutines.c
+++ b/misc/examples/coroutines.c
@@ -35,7 +35,7 @@ bool prime(struct prime* g) {
cco_yield(false);
}
}
- cco_final:
+ cco_final:
printf("final prm\n");
cco_end(true);
}
@@ -67,7 +67,7 @@ bool fibonacci(struct fibonacci* g) {
}
cco_yield(false);
}
- cco_final:
+ cco_final:
printf("final fib\n");
cco_end(true);
}
@@ -91,7 +91,7 @@ bool combined(struct combined* g) {
cco_reset(&g->prm);
cco_await(prime(&g->prm), false);
- cco_final:
+ cco_final:
puts("final combined");
cco_end(true);
}