X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Frfc822%2F_info;fp=ccan%2Frfc822%2F_info;h=dac530cd84b4e369c55a54b8ed7437ced4f42931;hp=7b8eda62ac3e976679ce6c4aa5dc8d8689723d65;hb=e4b6a262822484244b52c476d1b4cc9c4fd8ee2b;hpb=97d99004bec31012400b6c1d9bad045ae1c9b075 diff --git a/ccan/rfc822/_info b/ccan/rfc822/_info index 7b8eda62..dac530cd 100644 --- a/ccan/rfc822/_info +++ b/ccan/rfc822/_info @@ -20,6 +20,10 @@ * RFC822 compliant, don't SEGV and try to return as much useful * data as possible. * + * Define TAL_USE_TALLOC to use libtalloc as the allocator, otherwise + * it will use ccan/tal (usually done on the cmdline, as tal/str will need + * it too). + * * Example: * // Given '' outputs 'body' * // Given 'From' outputs ' ' @@ -53,7 +57,11 @@ int main(int argc, char *argv[]) return 1; if (strcmp(argv[1], "depends") == 0) { - printf("ccan/talloc\n"); +#ifdef TAL_USE_TALLOC + printf("ccan/tal/talloc\n"); +#else + printf("ccan/tal\n"); +#endif printf("ccan/list\n"); printf("ccan/str\n"); printf("ccan/bytestring\n"); @@ -64,6 +72,7 @@ int main(int argc, char *argv[]) printf("ccan/failtest\n"); printf("ccan/foreach\n"); printf("ccan/array_size\n"); + printf("ccan/tal/str\n"); return 0; }