lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> Presumably,  due to the radical changes for integers etc in Lua 5.3, that old version of lundump.c would be useless now in 5.3 source code and not even compile ?

Not really. The code for swapping that I've posted should mostly work,
though I haven't tried it. lundump.c from Lua 5.3.0 (work3) says:

/*
** All high-level loads go through LoadVector; you can change it to
** adapt to the endianness of the input
*/
#define LoadVector(S,b,n)       LoadBlock(S,b,(n)*sizeof((b)[0]))

You only have to define LoadVector as needed.