From 661502279f587368f31b9eb289792294f928fd13 Mon Sep 17 00:00:00 2001 From: erg Date: Wed, 9 Apr 2008 21:06:09 +0000 Subject: [PATCH] Add macros for custom_object_data and custom_graph_data; clean up warnings; add macros for malloc and realloc --- cmd/smyrna/glexpose.c | 3 +-- cmd/smyrna/gltemplate.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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(); -- 2.40.0