X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Fccanlint.h;h=6c4a1ba7744d8a28fd994d9df79440d3a460fb0b;hb=756407b43540926c39181e5c61425d5daf1970db;hp=8ebf68d276e8f2bc4042bf5694e1a1b534cbd1e1;hpb=20ea8a370823bd73a3c96da40a4779fa6ea66462;p=ccan diff --git a/tools/ccanlint/ccanlint.h b/tools/ccanlint/ccanlint.h index 8ebf68d2..6c4a1ba7 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 #include @@ -55,7 +56,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 +138,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 +165,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;