Thanks to some help from Richard Pennington, progress has resumed on the Lua port. Not much else to report, other than that I "accidentally" implemented almost all of a C99-compliant sprintf when trying to make enough of a stub to get Lua to build.