diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-10-16 08:59:34 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-10-16 08:59:34 -0200 |
| commit | 45ccb0e881064492a3f422b15b50dad71eed36fa (patch) | |
| tree | d819206b4af4fb9a257534471455ce233c1c93e3 /lobject.h | |
| parent | 4be18fa889657ebd317f5311ecf65da64891242b (diff) | |
| download | lua-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.h | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -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 | ||
| 116 | typedef struct LocVar { | 115 | typedef struct LocVar { |
| @@ -138,6 +137,7 @@ typedef struct LocVar { | |||
| 138 | */ | 137 | */ |
| 139 | typedef struct Closure { | 138 | typedef 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 | ||
