eina_rbtree_inline_remove(Eina_Rbtree *root, Eina_Rbtree *node, Eina_Rbtree_Cmp_Node_Cb cmp, const void *data)
{
Eina_Rbtree head;
- Eina_Rbtree *q, *p, *g;
+ Eina_Rbtree *q, *p;
Eina_Rbtree *f = NULL;
Eina_Rbtree_Direction dir;
dir = EINA_RBTREE_RIGHT;
q = &head;
- g = p = NULL;
+ p = NULL;
q->son[EINA_RBTREE_RIGHT] = root;
/* Search and push a red down */
while (q->son[dir] != NULL)
{
Eina_Rbtree_Direction last = dir;
+ Eina_Rbtree *g;
/* Update helpers */
g = p; p = q;
Eina_Bool t2 = EINA_TRUE;
Eina_Bool t3 = EINA_TRUE;
Eina_Bool t4 = EINA_TRUE;
- Eina_Bool intersects;
if ((rect->x + rect->w + w) > poolw) t1 = EINA_FALSE;
if ((rect->y + h) > poolh) t1 = EINA_FALSE;
if ((rect->x + w) > poolw) t4 = EINA_FALSE;
if ((rect->y - h) < 0) t4 = EINA_FALSE;
- intersects = EINA_FALSE;
if (t1)
{
+ Eina_Bool intersects;
/* 1. try here:
* +----++--+
* |AAAA||??|
if (!intersects) goto on_intersect;
}
- intersects = EINA_FALSE;
if (t2)
{
+ Eina_Bool intersects;
/* 2. try here:
* +----+
* |AAAA|
if (!intersects) goto on_intersect;
}
- intersects = EINA_FALSE;
if (t3)
{
+ Eina_Bool intersects;
/* 3. try here:
* +--++----+
* |??||AAAA|
if (!intersects) goto on_intersect;
}
- intersects = EINA_FALSE;
if (t4)
{
+ Eina_Bool intersects;
/* 2. try here:
* +--+
* |??|