diff options
author | William Wilgus <me.theuser@yahoo.com> | 2018-10-13 13:35:01 -0400 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2018-10-15 18:24:10 +0200 |
commit | 07fed9053a476b4c6e5ecd23fc43ec84f4094978 (patch) | |
tree | da366faad51087b2e5000a1d9d3659d5bd1a73a8 /apps/plugins/lua/rocklib.h | |
parent | 0b7a8d5afd3d751fd0f6454098bc9fd1d05ee764 (diff) | |
download | rockbox-07fed9053a476b4c6e5ecd23fc43ec84f4094978.tar.gz rockbox-07fed9053a476b4c6e5ecd23fc43ec84f4094978.zip |
lua optimize current_path function
frees up around 500 bytes by using the builtin string functionality
Change-Id: Icd4ec921d3fec339b8a4b7f80c9c63d51d4c101c
Diffstat (limited to 'apps/plugins/lua/rocklib.h')
-rw-r--r-- | apps/plugins/lua/rocklib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/lua/rocklib.h b/apps/plugins/lua/rocklib.h index 25b5ae1088..b650207e67 100644 --- a/apps/plugins/lua/rocklib.h +++ b/apps/plugins/lua/rocklib.h | |||
@@ -46,7 +46,7 @@ struct lua_str_reg { | |||
46 | }; | 46 | }; |
47 | 47 | ||
48 | LUALIB_API int (luaopen_rock) (lua_State *L); | 48 | LUALIB_API int (luaopen_rock) (lua_State *L); |
49 | const char* get_current_path(lua_State *L, int level); | 49 | int get_current_path(lua_State *L, int level); |
50 | 50 | ||
51 | #endif /* _ROCKLIB_H_ */ | 51 | #endif /* _ROCKLIB_H_ */ |
52 | 52 | ||