From: alegrand Date: Wed, 26 Sep 2007 19:10:38 +0000 (+0000) Subject: Doc + use all arguments in free function. X-Git-Tag: v3.3~1042 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/b9da7c01387335f567cc712b0cece2cffaa73c04 Doc + use all arguments in free function. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4749 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/xbt/graph.c b/src/xbt/graph.c index c927ef26d9..b106f505bb 100644 --- a/src/xbt/graph.c +++ b/src/xbt/graph.c @@ -119,7 +119,10 @@ void xbt_graph_edge_set_data(xbt_edge_t edge, void *data) } /** @brief Destructor - * @param l: poor victim + * @param g: poor victim + * @param node_free_function: function to use to free data associated to each node + * @param edge_free_function: function to use to free data associated to each edge + * @param graph_free_function: function to use to free data associated to g * * Free the graph structure. */ @@ -152,7 +155,7 @@ void xbt_graph_free_graph(xbt_graph_t g, xbt_dynar_foreach(g->edges, cursor, edge) free(edge); xbt_dynar_free(&(g->edges)); - + if(graph_free_function) (*graph_free_function)(g->data); free(g); return;