X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Fccanlint.h;h=99b0eb7cbcc69e03e55ab2ad7a4bd9b758d9263f;hb=32a31d9e4fb1f312a47ae8c237ac30d6c1567ccd;hp=271fba9501892b56ff3d9321ebc83e39cdb33afc;hpb=4e0dfdadf206c74dc9e5f302545b2419cc4798f4;p=ccan-lca-2011.git diff --git a/tools/ccanlint/ccanlint.h b/tools/ccanlint/ccanlint.h index 271fba9..99b0eb7 100644 --- a/tools/ccanlint/ccanlint.h +++ b/tools/ccanlint/ccanlint.h @@ -5,7 +5,8 @@ #include "../doc_extract.h" #define REGISTER_TEST(name, ...) extern struct ccanlint name -#include "generated-init-tests" +#include "generated-compulsory-tests" +#include "generated-normal-tests" #undef REGISTER_TEST #define REGISTER_TEST(name, ...) @@ -33,7 +34,7 @@ struct manifest { struct list_head dep_objs; }; -struct manifest *get_manifest(const void *ctx); +struct manifest *get_manifest(const void *ctx, const char *dir); struct ccanlint { struct list_node list; @@ -41,7 +42,7 @@ struct ccanlint { /* Unique name of test */ const char *name; - /* Total score that this test is worth. 0 means compulsory tests. */ + /* Total score that this test is worth. */ unsigned int total_score; /* Can we run this test? Return string explaining why, if not. */ @@ -127,7 +128,7 @@ struct ccan_file { struct list_head *doc_sections; /* If this file gets compiled (eg. .C file to .o file), result here. */ - const char *compiled; + char *compiled; }; /* A new ccan_file, with the given name (talloc_steal onto returned value). */