summaryrefslogtreecommitdiff
path: root/lib/ccan/compiler/compiler.h
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-12-05 16:42:50 +1030
committerRusty Russell <rusty@rustcorp.com.au>2011-12-05 16:42:50 +1030
commit3b390b754eb8edd43678bdd080b06f102766683d (patch)
tree6420770fc0d3b02ca685342efb47ff70e301e5e1 /lib/ccan/compiler/compiler.h
parentab2c07b8f0dec6fd82884b7864a399201c3d2ce3 (diff)
downloadsamba-3b390b754eb8edd43678bdd080b06f102766683d.tar.gz
samba-3b390b754eb8edd43678bdd080b06f102766683d.tar.bz2
samba-3b390b754eb8edd43678bdd080b06f102766683d.zip
lib/ccan/compiler, ilog: IDEMPOTENT "idempotent does not mean what you think it means"
Actually, I don't even think it means that. But rename it to something which is sane. Thanks to David Gibson for reporting. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit e764d0a27d2b6748ea7d343042ec7d6dda1f6aae)
Diffstat (limited to 'lib/ccan/compiler/compiler.h')
-rw-r--r--lib/ccan/compiler/compiler.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ccan/compiler/compiler.h b/lib/ccan/compiler/compiler.h
index 74e0f1835c..fcb89c8f2a 100644
--- a/lib/ccan/compiler/compiler.h
+++ b/lib/ccan/compiler/compiler.h
@@ -61,18 +61,18 @@
#endif
#endif
-#ifndef IDEMPOTENT
+#ifndef CONST_FUNCTION
#if HAVE_ATTRIBUTE_CONST
/**
- * IDEMPOTENT - a function's return depends only on its argument
+ * CONST_FUNCTION - a function's return depends only on its argument
*
* This allows the compiler to assume that the function will return the exact
* same value for the exact same arguments. This implies that the function
* must not use global variables, or dereference pointer arguments.
*/
-#define IDEMPOTENT __attribute__((const))
+#define CONST_FUNCTION __attribute__((const))
#else
-#define IDEMPOTENT
+#define CONST_FUNCTION
#endif
#endif