summaryrefslogtreecommitdiff
path: root/src/lua51/lundump.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua51/lundump.c')
-rw-r--r--src/lua51/lundump.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lua51/lundump.c b/src/lua51/lundump.c
index 8010a45..564f218 100644
--- a/src/lua51/lundump.c
+++ b/src/lua51/lundump.c
@@ -97,6 +97,7 @@ static void LoadCode(LoadState* S, Proto* f)
static Proto* LoadFunction(LoadState* S, TString* p);
+//c 加载常量
static void LoadConstants(LoadState* S, Proto* f)
{
int i,n;
@@ -158,6 +159,7 @@ static void LoadDebug(LoadState* S, Proto* f)
for (i=0; i<n; i++) f->upvalues[i]=LoadString(S);
}
+//c! 加载二进制代码,包含函数原型,常量
static Proto* LoadFunction(LoadState* S, TString* p)
{
Proto* f;
@@ -189,6 +191,7 @@ static void LoadHeader(LoadState* S)
IF (memcmp(h,s,LUAC_HEADERSIZE)!=0, "bad header");
}
+//c 加载编译好的字节码
/*
** load precompiled chunk
*/