diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-06-20 17:41:46 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-06-20 17:41:46 -0300 |
commit | 3941af53adee868e2cccfb9b85783aba9ac311c1 (patch) | |
tree | 8b6295c8aefacf286c13c7d78b1d2a91421ce2b1 /lobject.h | |
parent | 5610fdd776edd0de71864f79d50b4526df861d75 (diff) | |
download | lua-3941af53adee868e2cccfb9b85783aba9ac311c1.tar.gz lua-3941af53adee868e2cccfb9b85783aba9ac311c1.tar.bz2 lua-3941af53adee868e2cccfb9b85783aba9ac311c1.zip |
first implementation of independent global table per function
Diffstat (limited to 'lobject.h')
-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.134 2002/06/12 14:56:22 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 1.135 2002/06/13 13:39: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 | */ |
@@ -178,6 +178,7 @@ typedef struct LClosure { | |||
178 | lu_byte marked; | 178 | lu_byte marked; |
179 | union Closure *next; /* first four fields must be equal to CClosure!! */ | 179 | union Closure *next; /* first four fields must be equal to CClosure!! */ |
180 | struct Proto *p; | 180 | struct Proto *p; |
181 | TObject g; /* global table for this closure */ | ||
181 | UpVal *upvals[1]; | 182 | UpVal *upvals[1]; |
182 | } LClosure; | 183 | } LClosure; |
183 | 184 | ||
@@ -189,7 +190,7 @@ typedef union Closure { | |||
189 | 190 | ||
190 | 191 | ||
191 | #define iscfunction(o) (ttype(o) == LUA_TFUNCTION && clvalue(o)->c.isC) | 192 | #define iscfunction(o) (ttype(o) == LUA_TFUNCTION && clvalue(o)->c.isC) |
192 | 193 | #define isLfunction(o) (ttype(o) == LUA_TFUNCTION && !clvalue(o)->c.isC) | |
193 | 194 | ||
194 | 195 | ||
195 | /* | 196 | /* |