DynaPDF Manual - Page 14
Previous Page 13 Index Next Page 15
Data types
Page 14 of 860
Data types
DynaPDF is a low level library that uses basic data types only. DynaPDF uses generally no
default string class or special C++ extensions such as STL or MFC.
The data types used by DynaPDF are defined as follows (C syntax):
typedef unsigned char BYTE;
typedef signed short SI16;
typedef unsigned short UI16;
typedef double
FFLOAT; // Obsolete, do not use this data type.
#ifdef _WINDOWS
#if defined(WIN64) || defined(_WIN64)
typedef int
SI32;
typedef unsigned int
UI32;
#else
typedef long
SI32;
typedef unsigned long UI32;
#endif
#elif (SIZEOF_INT == 4) // declared in drv_conf.h (Linux/UNIX only)
typedef int
SI32;
typedef unsigned int
UI32;
#elif (SIZEOF_LONG == 4) // declared in drv_conf.h (Linux/UNIX only)
typedef long
SI32;
typedef unsigned long UI32;
#else
#error "Only 32 bit and 64 bit targets are supported!"
#endif
typedef SI32 LBOOL; // long boolean (0 = false, not 0 = true)
// This data type is provided for C only since this language does not
// support a Boolean data type.
#ifndef __cplusplus
typedef enum
{
false = 0,
true = 1
}bool;
#endif
The data type char is not explicitly defined but also used by DynaPDF.
SI32 and UI32 must always be a 32 bit integer. It is not possible to use DynaPDF on a target
system that does not support a 32 bit integer type, like MS-DOS. DynaPDF can be used on 32 and
64 bit operating systems. The current version was tested with Android, IBM-AIX, HP-UX, iOS,
Linux, Mac OS X, Sun-Solaris, Tru64, and MS-Windows.
Previous topic: Table of Contents
Next topic: Var Parameters, Structures, Multi-byte Strings, Unicode