types.h File Reference

Portable typedefs for hamsterdb Embedded Storage. More...

Go to the source code of this file.

Defines

#define HAM_OS_POSIX   1
#define HAM_32BIT   1
#define HAM_EXPORT   extern
#define HAM_INVALID_FD   (-1)
#define HAM_FALSE   0
#define HAM_TRUE   (!HAM_FALSE)
#define HAM_MAX_U32   (~(ham_u32_t)0)
#define HAM_MAX_SIZE_T   (~(ham_size_t)0)

Typedefs

typedef signed long long ham_s64_t
typedef unsigned long long ham_u64_t
typedef signed int ham_s32_t
typedef unsigned int ham_u32_t
typedef signed short ham_s16_t
typedef unsigned short ham_u16_t
typedef signed char ham_s8_t
typedef unsigned char ham_u8_t
typedef int ham_fd_t
typedef int ham_bool_t
typedef int ham_status_t
typedef ham_u64_t ham_offset_t
typedef ham_u32_t ham_size_t

Detailed Description

Portable typedefs for hamsterdb Embedded Storage.

Author:
Christoph Rupp, chris@crupp.de

Definition in file types.h.


Define Documentation

#define HAM_32BIT   1

Definition at line 55 of file types.h.

#define HAM_EXPORT   extern

Definition at line 96 of file types.h.

#define HAM_FALSE   0

Definition at line 177 of file types.h.

#define HAM_INVALID_FD   (-1)

Definition at line 158 of file types.h.

#define HAM_MAX_SIZE_T   (~(ham_size_t)0)

Definition at line 205 of file types.h.

#define HAM_MAX_U32   (~(ham_u32_t)0)

maximum values which can be stored in the related ham_[type]_t type:

Definition at line 204 of file types.h.

#define HAM_OS_POSIX   1

Definition at line 49 of file types.h.

#define HAM_TRUE   (!HAM_FALSE)

Definition at line 178 of file types.h.


Typedef Documentation

typedef int ham_bool_t

a boolean type

Definition at line 176 of file types.h.

typedef int ham_fd_t

typedefs for 64bit operating systems; on Win64, longs do not always have 64bit!

Definition at line 157 of file types.h.

typedef for addressing the file, which limits the file size to 64 bit

Remarks:
If you change this datatype, you also have to change the endian-macros in src/endian.h (ham_db2h_offset/ham_h2db_offset)

Definition at line 191 of file types.h.

typedef signed short ham_s16_t

Definition at line 120 of file types.h.

typedef signed int ham_s32_t

Definition at line 118 of file types.h.

typedef signed long long ham_s64_t

typedefs for 32bit operating systems

Definition at line 115 of file types.h.

typedef signed char ham_s8_t

Definition at line 122 of file types.h.

typedef for sizes, which limits data blobs to 32 bits

Remarks:
If you change this datatype, you also have to change the endian-macros in src/endian.h (ham_db2h_size/ham_h2db_size)

Definition at line 199 of file types.h.

typedef int ham_status_t

typedef for error- and status-code

Definition at line 183 of file types.h.

typedef unsigned short ham_u16_t

Definition at line 121 of file types.h.

typedef unsigned int ham_u32_t

Definition at line 119 of file types.h.

typedef unsigned long long ham_u64_t

Definition at line 116 of file types.h.

typedef unsigned char ham_u8_t

Definition at line 123 of file types.h.


Generated on Tue Mar 16 20:19:44 2010 for hamsterdb Embedded Database by  doxygen 1.6.1