#ifdef HAVE_GD_PNG
-/* for N_GNEW() */
-#include <common/memory.h>
-
/* for gvcolor_t */
#include <common/color.h>
#include <cgraph/agxbuf.h>
#include <cgraph/alloc.h>
#include <cgraph/cgraph.h>
-#include <common/memory.h>
#include <common/render.h>
/* for wind() */
case NODE_OBJTYPE:
n = obj->u.n;
pen = set_penstyle(job, state->im, brush);
- points = N_GGNEW(np, gdPoint);
+ points = gv_calloc(np, sizeof(gdPoint));
for (i = 0; i < np; i++) {
mp = vrml_node_point(job, n, A[i]);
points[i].x = ROUND(mp.x);