From: Matthew Fernandez Date: Sat, 3 Sep 2022 17:57:12 +0000 (-0700) Subject: ortho extractHChans: use cgraph wrapper for allocation X-Git-Tag: 6.0.1~11^2~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d20a68be59789a08897b039bfb419472b0123866;p=graphviz ortho extractHChans: 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/ortho/ortho.c b/lib/ortho/ortho.c index 3bf654797..55ddae521 100644 --- a/lib/ortho/ortho.c +++ b/lib/ortho/ortho.c @@ -370,7 +370,7 @@ extractHChans (maze* mp) cp = nextcp; } - chp = NEW(channel); + chp = gv_alloc(sizeof(channel)); chp->cp = cp; chp->p.p1 = cp->bb.LL.x;