Vanilla.PDF  1.5.2
Cross-platform toolkit for creating and modifying PDF documents
c_types.h
Go to the documentation of this file.
1 #ifndef _C_TYPES_H
2 #define _C_TYPES_H
3 
9 #include "c_platform.h"
10 
11 // C++ specific headers
12 #ifdef __cplusplus
13  #include <cstdint>
14  #include <cstddef>
15 #endif /* __cplusplus */
16 
17 // C specific headers
18 #include <stdint.h>
19 #include <stddef.h>
20 
25 typedef uint32_t error_type;
26 
31 typedef int8_t boolean_type;
32 
41 typedef double real_type;
42 
46 typedef uint16_t ushort_type;
47 
51 typedef int32_t integer_type;
52 
56 typedef int64_t offset_type;
57 
61 #if defined(ENVIRONMENT_32_BIT)
62  typedef uint32_t size_type;
63 #elif defined(ENVIRONMENT_64_BIT)
64  typedef uint64_t size_type;
65 #elif !defined(ENVIRONMENT_32_BIT) && !defined(ENVIRONMENT_64_BIT)
66  #error Unknown environment size type
67 #endif /* ENVIRONMENT_32_BIT */
68 
72 typedef int64_t bigint_type;
73 
77 typedef uint64_t biguint_type;
78 
82 typedef const char* string_type;
83  /* group_types */
85 
86 #endif /* _C_TYPES_H */
uint16_t ushort_type
16-bit unsigned integer
Definition: c_types.h:46
This file contains macro declarations about current platform and compiler.
uint64_t biguint_type
64-bit unsigned integer type
Definition: c_types.h:77
double real_type
Floating point values.
Definition: c_types.h:41
uint32_t size_type
Size type defined in standard library.
Definition: c_types.h:62
const char * string_type
C-Style string.
Definition: c_types.h:82
int64_t bigint_type
64-bit signed integer type
Definition: c_types.h:72
uint32_t error_type
This is return value type of all API functions.
Definition: c_types.h:25
int32_t integer_type
32-bit signed integer
Definition: c_types.h:51
int64_t offset_type
Offset type compatible with standard IO.
Definition: c_types.h:56
int8_t boolean_type
Boolean type supported in C.
Definition: c_types.h:31