From 51cf2eabf36c77aa68d03c5084417b39bb571b7b Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 3 Sep 2022 10:57:40 -0700 Subject: [PATCH] ortho extractVChans: 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. --- lib/ortho/ortho.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ortho/ortho.c b/lib/ortho/ortho.c index 55ddae521..62b3173c1 100644 --- a/lib/ortho/ortho.c +++ b/lib/ortho/ortho.c @@ -407,7 +407,7 @@ extractVChans (maze* mp) cp = nextcp; } - chp = NEW(channel); + chp = gv_alloc(sizeof(channel)); chp->cp = cp; chp->p.p1 = cp->bb.LL.y; -- 2.50.1