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.
#include "config.h"
-
+#include <cgraph/alloc.h>
/* TODO:
* If cut point is in exactly 2 blocks, expand block circles to overlap
* especially in the case where one block is the sole child of the other.
double maxRadius = 0.0;
double angle;
double theta = 0.0;
- posinfo_t* parents = N_NEW(childCount, posinfo_t);
+ posinfo_t* parents = gv_calloc(childCount, sizeof(posinfo_t));
int num_parents = 0;
posinfo_t* next;
posinfo_t* curr;