]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/ccanlint.h
Make manifest code do chdir into appropriate directory.
[ccan] / tools / ccanlint / ccanlint.h
index 271fba9501892b56ff3d9321ebc83e39cdb33afc..99b0eb7cbcc69e03e55ab2ad7a4bd9b758d9263f 100644 (file)
@@ -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). */