X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fconfig.h;h=a43e9ea5e2bde7454bae1c67fcd2bf729928f5cb;hb=2cfb1c59697776039f04c43855d27a60d0788ca0;hp=f03572a5b01e845ca5f66f7f2e643fdc9f1c74ed;hpb=e8060fa4647c5c4ccf07efb91a35f65c543dfc4f;p=libucw.git diff --git a/ucw/config.h b/ucw/config.h index f03572a5..a43e9ea5 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--2009 Martin Mares * (c) 2006 Robert Spalek * * This software may be freely distributed and used according to the terms @@ -26,22 +26,22 @@ #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 uns; /** A better pronounceable alias for `unsigned int` **/ +typedef u32 ucw_time_t; /** Seconds since UNIX epoch **/ +typedef s64 timestamp_t; /** Milliseconds since UNIX epoch **/ + +#ifdef CONFIG_LARGE_FILES +typedef s64 ucw_off_t; /** File position (either 32- or 64-bit, depending on `CONFIG_LARGE_FILES`). **/ #else typedef s32 ucw_off_t; #endif