X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Fccanlint.h;h=f5f7b51d8bbb89078d83fa82aa356c305856da70;hb=a791eb1e4c369104f90c543fe9ebafcae113ead8;hp=76e14a2aac0c8f9b77631dd4f296b55637dcf495;hpb=13c2e75f28189c87d527c0c752de549f21cf505d;p=ccan-lca-2011.git diff --git a/tools/ccanlint/ccanlint.h b/tools/ccanlint/ccanlint.h index 76e14a2..f5f7b51 100644 --- a/tools/ccanlint/ccanlint.h +++ b/tools/ccanlint/ccanlint.h @@ -82,6 +82,11 @@ struct ccanlint { /* Can we do something about it? (NULL if not) */ void (*handle)(struct manifest *m, struct score *score); + /* Options from _info. */ + char *options; + /* If not set, we'll give an error if they try to set options. */ + bool takes_options; + /* Internal use fields: */ /* Who depends on us? */ struct list_head dependencies; @@ -192,7 +197,6 @@ char *get_symbol_token(void *ctx, const char **line); /* Similarly for ->doc_sections */ struct list_head *get_ccan_file_docs(struct ccan_file *f); - /* Add an error about this file (and line, if non-zero) to the score struct */ void score_file_error(struct score *, struct ccan_file *f, unsigned line, const char *error);