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.
view->fmg.active = 0;
view->mouse.down = 0;
view->activeGraph = -1;
- view->Topview = GNEW(topview);
+ view->Topview = gv_alloc(sizeof(topview));
view->Topview->fisheyeParams.fs = 0;
view->Topview->xDot=NULL;
set_viewport_settings_from_template(view, view->systemGraphs.def_attrs);
view->Topview->Graphdata.GraphFileName = NULL;
view->colschms = NULL;
- view->arcball = NEW(ArcBall_t);
+ view->arcball = gv_alloc(sizeof(ArcBall_t));
view->keymap.down=0;
load_mouse_actions (view);
view->refresh.color=1;