summaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-10-16 08:59:34 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-10-16 08:59:34 -0200
commit45ccb0e881064492a3f422b15b50dad71eed36fa (patch)
treed819206b4af4fb9a257534471455ce233c1c93e3 /lobject.h
parent4be18fa889657ebd317f5311ecf65da64891242b (diff)
downloadlua-45ccb0e881064492a3f422b15b50dad71eed36fa.tar.gz
lua-45ccb0e881064492a3f422b15b50dad71eed36fa.tar.bz2
lua-45ccb0e881064492a3f422b15b50dad71eed36fa.zip
"nupvalues" is kept in Closure, not in prototype (as a preparation
for C closures...)
Diffstat (limited to 'lobject.h')
-rw-r--r--lobject.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lobject.h b/lobject.h
index fcfb7d3b..132108d3 100644
--- a/lobject.h
+++ b/lobject.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.h,v 1.2 1997/09/26 15:02:26 roberto Exp roberto $ 2** $Id: lobject.h,v 1.3 1997/09/26 16:46:20 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*/
@@ -110,7 +110,6 @@ typedef struct TProtoFunc {
110 struct TObject *consts; 110 struct TObject *consts;
111 int nconsts; 111 int nconsts;
112 struct LocVar *locvars; /* ends with line = -1 */ 112 struct LocVar *locvars; /* ends with line = -1 */
113 int nupvalues;
114} TProtoFunc; 113} TProtoFunc;
115 114
116typedef struct LocVar { 115typedef struct LocVar {
@@ -138,6 +137,7 @@ typedef struct LocVar {
138*/ 137*/
139typedef struct Closure { 138typedef struct Closure {
140 GCnode head; 139 GCnode head;
140 int nelems; /* not included the first one (always the prototype) */
141 TObject consts[1]; /* at least one for prototype */ 141 TObject consts[1]; /* at least one for prototype */
142} Closure; 142} Closure;
143 143