2 * Sherlock -- Configuration-Dependent Definitions
4 * (c) 1997--2002 Martin Mares <mj@ucw.cz>
7 #ifndef _SHERLOCK_CONFIG_H
8 #define _SHERLOCK_CONFIG_H
10 /* Custom configuration */
12 #include "lib/autoconf.h"
13 #include "lib/custom.h"
17 #define SHER_VER "2.2a" SHER_SUFFIX
21 #define DEFAULT_CONFIG "cf/sherlock"
25 typedef unsigned char byte; /* exactly 8 bits, unsigned */
26 typedef signed char sbyte; /* exactly 8 bits, signed */
27 typedef unsigned short word; /* exactly 16 bits, unsigned */
28 typedef short sword; /* exactly 16 bits, signed */
29 typedef unsigned short u16; /* exactly 16 bits, unsigned */
30 typedef short s16; /* exactly 16 bits, signed */
31 typedef unsigned int u32; /* exactly 32 bits, unsigned */
32 typedef int s32; /* exactly 32 bits, signed */
33 typedef unsigned int uns; /* at least 32 bits */
34 typedef unsigned long long int u64; /* exactly 64 bits, unsigned */
35 typedef long long int s64; /* exactly 64 bits, signed */
36 typedef unsigned long addr_int_t; /* Both integer and address */
37 typedef unsigned int sh_time_t; /* Timestamp */
40 #define NULL (void *)0
43 typedef u32 oid_t; /* Object ID */
45 /* Data types and functions for accessing file positions */
47 #ifdef SHERLOCK_CONFIG_LARGE_DB
51 #define bgeto(f) bget5(f)
52 #define bputo(f,l) bput5(f,l)
53 #define bgetp(f) bgetq(f)
54 #define bputp(f,l) bputq(f,l)
55 #define GET_O(p) GET_U40(p)
56 #define GET_P(p) GET_U64(p)
61 #define bgeto(f) bgetl(f)
62 #define bputo(f,l) bputl(f,l)
63 #define bgetp(f) bgetl(f)
64 #define bputp(f,l) bputl(f,l)
65 #define GET_O(p) GET_U32(p)
66 #define GET_P(p) GET_U32(p)
74 #define NONRET __attribute__((noreturn))
75 #define UNUSED __attribute__((unused))
76 #define CONSTRUCTOR __attribute__((constructor))
77 #define PACKED __attribute__((packed))
80 #error This program requires the GNU C compiler.