Improve struct packing in various places

This commit is contained in:
Matthias Clasen
2013-09-21 23:37:48 -04:00
parent d137f74fe9
commit e5317f0f9a
19 changed files with 47 additions and 45 deletions

View File

@ -63,14 +63,15 @@ struct _GtkRBNode
{
guint flags : 14;
GtkRBNode *left;
GtkRBNode *right;
GtkRBNode *parent;
/* count is the number of nodes beneath us, plus 1 for ourselves.
* i.e. node->left->count + node->right->count + 1
*/
gint count;
GtkRBNode *left;
GtkRBNode *right;
GtkRBNode *parent;
/* count the number of total nodes beneath us, including nodes
* of children trees.
* i.e. node->left->count + node->right->count + node->children->root->count + 1