diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-01-18 15:18:09 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-01-18 15:18:09 -0200 |
commit | 334ba8132bd0471ffe2a9964b577d3ae89ec490a (patch) | |
tree | 3e0dde3bca4f1f51dad42d8c85ad9cb624aab1fa /lobject.h | |
parent | ac71a0891d8571816ce32b5c2c1fd97942decf71 (diff) | |
download | lua-334ba8132bd0471ffe2a9964b577d3ae89ec490a.tar.gz lua-334ba8132bd0471ffe2a9964b577d3ae89ec490a.tar.bz2 lua-334ba8132bd0471ffe2a9964b577d3ae89ec490a.zip |
cleaner way to remark open upvalues
Diffstat (limited to 'lobject.h')
-rw-r--r-- | lobject.h | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lobject.h,v 2.8 2004/12/04 18:10:22 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 2.9 2005/01/05 18:20:51 roberto Exp $ |
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 | */ |
@@ -271,7 +271,13 @@ typedef struct LocVar { | |||
271 | typedef struct UpVal { | 271 | typedef struct UpVal { |
272 | CommonHeader; | 272 | CommonHeader; |
273 | TValue *v; /* points to stack or to its own value */ | 273 | TValue *v; /* points to stack or to its own value */ |
274 | TValue value; /* the value (when closed) */ | 274 | union { |
275 | TValue value; /* the value (when closed) */ | ||
276 | struct { /* double linked list (when open) */ | ||
277 | struct UpVal *prev; | ||
278 | struct UpVal *next; | ||
279 | } l; | ||
280 | } u; | ||
275 | } UpVal; | 281 | } UpVal; |
276 | 282 | ||
277 | 283 | ||