From b067d2e4cc69d084c8446786e7abf51fdd3346a3 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 11 Apr 2003 17:04:02 +0000 Subject: [PATCH] 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. --- lib/config.h | 1 + 1 file changed, 1 insertion(+) 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. -- 2.39.2