]> mj.ucw.cz Git - libucw.git/commitdiff
Added a new PURE attribute which means "this function can read global variables,
authorMartin Mares <mj@ucw.cz>
Fri, 11 Apr 2003 17:04:02 +0000 (17:04 +0000)
committerMartin Mares <mj@ucw.cz>
Fri, 11 Apr 2003 17:04:02 +0000 (17:04 +0000)
but it doesn't have any side effects" as opposed to CONST which promises
that no global variables will be touched.

lib/config.h

index 31e61d5ee628ff3584eed6dd4c377697d115a0e5..9ba9b43fa77a50f3db44e26d1056510ed4c4c96b 100644 (file)
@@ -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.