From 9aec500a2691d2b13c307d143868c8a4fab33220 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 17 Jul 2014 14:27:49 -0300 Subject: no need for field 'gch' anymore --- lobject.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'lobject.h') 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); \ -- cgit v1.2.3-55-g6feb