From ecfc630aa23529c07c8a9459608a2619479a7421 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 14 Jan 2001 18:45:20 +0000 Subject: [PATCH] Added DEFAULT_CONFIG define which tells us the name of the master configuration file. Added CONSTRUCTOR which is a macro generating __attribute__((constructor)) to make a function called automatically upon program startup. This is ideal for registering of configuration sections. --- lib/config.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/config.h b/lib/config.h index 7b3fab4b..e5b35528 100644 --- a/lib/config.h +++ b/lib/config.h @@ -17,6 +17,10 @@ #undef SHERLOCK_CONFIG_LFS /* Large files on 32-bit systems */ #undef SHERLOCK_CONFIG_LFS_LIBC /* LFS supported directly by libc */ +/* Paths */ + +#define DEFAULT_CONFIG "cf/sherlock" + /* Types */ typedef unsigned char byte; /* exactly 8 bits, unsigned */ @@ -67,13 +71,10 @@ typedef s32 sh_foff_t; #undef inline #define NONRET __attribute__((noreturn)) #define UNUSED __attribute__((unused)) +#define CONSTRUCTOR __attribute__((constructor)) #else - -#define inline -#define NONRET -#define UNUSED - +#error This program requires the GNU C compiler. #endif #endif -- 2.39.2