X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fautodata%2F_info;h=507de1a1ed9e2452a023872931f2a20a256d1def;hb=eedf1079f38efb2b8dc4fd3f516cce8ac1272c06;hp=11b6e16dcc183c0d093c6bed66ff71adc7b01f23;hpb=3db2dce0d4b266b13a0e58fc8583e66177ed4555;p=ccan diff --git a/ccan/autodata/_info b/ccan/autodata/_info index 11b6e16d..507de1a1 100644 --- a/ccan/autodata/_info +++ b/ccan/autodata/_info @@ -1,5 +1,6 @@ -#include #include "config.h" +#include +#include /** * autodata - stash pointers in your binary for automatic registration @@ -8,6 +9,9 @@ * together at runtime to form tables. This is often used in place of * having a central registration function or table. * + * Note that this technique does not work in general for shared libaries, + * only for code compiled into a binary. + * * License: BSD-MIT * * Example: @@ -88,8 +92,8 @@ * printf("verbose mode on\n"); * return 0; * } - * // Given -v outputs 'verbose mode on' - * // Given -v -C / outputs 'chdir to /. verbose mode on' + * // Given "-v" outputs "verbose mode on\n" + * // Given "-v -C /" outputs "chdir to /. verbose mode on\n" */ int main(int argc, char *argv[]) {