summaryrefslogtreecommitdiff
path: root/apps/plugins/lua/lobject.h
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2019-08-05 00:03:08 -0500
committerWilliam Wilgus <me.theuser@yahoo.com>2019-08-08 07:11:30 +0200
commitd61ea6c5eeef4343e40c0225f22ad39c994f84a9 (patch)
tree13a5e6261dda3fda33aa7ae743105fc3f2bc2e39 /apps/plugins/lua/lobject.h
parent1dabca6c267c2f8dfc8c0fb9269877856c00d4f1 (diff)
downloadrockbox-d61ea6c5eeef4343e40c0225f22ad39c994f84a9.tar.gz
rockbox-d61ea6c5eeef4343e40c0225f22ad39c994f84a9.zip
lua LCD (Lua Compact Debug) patch
LCD developed 9/2015 by Terry Ellison We've already discarded the ldebug module from lua it only makes sense to discard the debug info as well adds 1.5 K to the binary saves 8 Kb on the base state once scripts start getting called i've seen 10-50Kb savings but it all depends on what exactly you are running Change-Id: Ibb74f344df1c4c96380ec6c98b010a810e9ae9cc
Diffstat (limited to 'apps/plugins/lua/lobject.h')
-rw-r--r--apps/plugins/lua/lobject.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/lua/lobject.h b/apps/plugins/lua/lobject.h
index 028ff0355b..83651c2c47 100644
--- a/apps/plugins/lua/lobject.h
+++ b/apps/plugins/lua/lobject.h
@@ -240,7 +240,11 @@ typedef struct Proto {
240 TValue *k; /* constants used by the function */ 240 TValue *k; /* constants used by the function */
241 Instruction *code; 241 Instruction *code;
242 struct Proto **p; /* functions defined inside the function */ 242 struct Proto **p; /* functions defined inside the function */
243#ifdef LUA_OPTIMIZE_DEBUG
244 unsigned char *packedlineinfo;
245#else
243 int *lineinfo; /* map from opcodes to source lines */ 246 int *lineinfo; /* map from opcodes to source lines */
247#endif
244 struct LocVar *locvars; /* information about local variables */ 248 struct LocVar *locvars; /* information about local variables */
245 TString **upvalues; /* upvalue names */ 249 TString **upvalues; /* upvalue names */
246 TString *source; 250 TString *source;