LEADTOOLS Basic Data Types

LEADTOOLS has defined the following basic data types for portability:

Data Type

Definition and Usage

L_BITFIELD

Defined as L_UINT; used as a bit field.

L_BOOL

Defined as L_UINT; used as a boolean value.

L_CHAR

Defined as char; used as a signed 8-bit integer.

L_DOUBLE

Defined as double; used as a double precision floating point number.

L_FLOAT

Defined as float; used as a floating point number.

L_INT

Defined as int; used as a signed integer, 16-bits or larger.

L_INT16

Defined as short; used as a signed 16-bit integer.

L_INT32

Defined as long; used as a signed 32-bit integer.

L_UCHAR

Defined as unsigned char; used as an unsigned 8-bit integer.

L_UINT

Defined as unsigned; used as an unsigned integer, 16-bits or larger.

L_UINT16

Defined as unsigned short; used as an unsigned 16-bit integer.

L_UINT32

Defined as unsigned long; used as an unsigned 32-bit integer.

L_VOID

Defined as void; used as a void.

L_COMP

Defined as L_UINT; used as a handle to a computer

L_MEDIA

Defined as L_VOID L_FAR *; used as a void pointer

L_WCHAR

Defined as wchar; used as a signed 16-bit integer.

L_TCHAR

Defined as either char or TCHAR. If FOR_UNICODE is defined, then L_TCHAR will be defined as TCHAR.