X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fcompiler%2F_info;h=31f6f0c7ce482cadbc6644e0f60af742da23bd37;hb=d1cea3ebf96f61b5bbac1e74975700770e06add6;hp=ea4fe702857155cedf9825501955199b1c656da8;hpb=89f1301ed2b65cdb4730bb28c42428873a69faec;p=ccan diff --git a/ccan/compiler/_info b/ccan/compiler/_info index ea4fe702..31f6f0c7 100644 --- a/ccan/compiler/_info +++ b/ccan/compiler/_info @@ -6,7 +6,7 @@ * compiler - macros for common compiler extensions * * Abstracts away some compiler hints. Currently these include: - * - UNLIKELY_FUNCTION_ATTRIBUTE + * - COLD_ATTRIBUTE * For functions not called in fast paths (aka. cold functions) * - PRINTF_ATTRIBUTE * For functions which take printf-style parameters. @@ -19,17 +19,17 @@ * - IS_COMPILE_CONSTANT * For using different tradeoffs for compiletime vs runtime evaluation. * - * Licence: LGPL (3 or any later version) + * License: LGPL (3 or any later version) * Author: Rusty Russell * * Example: - * #include + * #include * #include * #include * * // Example of a (slow-path) logging function. * static int log_threshold = 2; - * static void UNLIKELY_FUNCTION_ATTRIBUTE PRINTF_ATTRIBUTE(2,3) + * static void COLD_ATTRIBUTE PRINTF_ATTRIBUTE(2,3) * logger(int level, const char *fmt, ...) * { * va_list ap;