The Hackerlab at regexps.com

Machine-Specific Definitions

up: libhackerlab
next: Low-level Memory Management
prev: Handling Bugs


#include <hackerlab/machine/types.h>

The following machine-specific types and macros are used throughout the Hackerlab C library.


Known-Width Integer Types

up: Machine-Specific Definitions
next: Unsigned Integer Types

Type t_uint8

An 8-bit unsigned integer.



Type t_int8

An 8-bit signed integer.



Type t_uint16

An 16-bit unsigned integer.



Type t_int16

An 16-bit signed integer.



Type t_uint32

An 32-bit unsigned integer.



Type t_int32

An 32-bit signed integer.




Unsigned Integer Types

up: Machine-Specific Definitions
next: Sizeof Macros
prev: Known-Width Integer Types

Type t_uchar

Short-hand for unsigned char .



Type t_ushort

Short-hand for unsigned short .



Type t_uint

Short-hand for unsigned int .



Type t_ulong

Short-hand for unsigned long .




Sizeof Macros

up: Machine-Specific Definitions
next: Types for Unicode
prev: Unsigned Integer Types

Macro MACHINE_SIZEOF_SHORT

An integer equal to sizeof (short) .



Macro MACHINE_SIZEOF_INT

An integer equal to sizeof (int) .



Macro MACHINE_SIZEOF_LONG

An integer equal to sizeof (long) .




Types for Unicode

up: Machine-Specific Definitions
prev: Sizeof Macros

Type t_unichar

A synonym for t_uint16 -- an unsigned 16-bit integer.

This type is used to represent code units in the UTF-16 encoding form.



Type t_unicode

A synonym for t_uint32 -- an unsigned 32-bit integer.

This type is used to represent Unicode code points and can also be used to represent code units in the UTF-32 encoding form.



libhackerlab: The Hackerlab C Library
The Hackerlab at regexps.com