From cd9d0f984e678691855787a2fa855ccd5876425f Mon Sep 17 00:00:00 2001 From: tylov Date: Mon, 31 Jul 2023 08:37:59 +0200 Subject: Renamed cco_generator() => cco_iter_struct(). More in line with cco_task_struct() macro. --- include/stc/coroutine.h | 2 +- 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; ); -- cgit v1.2.3