summaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-07-17 14:27:49 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-07-17 14:27:49 -0300
commit9aec500a2691d2b13c307d143868c8a4fab33220 (patch)
treee19555c9cf41f0d0b2e1d2d2de6571380a695d56 /lobject.h
parent5a9cc57a5ef75a28cd887715175a5a18db58616e (diff)
downloadlua-github-9aec500a2691d2b13c307d143868c8a4fab33220.tar.gz
no need for field 'gch' anymore
Diffstat (limited to 'lobject.h')
-rw-r--r--lobject.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/lobject.h b/lobject.h
index d55a347f..05008668 100644
--- a/lobject.h
+++ b/lobject.h
@@ -1,5 +1,5 @@
/*
-** $Id: lobject.h,v 2.94 2014/06/19 18:39:36 roberto Exp roberto $
+** $Id: lobject.h,v 2.95 2014/07/17 17:09:50 roberto Exp roberto $
** Type definitions for Lua objects
** See Copyright Notice in lua.h
*/
@@ -85,9 +85,7 @@ typedef struct GCObject GCObject;
** Common type has only the common header
*/
struct GCObject {
- struct {
- CommonHeader;
- } gch;
+ CommonHeader;
};
@@ -179,7 +177,7 @@ typedef struct lua_TValue TValue;
/* Macros for internal tests */
-#define righttt(obj) (ttype(obj) == gcvalue(obj)->gch.tt)
+#define righttt(obj) (ttype(obj) == gcvalue(obj)->tt)
#define checkliveness(g,obj) \
lua_longassert(!iscollectable(obj) || \
@@ -208,7 +206,7 @@ typedef struct lua_TValue TValue;
#define setgcovalue(L,obj,x) \
{ TValue *io = (obj); GCObject *i_g=(x); \
- val_(io).gc = i_g; settt_(io, ctb(gch(i_g)->tt)); }
+ val_(io).gc = i_g; settt_(io, ctb(i_g->tt)); }
#define setsvalue(L,obj,x) \
{ TValue *io = (obj); TString *x_ = (x); \