func pointers stored in arrays of func pointers (fixes 720 warnings)

This commit is contained in:
unknown 2015-01-24 15:39:18 -05:00
parent cb9d25fc5a
commit 587dbbb3ff
3 changed files with 22 additions and 16 deletions

View File

@ -43,14 +43,14 @@ UDWORD EleSpec[32], Indx[32];
OPCODE RSPOpC;
DWORD *PrgCount, NextInstruction, RSP_Running, RSP_MfStatusCount;
void * RSP_Opcode[64];
void * RSP_RegImm[32];
void * RSP_Special[64];
void * RSP_Cop0[32];
void * RSP_Cop2[32];
void * RSP_Vector[64];
void * RSP_Lc2[32];
void * RSP_Sc2[32];
p_func RSP_Opcode[64];
p_func RSP_RegImm[32];
p_func RSP_Special[64];
p_func RSP_Cop0[32];
p_func RSP_Cop2[32];
p_func RSP_Vector[64];
p_func RSP_Lc2[32];
p_func RSP_Sc2[32];
void BuildInterpreterCPU(void);
void BuildRecompilerCPU(void);

View File

@ -28,14 +28,14 @@
extern UDWORD EleSpec[32], Indx[32];
extern void * RSP_Opcode[64];
extern void * RSP_RegImm[32];
extern void * RSP_Special[64];
extern void * RSP_Cop0[32];
extern void * RSP_Cop2[32];
extern void * RSP_Vector[64];
extern void * RSP_Lc2[32];
extern void * RSP_Sc2[32];
extern p_func RSP_Opcode[64];
extern p_func RSP_RegImm[32];
extern p_func RSP_Special[64];
extern p_func RSP_Cop0[32];
extern p_func RSP_Cop2[32];
extern p_func RSP_Vector[64];
extern p_func RSP_Lc2[32];
extern p_func RSP_Sc2[32];
extern DWORD * PrgCount, RSP_Running;
extern OPCODE RSPOpC;

View File

@ -27,6 +27,12 @@
#ifndef __Types_h
#define __Types_h
/*
* pointer to RSP operation code functions or "func"
* This is the type of all RSP interpreter and recompiler functions.
*/
typedef void(*p_func)(void);
typedef union tagUWORD {
long W;
float F;