aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lundump.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/lundump.c b/lundump.c
index 5993229c..386bebc9 100644
--- a/lundump.c
+++ b/lundump.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lundump.c,v 1.23 2000/06/26 19:28:31 roberto Exp roberto $ 2** $Id: lundump.c,v 1.24 2000/08/09 19:16:57 roberto Exp roberto $
3** load bytecodes from files 3** load bytecodes from files
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -131,16 +131,6 @@ static void LoadCode (lua_State* L, Proto* tf, ZIO* Z)
131 131
132static void LoadLocals (lua_State* L, Proto* tf, ZIO* Z) 132static void LoadLocals (lua_State* L, Proto* tf, ZIO* Z)
133{ 133{
134 int i,n=LoadInt(L,Z,"too many locals");
135 if (n==0) return;
136 tf->locvars=luaM_newvector(L,n+1,LocVar);
137 for (i=0; i<n; i++)
138 {
139 tf->locvars[i].pc=LoadInt(L,Z,"too many lines");
140 tf->locvars[i].varname=LoadString(L,Z);
141 }
142 tf->locvars[i].pc=-1; /* flag end of vector */
143 tf->locvars[i].varname=NULL;
144} 134}
145 135
146static Proto* LoadFunction (lua_State* L, ZIO* Z, int native); 136static Proto* LoadFunction (lua_State* L, ZIO* Z, int native);