On Sat, Nov 6, 2010 at 2:25 PM, Duboucher Thomas <[email protected]> wrote:
> Hmm, I was a bit outdated. So you either have the choice of using bitop
> if you prefer to keep Lua 5.1 (http://bitop.luajit.org/), or you can use
> Lua 5.2 (http://www.lua.org/work/doc/manual.html#pdf-bit32).

Ok. It seems like a generally bad idea to switch to Lua 5.2 before
it's finalized, so I've attached grub_lua_include_bitop.diff, which
adds the bitop library. I had to make one modification to the library
itself to use GRUB's versions of the stdint types. I also had to make
a small modification to the Lua configuration so bitop could detect
what numeric type we're using.

With that in place, my enum_pci function can leave the parsing of the
various numeric values to Lua code, rather than doing it in C, so I've
updated grub_lua_enum_pci.diff to do that.

Thanks,
 - Evan

Attachment: grub_lua_include_bitop.diff
Description: Binary data

Attachment: grub_lua_enum_pci.diff
Description: Binary data

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to