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.
* Contributors: Details at https://graphviz.org
*************************************************************************/
+#include <cgraph/alloc.h>
#include "menucallbacks.h"
#include "viewport.h"
#include "tvnodes.h"
#include "gvprpipe.h"
#include "topviewsettings.h"
#include "gltemplate.h"
-#include <common/memory.h>
#include <common/const.h>
#include <cgraph/agxbuf.h>
#include <assert.h>
argc++;
} else
cloneGraph = 0;
- argv = N_NEW(argc + 1, char *);
+ argv = gv_calloc(argc + 1, sizeof(char*));
j = 0;
argv[j++] = "smyrna";
if (cloneGraph)