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/filetask.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/filetask.c')
| -rw-r--r-- | misc/examples/coroutines/filetask.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/examples/coroutines/filetask.c b/misc/examples/coroutines/filetask.c index 0607442d..74388359 100644 --- a/misc/examples/coroutines/filetask.c +++ b/misc/examples/coroutines/filetask.c @@ -28,7 +28,7 @@ int file_read(struct file_read* co, cco_runtime* rt) cco_yield(); } - cco_cleanup: + cco_final: fclose(co->fp); cstr_drop(&co->line); puts("done file_read"); @@ -56,7 +56,7 @@ int count_line(struct count_line* co, cco_runtime* rt) cco_yield(); } - cco_cleanup: + cco_final: cstr_drop(&co->path); puts("done count_line"); } |
