]> git.ozlabs.org Git - ccan/blobdiff - ccan/tal/str/_info
ccan: Correct some poor conventions in _info includes
[ccan] / ccan / tal / str / _info
index 63081a1b189b101d378450752ce7873e64260bde..6fd94dc5654093d3dc909f7175791784f70b9fd4 100644 (file)
@@ -1,6 +1,6 @@
+#include "config.h"
 #include <stdio.h>
 #include <string.h>
 #include <stdio.h>
 #include <string.h>
-#include "config.h"
 
 /**
  * tal/str - string helper routines which use tal
 
 /**
  * tal/str - string helper routines which use tal
  *             textfile = grab_file(NULL, argv[1], NULL);
  *             if (!textfile)
  *                     err(1, "Failed reading %s", argv[1]);
  *             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.
  *
  *             // 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);
  *
  *             // Free everything, just because we can.
  *             tal_free(textfile);
@@ -44,7 +44,12 @@ int main(int argc, char *argv[])
 
        if (strcmp(argv[1], "depends") == 0) {
                printf("ccan/str\n");
 
        if (strcmp(argv[1], "depends") == 0) {
                printf("ccan/str\n");
+#ifdef TAL_USE_TALLOC
+               printf("ccan/tal/talloc\n");
+#else
                printf("ccan/tal\n");
                printf("ccan/tal\n");
+#endif
+               printf("ccan/take\n");
                return 0;
        }
 
                return 0;
        }