X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftcon%2F_info;fp=ccan%2Ftcon%2F_info;h=67923a0aecf61f497d38857bc492bb67eb7cde6a;hb=5c451bbbed80e3bcb1f6be4301026ece01ab1309;hp=0000000000000000000000000000000000000000;hpb=37965b33eeb202773dc70c4546d0b050b8e717b5;p=ccan diff --git a/ccan/tcon/_info b/ccan/tcon/_info new file mode 100644 index 00000000..67923a0a --- /dev/null +++ b/ccan/tcon/_info @@ -0,0 +1,26 @@ +#include "config.h" +#include + +/** + * tcon - routines for creating typesafe generic containers + * + * This code lets users create a structure with a typecanary; your API + * is then a set of macros which check the type canary before calling + * the generic routines. + * + * License: Public domain + * + * Author: Rusty Russell + */ +int main(int argc, char *argv[]) +{ + /* Expect exactly one argument */ + if (argc != 2) + return 1; + + if (strcmp(argv[1], "depends") == 0) { + return 0; + } + + return 1; +}