module lib.sdl2.stdinc

Code Map

module lib.sdl2.stdinc;


enum SDL_FALSE;
enum SDL_TRUE;

//! \file SDL_stdinc.h
alias SDL_bool = i32;
//! \brief A signed 8-bit integer type.
alias Sint8 = i8;
//! \brief An unsigned 8-bit integer type.
alias Uint8 = u8;
//! \brief A signed 16-bit integer type.
alias Sint16 = i16;
//! \brief An unsigned 16-bit integer type.
alias Uint16 = u16;
//! \brief A signed 32-bit integer type.
alias Sint32 = i32;
//! \brief An unsigned 32-bit integer type.
alias Uint32 = u32;
//! \brief A signed 64-bit integer type.
alias Sint64 = i64;
//! \brief An unsigned 64-bit integer type.
alias Uint64 = u64;

fn SDL_malloc(size: size_t) void*;
fn SDL_calloc(nmemb: size_t, size: size_t) void*;
fn SDL_realloc(mem: void*, size: size_t) void*;
fn SDL_free(mem: void*);
fn SDL_getenv(name: const(const(char)*)) char*;
fn SDL_setenv(name: const(const(char)*), value: const(const(char)*), overwrite: i32) i32;
fn SDL_qsort(base: void*, nmemb: size_t, size: size_t, fn (const(const(void)*), const(const(void)*)) (i32));
fn SDL_abs(x: i32) i32;
fn SDL_isdigit(x: i32) i32;
fn SDL_isspace(x: i32) i32;
fn SDL_toupper(x: i32) i32;
fn SDL_tolower(x: i32) i32;
fn SDL_memset(dst: void*, c: i32, len: size_t) void*;
fn SDL_memcpy(dst: void*, src: const(const(void)*), len: size_t) void*;
fn SDL_memcpy4(dst: void*, src: const(const(void)*), dwords: size_t) void* { }
fn SDL_memmove(dst: void*, src: const(const(void)*), len: size_t) void*;
fn SDL_memcmp(s1: const(const(void)*), s2: const(const(void)*), len: size_t) i32;
fn SDL_strlen(str: const(const(char)*)) size_t;
fn SDL_strlcpy(dst: char*, src: const(const(char)*), maxlen: size_t) size_t;
fn SDL_utf8strlcpy(dst: char*, src: const(const(char)*), dst_bytes: size_t) size_t;
fn SDL_strlcat(dst: char*, src: const(const(char)*), maxlen: size_t) size_t;
fn SDL_strdup(str: const(const(char)*)) char*;
fn SDL_strrev(str: char*) char*;
fn SDL_strupr(str: char*) char*;
fn SDL_strlwr(str: char*) char*;
fn SDL_strchr(str: const(const(char)*), c: i32) char*;
fn SDL_strrchr(str: const(const(char)*), c: i32) char*;
fn SDL_strstr(haystack: const(const(char)*), needle: const(const(char)*)) char*;
fn SDL_itoa(value: i32, str: char*, radix: i32) char*;
fn SDL_uitoa(value: u32, str: char*, radix: i32) char*;
fn SDL_ltoa(value: i64, str: char*, radix: i32) char*;
fn SDL_ultoa(value: u64, str: char*, radix: i32) char*;
fn SDL_lltoa(value: Sint64, str: char*, radix: i32) char*;
fn SDL_ulltoa(value: Uint64, str: char*, radix: i32) char*;
fn SDL_atoi(str: const(const(char)*)) i32;
fn SDL_atof(str: const(const(char)*)) f64;
fn SDL_strtol(str: const(const(char)*), endp: char**, base: i32) i64;
fn SDL_strtoul(str: const(const(char)*), endp: char**, base: i32) u64;
fn SDL_strtoll(str: const(const(char)*), endp: char**, base: i32) Sint64;
fn SDL_strtoull(str: const(const(char)*), endp: char**, base: i32) Uint64;
fn SDL_strtod(str: const(const(char)*), endp: char**) f64;
fn SDL_strcmp(str1: const(const(char)*), str2: const(const(char)*)) i32;
fn SDL_strncmp(str1: const(const(char)*), str2: const(const(char)*), maxlen: size_t) i32;
fn SDL_strcasecmp(str1: const(const(char)*), str2: const(const(char)*)) i32;
fn SDL_strncasecmp(str1: const(const(char)*), str2: const(const(char)*), len: size_t) i32;
fn SDL_sscanf(text: const(const(char)*), fmt: const(const(char)*)) i32;
fn SDL_snprintf(text: char*, maxlen: size_t, fmt: const(const(char)*)) i32;
fn SDL_atan(x: f64) f64;
fn SDL_atan2(x: f64, y: f64) f64;
fn SDL_ceil(x: f64) f64;
fn SDL_copysign(x: f64, y: f64) f64;
fn SDL_cos(x: f64) f64;
fn SDL_cosf(x: f32) f32;
fn SDL_fabs(x: f64) f64;
fn SDL_floor(x: f64) f64;
fn SDL_log(x: f64) f64;
fn SDL_pow(x: f64, y: f64) f64;
fn SDL_scalbn(x: f64, n: i32) f64;
fn SDL_sin(x: f64) f64;
fn SDL_sinf(x: f32) f32;
fn SDL_sqrt(x: f64) f64;
alias SDL_bool

\file SDL_stdinc.h

This is a general header that includes C language support.

\name Basic data types

alias Sint8

\brief A signed 8-bit integer type.

alias Uint8

\brief An unsigned 8-bit integer type.

alias Sint16

\brief A signed 16-bit integer type.

alias Uint16

\brief An unsigned 16-bit integer type.

alias Sint32

\brief A signed 32-bit integer type.

alias Uint32

\brief An unsigned 32-bit integer type.

alias Sint64

\brief A signed 64-bit integer type.

alias Uint64

\brief An unsigned 64-bit integer type.