Mercurial > audlegacy
diff Plugins/Input/sexypsf/PsxMem.h @ 640:f26682a2825b trunk
[svn] Addresses most of the warnings in the code, and uses a -W CFLAG to disable the non-null checks. From external contributor Harald van Dijk (Gentoo).
author | chainsaw |
---|---|
date | Sat, 18 Feb 2006 16:15:16 -0800 |
parents | 548073bede0b |
children | d539e5c5f730 |
line wrap: on
line diff
--- a/Plugins/Input/sexypsf/PsxMem.h Sat Feb 18 14:02:57 2006 -0800 +++ b/Plugins/Input/sexypsf/PsxMem.h Sat Feb 18 16:15:16 2006 -0800 @@ -41,14 +41,14 @@ } #endif -s8 *psxM; +char *psxM; #define psxMu32(mem) (*(u32*)&psxM[(mem) & 0x1fffff]) -s8 *psxP; -s8 *psxR; +char *psxP; +char *psxR; #define psxRu32(mem) (*(u32*)&psxR[(mem) & 0x7ffff]) -s8 *psxH; +char *psxH; #define psxHu8(mem) (*(u8*) &psxH[(mem) & 0xffff]) @@ -57,7 +57,7 @@ char **psxMemLUT; -#define PSXM(mem) (psxMemLUT[(mem) >> 16] == 0 ? "" : (void*)(psxMemLUT[(mem) >> 16] + ((mem) & 0xffff))) +#define PSXM(mem) (psxMemLUT[(mem) >> 16] == 0 ? NULL : (void*)(psxMemLUT[(mem) >> 16] + ((mem) & 0xffff))) #define PSXMu8(mem) (*(u8 *)PSXM(mem)) #define PSXMu32(mem) (*(u32*)PSXM(mem)) @@ -76,6 +76,6 @@ void psxMemWrite16(u32 mem, u16 value); void psxMemWrite32(u32 mem, u32 value); -void LoadPSXMem(u32 address, s32 length, char *data); +void LoadPSXMem(u32 address, s32 length, unsigned char *data); #endif /* __PSXMEMORY_H__ */