Mercurial > dovecot > original-hg > dovecot-1.2
changeset 7911:3d65aeed7ea0 HEAD
Added ATTR_PURE macro, which expands to pure attribute if available.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 20 Jun 2008 10:41:27 +0300 |
parents | c1bbdc2b262e |
children | 81806d402514 |
files | src/lib/macros.h |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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))