diff options
| author | William Wilgus <me.theuser@yahoo.com> | 2019-07-18 08:42:00 -0500 |
|---|---|---|
| committer | William Wilgus <me.theuser@yahoo.com> | 2019-07-18 08:42:00 -0500 |
| commit | c9aeb4284e6456b8ca846f2bdfcd8f68d6ecd7b8 (patch) | |
| tree | 87df9497cf1290d1340f0ab2f77d73cbe4df3f0c /apps/plugins/lua/rocklua.c | |
| parent | 47639fb9acb3da7fa44e16ad15b9237191e6c482 (diff) | |
| download | rockbox-c9aeb4284e6456b8ca846f2bdfcd8f68d6ecd7b8.zip rockbox-c9aeb4284e6456b8ca846f2bdfcd8f68d6ecd7b8.tar.gz rockbox-c9aeb4284e6456b8ca846f2bdfcd8f68d6ecd7b8.tar.bz2 rockbox-c9aeb4284e6456b8ca846f2bdfcd8f68d6ecd7b8.tar.xz | |
lua move constants out of binary image
Rockbox constants are auto generated by a perl script like the majority
of the plugin functions.
Constants are contained in rb_defines.lua, if the file exists it is auto loaded
by the lua state for backwards compatibility
Frees ~1k
Change-Id: I237700576c748f468249e501c839d89effca3f39
Diffstat (limited to 'apps/plugins/lua/rocklua.c')
| -rw-r--r-- | apps/plugins/lua/rocklua.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/lua/rocklua.c b/apps/plugins/lua/rocklua.c index af87a0b..eec6ee5 100644 --- a/apps/plugins/lua/rocklua.c +++ b/apps/plugins/lua/rocklua.c @@ -31,15 +31,15 @@ static const luaL_Reg lualibs[] = { {"", luaopen_base}, + {LUA_LOADLIBNAME, luaopen_package}, {LUA_TABLIBNAME, luaopen_table}, {LUA_STRLIBNAME, luaopen_string}, - {LUA_OSLIBNAME, luaopen_os}, - {LUA_ROCKLIBNAME, luaopen_rock}, - {LUA_ROCKLIBNAME, luaopen_rock_img}, {LUA_BITLIBNAME, luaopen_bit}, {LUA_IOLIBNAME, luaopen_io}, - {LUA_LOADLIBNAME, luaopen_package}, {LUA_MATHLIBNAME, luaopen_math}, + {LUA_OSLIBNAME, luaopen_os}, + {LUA_ROCKLIBNAME, luaopen_rock}, + {LUA_ROCKLIBNAME, luaopen_rock_img}, {LUA_DIRLIBNAME, luaopen_luadir}, {NULL, NULL} }; |