diff options
author | Matthias Clasen <mclasen@redhat.com> | 2011-04-12 12:46:28 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-04-12 12:46:28 -0400 |
commit | 6f09126343c77be2b84e340b101e4b6b8f859239 (patch) | |
tree | 17b328c28391191f3884f09facffd4ac13f59c54 /gtk/gtktextbtree.c | |
parent | 7629ee7ad045732882fe397372f411e2d95acf95 (diff) | |
download | gtk+-6f09126343c77be2b84e340b101e4b6b8f859239.tar.gz |
GtkTextBTreeNode: Improve struct packing
Diffstat (limited to 'gtk/gtktextbtree.c')
-rw-r--r-- | gtk/gtktextbtree.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; }; |