psptypes.h File Reference

Header for the Platform Support Package - Platform dependent types. More...

#include "pspplatos.h"
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
Include dependency graph for psptypes.h:
This graph shows which files directly or indirectly include this file:

Macros

#define RDM_C_EXPORT RDM_EXPORT
#define PSP_EXPORT RDM_IMPORT
#define BASE_PUBLIC_CLASS RDM_IMPORT
#define RDM_INIT {}
#define TRANS_PUBLIC_CLASS RDM_IMPORT
#define RDM_UNREF(a) ((void) (a))
#define EXTERNAL_FCN_PTR EXTERNAL_FCN *
#define RDM_LEN(x) (sizeof (x) / sizeof (*(x)))
#define RDM_MIN(a, b) ((a) < (b) ? (a) : (b))
#define RDM_MAX(a, b) ((a) > (b) ? (a) : (b))
#define RDM_INT8_MIN ((int8_t) 0x80U)
#define RDM_INT8_MAX ((int8_t) 0x7FU)
#define RDM_UINT8_MAX ((uint8_t) 0xFFU)
#define RDM_INT16_MIN ((int16_t) 0x8000U)
#define RDM_INT16_MAX ((int16_t) 0x7FFFU)
#define RDM_UINT16_MAX ((uint16_t) 0xFFFFU)
#define RDM_INT32_MIN ((int32_t) 0x80000000U)
#define RDM_INT32_MAX ((int32_t) 0x7FFFFFFFU)
#define RDM_UINT32_MAX ((uint32_t) 0xFFFFFFFFU)
#define RDM_INT64_MIN (-9223372036854775807LL - 1)
#define RDM_INT64_MAX (9223372036854775807LL)
#define RDM_UINT64_MAX (18446744073709551615ULL)

Enumerations

enum RDM_COMPARE { RDM_LT = -1, RDM_EQ = 0, RDM_GT = 1 }

Detailed Description

Header for the Platform Support Package - Platform dependent types.

Macro Definition Documentation

BASE_PUBLIC_CLASS

#define BASE_PUBLIC_CLASS RDM_IMPORT

EXTERNAL_FCN_PTR

#define EXTERNAL_FCN_PTR EXTERNAL_FCN *

PSP_EXPORT

#define PSP_EXPORT RDM_IMPORT

RDM_C_EXPORT

RDM_INIT

#define RDM_INIT {}

RDM_INT16_MAX

#define RDM_INT16_MAX ((int16_t) 0x7FFFU)

Maximum value for int64_t

RDM_INT16_MIN

#define RDM_INT16_MIN ((int16_t) 0x8000U)

Minimum value for int16_t

RDM_INT32_MAX

#define RDM_INT32_MAX ((int32_t) 0x7FFFFFFFU)

Maximum value for int64_t

RDM_INT32_MIN

#define RDM_INT32_MIN ((int32_t) 0x80000000U)

Minimum value for int32_t

RDM_INT64_MAX

#define RDM_INT64_MAX (9223372036854775807LL)

Maximum value for int64_t

RDM_INT64_MIN

#define RDM_INT64_MIN (-9223372036854775807LL - 1)

Minimum value for int64_t

RDM_INT8_MAX

#define RDM_INT8_MAX ((int8_t) 0x7FU)

Maximum value for int64_t

RDM_INT8_MIN

#define RDM_INT8_MIN ((int8_t) 0x80U)

Minimum value for int_t

RDM_LEN

RDM_MAX

#define RDM_MAX ( a,
b
) ((a) > (b) ? (a) : (b))

Macro fo taking the max of two arguments of any type

RDM_MIN

#define RDM_MIN ( a,
b
) ((a) < (b) ? (a) : (b))

Macro fo taking the min of two arguments of any type

RDM_UINT16_MAX

#define RDM_UINT16_MAX ((uint16_t) 0xFFFFU)

Maximum value for uint64_t

RDM_UINT32_MAX

#define RDM_UINT32_MAX ((uint32_t) 0xFFFFFFFFU)

Maximum value for uint64_t

RDM_UINT64_MAX

#define RDM_UINT64_MAX (18446744073709551615ULL)

Maximum value for uint64_t

Examples
cpp55Example_main.cpp.

RDM_UINT8_MAX

#define RDM_UINT8_MAX ((uint8_t) 0xFFU)

Maximum value for uint64_t

RDM_UNREF

TRANS_PUBLIC_CLASS

#define TRANS_PUBLIC_CLASS RDM_IMPORT

Enumeration Type Documentation

RDM_COMPARE

Enumeration for RaimaDB comparison values

Enumerator
RDM_LT

The first argument is lesser than the second argument

RDM_EQ

The arguments are equal

RDM_GT

The first argument is greater than the second argument

96 {
97RDM_LT = -1,
98RDM_EQ = 0,
99RDM_GT = 1
100 } RDM_COMPARE;
@ RDM_EQ
Definition: psptypes.h:98
@ RDM_LT
Definition: psptypes.h:97
RDM_COMPARE
Definition: psptypes.h:96
@ RDM_GT
Definition: psptypes.h:99