Switch back to eo_del.

This was a brutal eo_unref -> eo_del. Should be good enough.
This commit is contained in:
Jean-Philippe Andre 2016-07-19 18:25:00 +09:00
parent 95d6a6cd9a
commit ffa005ea3d
113 changed files with 145 additions and 145 deletions

View File

@ -49,7 +49,7 @@ _setup(void)
static void
_cleanup(void)
{
eo_unref(o_text);
eo_del(o_text);
o_text = NULL;
}

View File

@ -36,7 +36,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -37,7 +37,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -42,7 +42,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -40,7 +40,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -43,7 +43,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < MANYNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < MANYNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -36,7 +36,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -36,7 +36,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -36,7 +36,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -36,7 +36,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -50,7 +50,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -53,7 +53,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -53,7 +53,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -53,7 +53,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -50,7 +50,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -53,7 +53,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -53,7 +53,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -53,7 +53,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -50,7 +50,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -53,7 +53,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -53,7 +53,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -53,7 +53,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -36,7 +36,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -36,7 +36,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -36,7 +36,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -36,7 +36,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -36,7 +36,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -42,7 +42,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -41,7 +41,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -37,7 +37,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -39,7 +39,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -37,7 +37,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -37,7 +37,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -43,7 +43,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < 2; i++) eo_unref(o_images[i]);
for (i = 0; i < 2; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -44,7 +44,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < 1; i++) eo_unref(o_images[i]);
for (i = 0; i < 1; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -44,7 +44,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < 1; i++) eo_unref(o_images[i]);
for (i = 0; i < 1; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -77,7 +77,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < 1; i++) eo_unref(o_images[i]);
for (i = 0; i < 1; i++) eo_del(o_images[i]);
// FIXME: the object is not destroyed anymore so we can't free the data
/* free(yp); */
/* free(up); */

View File

@ -75,7 +75,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < 1; i++) eo_unref(o_images[i]);
for (i = 0; i < 1; i++) eo_del(o_images[i]);
/* free(yp); */
/* free(up); */
/* free(vp); */

View File

@ -74,7 +74,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < 1; i++) eo_unref(o_images[i]);
for (i = 0; i < 1; i++) eo_del(o_images[i]);
/* free(yp); */
/* free(up); */
/* free(vp); */

View File

@ -75,7 +75,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < 1; i++) eo_unref(o_images[i]);
for (i = 0; i < 1; i++) eo_del(o_images[i]);
/* free(yp); */
/* free(up); */
/* free(vp); */

View File

@ -171,7 +171,7 @@ _cube_free(Cube *c)
{
int i;
for (i = 0; i < 6; i++) eo_unref(c->side[i].o);
for (i = 0; i < 6; i++) eo_del(c->side[i].o);
free(c);
}

View File

@ -169,7 +169,7 @@ _cube_free(Cube *c)
{
int i;
for (i = 0; i < 6; i++) eo_unref(c->side[i].o);
for (i = 0; i < 6; i++) eo_del(c->side[i].o);
free(c);
}

View File

@ -163,7 +163,7 @@ _cube_free(Cube *c)
{
int i;
for (i = 0; i < 6; i++) eo_unref(c->side[i].o);
for (i = 0; i < 6; i++) eo_del(c->side[i].o);
free(c);
}

View File

@ -161,7 +161,7 @@ _cube_free(Cube *c)
{
int i;
for (i = 0; i < 6; i++) eo_unref(c->side[i].o);
for (i = 0; i < 6; i++) eo_del(c->side[i].o);
free(c);
}

View File

@ -171,7 +171,7 @@ _cube_free(Cube *c)
{
int i;
for (i = 0; i < 6; i++) eo_unref(c->side[i].o);
for (i = 0; i < 6; i++) eo_del(c->side[i].o);
free(c);
}

View File

@ -168,7 +168,7 @@ _cube_free(Cube *c)
{
int i;
for (i = 0; i < 6; i++) eo_unref(c->side[i].o);
for (i = 0; i < 6; i++) eo_del(c->side[i].o);
free(c);
}

View File

@ -56,8 +56,8 @@ static void _cleanup(void)
int i;
for (i = 0; i < CNUM; i++)
{
eo_unref(o_images[i]);
eo_unref(o_reflec[i]);
eo_del(o_images[i]);
eo_del(o_reflec[i]);
}
}

