Standard Typedefs

Overview

This section describes standard typedefs available in Jancy. More…

// typedefs

typedef String string_t;
typedef Variant variant_t;
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef unsigned long size_t;
typedef char int8_t;
typedef char utf8_t;
typedef unsigned char uint8_t;
typedef unsigned char uchar_t;
typedef unsigned char byte_t;
typedef short int16_t;
typedef short utf16_t;
typedef unsigned short uint16_t;
typedef unsigned short ushort_t;
typedef unsigned short word_t;
typedef int int32_t;
typedef int utf32_t;
typedef unsigned int uint32_t;
typedef unsigned int uint_t;
typedef unsigned int dword_t;
typedef long int64_t;
typedef unsigned long uint64_t;
typedef unsigned long ulong_t;
typedef unsigned long qword_t;

// structs

struct String;
struct Variant;

Detailed Documentation

This section describes standard typedefs available in Jancy.

The purpose of these typedefs is to create a familiar environment for C/C++ programmers and make it easier to switch between Jancy and C/C++.

Typedefs

typedef String string_t

A built-in string type – a UTF-8 string slice, not necessarily null-terminated. When a null-terminated version of this slice is required, it’s automatically generated and cached.

typedef Variant variant_t

The built-in variant type. Variables or fields of this type can hold values of any other type.

typedef long intptr_t

Signed integer type with size equal to the size of a pointer on the given platform. On 32-bit platform intptr_t is identical to int32_t; on 64-bit platforns intptr_t is identical to int64_t.

typedef unsigned long uintptr_t
typedef unsigned long size_t

Unsigned integer type with size equal to the size of a pointer on the given platform. On 32-bit platform both uintptr_t and size_t are identical to uint32_t; on 64-bit platforns they are identical to uint64_t.

typedef char int8_t
typedef char utf8_t

Signed integer type with width of 8 bits.

typedef unsigned char uint8_t
typedef unsigned char uchar_t
typedef unsigned char byte_t

Unsigned integer type with width of 8 bits.

typedef short int16_t
typedef short utf16_t

Signed integer type with width of 16 bits.

typedef unsigned short uint16_t
typedef unsigned short ushort_t
typedef unsigned short word_t

Unsigned integer type with width of 16 bits.

typedef int int32_t
typedef int utf32_t

Signed integer type with width of 32 bits.

typedef unsigned int uint32_t
typedef unsigned int uint_t
typedef unsigned int dword_t

Unsigned integer type with width of 32 bits.

typedef long int64_t

Signed integer type with width of 64 bits.

typedef unsigned long uint64_t
typedef unsigned long ulong_t
typedef unsigned long qword_t

Unsigned integer type with width of 64 bits.