]> git.ozlabs.org Git - ccan/blobdiff - ccan/compiler/_info
tdb2: suppress failtest more than once on mmap.
[ccan] / ccan / compiler / _info
index ea4fe702857155cedf9825501955199b1c656da8..9f3945397386cc7ff058c1529143671dbf259be5 100644 (file)
@@ -6,30 +6,32 @@
  * compiler - macros for common compiler extensions
  *
  * Abstracts away some compiler hints.  Currently these include:
- * - UNLIKELY_FUNCTION_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.
  *
- * Licence: LGPL (3 or any later version)
+ * License: Public Domain
  * 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 PRINTF_FMT(2,3)
  *             logger(int level, const char *fmt, ...)
  *     {
  *             va_list ap;