diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-02-11 08:46:24 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-02-11 08:46:24 -0200 |
commit | 7a40cdbda0a171da223094208dd3c6e3eca13922 (patch) | |
tree | c95840411ac26e11b0683d4a5fc88402c1d0a70a /lobject.h | |
parent | 3cdeacbbfba9308dd2dcc995a9bcc510bfcead31 (diff) | |
download | lua-7a40cdbda0a171da223094208dd3c6e3eca13922.tar.gz lua-7a40cdbda0a171da223094208dd3c6e3eca13922.tar.bz2 lua-7a40cdbda0a171da223094208dd3c6e3eca13922.zip |
different variables for number of upvalues and size of upvalue array
(makes code clearer)
Diffstat (limited to 'lobject.h')
-rw-r--r-- | lobject.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lobject.h,v 1.155 2002/11/14 16:16:21 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 1.156 2002/12/19 11:11:55 roberto Exp roberto $ |
3 | ** Type definitions for Lua objects | 3 | ** Type definitions for Lua objects |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -216,7 +216,7 @@ typedef struct Proto { | |||
216 | struct LocVar *locvars; /* information about local variables */ | 216 | struct LocVar *locvars; /* information about local variables */ |
217 | TString **upvalues; /* upvalue names */ | 217 | TString **upvalues; /* upvalue names */ |
218 | TString *source; | 218 | TString *source; |
219 | int nupvalues; /* (also size of `upvals') */ | 219 | int sizeupvalues; |
220 | int sizek; /* size of `k' */ | 220 | int sizek; /* size of `k' */ |
221 | int sizecode; | 221 | int sizecode; |
222 | int sizelineinfo; | 222 | int sizelineinfo; |
@@ -224,6 +224,7 @@ typedef struct Proto { | |||
224 | int sizelocvars; | 224 | int sizelocvars; |
225 | int lineDefined; | 225 | int lineDefined; |
226 | GCObject *gclist; | 226 | GCObject *gclist; |
227 | lu_byte nups; /* number of upvalues */ | ||
227 | lu_byte numparams; | 228 | lu_byte numparams; |
228 | lu_byte is_vararg; | 229 | lu_byte is_vararg; |
229 | lu_byte maxstacksize; | 230 | lu_byte maxstacksize; |