X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Fccanlint.h;h=7df951084f3aec4dd1ddbec10072c0d879c735a4;hp=8b6e81f75247f3cbcf0547e7b65de0ed509238a2;hb=d1827b423b5d30c8ecb184a3186d95d9f134f806;hpb=0248fa2c84bdf4b5117d2672a68d89505aacae8f diff --git a/tools/ccanlint/ccanlint.h b/tools/ccanlint/ccanlint.h index 8b6e81f7..7df95108 100644 --- a/tools/ccanlint/ccanlint.h +++ b/tools/ccanlint/ccanlint.h @@ -152,6 +152,10 @@ char **per_file_options(const struct ccanlint *test, struct ccan_file *f); void score_file_error(struct score *, struct ccan_file *f, unsigned line, const char *errorfmt, ...); +/* Append message to the score->error */ +void score_error(struct score *score, const char * source, + const char *errorfmt, ...); + /* Start a command in the background. */ void run_command_async(const void *ctx, unsigned int time_ms, const char *fmt, ...); @@ -182,7 +186,7 @@ struct dependent { bool is_excluded(const char *name); /* Called to add options from _info, once it's located. */ -void add_info_options(struct ccan_file *info); +void add_info_options(struct manifest *m); /* Are we happy to compile stuff, or just non-intrusive tests? */ extern bool safe_mode; @@ -190,6 +194,12 @@ extern bool safe_mode; /* Did the user want to keep all the results? */ extern bool keep_results; +/* 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;