projects
/
ccan
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
generator: Rewrite to use coroutine module
[ccan]
/
ccan
/
generator
/
_info
diff --git
a/ccan/generator/_info
b/ccan/generator/_info
index 11753a5b8506b848de4238e24c9364db92e62308..e40d7bbb28c602c5e8b984a41ab203e5e82943de 100644
(file)
--- a/
ccan/generator/_info
+++ b/
ccan/generator/_info
@@
-2,6
+2,8
@@
#include <stdio.h>
#include <string.h>
#include <stdio.h>
#include <string.h>
+#include <ccan/coroutine/coroutine.h>
+
/**
* generator - generators for C
*
/**
* generator - generators for C
*
@@
-55,19
+57,19
@@
int main(int argc, char *argv[])
return 1;
if (strcmp(argv[1], "depends") == 0) {
return 1;
if (strcmp(argv[1], "depends") == 0) {
- printf("ccan/build_assert\n");
- printf("ccan/ptrint\n");
printf("ccan/alignof\n");
printf("ccan/alignof\n");
+ printf("ccan/coroutine\n");
printf("ccan/cppmagic\n");
printf("ccan/compiler\n");
return 0;
}
if (strcmp(argv[1], "ported") == 0) {
printf("ccan/cppmagic\n");
printf("ccan/compiler\n");
return 0;
}
if (strcmp(argv[1], "ported") == 0) {
-#if
HAVE_UCONTEXT
+#if
COROUTINE_AVAILABLE
printf("\n");
printf("\n");
+ return 1;
#else
#else
- printf("Needs
ucontext
support\n");
+ printf("Needs
coroutine
support\n");
#endif
}
#endif
}