]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/ccanlint.h
ccanlint: list dependencies by key
[ccan] / tools / ccanlint / ccanlint.h
index 41a4606c40fe260644ce24471a5eca66225ca686..19d53dbf12e4f5fb7bcd340e65087d10a452ebfb 100644 (file)
@@ -4,11 +4,6 @@
 #include <stdbool.h>
 #include "../doc_extract.h"
 
-#define REGISTER_TEST(name, ...) extern struct ccanlint name
-#include "generated-compulsory-tests"
-#include "generated-normal-tests"
-#undef REGISTER_TEST
-
 #define REGISTER_TEST(name, ...) 
 
 /* 0 == Describe failed tests.
@@ -92,6 +87,9 @@ struct ccanlint {
        /* If not set, we'll give an error if they try to set options. */
        bool takes_options;
 
+       /* comma-separated list of dependency keys. */
+       const char *needs;
+
        /* Internal use fields: */
        /* Who depends on us? */
        struct list_head dependencies;