diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-08-24 11:19:39 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-08-24 11:19:39 -0300 |
| commit | f1fd9b5c2c21f24d25d7813f431a3495702ebea6 (patch) | |
| tree | d1a474473721e27ecc2fc67261d56690ae823a08 | |
| parent | 3723d790ae941dbbdb7f97484f9f2512264c54a6 (diff) | |
| download | lua-f1fd9b5c2c21f24d25d7813f431a3495702ebea6.tar.gz lua-f1fd9b5c2c21f24d25d7813f431a3495702ebea6.tar.bz2 lua-f1fd9b5c2c21f24d25d7813f431a3495702ebea6.zip | |
intermediate version (only to avoid compiler errors)
| -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); |
