diff options
author | William Wilgus <me.theuser@yahoo.com> | 2018-10-22 14:00:58 -0400 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2018-10-22 14:00:58 -0400 |
commit | 948984309a3c1dd6b92f018926e9831083c803e3 (patch) | |
tree | a79bda99ff3d905828f4ea407f912cc22c1c5a4f /apps/plugins/lua/rocklib.c | |
parent | 7a132a257a47be37daa2da97706745ca9182d14a (diff) | |
download | rockbox-948984309a3c1dd6b92f018926e9831083c803e3.tar.gz rockbox-948984309a3c1dd6b92f018926e9831083c803e3.zip |
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
Diffstat (limited to 'apps/plugins/lua/rocklib.c')
-rw-r--r-- | apps/plugins/lua/rocklib.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/apps/plugins/lua/rocklib.c b/apps/plugins/lua/rocklib.c index ffd449e9d4..82a03ab6b4 100644 --- a/apps/plugins/lua/rocklib.c +++ b/apps/plugins/lua/rocklib.c | |||
@@ -26,7 +26,6 @@ | |||
26 | #include "lua.h" | 26 | #include "lua.h" |
27 | 27 | ||
28 | #include "lauxlib.h" | 28 | #include "lauxlib.h" |
29 | #include "rocklib_img.h" | ||
30 | #include "rocklib.h" | 29 | #include "rocklib.h" |
31 | #include "lib/helper.h" | 30 | #include "lib/helper.h" |
32 | #include "lib/pluginlib_actions.h" | 31 | #include "lib/pluginlib_actions.h" |
@@ -416,7 +415,6 @@ static const luaL_Reg rocklib[] = | |||
416 | #undef RB_FUNC | 415 | #undef RB_FUNC |
417 | 416 | ||
418 | extern const luaL_Reg rocklib_aux[]; | 417 | extern const luaL_Reg rocklib_aux[]; |
419 | extern const luaL_Reg rocklib_img[]; | ||
420 | 418 | ||
421 | /* | 419 | /* |
422 | ** Open Rockbox library | 420 | ** Open Rockbox library |
@@ -425,8 +423,7 @@ LUALIB_API int luaopen_rock(lua_State *L) | |||
425 | { | 423 | { |
426 | luaL_register(L, LUA_ROCKLIBNAME, rocklib); | 424 | luaL_register(L, LUA_ROCKLIBNAME, rocklib); |
427 | luaL_register(L, LUA_ROCKLIBNAME, rocklib_aux); | 425 | luaL_register(L, LUA_ROCKLIBNAME, rocklib_aux); |
428 | luaL_register(L, LUA_ROCKLIBNAME, rocklib_img); | 426 | |
429 | |||
430 | static const struct lua_int_reg rlib_const_int[] = | 427 | static const struct lua_int_reg rlib_const_int[] = |
431 | { | 428 | { |
432 | /* useful integer constants */ | 429 | /* useful integer constants */ |
@@ -486,8 +483,6 @@ LUALIB_API int luaopen_rock(lua_State *L) | |||
486 | lua_setfield(L, -2, rlcs->name); | 483 | lua_setfield(L, -2, rlcs->name); |
487 | } | 484 | } |
488 | 485 | ||
489 | rli_init(L); | ||
490 | |||
491 | return 1; | 486 | return 1; |
492 | } | 487 | } |
493 | 488 | ||