summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/coroutines/coread.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-08-08 12:28:15 +0200
committerTyge Løvset <[email protected]>2023-08-08 15:57:25 +0200
commitc27c266b6c4ae0e5e535b18c3790ee97416412b9 (patch)
tree0b73c9cf644486abbc9213f98c1c308b7511c7dc /misc/examples/coroutines/coread.c
parent9e13d34c82abfeeadcc8697331f9fd3e5e7f2bca (diff)
downloadSTC-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/coread.c')
-rw-r--r--misc/examples/coroutines/coread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/examples/coroutines/coread.c b/misc/examples/coroutines/coread.c
index 359ca85d..6d3acdd7 100644
--- a/misc/examples/coroutines/coread.c
+++ b/misc/examples/coroutines/coread.c
@@ -21,7 +21,7 @@ int file_read(struct file_read* g)
cco_await(!cstr_getline(&g->line, g->fp));
- cco_cleanup:
+ cco_final:
printf("finish\n");
cstr_drop(&g->line);
if (g->fp) fclose(g->fp);