X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fcompiler%2F_info;h=9f3945397386cc7ff058c1529143671dbf259be5;hp=31f6f0c7ce482cadbc6644e0f60af742da23bd37;hb=56023cca5f66a40646a1e807c3d10af6e5913623;hpb=7f63d84eb712c54c57c3d4e9a92ffefe2f1b2ade diff --git a/ccan/compiler/_info b/ccan/compiler/_info index 31f6f0c7..9f394539 100644 --- a/ccan/compiler/_info +++ b/ccan/compiler/_info @@ -6,20 +6,22 @@ * compiler - macros for common compiler extensions * * Abstracts away some compiler hints. Currently these include: - * - COLD_ATTRIBUTE + * - COLD * For functions not called in fast paths (aka. cold functions) - * - PRINTF_ATTRIBUTE + * - PRINTF_FMT * For functions which take printf-style parameters. - * - IDEMPOTENT_ATTRIBUTE + * - CONST_FUNCTION * For functions which return the same value for same parameters. - * - NEEDED_ATTRIBUTE + * - NEEDED * For functions and variables which must be emitted even if unused. - * - UNNEEDED_ATTRIBUTE + * - UNNEEDED * For functions and variables which need not be emitted if unused. - * - IS_COMPILE_CONSTANT + * - UNUSED + * For parameters which are not used. + * - IS_COMPILE_CONSTANT() * For using different tradeoffs for compiletime vs runtime evaluation. * - * License: LGPL (3 or any later version) + * License: Public Domain * Author: Rusty Russell * * Example: @@ -29,7 +31,7 @@ * * // Example of a (slow-path) logging function. * static int log_threshold = 2; - * static void COLD_ATTRIBUTE PRINTF_ATTRIBUTE(2,3) + * static void COLD PRINTF_FMT(2,3) * logger(int level, const char *fmt, ...) * { * va_list ap;