summaryrefslogtreecommitdiff
path: root/mi/mifillarc.c
diff options
context:
space:
mode:
authorMikhail Gusarov <dottedmag@dottedmag.net>2010-05-06 01:44:06 +0700
committerMikhail Gusarov <dottedmag@dottedmag.net>2010-05-13 00:22:37 +0700
commit3f3ff971ecff9936cebafc813af9193b97bba89c (patch)
treefdbbad794a42488b7ffe41eed7aba4e498335f55 /mi/mifillarc.c
parent96c7ab27c383ec767f62a7a11e5fd76f86363fbc (diff)
Replace X-allocation functions with their C89 counterparts
The only remaining X-functions used in server are XNF*, the rest is converted to plain alloc/calloc/realloc/free/strdup. X* functions are still exported from server and x* macros are still defined in header file, so both ABI and API are not affected by this change. Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'mi/mifillarc.c')
-rw-r--r--mi/mifillarc.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/mi/mifillarc.c b/mi/mifillarc.c
index c22baf54c..6e13e681f 100644
--- a/mi/mifillarc.c
+++ b/mi/mifillarc.c
@@ -546,13 +546,13 @@ miFillEllipseI(
int *widths;
int *wids;
- points = xalloc(sizeof(DDXPointRec) * arc->height);
+ points = malloc(sizeof(DDXPointRec) * arc->height);
if (!points)
return;
- widths = xalloc(sizeof(int) * arc->height);
+ widths = malloc(sizeof(int) * arc->height);
if (!widths)
{
- xfree(points);
+ free(points);
return;
}
miFillArcSetup(arc, &info);
@@ -570,8 +570,8 @@ miFillEllipseI(
ADDSPANS();
}
(*pGC->ops->FillSpans)(pDraw, pGC, pts - points, points, widths, FALSE);
- xfree(widths);
- xfree(points);
+ free(widths);
+ free(points);
}
static void
@@ -589,13 +589,13 @@ miFillEllipseD(
int *widths;
int *wids;
- points = xalloc(sizeof(DDXPointRec) * arc->height);
+ points = malloc(sizeof(DDXPointRec) * arc->height);
if (!points)
return;
- widths = xalloc(sizeof(int) * arc->height);
+ widths = malloc(sizeof(int) * arc->height);
if (!widths)
{
- xfree(points);
+ free(points);
return;
}
miFillArcDSetup(arc, &info);
@@ -613,8 +613,8 @@ miFillEllipseD(
ADDSPANS();
}
(*pGC->ops->FillSpans)(pDraw, pGC, pts - points, points, widths, FALSE);
- xfree(widths);
- xfree(points);
+ free(widths);
+ free(points);
}
#define ADDSPAN(l,r) \
@@ -661,13 +661,13 @@ miFillArcSliceI(
slw = arc->height;
if (slice.flip_top || slice.flip_bot)
slw += (arc->height >> 1) + 1;
- points = xalloc(sizeof(DDXPointRec) * slw);
+ points = malloc(sizeof(DDXPointRec) * slw);
if (!points)
return;
- widths = xalloc(sizeof(int) * slw);
+ widths = malloc(sizeof(int) * slw);
if (!widths)
{
- xfree(points);
+ free(points);
return;
}
if (pGC->miTranslate)
@@ -698,8 +698,8 @@ miFillArcSliceI(
}
}
(*pGC->ops->FillSpans)(pDraw, pGC, pts - points, points, widths, FALSE);
- xfree(widths);
- xfree(points);
+ free(widths);
+ free(points);
}
static void
@@ -725,13 +725,13 @@ miFillArcSliceD(
slw = arc->height;
if (slice.flip_top || slice.flip_bot)
slw += (arc->height >> 1) + 1;
- points = xalloc(sizeof(DDXPointRec) * slw);
+ points = malloc(sizeof(DDXPointRec) * slw);
if (!points)
return;
- widths = xalloc(sizeof(int) * slw);
+ widths = malloc(sizeof(int) * slw);
if (!widths)
{
- xfree(points);
+ free(points);
return;
}
if (pGC->miTranslate)
@@ -762,8 +762,8 @@ miFillArcSliceD(
}
}
(*pGC->ops->FillSpans)(pDraw, pGC, pts - points, points, widths, FALSE);
- xfree(widths);
- xfree(points);
+ free(widths);
+ free(points);
}
/* MIPOLYFILLARC -- The public entry for the PolyFillArc request.