[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.3 bytecode control factors?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sun, 29 Jun 2014 15:17:00 -0300
> 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.