From: Arvid Norlander Date: Tue, 12 Jun 2007 18:51:48 +0000 (+0000) Subject: Some fixes for 64-bit after tuxdev told me how to fix. ;) X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=b24ca7a745d88a84cd57078021696fe1f8f12389;p=supertux.git Some fixes for 64-bit after tuxdev told me how to fix. ;) SVN-Revision: 5084 --- diff --git a/src/squirrel/sqdbg/sqdbgserver.cpp b/src/squirrel/sqdbg/sqdbgserver.cpp index d6d141cc8..022741225 100644 --- a/src/squirrel/sqdbg/sqdbgserver.cpp +++ b/src/squirrel/sqdbg/sqdbgserver.cpp @@ -29,10 +29,10 @@ const SQChar *IntToString(int n) return temp; } -int debug_hook(HSQUIRRELVM v); -int error_handler(HSQUIRRELVM v); +SQInteger debug_hook(HSQUIRRELVM v); +SQInteger error_handler(HSQUIRRELVM v); -int beginelement(HSQUIRRELVM v) +SQInteger beginelement(HSQUIRRELVM v) { SQUserPointer up; const SQChar *name; @@ -44,7 +44,7 @@ int beginelement(HSQUIRRELVM v) return 0; } -int endelement(HSQUIRRELVM v) +SQInteger endelement(HSQUIRRELVM v) { SQUserPointer up; const SQChar *name; @@ -56,7 +56,7 @@ int endelement(HSQUIRRELVM v) return 0; } -int attribute(HSQUIRRELVM v) +SQInteger attribute(HSQUIRRELVM v) { SQUserPointer up; const SQChar *name,*value; diff --git a/src/squirrel/sqdbg/sqrdbg.cpp b/src/squirrel/sqdbg/sqrdbg.cpp index c5243faab..7bf3b382a 100644 --- a/src/squirrel/sqdbg/sqrdbg.cpp +++ b/src/squirrel/sqdbg/sqrdbg.cpp @@ -4,8 +4,8 @@ #include #include "sqrdbg.h" #include "sqdbgserver.h" -int debug_hook(HSQUIRRELVM v); -int error_handler(HSQUIRRELVM v); +SQInteger debug_hook(HSQUIRRELVM v); +SQInteger error_handler(HSQUIRRELVM v); #include "serialize_state.inl" @@ -105,10 +105,10 @@ SQRESULT sq_rdbg_update(HSQREMOTEDBG rdbg) return SQ_OK; } -int debug_hook(HSQUIRRELVM v) +SQInteger debug_hook(HSQUIRRELVM v) { SQUserPointer up; - int event_type,line; + SQInteger event_type,line; const SQChar *src,*func; sq_getinteger(v,2,&event_type); sq_getstring(v,3,&src); @@ -124,7 +124,7 @@ int debug_hook(HSQUIRRELVM v) return 0; } -int error_handler(HSQUIRRELVM v) +SQInteger error_handler(HSQUIRRELVM v) { SQUserPointer up; const SQChar *sErr=NULL;