diff options
| author | tylov <[email protected]> | 2023-07-31 08:37:59 +0200 |
|---|---|---|
| committer | tylov <[email protected]> | 2023-07-31 08:37:59 +0200 |
| commit | cd9d0f984e678691855787a2fa855ccd5876425f (patch) | |
| tree | c23cff610a399ef6b3716268863a4450c72c5e7c | |
| parent | e6003c0ecfd7e76803bac7d98feca814997e8a86 (diff) | |
| download | STC-modified-cd9d0f984e678691855787a2fa855ccd5876425f.tar.gz STC-modified-cd9d0f984e678691855787a2fa855ccd5876425f.zip | |
Renamed cco_generator() => cco_iter_struct(). More in line with cco_task_struct() macro.
| -rw-r--r-- | include/stc/coroutine.h | 2 | ||||
| -rw-r--r-- | misc/examples/coroutines/generator.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/stc/coroutine.h b/include/stc/coroutine.h index 7917878a..146f3efb 100644 --- a/include/stc/coroutine.h +++ b/include/stc/coroutine.h @@ -135,7 +135,7 @@ typedef enum { * Generators */ -#define cco_generator(Name, ...) \ +#define cco_iter_struct(Name, ...) \ typedef Name Name##_value; \ typedef struct { \ Name##_value* ref; \ diff --git a/misc/examples/coroutines/generator.c b/misc/examples/coroutines/generator.c index c092b92d..3f51ce9c 100644 --- a/misc/examples/coroutines/generator.c +++ b/misc/examples/coroutines/generator.c @@ -8,7 +8,7 @@ typedef struct { int a, b, c; } Triple; -cco_generator(Triple, +cco_iter_struct(Triple, int count; ); |
