X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Fccanlint.h;h=ae22fa8a8b7d5c3a8fb98841a911f8e6db6501fe;hp=8ebf68d276e8f2bc4042bf5694e1a1b534cbd1e1;hb=daf9ee7d8e2b683ff05283beb1843611ad8c9e8a;hpb=3ea7b4d695237414015f33674d6ba01009e77fd1 diff --git a/tools/ccanlint/ccanlint.h b/tools/ccanlint/ccanlint.h index 8ebf68d2..ae22fa8a 100644 --- a/tools/ccanlint/ccanlint.h +++ b/tools/ccanlint/ccanlint.h @@ -2,11 +2,13 @@ #define CCAN_LINT_H #include "config.h" #include +#include #include #include #include #include "../doc_extract.h" #include "../manifest.h" +#include "../tools.h" #include "licenses.h" AUTODATA_TYPE(ccanlint_tests, struct ccanlint); @@ -55,7 +57,7 @@ struct ccanlint { bool compulsory; /* If timeleft is set to 0, means it timed out. - * score is the result, and a talloc context freed after all our + * score is the result, and a tal context freed after all our * depends are done. */ void (*check)(struct manifest *m, unsigned int *timeleft, struct score *score); @@ -137,7 +139,7 @@ enum line_compiled get_ccan_line_pp(struct pp_conditions *cond, /* Get token if it's equal to token. */ bool get_token(const char **line, const char *token); -/* Talloc copy of symbol token, or NULL. Increment line. */ +/* Tal copy of symbol token, or NULL. Increment line. */ char *get_symbol_token(void *ctx, const char **line); /* Similarly for ->doc_sections */ @@ -164,6 +166,9 @@ void compile_and_link_async(const void *ctx, unsigned int time_ms, /* Get results of a command, returning ctx (and free it). */ void *collect_command(bool *ok, char **output); +/* Find manifest for this dir and return compiled _info filename. */ +char *get_or_compile_info(const void *ctx, const char *dir); + /* Normal tests. */ extern struct ccanlint trailing_whitespace; @@ -185,8 +190,11 @@ extern bool safe_mode; /* Did the user want to keep all the results? */ extern bool keep_results; -/* Compiler and CFLAGS, from config.h if available. */ -extern const char *compiler, *cflags; +/* Did we find non-ccan dependencies? */ +extern bool non_ccan_deps; + +/* Did we fail to build? */ +extern bool build_failed; /* Contents of config.h (or NULL if not found) */ extern const char *config_header;