X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Fccanlint.h;h=bf01161faf10c365428ed33b5954bd043f508294;hb=04f453bbedd1eca3e5ab93290304d8193ffdd87f;hp=6fdc021673f8597d74add9a40c6c91f904d3e060;hpb=64bd9ff9bc3e65bb0e77b982135d6612cda180cd;p=ccan diff --git a/tools/ccanlint/ccanlint.h b/tools/ccanlint/ccanlint.h index 6fdc0216..bf01161f 100644 --- a/tools/ccanlint/ccanlint.h +++ b/tools/ccanlint/ccanlint.h @@ -2,6 +2,7 @@ #define CCAN_LINT_H #include "config.h" #include +#include #include #include "../doc_extract.h" #include "licenses.h" @@ -80,8 +81,6 @@ struct score { }; struct ccanlint { - struct list_node list; - /* More concise unique name of test. */ const char *key; @@ -113,16 +112,14 @@ struct ccanlint { const char *needs; /* Internal use fields: */ - /* Who depends on us? */ - struct list_head dependencies; - /* How many things do we (still) depend on? */ - unsigned int num_depends; + /* We are a node in a dependency graph. */ + struct dgraph_node node; /* Did we skip a dependency? If so, must skip this, too. */ const char *skip; - /* Did we fail a dependency? If so, skip and mark as fail. */ - bool skip_fail; /* Did the user want to keep these results? */ bool keep_results; + /* Have we already run this? */ + bool done; }; /* Ask the user a yes/no question: the answer is NO if there's an error. */