GATE
Loading...
Searching...
No Matches
gatetypes.h File Reference

basic type definitions More...

#include <limits.h>
#include <stddef.h>
#include <stdbool.h>
#include <wchar.h>

Macros

#define GATE_MAX_FILENAME_LENGTH   (256)
 
#define GATE_DEFAULT_LINE_LENGTH   (1024)
 
#define GATE_MAX_FILEPATH_LENGTH   (2048 + 1024 + 512)
 
#define GATE_MAX_COPYBUFFER_LENGTH   (4096)
 
#define GATE_MAX_STACK_COPYBUFFER_LENGTH   (1024 * 12)
 
#define GATE_MAX_BLOCK_COPYBUFFER_LENGTH   (65536)
 

Typedefs

typedef void * gate_ptr_t
 
typedef bool gate_bool_t
 
typedef unsigned char gate_uint8_t
 
typedef signed char gate_int8_t
 
typedef unsigned short int gate_uint16_t
 
typedef signed short int gate_int16_t
 
typedef unsigned long gate_uint32_t
 
typedef signed long gate_int32_t
 
typedef unsigned long gate_uint64_t
 
typedef signed long gate_int64_t
 
typedef float gate_real32_t
 
typedef double gate_real64_t
 
typedef char gate_char8_t
 
typedef unsigned short gate_char16_t
 
typedef wchar_t gate_char32_t
 
typedef gate_char8_tgate_str8_t
 
typedef gate_char16_tgate_str16_t
 
typedef gate_char32_tgate_str32_t
 
typedef gate_char8_t const * gate_const_str8_t
 
typedef gate_char16_t const * gate_const_str16_t
 
typedef gate_char32_t const * gate_const_str32_t
 
typedef long gate_intptr_t
 
typedef unsigned long gate_uintptr_t
 
typedef gate_uintptr_t gate_size_t
 
typedef gate_intptr_t gate_index_t
 
typedef gate_size_t gate_offset_t
 
typedef int gate_result_t
 
typedef int gate_enumint_t
 
typedef gate_uintptr_t gate_handle_t
 
typedef void * gate_dataptr_t
 
typedef gate_result_t(* gate_funcptr_t) (gate_dataptr_t arg)
 
typedef gate_funcptr_t gate_entrypoint_t
 

Detailed Description

basic type definitions

Macro Definition Documentation

◆ GATE_MAX_FILENAME_LENGTH

#define GATE_MAX_FILENAME_LENGTH   (256)

maximum length of a single file name

◆ GATE_DEFAULT_LINE_LENGTH

#define GATE_DEFAULT_LINE_LENGTH   (1024)

default text line length

◆ GATE_MAX_FILEPATH_LENGTH

#define GATE_MAX_FILEPATH_LENGTH   (2048 + 1024 + 512)

maximum length of the total path of a file

◆ GATE_MAX_COPYBUFFER_LENGTH

#define GATE_MAX_COPYBUFFER_LENGTH   (4096)

default size of a copy buffer in bytes

◆ GATE_MAX_STACK_COPYBUFFER_LENGTH

#define GATE_MAX_STACK_COPYBUFFER_LENGTH   (1024 * 12)

default size of a copy buffer in bytes

◆ GATE_MAX_BLOCK_COPYBUFFER_LENGTH

#define GATE_MAX_BLOCK_COPYBUFFER_LENGTH   (65536)

default size of a copy buffer in bytes

Typedef Documentation

◆ gate_ptr_t

typedef void* gate_ptr_t

basic generic pointer type

◆ gate_bool_t

typedef bool gate_bool_t

basic boolean type

◆ gate_uint8_t

typedef unsigned char gate_uint8_t

basic 8-bit unsigned integer

◆ gate_int8_t

typedef signed char gate_int8_t

basic 8-bit signed integer

◆ gate_uint16_t

typedef unsigned short int gate_uint16_t

basic 16-bit unsigned integer

◆ gate_int16_t

typedef signed short int gate_int16_t

basic 16-bit signed integer

◆ gate_uint32_t

typedef unsigned long gate_uint32_t

basic 32-bit unsigned integer

◆ gate_int32_t

typedef signed long gate_int32_t

basic 32-bit signed integer

◆ gate_uint64_t

typedef unsigned long gate_uint64_t

basic 64-bit unsigned integer

◆ gate_int64_t

typedef signed long gate_int64_t

basic 64-bit signed integer

◆ gate_real32_t

typedef float gate_real32_t

basic 32-bit floating point number

◆ gate_real64_t

typedef double gate_real64_t

basic 64-bit floating point number

◆ gate_char8_t

typedef char gate_char8_t

UTF 8 character

◆ gate_char16_t

typedef unsigned short gate_char16_t

UTF 16 character

◆ gate_char32_t

typedef wchar_t gate_char32_t

UTF 32 character

◆ gate_str8_t

UTF 8 string

◆ gate_str16_t

UTF 16 string

◆ gate_str32_t

UTF 32 string

◆ gate_const_str8_t

const UTF 8 string

◆ gate_const_str16_t

const UTF 16 string

◆ gate_const_str32_t

const UTF 32 string

◆ gate_intptr_t

typedef long gate_intptr_t

signed integer of pointer-size

◆ gate_uintptr_t

typedef unsigned long gate_uintptr_t

unsigned integer of pointer-size

◆ gate_size_t

memory-related size

◆ gate_index_t

index in array

◆ gate_offset_t

offset of data in memory

◆ gate_result_t

typedef int gate_result_t

generic GATE result code

◆ gate_enumint_t

typedef int gate_enumint_t

generic enum-size machine word type (16-bit int)

◆ gate_handle_t

generic integer handle

◆ gate_dataptr_t

typedef void* gate_dataptr_t

generic pointer to data

◆ gate_funcptr_t

typedef gate_result_t(* gate_funcptr_t) (gate_dataptr_t arg)

generic pointer to C function

◆ gate_entrypoint_t

generic code entry point function