X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fcompiler%2F_info;h=06645b1d8c9d8e26ea2d554553351f53795e8bd7;hp=ea4fe702857155cedf9825501955199b1c656da8;hb=18636637ee013ef828cb04b2b7bb4a4922324475;hpb=b1801a00c945b67d8c218edd9e13dc483a60ac70 diff --git a/ccan/compiler/_info b/ccan/compiler/_info index ea4fe702..06645b1d 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. @@ -23,13 +23,13 @@ * 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;