mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
lua move rocklib_img to its own separate loadable module
allows rocklib_img to be excluded if needed stops rocklib_aux from generating redundant prototypes for lcd_mono_bitmap[_part] Change-Id: Ie208ad71ab5f9a7deb026dc01a5b0a0631a0d29c
This commit is contained in:
parent
7a132a257a
commit
948984309a
5 changed files with 23 additions and 25 deletions
|
@ -26,7 +26,6 @@
|
|||
#include "lua.h"
|
||||
|
||||
#include "lauxlib.h"
|
||||
#include "rocklib_img.h"
|
||||
#include "rocklib.h"
|
||||
#include "lib/helper.h"
|
||||
#include "lib/pluginlib_actions.h"
|
||||
|
@ -416,7 +415,6 @@ static const luaL_Reg rocklib[] =
|
|||
#undef RB_FUNC
|
||||
|
||||
extern const luaL_Reg rocklib_aux[];
|
||||
extern const luaL_Reg rocklib_img[];
|
||||
|
||||
/*
|
||||
** Open Rockbox library
|
||||
|
@ -425,8 +423,7 @@ LUALIB_API int luaopen_rock(lua_State *L)
|
|||
{
|
||||
luaL_register(L, LUA_ROCKLIBNAME, rocklib);
|
||||
luaL_register(L, LUA_ROCKLIBNAME, rocklib_aux);
|
||||
luaL_register(L, LUA_ROCKLIBNAME, rocklib_img);
|
||||
|
||||
|
||||
static const struct lua_int_reg rlib_const_int[] =
|
||||
{
|
||||
/* useful integer constants */
|
||||
|
@ -486,8 +483,6 @@ LUALIB_API int luaopen_rock(lua_State *L)
|
|||
lua_setfield(L, -2, rlcs->name);
|
||||
}
|
||||
|
||||
rli_init(L);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue