x64: updated system call signatures to accepts and return values of type intptr_t.

This commit is contained in:
Artem Kharytoniuk
2016-06-25 21:48:48 +03:00
parent d4f7c1b467
commit c6836b54b2
11 changed files with 48 additions and 82 deletions

View File

@@ -413,8 +413,9 @@ The cgame module is making a system call
====================
*/
#define VMA(x) VM_ArgPtr(args[x])
#define VMF(x) ((float *)args)[x]
int CL_CgameSystemCalls( int *args ) {
#define VMF(x) (*(float*)&args[x])
intptr_t CL_CgameSystemCalls( intptr_t *args ) {
switch( args[0] ) {
case CG_PRINT:
Com_Printf( "%s", VMA(1) );

View File

@@ -757,9 +757,9 @@ static int FloatAsInt( float f ) {
return temp;
}
void *VM_ArgPtr( int intValue );
void *VM_ArgPtr( intptr_t intValue );
#define VMA(x) VM_ArgPtr(args[x])
#define VMF(x) ((float *)args)[x]
#define VMF(x) (*(float*)&args[x])
/*
====================
@@ -768,7 +768,7 @@ CL_UISystemCalls
The ui module is making a system call
====================
*/
int CL_UISystemCalls( int *args ) {
intptr_t CL_UISystemCalls( intptr_t *args ) {
switch( args[0] ) {
case UI_ERROR:
Com_Error( ERR_DROP, "%s", VMA(1) );