From: Martin Mares Date: Sun, 14 Jan 2001 18:45:20 +0000 (+0000) Subject: Added DEFAULT_CONFIG define which tells us the name of the master X-Git-Tag: holmes-import~1597 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=ecfc630aa23529c07c8a9459608a2619479a7421;p=libucw.git 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. --- 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