From: Matthew Fernandez Date: Sun, 20 Nov 2022 20:02:53 +0000 (-0800) Subject: circogen mkNodelist: use cgraph wrapper for allocation X-Git-Tag: 7.0.3~2^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5b34a3087663be06e74527c4edb268587ac40bb9;p=graphviz circogen mkNodelist: 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/circogen/nodelist.c b/lib/circogen/nodelist.c index 94c13612d..2ee7ded39 100644 --- a/lib/circogen/nodelist.c +++ b/lib/circogen/nodelist.c @@ -22,7 +22,7 @@ static nodelistitem_t *init_nodelistitem(Agnode_t * n) nodelist_t *mkNodelist() { - nodelist_t *list = NEW(nodelist_t); + nodelist_t *list = gv_alloc(sizeof(nodelist_t)); return list; }