From: Martin Mares Date: Fri, 11 Apr 2003 17:04:02 +0000 (+0000) Subject: Added a new PURE attribute which means "this function can read global variables, X-Git-Tag: holmes-import~1261 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=b067d2e4cc69d084c8446786e7abf51fdd3346a3;p=libucw.git Added a new PURE attribute which means "this function can read global variables, but it doesn't have any side effects" as opposed to CONST which promises that no global variables will be touched. --- diff --git a/lib/config.h b/lib/config.h index 31e61d5e..9ba9b43f 100644 --- a/lib/config.h +++ b/lib/config.h @@ -82,6 +82,7 @@ typedef s32 sh_off_t; #define CONSTRUCTOR __attribute__((constructor)) #define PACKED __attribute__((packed)) #define CONST __attribute__((const)) +#define PURE __attribute__((const)) #else #error This program requires the GNU C compiler.