From: Matthew Fernandez Date: Fri, 18 Nov 2022 01:14:02 +0000 (-0800) Subject: neatogen newIpair: use cgraph wrapper for allocation X-Git-Tag: 7.0.3~11^2~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=84a2b7bcdc3918c93d3c0bac7e4f95761a0cb90e;p=graphviz neatogen newIpair: use cgraph wrapper for allocation The lib/cgraph/alloc.h wrappers are similar to the older lib/common/memory.h wrappers except (1) they are header-only and (2) they live in a directory (cgraph) that is at the root of the dependency tree. The long term plan is to replace all use of lib/common/memory.h with lib/cgraph/alloc.h. --- diff --git a/lib/neatogen/multispline.c b/lib/neatogen/multispline.c index 57eea9f89..a6a03970a 100644 --- a/lib/neatogen/multispline.c +++ b/lib/neatogen/multispline.c @@ -182,7 +182,7 @@ static int cmpIpair(Dt_t * d, int *p1, int *p2, Dtdisc_t * disc) static void *newIpair(Dt_t * d, Ipair * objp, Dtdisc_t * disc) { - Ipair *newp = NEW(Ipair); + Ipair *newp = gv_alloc(sizeof(Ipair)); (void)d; (void)disc;