/* safe_dcl:
* Find the attribute belonging to graph g for objects like obj
* with given name. If one does not exist, create it with the
- * default value def.
+ * default value defaultValue.
*/
-attrsym_t*
-safe_dcl(graph_t * g, int obj_kind, char *name, char *def)
-{
+attrsym_t *safe_dcl(graph_t *g, int obj_kind, char *name, char *defaultValue) {
attrsym_t *a = agattr(g,obj_kind,name, NULL);
if (!a) /* attribute does not exist */
- a = agattr(g,obj_kind,name,def);
+ a = agattr(g, obj_kind, name, defaultValue);
return a;
}
UTILS_API void undoClusterEdges(graph_t *g);
UTILS_API Dt_t *mkClustMap(Agraph_t *g);
UTILS_API Agraph_t *findCluster(Dt_t *map, char *name);
-UTILS_API attrsym_t *safe_dcl(graph_t *g, int obj_kind, char *name, char *def);
+UTILS_API attrsym_t *safe_dcl(graph_t *g, int obj_kind, char *name,
+ char *defaultValue);
UTILS_API int late_int(void *obj, Agsym_t *attr, int defaultValue, int minimum);
UTILS_API double late_double(void *obj, Agsym_t *attr, double defaultValue,