X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fgenerator%2F_info;h=aa6048e9c3f27aa5701cc16c94881d37ec9eb39f;hb=58277ab6c8b4dd6bb66638b88bd8505f46fdcb07;hp=11753a5b8506b848de4238e24c9364db92e62308;hpb=b744da8cdcb59542f5452c30d4f0c7b5b42255d1;p=ccan diff --git a/ccan/generator/_info b/ccan/generator/_info index 11753a5b..aa6048e9 100644 --- a/ccan/generator/_info +++ b/ccan/generator/_info @@ -2,6 +2,8 @@ #include #include +#include + /** * generator - generators for C * @@ -41,12 +43,6 @@ * * Author: David Gibson * License: LGPL (v2.1 or any later version) - * - * Ccanlint: - * // We need several gcc extensions - * objects_build_without_features FAIL - * tests_compile_without_features FAIL - * tests_helpers_compile_without_features FAIL */ int main(int argc, char *argv[]) { @@ -55,19 +51,19 @@ 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 HAVE_UCONTEXT +#if COROUTINE_AVAILABLE printf("\n"); + return 1; #else - printf("Needs ucontext support\n"); + printf("Needs coroutine support\n"); #endif } @@ -76,5 +72,13 @@ int main(int argc, char *argv[]) return 0; } + if (strcmp(argv[1], "ccanlint") == 0) { + /* We need several gcc extensions */ + printf("objects_build_without_features FAIL\n"); + printf("tests_compile_without_features FAIL\n"); + printf("tests_helpers_compile_without_features FAIL\n"); + return 0; + } + return 1; }