aboutsummaryrefslogtreecommitdiff
path: root/lundump.h
diff options
context:
space:
mode:
authorRoberto I <roberto@inf.puc-rio.br>2026-04-23 17:57:42 -0300
committerRoberto I <roberto@inf.puc-rio.br>2026-04-23 17:57:42 -0300
commit3228a97c6a953dcf397944161bb64b12f1ff5384 (patch)
tree6497f6f8e93ba3bb381c0b48aed71646fca3f9b0 /lundump.h
parent0c16a42d61d08266033ff63bc5dfade6312b7359 (diff)
downloadlua-3228a97c6a953dcf397944161bb64b12f1ff5384.tar.gz
lua-3228a97c6a953dcf397944161bb64b12f1ff5384.tar.bz2
lua-3228a97c6a953dcf397944161bb64b12f1ff5384.zip
Bug: 'lua_load' does not preserve the stack
'lua_load' does not preserve the stack through the calls to the reader function, as it should. Immediately after the first call (to detect whether chunk is binary) it adds stuff, and it also adds a new table when starting the compilation of each new function.
Diffstat (limited to 'lundump.h')
-rw-r--r--lundump.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lundump.h b/lundump.h
index c4e06f9e..186e25f8 100644
--- a/lundump.h
+++ b/lundump.h
@@ -30,8 +30,8 @@
30 30
31 31
32/* load one chunk; from lundump.c */ 32/* load one chunk; from lundump.c */
33LUAI_FUNC LClosure* luaU_undump (lua_State* L, ZIO* Z, const char* name, 33LUAI_FUNC LClosure* luaU_undump (lua_State* L, ZIO* Z, Table *anchor,
34 int fixed); 34 const char* name, int fixed);
35 35
36/* dump one chunk; from ldump.c */ 36/* dump one chunk; from ldump.c */
37LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, 37LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w,