diff options
author | William Wilgus <me.theuser@yahoo.com> | 2019-07-18 14:50:38 -0500 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2019-07-18 14:56:00 -0500 |
commit | 8bd992c5035bfee6aedbcae7669be5b823537aad (patch) | |
tree | 2db34dbf0765362d875242b9908f3d0d95b387bb /apps/plugins/lua/lundump.h | |
parent | d5908f520e8b21091766076584c9f582dbcdae1c (diff) | |
download | rockbox-8bd992c5035bfee6aedbcae7669be5b823537aad.tar.gz rockbox-8bd992c5035bfee6aedbcae7669be5b823537aad.zip |
lua disable bytecode dump & undump functions
Adds a flag to remove the ability to dump and load lua bytecode
saves 6+kb
Change-Id: I080323df7f03f752e0a10928e22a7ce3190a9633
Diffstat (limited to 'apps/plugins/lua/lundump.h')
-rw-r--r-- | apps/plugins/lua/lundump.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/plugins/lua/lundump.h b/apps/plugins/lua/lundump.h index f791a4f173..b2fe851e59 100644 --- a/apps/plugins/lua/lundump.h +++ b/apps/plugins/lua/lundump.h | |||
@@ -13,12 +13,13 @@ | |||
13 | /* load one chunk; from lundump.c */ | 13 | /* load one chunk; from lundump.c */ |
14 | LUAI_FUNC Proto* luaU_undump (lua_State* L, ZIO* Z, Mbuffer* buff, const char* name); | 14 | LUAI_FUNC Proto* luaU_undump (lua_State* L, ZIO* Z, Mbuffer* buff, const char* name); |
15 | 15 | ||
16 | /* make header; from lundump.c */ | ||
17 | LUAI_FUNC void luaU_header (char* h); | ||
18 | |||
19 | /* dump one chunk; from ldump.c */ | 16 | /* dump one chunk; from ldump.c */ |
20 | LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip); | 17 | LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip); |
21 | 18 | ||
19 | #ifndef LUA_DISABLE_BYTECODE | ||
20 | /* make header; from lundump.c */ | ||
21 | LUAI_FUNC void luaU_header (char* h); | ||
22 | |||
22 | #ifdef luac_c | 23 | #ifdef luac_c |
23 | /* print one chunk; from print.c */ | 24 | /* print one chunk; from print.c */ |
24 | LUAI_FUNC void luaU_print (const Proto* f, int full); | 25 | LUAI_FUNC void luaU_print (const Proto* f, int full); |
@@ -33,4 +34,5 @@ LUAI_FUNC void luaU_print (const Proto* f, int full); | |||
33 | /* size of header of binary files */ | 34 | /* size of header of binary files */ |
34 | #define LUAC_HEADERSIZE 12 | 35 | #define LUAC_HEADERSIZE 12 |
35 | 36 | ||
37 | #endif /* LUA_DISABLE_BYTECODE */ | ||
36 | #endif | 38 | #endif |