X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftal%2Fstr%2F_info;h=cb81c9e19df33a64eb0e6323810d3d3129d9ff7e;hp=f95fc10eb8d35426ab7ebb384759413a01340544;hb=a7b28fafda0e5c119a2507ef2fd0d5b620cdb892;hpb=15ed4f453713f1a7bdeec22b53704819fa3d447f diff --git a/ccan/tal/str/_info b/ccan/tal/str/_info index f95fc10e..cb81c9e1 100644 --- a/ccan/tal/str/_info +++ b/ccan/tal/str/_info @@ -1,6 +1,6 @@ +#include "config.h" #include #include -#include "config.h" /** * tal/str - string helper routines which use tal @@ -11,7 +11,7 @@ * * Example: * #include - * #include + * #include * #include * * // Dumb demo program to double-linespace a file. @@ -21,7 +21,7 @@ * char **lines; * * // Grab lines in file. - * textfile = grab_file(NULL, argv[1], NULL); + * textfile = grab_file(NULL, argv[1]); * if (!textfile) * err(1, "Failed reading %s", argv[1]); * lines = tal_strsplit(textfile, textfile, "\n", STR_EMPTY_OK); @@ -44,7 +44,11 @@ int main(int argc, char *argv[]) if (strcmp(argv[1], "depends") == 0) { printf("ccan/str\n"); +#ifdef TAL_USE_TALLOC + printf("ccan/tal/talloc\n"); +#else printf("ccan/tal\n"); +#endif printf("ccan/take\n"); return 0; }