X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Ffile_analysis.c;h=575425df79e0c10ef993ae7f92747e70f3d8bdaf;hb=bbb4aa72f0a087b3a1441e912ccac576c907e618;hp=8760630a7549e22a4d981c24fe69fab407d37043;hpb=624871f35e94510b9924ba733f2b878ecf2cc6cc;p=ccan diff --git a/tools/ccanlint/file_analysis.c b/tools/ccanlint/file_analysis.c index 8760630a..575425df 100644 --- a/tools/ccanlint/file_analysis.c +++ b/tools/ccanlint/file_analysis.c @@ -394,3 +394,13 @@ void score_file_error(struct score *score, struct ccan_file *f, unsigned line, score->error = talloc_append_string(score->error, "... more (use -vv to see them all)\n"); } + +char *get_or_compile_info(const void *ctx, const char *dir) +{ + struct manifest *m = get_manifest(NULL, dir); + + if (!m->info_file->compiled[COMPILE_NORMAL]) + m->info_file->compiled[COMPILE_NORMAL] = compile_info(m, dir); + + return m->info_file->compiled[COMPILE_NORMAL]; +}