View File

@ -39,7 +39,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < (OBNUM / 2); i++) eo_unref(o_images[i]);
for (i = 0; i < (OBNUM / 2); i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -39,7 +39,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < (OBNUM / 2); i++) eo_unref(o_images[i]);
for (i = 0; i < (OBNUM / 2); i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -38,7 +38,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < (OBNUM / 2); i++) eo_unref(o_images[i]);
for (i = 0; i < (OBNUM / 2); i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -38,7 +38,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < (OBNUM / 2); i++) eo_unref(o_images[i]);
for (i = 0; i < (OBNUM / 2); i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -39,7 +39,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < (OBNUM / 2); i++) eo_unref(o_images[i]);
for (i = 0; i < (OBNUM / 2); i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -39,7 +39,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < (OBNUM / 2); i++) eo_unref(o_images[i]);
for (i = 0; i < (OBNUM / 2); i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -38,7 +38,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < (OBNUM / 2); i++) eo_unref(o_images[i]);
for (i = 0; i < (OBNUM / 2); i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -38,7 +38,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < (OBNUM / 2); i++) eo_unref(o_images[i]);
for (i = 0; i < (OBNUM / 2); i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -39,7 +39,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < (OBNUM / 2); i++) eo_unref(o_images[i]);
for (i = 0; i < (OBNUM / 2); i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -39,7 +39,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < (OBNUM / 2); i++) eo_unref(o_images[i]);
for (i = 0; i < (OBNUM / 2); i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -38,7 +38,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < (OBNUM / 2); i++) eo_unref(o_images[i]);
for (i = 0; i < (OBNUM / 2); i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -38,7 +38,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < (OBNUM / 2); i++) eo_unref(o_images[i]);
for (i = 0; i < (OBNUM / 2); i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -46,7 +46,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -48,8 +48,8 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < 1; i++) eo_unref(o_images[i]);
eo_unref(o_mask);
for (i = 0; i < 1; i++) eo_del(o_images[i]);
eo_del(o_mask);
}
/* loop - do things */

View File

@ -48,8 +48,8 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
eo_unref(o_mask);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
eo_del(o_mask);
}
/* loop - do things */

View File

@ -49,8 +49,8 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
eo_unref(o_mask);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
eo_del(o_mask);
}
/* loop - do things */

View File

@ -49,8 +49,8 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
eo_unref(o_mask);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
eo_del(o_mask);
}
/* loop - do things */

View File

@ -46,7 +46,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -46,7 +46,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -48,8 +48,8 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
eo_unref(o_mask);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
eo_del(o_mask);
}
/* loop - do things */

View File

@ -48,8 +48,8 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
eo_unref(o_mask);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
eo_del(o_mask);
}
/* loop - do things */

View File

@ -48,8 +48,8 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
eo_unref(o_mask);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
eo_del(o_mask);
}
/* loop - do things */

View File

@ -48,8 +48,8 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
eo_unref(o_mask);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
eo_del(o_mask);
}
/* loop - do things */

View File

@ -48,8 +48,8 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < 1; i++) eo_unref(o_images[i]);
eo_unref(o_mask);
for (i = 0; i < 1; i++) eo_del(o_images[i]);
eo_del(o_mask);
}
/* loop - do things */

View File

@ -48,8 +48,8 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < 1; i++) eo_unref(o_images[i]);
eo_unref(o_mask);
for (i = 0; i < 1; i++) eo_del(o_images[i]);
eo_del(o_mask);
}
/* loop - do things */

View File

@ -38,7 +38,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < 1; i++) eo_unref(o_images[i]);
for (i = 0; i < 1; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -45,7 +45,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
#define PI (double) 3.141592654

View File

@ -85,7 +85,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -46,7 +46,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -49,7 +49,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -62,7 +62,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_texts[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_texts[i]);
}
/* loop - do things */

View File

@ -71,7 +71,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_texts[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_texts[i]);
}
/* loop - do things */

View File

@ -42,7 +42,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -45,7 +45,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -43,7 +43,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -46,7 +46,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
}
/* loop - do things */

View File

@ -42,7 +42,7 @@ static void _setup(void)
static void _cleanup(void)
{
int i;
for (i = 0; i < OBNUM; i++) eo_unref(o_images[i]);
for (i = 0;