Replaced type "BYTE" by "u8", except where "BYTE" is used to access the Windows API.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@408 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Maarten ter Huurne
2008-08-31 14:32:35 +00:00
parent 965fd33f16
commit 0bebbcb5f4
17 changed files with 32 additions and 27 deletions

View File

@ -41,7 +41,6 @@ typedef signed __int64 s64;
#else
typedef unsigned char u8;
typedef unsigned char BYTE;
typedef unsigned short u16;
typedef unsigned int u32;
typedef unsigned int BOOL;

View File

@ -5,6 +5,8 @@
#ifndef _PLUGINS_H_INCLUDED__
#define _PLUGINS_H_INCLUDED__
#include "CommonTypes.h"
#ifdef _WIN32
#define EXPORT __declspec(dllexport)
#define CALL __cdecl
@ -29,14 +31,12 @@
// simulate something that looks like win32
// long term, kill these
// glxew defines BOOL and BYTE. evil.
// glxew defines BOOL. evil.
#ifdef BOOL
#undef BOOL
#undef BYTE
#endif
#define BOOL unsigned int
#define BYTE unsigned char
#define WORD unsigned short
#define DWORD unsigned int
#define HWND void*

View File

@ -105,7 +105,7 @@ EXPORT void CALL PAD_Shutdown();
// input:
// output:
//
EXPORT void CALL PAD_GetStatus(BYTE _numPAD, SPADStatus* _pPADStatus);
EXPORT void CALL PAD_GetStatus(u8 _numPAD, SPADStatus* _pPADStatus);
// __________________________________________________________________________________________________
// Function: PAD_Rumble
@ -113,7 +113,7 @@ EXPORT void CALL PAD_GetStatus(BYTE _numPAD, SPADStatus* _pPADStatus);
// input: PAD number, Command type (Stop=0, Rumble=1, Stop Hard=2) and strength of Rumble
// output: none
//
EXPORT void CALL PAD_Rumble(BYTE _numPAD, unsigned int _uType, unsigned int _uStrength);
EXPORT void CALL PAD_Rumble(u8 _numPAD, unsigned int _uType, unsigned int _uStrength);
// __________________________________________________________________________________________________
// Function: PAD_GetAttachedPads

View File

@ -132,7 +132,7 @@ EXPORT void CALL Video_Shutdown(void);
// input: a data-byte (i know we have to optimize this ;-))
// output: none
//
EXPORT void CALL Video_SendFifoData(BYTE *_uData);
EXPORT void CALL Video_SendFifoData(u8* _uData);
// __________________________________________________________________________________________________
// Function: Video_UpdateXFB
@ -142,7 +142,7 @@ EXPORT void CALL Video_SendFifoData(BYTE *_uData);
// input: pointer to the XFB, width and height of the XFB
// output: none
//
EXPORT void CALL Video_UpdateXFB(BYTE* _pXFB, DWORD _dwWidth, DWORD _dwHeight);
EXPORT void CALL Video_UpdateXFB(u8* _pXFB, DWORD _dwWidth, DWORD _dwHeight);
// __________________________________________________________________________________________________
// Function: Video_Screenshot