]> granicus.if.org Git - graphviz/commitdiff
Make setAttr external; alter conflicting static function in args.c
authorerg <devnull@localhost>
Fri, 3 Oct 2008 15:24:47 +0000 (15:24 +0000)
committererg <devnull@localhost>
Fri, 3 Oct 2008 15:24:47 +0000 (15:24 +0000)
lib/common/args.c
lib/common/utils.c
lib/common/utils.h

index c4164ef66e69319544450eaf67256fba77e2b314..d908513ec34468b83a8c56e8dbb90f71f6c2d85c 100644 (file)
@@ -188,11 +188,11 @@ setInt (int* v, char* arg)
   return 0;
 }
 
-/* setAttr:
+/* setFDPAttr:
  * Actions for fdp specific flags
  */
 static int
-setAttr (char* arg)
+setFDPAttr (char* arg)
 {
   switch (*arg++) {
   case 'g' :
@@ -242,7 +242,7 @@ fdp_extra_args (GVC_t *gvc, int argc, char** argv)
   for (i = 1; i < argc; i++) {
     arg = argv[i];
     if (arg && (*arg == '-') && (*(arg+1) == 'L')) {
-      if (setAttr (arg+2)) dotneato_usage(1);
+      if (setFDPAttr (arg+2)) dotneato_usage(1);
     }
     else {
       cnt++;
index b612053088e001689e2df7ef498bd44e16f9d2de..6812355025225c38a2446f4b9eb894b6f0f67f8a 100644 (file)
@@ -790,7 +790,7 @@ void compute_bb(graph_t * g)
  * Sets object's name attribute to the given value.
  * Creates the attribute if not already set.
  */
-static Agsym_t *setAttr(graph_t * g, void *obj, char *name, char *value,
+Agsym_t *setAttr(graph_t * g, void *obj, char *name, char *value,
                        Agsym_t * ap)
 {
     if (ap == NULL) {
index d0acbd8fb83cf1c92b12212be101d7aef80a987d..01f79ac29aa1a0365f89cabed82eff2396439026 100644 (file)
@@ -75,6 +75,7 @@ extern "C" {
     extern pointf neato_closest(splines * spl, pointf p);
     extern pointf spline_at_y(splines * spl, double y);
 
+    extern Agsym_t *setAttr(graph_t*, void*, char*name, char *value, Agsym_t*);
     extern void setEdgeType (graph_t* g, int dflt);
 #ifdef __cplusplus
 }