mirror of
https://github.com/opentx/opentx.git
synced 2025-07-23 08:15:17 +03:00
Add lua table lib to colorlcd (#7599)
* Add lua table lib to colorlcd * Allow require on colorlcd
This commit is contained in:
parent
61acd26497
commit
1cad34eb73
3 changed files with 8 additions and 2 deletions
1
radio/src/thirdparty/Lua/src/lauxlib.h
vendored
1
radio/src/thirdparty/Lua/src/lauxlib.h
vendored
|
@ -29,6 +29,7 @@ extern const luaL_Reg mathlib[];
|
|||
extern const luaL_Reg bitlib[];
|
||||
extern const luaL_Reg iolib[];
|
||||
extern const luaL_Reg strlib[];
|
||||
extern const luaL_Reg tab_funcs[];
|
||||
|
||||
extern const luaL_Reg opentxLib[];
|
||||
extern const luaL_Reg lcdLib[];
|
||||
|
|
7
radio/src/thirdparty/Lua/src/linit.c
vendored
7
radio/src/thirdparty/Lua/src/linit.c
vendored
|
@ -28,7 +28,9 @@
|
|||
*/
|
||||
static const luaL_Reg loadedlibs[] = {
|
||||
// {"_G", luaopen_base},
|
||||
// {LUA_LOADLIBNAME, luaopen_package},
|
||||
#if defined(PCBHORUS)
|
||||
{LUA_LOADLIBNAME, luaopen_package},
|
||||
#endif
|
||||
// {LUA_COLIBNAME, luaopen_coroutine},
|
||||
// {LUA_TABLIBNAME, luaopen_table},
|
||||
{LUA_IOLIBNAME, luaopen_io},
|
||||
|
@ -51,6 +53,9 @@ const luaR_table lua_rotable[] =
|
|||
{LUA_STRLIBNAME, strlib, NULL},
|
||||
{LUA_MATHLIBNAME, mathlib, mathlib_vals},
|
||||
{LUA_BITLIBNAME, bitlib, NULL},
|
||||
#if defined(PCBHORUS)
|
||||
{LUA_TABLIBNAME, tab_funcs, NULL},
|
||||
#endif
|
||||
{NULL, NULL, NULL}
|
||||
};
|
||||
|
||||
|
|
2
radio/src/thirdparty/Lua/src/ltablib.c
vendored
2
radio/src/thirdparty/Lua/src/ltablib.c
vendored
|
@ -256,7 +256,7 @@ static int sort (lua_State *L) {
|
|||
/* }====================================================== */
|
||||
|
||||
|
||||
static const luaL_Reg tab_funcs[] = {
|
||||
const luaL_Reg tab_funcs[] = {
|
||||
{"concat", tconcat},
|
||||
#if defined(LUA_COMPAT_MAXN)
|
||||
{"maxn", maxn},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue