]> git.ozlabs.org Git - ccan/blobdiff - ccan/compiler/_info
modules: update documentation examples so they compile under ccanlint.
[ccan] / ccan / compiler / _info
index ea4fe702857155cedf9825501955199b1c656da8..06645b1d8c9d8e26ea2d554553351f53795e8bd7 100644 (file)
@@ -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.
  * Author: Rusty Russell <rusty@rustcorp.com.au>
  *
  * Example:
- *     #include <ccan/compiler/attributs.h>
+ *     #include <ccan/compiler/compiler.h>
  *     #include <stdio.h>
  *     #include <stdarg.h>
  *
  *     // 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;