From: erg Date: Wed, 9 Apr 2008 21:06:09 +0000 (+0000) Subject: Add macros for custom_object_data and custom_graph_data; X-Git-Tag: LAST_LIBGRAPH~32^2~4339 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=661502279f587368f31b9eb289792294f928fd13;p=graphviz Add macros for custom_object_data and custom_graph_data; clean up warnings; add macros for malloc and realloc --- diff --git a/cmd/smyrna/glexpose.c b/cmd/smyrna/glexpose.c index a40c25952..4333b9565 100644 --- a/cmd/smyrna/glexpose.c +++ b/cmd/smyrna/glexpose.c @@ -133,8 +133,7 @@ void glexpose_grid(ViewInfo * view) int glexpose_drawgraph(ViewInfo * view) { if (view->activeGraph > -1) { - if (((custom_graph_data *) AGDATA(view->g[view->activeGraph]))-> - TopView) { + if (GD_TopView(view->g[view->activeGraph])) { drawTopViewGraph(view->g[view->activeGraph]); //view->Topview style dots and straight lines glCompSetDraw(view->Topview->topviewmenu); } else diff --git a/cmd/smyrna/gltemplate.c b/cmd/smyrna/gltemplate.c index c1dd51236..05faad209 100755 --- a/cmd/smyrna/gltemplate.c +++ b/cmd/smyrna/gltemplate.c @@ -319,8 +319,7 @@ static gboolean button_release_event(GtkWidget * widget, expose_event(view->drawing_area, NULL, NULL); } if (view->mouse.mouse_mode == MM_MOVE) { - if (((custom_graph_data *) - AGDATA(view->g[view->activeGraph]))->TopView == 0) + if (GD_TopView(view->g[view->activeGraph]) == 0) move_nodes(view->g[view->activeGraph]); else move_TVnodes();