#define CCAN_LINT_H
#include "config.h"
#include <ccan/list/list.h>
+#include <ccan/tal/tal.h>
#include <ccan/dgraph/dgraph.h>
#include <ccan/autodata/autodata.h>
#include <stdbool.h>
#include "../doc_extract.h"
#include "../manifest.h"
+#include "../tools.h"
#include "licenses.h"
AUTODATA_TYPE(ccanlint_tests, 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);
/* 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 */
/* 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;
/* 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;