diff options
| -rw-r--r-- | lundump.c | 12 |
1 files changed, 1 insertions, 11 deletions
| @@ -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 | ||
| 132 | static void LoadLocals (lua_State* L, Proto* tf, ZIO* Z) | 132 | static 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 | ||
| 146 | static Proto* LoadFunction (lua_State* L, ZIO* Z, int native); | 136 | static Proto* LoadFunction (lua_State* L, ZIO* Z, int native); |
