]> git.ozlabs.org Git - ccan/blobdiff - ccan/short_types/_info
opt: add allocator setting.
[ccan] / ccan / short_types / _info
index 1fdc3a40cf11d521fabb8881903cf81c874d0372..f324e359ac8a01f35353e753445b114fbd795d31 100644 (file)
@@ -9,8 +9,9 @@
  *     -- Linus Torvalds
  *
  * The short_types header provides for convenient abbreviations for the
- * posixly-damned uint32_t types.  It also provides be32/le32 for explicitly
- * annotating types of specific endian.
+ * posixly-damned uint32_t types.  If ccan/endian/endian.h is included,
+ * it also provides be32/le32 for explicitly annotating types of specific
+ * endian.
  *
  * Include this header, if only to stop people using these identifiers
  * for other things!
@@ -29,7 +30,7 @@
  *                          unsigned int *posix_total, unsigned int *sht_total,
  *                          unsigned int *size_total)
  *     {
- *             printf("\t%ssigned %s: POSIX %i%%, short %i%%\n",
+ *             printf("\t%ssigned %s: POSIX %zu%%, short %zu%%\n",
  *                    sht[0] == 'u' ? "un" : "",
  *                    sht+1,
  *                    strlen(posix)*100 / size,
@@ -65,7 +66,7 @@
  *             return 0;
  *     }
  *
- * License: Public domain
+ * License: CC0 (Public domain)
  * Author: Rusty Russell <rusty@rustcorp.com.au>
  */
 int main(int argc, char *argv[])
@@ -77,5 +78,10 @@ int main(int argc, char *argv[])
                return 0;
        }
 
+       if (strcmp(argv[1], "testdepends") == 0) {
+               printf("ccan/endian\n");
+               return 0;
+       }
+
        return 1;
 }