summaryrefslogtreecommitdiffhomepage
path: root/include/stc
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-03-01 14:36:38 +0100
committerTyge Løvset <[email protected]>2023-03-01 14:36:38 +0100
commit78a7e85535fd02e643bf98103223d4218e80133f (patch)
treebe22b46aaa7ac48b29125863d27db591cf12dcdf /include/stc
parent8fdcfbf621b5e8c1298a89579594db0817adce26 (diff)
downloadSTC-modified-78a7e85535fd02e643bf98103223d4218e80133f.tar.gz
STC-modified-78a7e85535fd02e643bf98103223d4218e80133f.zip
Moved algorithm examples to algo folder.
Diffstat (limited to 'include/stc')
-rw-r--r--include/stc/algo/coroutine.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/stc/algo/coroutine.h b/include/stc/algo/coroutine.h
index f3e42165..84be4a4e 100644
--- a/include/stc/algo/coroutine.h
+++ b/include/stc/algo/coroutine.h
@@ -24,7 +24,6 @@
#define STC_COROUTINE_INCLUDED
/*
#include <stdio.h>
-#include <stdbool.h>
#include <stc/algo/coroutine.h>
struct iterate {
@@ -61,7 +60,6 @@ int main(void) {
enum {
cco_state_final = -1,
cco_state_expired = -2,
- cco_state_illegal = -3,
};
#define cco_alive(ctx) ((ctx)->cco_state > 0)
@@ -74,8 +72,7 @@ enum {
#define cco_end(retval) \
*_state = cco_state_expired; break; \
- default: assert(!"illegal coroutine state"); \
- goto _cco_final_; /* avoid unused-warning */ \
+ default: goto _cco_final_; /* avoid unused-warning */ \
} \
return retval