ICU 62.1 62.1
Macros | Typedefs
ptypes.h File Reference

C API: Definitions of integer types of various widths. More...

#include <stddef.h>
#include "unicode/platform.h"

Go to the source code of this file.

Macros

#define __STDC_LIMIT_MACROS
 According to the Linux stdint.h, the ISO C99 standard specifies that in C++ implementations macros like INT32_MIN and UINTPTR_MAX should only be defined if explicitly requested.
 

Typedefs

typedef signed char int8_t
 
typedef unsigned char uint8_t
 
typedef signed short int16_t
 
typedef unsigned short uint16_t
 
typedef signed int int32_t
 
typedef unsigned int uint32_t
 
typedef signed long long int64_t
 
typedef unsigned long long uint64_t
 

Detailed Description

C API: Definitions of integer types of various widths.

Definition in file ptypes.h.

Macro Definition Documentation

◆ __STDC_LIMIT_MACROS

#define __STDC_LIMIT_MACROS

According to the Linux stdint.h, the ISO C99 standard specifies that in C++ implementations macros like INT32_MIN and UINTPTR_MAX should only be defined if explicitly requested.

We need to define __STDC_LIMIT_MACROS before including stdint.h in C++ code that uses such limit macros.

Internal
Do not use. This API is for internal use only.

Definition at line 39 of file ptypes.h.

Typedef Documentation

◆ int16_t

typedef signed short int16_t

Definition at line 95 of file ptypes.h.

◆ int32_t

typedef signed int int32_t

Definition at line 103 of file ptypes.h.

◆ int64_t

typedef signed long long int64_t

Definition at line 114 of file ptypes.h.

◆ int8_t

typedef signed char int8_t

Definition at line 87 of file ptypes.h.

◆ uint16_t

typedef unsigned short uint16_t

Definition at line 99 of file ptypes.h.

◆ uint32_t

typedef unsigned int uint32_t

Definition at line 107 of file ptypes.h.

◆ uint64_t

typedef unsigned long long uint64_t

Definition at line 122 of file ptypes.h.

◆ uint8_t

typedef unsigned char uint8_t

Definition at line 91 of file ptypes.h.