X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fccan_tokenizer%2F_info;h=ee1477a9c31d6dc16359b0dabd54a13b9a4700d4;hp=754b3cf680f4cc412b3d1adf36112ba557cf8fbc;hb=806f94eb6c0c3eb521458901a23e470037ede807;hpb=18636637ee013ef828cb04b2b7bb4a4922324475 diff --git a/ccan/ccan_tokenizer/_info b/ccan/ccan_tokenizer/_info index 754b3cf6..ee1477a9 100644 --- a/ccan/ccan_tokenizer/_info +++ b/ccan/ccan_tokenizer/_info @@ -1,6 +1,6 @@ +#include "config.h" #include #include -#include "config.h" /** * ccan_tokenizer - A full-text lexer for C source files @@ -11,7 +11,7 @@ * Example: * * #include - * #include + * #include * #include * * static void token_list_stats(const struct token_list *tl) { @@ -48,7 +48,6 @@ * } * * int main(int argc, char *argv[]) { - * size_t len; * char *file; * struct token_list *tl; * tok_message_queue mq; @@ -59,12 +58,12 @@ * fprintf(stderr, "Usage: %s source_file\n", argv[0]); * return 1; * } - * file = grab_file(NULL, argv[1], &len); + * file = grab_file(NULL, argv[1]); * if (!file) * err(1, "Could not read file %s", argv[1]); * * //tokenize the contents - * tl = tokenize(file, len, &mq); + * tl = tokenize(file, file, strlen(file), &mq); * * //print warnings, errors, etc. * while (queue_count(mq)) { @@ -81,6 +80,14 @@ * * return 0; * } + * + * License: BSD (3 clause) + * + * Ccanlint: + * // We actually depend on the LGPL dependencies + * license_depends_compat FAIL + * // We don't put the license line in all files. + * license_comment FAIL */ int main(int argc, char *argv[]) { @@ -89,7 +96,8 @@ int main(int argc, char *argv[]) return 1; if (strcmp(argv[1], "depends") == 0) { - printf("ccan/array\n"); + printf("ccan/darray\n"); + printf("ccan/talloc\n"); return 0; }