aboutsummaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-02-11 08:46:24 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-02-11 08:46:24 -0200
commit7a40cdbda0a171da223094208dd3c6e3eca13922 (patch)
treec95840411ac26e11b0683d4a5fc88402c1d0a70a /lobject.h
parent3cdeacbbfba9308dd2dcc995a9bcc510bfcead31 (diff)
downloadlua-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.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lobject.h b/lobject.h
index 6b00b4b6..90533240 100644
--- a/lobject.h
+++ b/lobject.h
@@ -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;