]> granicus.if.org Git - graphviz/commitdiff
simplify addEdgePoint with agxbprint
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 6 Sep 2020 16:33:13 +0000 (09:33 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 17 Sep 2020 04:08:22 +0000 (21:08 -0700)
cmd/tools/gmlparse.y

index 0f539f4224e65b948885e7c5fad451304ea6b55a..47644d705e4276765050649be619454ea5990eb1 100644 (file)
@@ -630,9 +630,7 @@ addEdgePoint (Agedge_t* ep, Dt_t* alist, agxbuf* xb)
     }
 
     if (agxblen(xb)) agxbputc (xb, ' ');
-    agxbput (xb, x);
-    agxbputc (xb, ',');
-    agxbput (xb, y);
+    agxbprint (xb, "%s,%s", x, y);
 }
 
 static void