X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftal%2Fstr%2F_info;h=6fd94dc5654093d3dc909f7175791784f70b9fd4;hp=24229bca287a09511a70b7ecd876071b91ef623a;hb=291237b4fed863be74051274ac5ad9920cb33cc3;hpb=f103f73ff040a8700a2bbd47948277e7c484baa2 diff --git a/ccan/tal/str/_info b/ccan/tal/str/_info index 24229bca..6fd94dc5 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 @@ -24,10 +24,10 @@ * textfile = grab_file(NULL, argv[1], NULL); * if (!textfile) * err(1, "Failed reading %s", argv[1]); - * lines = strsplit(textfile, textfile, "\n", STR_EMPTY_OK); + * lines = tal_strsplit(textfile, textfile, "\n", STR_EMPTY_OK); * * // Join them back together with two linefeeds. - * printf("%s", strjoin(textfile, lines, "\n\n", STR_TRAIL)); + * printf("%s", tal_strjoin(textfile, lines, "\n\n", STR_TRAIL)); * * // Free everything, just because we can. * tal_free(textfile); @@ -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; }