2 * Sherlock Library -- Configuration-Dependent Definitions
4 * (c) 1997--1999 Martin Mares, <mj@atrey.karlin.mff.cuni.cz>
7 #ifndef _SHERLOCK_CONFIG_H
8 #define _SHERLOCK_CONFIG_H
12 #define SHER_VER "1.3"
16 #define SHERLOCK_CONFIG_REF_WEIGHTS
17 #undef SHERLOCK_CONFIG_LARGE_DB
18 #undef SHERLOCK_CONFIG_LFS
22 typedef unsigned char byte; /* exactly 8 bits, unsigned */
23 typedef signed char sbyte; /* exactly 8 bits, signed */
24 typedef unsigned short word; /* exactly 16 bits, unsigned */
25 typedef short sword; /* exactly 16 bits, signed */
26 typedef unsigned short u16; /* exactly 16 bits, unsigned */
27 typedef short s16; /* exactly 16 bits, signed */
28 typedef unsigned int u32; /* exactly 32 bits, unsigned */
29 typedef int s32; /* exactly 32 bits, signed */
30 typedef unsigned int uns; /* at least 32 bits */
31 typedef unsigned long long int u64; /* exactly 64 bits, unsigned */
32 typedef long long int s64; /* exactly 64 bits, signed */
33 typedef unsigned long addr_int_t; /* Both integer and address */
36 #define NULL (void *)0
39 typedef u32 oid_t; /* Object ID */
41 #ifdef SHERLOCK_CONFIG_LFS /* off_t as passed to file functions */
43 #define BYTES_PER_FILE_POINTER 5
46 #define BYTES_PER_FILE_POINTER 4
49 #ifdef SHERLOCK_CONFIG_LARGE_DB /* off_t as present in database files */
50 typedef s64 sh_foff_t;
52 typedef s32 sh_foff_t;
55 /* CPU characteristics */
57 #define CPU_LITTLE_ENDIAN
59 #define CPU_CAN_DO_UNALIGNED_WORDS
60 #define CPU_CAN_DO_UNALIGNED_LONGS
61 #define CPU_STRUCT_ALIGN 4
68 #define NONRET __attribute__((noreturn))