X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fshort_types%2F_info;h=909e4e3aed0ea3f45a9e4ff3451cab1573791a61;hp=bc69b1b9968db96fc6cc14f769267c3a33433e0a;hb=291237b4fed863be74051274ac5ad9920cb33cc3;hpb=ac0e87d7ecf790c187ce3c5d837b971fdd016b57 diff --git a/ccan/short_types/_info b/ccan/short_types/_info index bc69b1b9..909e4e3a 100644 --- a/ccan/short_types/_info +++ b/ccan/short_types/_info @@ -1,6 +1,6 @@ +#include "config.h" #include #include -#include "config.h" /** * short_types - shorter names for standard integer types @@ -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,8 @@ * return 0; * } * - * Licence: LGPL (2 or any later version) + * License: CC0 (Public domain) + * Author: Rusty Russell */ int main(int argc, char *argv[]) { @@ -76,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; }