diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-08-27 15:53:35 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-08-27 15:53:35 -0300 |
| commit | af35c7f398e8149b5f2481b63b399674e4ecdf7e (patch) | |
| tree | 7d74f5c81bb0e2555cab4bce00a94a12a6d78604 /lobject.h | |
| parent | 742b7377d38e43224ee5dda4bb83a42763c20af8 (diff) | |
| download | lua-af35c7f398e8149b5f2481b63b399674e4ecdf7e.tar.gz lua-af35c7f398e8149b5f2481b63b399674e4ecdf7e.tar.bz2 lua-af35c7f398e8149b5f2481b63b399674e4ecdf7e.zip | |
upvalues collected by reference count
Diffstat (limited to 'lobject.h')
| -rw-r--r-- | lobject.h | 13 |
1 files changed, 4 insertions, 9 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lobject.h,v 2.79 2013/08/07 12:18:11 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 2.80 2013/08/18 16:12:18 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 | */ |
| @@ -20,13 +20,12 @@ | |||
| 20 | ** Extra tags for non-values | 20 | ** Extra tags for non-values |
| 21 | */ | 21 | */ |
| 22 | #define LUA_TPROTO LUA_NUMTAGS | 22 | #define LUA_TPROTO LUA_NUMTAGS |
| 23 | #define LUA_TUPVAL (LUA_NUMTAGS+1) | 23 | #define LUA_TDEADKEY (LUA_NUMTAGS+1) |
| 24 | #define LUA_TDEADKEY (LUA_NUMTAGS+2) | ||
| 25 | 24 | ||
| 26 | /* | 25 | /* |
| 27 | ** number of all possible tags (including LUA_TNONE but excluding DEADKEY) | 26 | ** number of all possible tags (including LUA_TNONE but excluding DEADKEY) |
| 28 | */ | 27 | */ |
| 29 | #define LUA_TOTALTAGS (LUA_TUPVAL+2) | 28 | #define LUA_TOTALTAGS (LUA_TPROTO + 2) |
| 30 | 29 | ||
| 31 | 30 | ||
| 32 | /* | 31 | /* |
| @@ -392,11 +391,7 @@ typedef struct Proto { | |||
| 392 | /* | 391 | /* |
| 393 | ** Lua Upvalues | 392 | ** Lua Upvalues |
| 394 | */ | 393 | */ |
| 395 | typedef struct UpVal { | 394 | typedef struct UpVal UpVal; |
| 396 | CommonHeader; | ||
| 397 | TValue *v; /* points to stack or to its own value */ | ||
| 398 | TValue value; /* the value (when closed) */ | ||
| 399 | } UpVal; | ||
| 400 | 395 | ||
| 401 | 396 | ||
| 402 | /* | 397 | /* |
