git.y1.nz

gbdk-2020

GameBoy Development Kit
download: https://git.y1.nz/archives/gbdk.tar.gz
README | Files | Log | Refs | LICENSE

commit 0287f49e84175ec5fddc2e709cef7a905ae4e5b6
parent 451c5b836ba00592a05db2ecd3ef07e3a6ce7da3
Author: Toxa <untoxa@mail.ru>
Date:   Mon, 29 Nov 2021 15:00:13 +0300

remove obsolete type definitions, fix size_t

Diffstat:
Mgbdk-lib/include/asm/gbz80/types.h4++--
Mgbdk-lib/include/asm/types.h10----------
Mgbdk-lib/include/asm/z80/types.h4++--
3 files changed, 4 insertions(+), 14 deletions(-)

diff --git a/gbdk-lib/include/asm/gbz80/types.h b/gbdk-lib/include/asm/gbz80/types.h @@ -56,12 +56,12 @@ typedef unsigned long UINT32; #ifndef __SIZE_T_DEFINED #define __SIZE_T_DEFINED -typedef int size_t; +typedef unsigned int size_t; #endif /** Returned from clock @see clock */ -typedef UINT16 clock_t; +typedef unsigned int clock_t; #endif diff --git a/gbdk-lib/include/asm/types.h b/gbdk-lib/include/asm/types.h @@ -40,14 +40,6 @@ */ typedef INT8 BOOLEAN; -#if BYTE_IS_UNSIGNED - -typedef UINT8 BYTE; -typedef UINT16 WORD; -typedef UINT32 DWORD; - -#else - /** Signed 8 bit. */ typedef INT8 BYTE; @@ -86,5 +78,3 @@ typedef union _fixed { } fixed; #endif - -#endif diff --git a/gbdk-lib/include/asm/z80/types.h b/gbdk-lib/include/asm/z80/types.h @@ -35,12 +35,12 @@ typedef unsigned long UINT32; #ifndef __SIZE_T_DEFINED #define __SIZE_T_DEFINED -typedef int size_t; +typedef unsigned int size_t; #endif /** Returned from clock @see clock */ -typedef UINT16 clock_t; +typedef unsigned int clock_t; #endif

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.