Add Lua as a scripting langauge to /boot/loaderliblua glues the lua run time into the boot loader. It implements allthe runtime routines that lua expects. In addition, it has a fewstandard 'C' he
Add Lua as a scripting langauge to /boot/loaderliblua glues the lua run time into the boot loader. It implements allthe runtime routines that lua expects. In addition, it has a fewstandard 'C' headers that nueter various aspects of the LUA build thatare too specific to lua to be in libsa. Many refinements from theoriginal code to improve implementation and the number of included lualibraries. Use int64_t for lua_Number. Have "/boot/lua" be the defaultmodule path. Numerous cleanups from the original GSoC project,including hacking libsa to allow lua to be built with only one changeoutside luaconf.h.Add the final bit of lua glue to bring in liblua and plug into themultiple interpreter framework, previously committed.Add LOADER_LUA option, currently off by default.Presently, this is an experimental option. One must opt-in to usingthis by defining WITH_LOADER_LUA and WITHOUT_FORTH. It's beenlightly tested, so keep a backup copy of your old loader handy.The menu code, coming in the next commit, hasn't been exhaustivelytested. A LUA boot loader is 60k larger than a FORTH one, which is80k larger than a no-interpreter one. Subtle changes in sizemay tip things past some subtle limit (the binary is ~430k nowwhen built with LUA). A future version may offer coexistance.Bump FreeBSD version to 1200058 to mark the milestone.Pedro Souza's 2014 Summer of Code project. Rui Paulo, Pedro Arthur,Zakary Nafziger and Wojciech A. Koszek also contributed. Warner Loshreworked it extensively into its current form.Obtained from: https://wiki.freebsd.org/SummerOfCode2014/LuaLoaderSponsored by: Google Summer of CodeRelnotes: YesMFC After: 1 monthDifferential Review: https://reviews.freebsd.org/D14295
show more ...