X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fconfig.h;h=a4768b721f073ed5c6e0769458ccd0c3d1244f00;hb=a6368763d08042207963c941b1c52b5fafcb0cb3;hp=f03572a5b01e845ca5f66f7f2e643fdc9f1c74ed;hpb=a4fe009d3366b0a3e119713b0ecc7fc0070efdfa;p=libucw.git diff --git a/ucw/config.h b/ucw/config.h index f03572a5..a4768b72 100644 --- a/ucw/config.h +++ b/ucw/config.h @@ -1,7 +1,7 @@ /* * UCW Library -- Configuration-Dependent Definitions * - * (c) 1997--2007 Martin Mares + * (c) 1997--2012 Martin Mares * (c) 2006 Robert Spalek * * This software may be freely distributed and used according to the terms @@ -26,22 +26,24 @@ #include #include -typedef uint8_t byte; /* exactly 8 bits, unsigned */ -typedef uint8_t u8; /* exactly 8 bits, unsigned */ -typedef int8_t s8; /* exactly 8 bits, signed */ -typedef uint16_t u16; /* exactly 16 bits, unsigned */ -typedef int16_t s16; /* exactly 16 bits, signed */ -typedef uint32_t u32; /* exactly 32 bits, unsigned */ -typedef int32_t s32; /* exactly 32 bits, signed */ -typedef uint64_t u64; /* exactly 64 bits, unsigned */ -typedef int64_t s64; /* exactly 64 bits, signed */ - -typedef unsigned int uns; /* at least 32 bits */ -typedef u32 ucw_time_t; /* seconds since UNIX epoch */ -typedef s64 timestamp_t; /* milliseconds since UNIX epoch */ - -#ifdef CONFIG_LARGE_FILES /* File positions */ -typedef s64 ucw_off_t; +typedef uint8_t byte; /** Exactly 8 bits, unsigned **/ +typedef uint8_t u8; /** Exactly 8 bits, unsigned **/ +typedef int8_t s8; /** Exactly 8 bits, signed **/ +typedef uint16_t u16; /** Exactly 16 bits, unsigned **/ +typedef int16_t s16; /** Exactly 16 bits, signed **/ +typedef uint32_t u32; /** Exactly 32 bits, unsigned **/ +typedef int32_t s32; /** Exactly 32 bits, signed **/ +typedef uint64_t u64; /** Exactly 64 bits, unsigned **/ +typedef int64_t s64; /** Exactly 64 bits, signed **/ + +typedef unsigned int uint; /** A better pronounceable alias for `unsigned int` **/ +typedef s64 timestamp_t; /** Milliseconds since an unknown epoch **/ + +// FIXME: This should be removed soon +typedef uint uns; /** Backwards compatible alias for `uint' ***/ + +#ifdef CONFIG_UCW_LARGE_FILES +typedef s64 ucw_off_t; /** File position (either 32- or 64-bit, depending on `CONFIG_UCW_LARGE_FILES`). **/ #else typedef s32 ucw_off_t; #endif