]> git.ozlabs.org Git - ccan/blob - ccan/autodata/_info
b804bcdd329c2eba9a49a7b6a95837124b6e9f62
[ccan] / ccan / autodata / _info
1 #include <string.h>
2 #include "config.h"
3
4 /**
5  * autodata - stash pointers in your binary for automatic registration
6  *
7  * This code allows declarations in your source which you can gather
8  * together at runtime to form tables.  This is often used in place of
9  * having to patch a registration function call out, or a central
10  * table.
11  *
12  * License: BSD-MIT
13  */
14 int main(int argc, char *argv[])
15 {
16         /* Expect exactly one argument */
17         if (argc != 2)
18                 return 1;
19
20         if (strcmp(argv[1], "depends") == 0) {
21                 printf("ccan/compiler\n");
22                 printf("ccan/ptr_valid\n");
23                 return 0;
24         }
25
26         return 1;
27 }