These should hopefully be completely uncontentious changes.
There is still a delta against the esp32 branch, but to harmonise that
requires a bit more work.
This commit includes:
- Some LUA_USE_xxx #ifdef changes, since in many ways the ESP32 is
closer to a host build than an ESP8266 build.
- A bunch of warnings tidy-ups.
- A couple of readability/maintainability improvements (e.g. LROT_END
definition using named member initialisation, prototype declarations
moved to header file(s)).
- Lots of minor but nasty bugfixes to get all tests to run clean
- core lua and test suite fixes to allow luac -F to run cleanly against test suite
- next tranch to get LFS working
- luac.cross -a options plus fixes from feedback
- UART fixes and lua.c merge
- commit of wip prior to rebaselining against current dev
- more tweaks
- Optimise ROTable accesses and interface
This includes some refinements to the ROTable cache which remove the linker cludges on the CROSS_COMPILE builds. Also keyhole tweaks to some of the Lua VM code to implrove runtimes.
I also noticed some compile time warnings during the build; the change to uz_unzip.c doesn't impact the compiled code, but does remove the compiler warnings.
As per #810 & #796, only LUA_OPTIMIZE_MEMORY=2 & MIN_OPT_LEVEL=2 are
supported when building. This commit effects that limitation.
With this change modules/auxmods.h no longer needs to be updated for
every new module, nor do module writers need to cater for a hypothetical
LUA_OPTIMIZE_MEMORY < 2 scenario.