From 6f09126343c77be2b84e340b101e4b6b8f859239 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 12 Apr 2011 12:46:28 -0400 Subject: GtkTextBTreeNode: Improve struct packing --- gtk/gtktextbtree.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gtk/gtktextbtree.c') diff --git a/gtk/gtktextbtree.c b/gtk/gtktextbtree.c index c5124e7bd8..cd6d808eec 100644 --- a/gtk/gtktextbtree.c +++ b/gtk/gtktextbtree.c @@ -143,14 +143,14 @@ struct _GtkTextBTreeNode { int level; /* Level of this node in the B-tree. * 0 refers to the bottom of the tree * (children are lines, not nodes). */ + int num_lines; /* Total number of lines (leaves) in + * the subtree rooted here. */ + int num_chars; /* Number of chars below here */ + int num_children; /* Number of children of this node. */ union { /* First in linked list of children. */ struct _GtkTextBTreeNode *node; /* Used if level > 0. */ GtkTextLine *line; /* Used if level == 0. */ } children; - int num_children; /* Number of children of this node. */ - int num_lines; /* Total number of lines (leaves) in - * the subtree rooted here. */ - int num_chars; /* Number of chars below here */ NodeData *node_data; }; -- cgit v1.2.1