summaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-01-18 15:18:09 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-01-18 15:18:09 -0200
commit334ba8132bd0471ffe2a9964b577d3ae89ec490a (patch)
tree3e0dde3bca4f1f51dad42d8c85ad9cb624aab1fa /lobject.h
parentac71a0891d8571816ce32b5c2c1fd97942decf71 (diff)
downloadlua-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.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/lobject.h b/lobject.h
index 2c0a5d26..0c781ef3 100644
--- a/lobject.h
+++ b/lobject.h
@@ -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 {
271typedef struct UpVal { 271typedef 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