diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-12-19 09:11:55 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-12-19 09:11:55 -0200 |
| commit | dd8edecae19251a3b89502416a2e7f8e75b2bd20 (patch) | |
| tree | 10c94c2a2f89f534ca9a5b9b2591008bda8eae17 /lobject.h | |
| parent | 28021c5c663702a1b1890f0e5d280c36be8a6c16 (diff) | |
| download | lua-dd8edecae19251a3b89502416a2e7f8e75b2bd20.tar.gz lua-dd8edecae19251a3b89502416a2e7f8e75b2bd20.tar.bz2 lua-dd8edecae19251a3b89502416a2e7f8e75b2bd20.zip | |
new functions to manipulate upvales (get/setupvalue)
Diffstat (limited to '')
| -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.154 2002/11/14 11:51:50 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 1.155 2002/11/14 16:16:21 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 | */ |
| @@ -214,7 +214,9 @@ typedef struct Proto { | |||
| 214 | struct Proto **p; /* functions defined inside the function */ | 214 | struct Proto **p; /* functions defined inside the function */ |
| 215 | int *lineinfo; /* map from opcodes to source lines */ | 215 | int *lineinfo; /* map from opcodes to source lines */ |
| 216 | struct LocVar *locvars; /* information about local variables */ | 216 | struct LocVar *locvars; /* information about local variables */ |
| 217 | TString **upvalues; /* upvalue names */ | ||
| 217 | TString *source; | 218 | TString *source; |
| 219 | int nupvalues; /* (also size of `upvals') */ | ||
| 218 | int sizek; /* size of `k' */ | 220 | int sizek; /* size of `k' */ |
| 219 | int sizecode; | 221 | int sizecode; |
| 220 | int sizelineinfo; | 222 | int sizelineinfo; |
| @@ -222,7 +224,6 @@ typedef struct Proto { | |||
| 222 | int sizelocvars; | 224 | int sizelocvars; |
| 223 | int lineDefined; | 225 | int lineDefined; |
| 224 | GCObject *gclist; | 226 | GCObject *gclist; |
| 225 | lu_byte nupvalues; | ||
| 226 | lu_byte numparams; | 227 | lu_byte numparams; |
| 227 | lu_byte is_vararg; | 228 | lu_byte is_vararg; |
| 228 | lu_byte maxstacksize; | 229 | lu_byte maxstacksize; |
