Page 2 of 2

Re: Playing with the MM2 code

Posted: Fri Dec 12, 2014 2:18 am
by Administrator
One of these days I want to dig through this and make sure I at least get the 64-bit stuff taken care of. I've just been so busy with other things. Make sure to not let me forget.

Re: Playing with the MM2 code

Posted: Fri Dec 12, 2014 8:18 pm
by BlubBlab
I could give you are recipe:

Copy most of the memory stuff from me to your project, than replace all those 'unsigned int' you used for strings and similar stuff with 'size_t'. Today I realized that LUA still use 32-bit for unsigned thanks to this configuration:

Code: Select all

#define LUA_INTEGER	ptrdiff_t

/*
@@ LUA_UNSIGNED is the integral type used by lua_pushunsigned/lua_tounsigned.
** It must have at least 32 bits.
*/
#define LUA_UNSIGNED	unsigned LUA_INT32
that make a lot more sense:

Code: Select all

#define LUA_UNSIGNED unsigned LUA_INTEGER
EDIT: That was the luaconf.h in which you can setup what has which type.
I think the hardest part is to make the mingw compiler to run and compile the other stuff.