diff options
| author | Tyge Løvset <[email protected]> | 2023-08-08 12:28:15 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-08-08 15:57:25 +0200 |
| commit | c27c266b6c4ae0e5e535b18c3790ee97416412b9 (patch) | |
| tree | 0b73c9cf644486abbc9213f98c1c308b7511c7dc /misc/examples/coroutines/coroutines.c | |
| parent | 9e13d34c82abfeeadcc8697331f9fd3e5e7f2bca (diff) | |
| download | STC-modified-c27c266b6c4ae0e5e535b18c3790ee97416412b9.tar.gz STC-modified-c27c266b6c4ae0e5e535b18c3790ee97416412b9.zip | |
Reverted cco_cleanup => cco_final. (cco_cleanup deprecated).
Updated generator.c example. Misc internal refactoring.
Diffstat (limited to 'misc/examples/coroutines/coroutines.c')
| -rw-r--r-- | misc/examples/coroutines/coroutines.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/examples/coroutines/coroutines.c b/misc/examples/coroutines/coroutines.c index faeb71f6..802a976a 100644 --- a/misc/examples/coroutines/coroutines.c +++ b/misc/examples/coroutines/coroutines.c @@ -34,7 +34,7 @@ int prime(struct prime* g) { cco_yield(); } } - cco_cleanup: + cco_final: printf("final prm\n"); } return 0; @@ -68,7 +68,7 @@ int fibonacci(struct fibonacci* g) { } cco_yield(); } - cco_cleanup: + cco_final: printf("final fib\n"); } return 0; @@ -92,7 +92,7 @@ int combined(struct combined* g) { cco_reset(&g->prm); cco_await_call(prime(&g->prm)); - cco_cleanup: + cco_final: puts("final combined"); } return 0; |
