X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fgenerator%2F_info;h=e40d7bbb28c602c5e8b984a41ab203e5e82943de;hp=b0b7343f8196671042e4f394efd37cf8b79a6f3c;hb=a240178097376329b4567a6728952daa89362771;hpb=bb88463014092a5550ea4c51a037e12e49446722 diff --git a/ccan/generator/_info b/ccan/generator/_info index b0b7343f..e40d7bbb 100644 --- a/ccan/generator/_info +++ b/ccan/generator/_info @@ -2,6 +2,8 @@ #include #include +#include + /** * generator - generators for C * @@ -55,14 +57,22 @@ int main(int argc, char *argv[]) return 1; if (strcmp(argv[1], "depends") == 0) { - printf("ccan/build_assert\n"); - printf("ccan/ptrint\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) { +#if COROUTINE_AVAILABLE + printf("\n"); + return 1; +#else + printf("Needs coroutine support\n"); +#endif + } + if (strcmp(argv[1], "testdepends") == 0) { printf("ccan/str\n"); return 0;