CrystalSpace

Public API Reference

Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

cstypes.h File Reference

#include "csplatform.h"
#include <float.h>
#include <stddef.h>

Go to the source code of this file.

Other types

#define _INTPTR_T_DEFINED
#define _PTRDIFF_T_DEFINED
#define _UINTPTR_T_DEFINED
#define _WCHAR_T_DEFINED
#define _WCTYPE_T_DEFINED
#define _WINT_T
#define CS_WCHAR_T_SIZE   2
typedef unsigned int csTicks
 A time value measured in milliseconds (1/1000 of a second).
typedef int64 intmax_t
 Greatest-width integer.
typedef int intptr_t
 Integer at least as wide as a pointer.
typedef long long longlong
 Type to pass to cs_snprintf() as an argument to the "%lld" format specifier.
typedef int ptrdiff_t
 Difference of 2 pointers.
typedef unsigned int uint
 Shortcut for default unsigned int.
typedef uint64 uintmax_t
 Greatest-width unsigned integer.
typedef unsigned int uintptr_t
 Unsigned integer at least as wide as a pointer.
typedef unsigned long long ulonglong
 Type to pass to cs_snprintf() as an argument to the "%llu" format specifier.
typedef uint16 wchar_t
typedef wchar_t wint_t

Specific sized types

These types should be used ONLY when you need a variable of an explicit number of bits. For all other cases, you should use normal char, short, int, long, etc., types since they are treated as "natural" types and will generally have better performance characteristics than the explicitly-sized types. Use the explicitly-sized types sparingly.

#define CONST_INT64(x)   INT64_C(x)
 Specify a 64 bit integer constant.
#define CONST_UINT64(x)   UINT64_C(x)
 Specify 64 bit unsigned integer constant.
typedef short int16
 signed 16-bit integer (-32 768..32 767)
typedef int int32
 signed 32-bit integer (-2 147 483 648..2 147 483 647)
typedef long long int64
 signed 64-bit integer
typedef char int8
 signed 8-bit integer (-128..127)
typedef unsigned short uint16
 unsigned 16-bit integer (0..65 535)
typedef unsigned int uint32
 unsigned 32-bit integer (0..4 294 967 295)
typedef unsigned long long uint64
 unsigned 64-bit integer
typedef unsigned char uint8
 unsigned 8-bit integer (0..255)


Detailed Description

Definition in file cstypes.h.


Define Documentation

#define CONST_INT64  )     INT64_C(x)
 

Specify a 64 bit integer constant.

Compilers differ in 64-bit wide number specification. Employ this macro to use the appropriate mechanism automatically.

Definition at line 101 of file cstypes.h.

#define CONST_UINT64  )     UINT64_C(x)
 

Specify 64 bit unsigned integer constant.

Compilers differ in 64-bit wide number specification. Employ this macro to use the appropriate mechanism automatically.

Definition at line 108 of file cstypes.h.


Typedef Documentation

typedef unsigned int csTicks
 

A time value measured in milliseconds (1/1000 of a second).

Ticks do not represent wall clock time or any other Epoch-based time. Instead, ticks are useful only for measuring differences between points on a timeline, or for specifying intervals.

Definition at line 227 of file cstypes.h.

typedef short int16
 

signed 16-bit integer (-32 768..32 767)

Definition at line 63 of file cstypes.h.

typedef int int32
 

signed 32-bit integer (-2 147 483 648..2 147 483 647)

Definition at line 67 of file cstypes.h.

typedef long long int64
 

signed 64-bit integer

Definition at line 72 of file cstypes.h.

typedef char int8
 

signed 8-bit integer (-128..127)

Definition at line 59 of file cstypes.h.

typedef int64 intmax_t
 

Greatest-width integer.

Definition at line 159 of file cstypes.h.

typedef int intptr_t
 

Integer at least as wide as a pointer.

Definition at line 145 of file cstypes.h.

typedef long long longlong
 

Type to pass to cs_snprintf() as an argument to the "%lld" format specifier.

Definition at line 199 of file cstypes.h.

typedef int ptrdiff_t
 

Difference of 2 pointers.

Definition at line 149 of file cstypes.h.

typedef unsigned int uint
 

Shortcut for default unsigned int.

Definition at line 230 of file cstypes.h.

typedef unsigned short uint16
 

unsigned 16-bit integer (0..65 535)

Definition at line 61 of file cstypes.h.

typedef unsigned int uint32
 

unsigned 32-bit integer (0..4 294 967 295)

Definition at line 65 of file cstypes.h.

typedef uint64
 

unsigned 64-bit integer

Definition at line 70 of file cstypes.h.

typedef unsigned char uint8
 

unsigned 8-bit integer (0..255)

Definition at line 57 of file cstypes.h.

typedef uint64 uintmax_t
 

Greatest-width unsigned integer.

Definition at line 161 of file cstypes.h.

typedef unsigned int uintptr_t
 

Unsigned integer at least as wide as a pointer.

Definition at line 147 of file cstypes.h.

typedef unsigned long long ulonglong
 

Type to pass to cs_snprintf() as an argument to the "%llu" format specifier.

Definition at line 203 of file cstypes.h.


Generated for Crystal Space by doxygen 1.4.4