summaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-12-19 09:11:55 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-12-19 09:11:55 -0200
commitdd8edecae19251a3b89502416a2e7f8e75b2bd20 (patch)
tree10c94c2a2f89f534ca9a5b9b2591008bda8eae17 /lobject.h
parent28021c5c663702a1b1890f0e5d280c36be8a6c16 (diff)
downloadlua-github-dd8edecae19251a3b89502416a2e7f8e75b2bd20.tar.gz
new functions to manipulate upvales (get/setupvalue)
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 4fb42461..6b00b4b6 100644
--- a/lobject.h
+++ b/lobject.h
@@ -1,5 +1,5 @@
/*
-** $Id: lobject.h,v 1.154 2002/11/14 11:51:50 roberto Exp roberto $
+** $Id: lobject.h,v 1.155 2002/11/14 16:16:21 roberto Exp roberto $
** Type definitions for Lua objects
** See Copyright Notice in lua.h
*/
@@ -214,7 +214,9 @@ typedef struct Proto {
struct Proto **p; /* functions defined inside the function */
int *lineinfo; /* map from opcodes to source lines */
struct LocVar *locvars; /* information about local variables */
+ TString **upvalues; /* upvalue names */
TString *source;
+ int nupvalues; /* (also size of `upvals') */
int sizek; /* size of `k' */
int sizecode;
int sizelineinfo;
@@ -222,7 +224,6 @@ typedef struct Proto {
int sizelocvars;
int lineDefined;
GCObject *gclist;
- lu_byte nupvalues;
lu_byte numparams;
lu_byte is_vararg;
lu_byte maxstacksize;