Browse Source

intermediate version (only to avoid compiler errors)

Roberto Ierusalimschy 25 years ago
parent
commit
f1fd9b5c2c
1 changed files with 1 additions and 11 deletions
  1. 1 11
      lundump.c

+ 1 - 11
lundump.c

@@ -1,5 +1,5 @@
 /*
-** $Id: lundump.c,v 1.23 2000/06/26 19:28:31 roberto Exp roberto $
+** $Id: lundump.c,v 1.24 2000/08/09 19:16:57 roberto Exp roberto $
 ** load bytecodes from files
 ** See Copyright Notice in lua.h
 */
@@ -131,16 +131,6 @@ static void LoadCode (lua_State* L, Proto* tf, ZIO* Z)
 
 static void LoadLocals (lua_State* L, Proto* tf, ZIO* Z)
 {
- int i,n=LoadInt(L,Z,"too many locals");
- if (n==0) return;
- tf->locvars=luaM_newvector(L,n+1,LocVar);
- for (i=0; i<n; i++)
- {
-  tf->locvars[i].pc=LoadInt(L,Z,"too many lines");
-  tf->locvars[i].varname=LoadString(L,Z);
- }
- tf->locvars[i].pc=-1;		/* flag end of vector */
- tf->locvars[i].varname=NULL;
 }
 
 static Proto* LoadFunction (lua_State* L, ZIO* Z, int native);