X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;ds=sidebyside;f=ccan%2Forder%2F_info;fp=ccan%2Forder%2F_info;h=5a68f674c9d9c4deb24ae331592329d3480cd194;hb=c2a3098b254830f33e800bfa398882786632631e;hp=0000000000000000000000000000000000000000;hpb=04b63db616a482d6ed0f51a3ede8001415884bab;p=ccan diff --git a/ccan/order/_info b/ccan/order/_info new file mode 100644 index 00000000..5a68f674 --- /dev/null +++ b/ccan/order/_info @@ -0,0 +1,30 @@ +#include "config.h" +#include +#include + +/** + * order - Simple, common value comparison functions + * + * This implements a number of commonly useful comparison functions in + * a form which can be used with qsort() and bsearch() in the standard + * library, or asort() and asearch() in ccan amongst other places. + * + * License: CC0 + * Author: David Gibson + */ +int main(int argc, char *argv[]) +{ + /* Expect exactly one argument */ + if (argc != 2) + return 1; + + if (strcmp(argv[1], "depends") == 0) { + printf("ccan/typesafe_cb\n"); + return 0; + } + if (strcmp(argv[1], "testdepends") == 0) { + return 0; + } + + return 1; +}