X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fcompiler%2F_info;h=12cb24757829b55d339ed6f9e540834d84eac9d3;hp=b51d93a64122c8a98ba84466140563c0a79ffc70;hb=HEAD;hpb=8fc7a90a8db345c4276419d11f8731afc63f65f5 diff --git a/ccan/compiler/_info b/ccan/compiler/_info index b51d93a6..12cb2475 100644 --- a/ccan/compiler/_info +++ b/ccan/compiler/_info @@ -1,6 +1,6 @@ +#include "config.h" #include #include -#include "config.h" /** * compiler - macros for common compiler extensions @@ -10,7 +10,7 @@ * For functions not called in fast paths (aka. cold functions) * - PRINTF_FMT * For functions which take printf-style parameters. - * - IDEMPOTENT + * - CONST_FUNCTION * For functions which return the same value for same parameters. * - NEEDED * For functions and variables which must be emitted even if unused. @@ -18,10 +18,10 @@ * For functions and variables which need not be emitted if unused. * - UNUSED * For parameters which are not used. - * - IS_COMPILE_CONSTANT + * - IS_COMPILE_CONSTANT() * For using different tradeoffs for compiletime vs runtime evaluation. * - * License: LGPL (v3 or any later version) + * License: CC0 (Public domain) * Author: Rusty Russell * * Example: @@ -41,7 +41,7 @@ * va_end(ap); * } * - * int main(int argc, char *argv[]) + * int main(int argc, char *argv[] UNNEEDED) * { * if (argc != 1) { * logger(3, "Don't want %i arguments!\n", argc-1);