X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fccan_tokenizer%2F_info;h=4801a13b52f87f10976cacaa5bbde02369969f4d;hp=8c3c9df2d9792a5656256d81282a4198a8b04b9b;hb=c2d60644d2c00fb32258b380bb25ce0a26b87026;hpb=3c81225fc0a4fb99d10282ebf11b7ec6ae1eabdd diff --git a/ccan/ccan_tokenizer/_info b/ccan/ccan_tokenizer/_info index 8c3c9df2..4801a13b 100644 --- a/ccan/ccan_tokenizer/_info +++ b/ccan/ccan_tokenizer/_info @@ -14,7 +14,7 @@ * #include * #include * - * void token_list_stats(const struct token_list *tl) { + * static void token_list_stats(const struct token_list *tl) { * size_t comment=0, white=0, stray=0, code=0, total=0; * size_t count = 0; * const struct token *i; @@ -64,7 +64,7 @@ * err(1, "Could not read file %s", argv[1]); * * //tokenize the contents - * tl = tokenize(file, len, &mq); + * tl = tokenize(file, file, len, &mq); * * //print warnings, errors, etc. * while (queue_count(mq)) { @@ -81,6 +81,8 @@ * * return 0; * } + * + * License: BSD */ int main(int argc, char *argv[]) { @@ -89,7 +91,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; }