From efba2c176d1c683a0c4e802b8f925b468158e237 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 15 Feb 2012 18:40:41 +0000 Subject: Reduce padding in dom_attr struct. svn path=/trunk/libdom/; revision=13445 --- src/core/attr.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/core/attr.c b/src/core/attr.c index 6032eb9..9da6ae3 100644 --- a/src/core/attr.c +++ b/src/core/attr.c @@ -31,13 +31,8 @@ struct dom_element; struct dom_attr { struct dom_node_internal base; /**< Base node */ - bool specified; /**< Whether the attribute is specified - * or default */ - struct dom_type_info *schema_type_info; /**< Type information */ - bool is_id; /**< Whether this attribute is a ID attribute */ - dom_attr_type type; /**< The type of this attribute */ union { @@ -46,6 +41,10 @@ struct dom_attr { bool bvalue; } value; /**< The special type value of this attribute */ + bool specified; /**< Whether the attribute is specified or default */ + + bool is_id; /**< Whether this attribute is a ID attribute */ + bool read_only; /**< Whether this attribute is readonly */ }; -- cgit v1.2.3