dovecot-1.2: Added ATTR_PURE macro, which expands to pure attrib...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Jun 20 10:41:57 EEST 2008
details: http://hg.dovecot.org/dovecot-1.2/rev/3d65aeed7ea0
changeset: 7911:3d65aeed7ea0
user: Timo Sirainen <tss at iki.fi>
date: Fri Jun 20 10:41:27 2008 +0300
description:
Added ATTR_PURE macro, which expands to pure attribute if available.
diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
src/lib/macros.h | 3 ++-
diffs (20 lines):
diff -r c1bbdc2b262e -r 3d65aeed7ea0 src/lib/macros.h
--- a/src/lib/macros.h Fri Jun 20 06:26:21 2008 +0300
+++ b/src/lib/macros.h Fri Jun 20 10:41:27 2008 +0300
@@ -106,6 +106,7 @@
# define ATTR_UNUSED __attribute__((unused))
# define ATTR_NORETURN __attribute__((noreturn))
# define ATTR_CONST __attribute__((const))
+# define ATTR_PURE __attribute__((pure))
#else
# define ATTR_FORMAT(format_idx, arg_idx)
# define ATTR_FORMAT_ARG(arg_idx)
@@ -113,7 +114,7 @@
# define ATTR_UNUSED
# define ATTR_NORETURN
# define ATTR_CONST
-# define ATTR_UNUSED
+# define ATTR_PURE
#endif
#if __GNUC__ > 2
# define ATTR_MALLOC __attribute__((malloc))
More information about the dovecot-cvs
mailing list