]> git.ozlabs.org Git - ccan/blobdiff - ccan/antithread/_info.c
Add antithread. Not finished, but useful as example of module whose
[ccan] / ccan / antithread / _info.c
diff --git a/ccan/antithread/_info.c b/ccan/antithread/_info.c
new file mode 100644 (file)
index 0000000..81c23e8
--- /dev/null
@@ -0,0 +1,23 @@
+#include <stdio.h>
+#include <string.h>
+#include "config.h"
+
+/**
+ * antithread - Accelerated Native Technology Implementation of "threads"
+ *
+ * Threads suck.  Antithreads try not to.  FIXME.
+ */
+int main(int argc, char *argv[])
+{
+       if (argc != 2)
+               return 1;
+
+       if (strcmp(argv[1], "depends") == 0) {
+               printf("ccan/talloc\n");
+               printf("ccan/alloc\n");
+               printf("ccan/noerr\n");
+               return 0;
+       }
+
+       return 1;
+}