]> granicus.if.org Git - graphviz/commitdiff
bzero replaced with memset
authorDwight Perry <dperry@research.att.com>
Mon, 27 Feb 2012 18:49:04 +0000 (13:49 -0500)
committerDwight Perry <dperry@research.att.com>
Mon, 27 Feb 2012 18:49:04 +0000 (13:49 -0500)
cmd/tools/gv2gml.c

index 4b29cd71ba67857e42ca686968822ff9fbe36aa6..feb75c06fb5fc1abe59b03f8822b330153b6b40a 100644 (file)
 *              AT&T Research, Florham Park NJ             *
 **********************************************************/
 
+#ifdef WIN32 /*dependencies*/
+    #pragma comment( lib, "cgraph.lib" )
+    #pragma comment( lib, "ingraphs.lib" )
+    #pragma comment( lib, "cdt.lib" )
+
+#endif
+
+
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
@@ -251,7 +259,7 @@ emitNodeAttrs (Agraph_t* G, Agnode_t* np, FILE* outFile, int ix)
     double x, y;
 
     /* First, process the attributes, saving the graphics attributes */
-    bzero(&attrs, sizeof(attrs));
+    memset(&attrs,0, sizeof(attrs));
     for (s = agnxtattr (G, AGNODE, NULL); s; s = agnxtattr (G, AGNODE, s)) {
        if (streq(s->name, "style")) { /* hasFill outlineStyle invis */
            if (*(v = agxget (np, s))) {
@@ -450,7 +458,7 @@ emitEdgeAttrs (Agraph_t* G, Agedge_t* ep, FILE* outFile, int ix)
     int style;
 
     /* First, process the attributes, saving the graphics attributes */
-    bzero(&attrs, sizeof(attrs));
+    memset(&attrs,0, sizeof(attrs));
     for (s = agnxtattr (G, AGEDGE, NULL); s; s = agnxtattr (G, AGEDGE, s)) {
        if (streq(s->name, "style")) { /* hasFill outlineStyle invis */
            if (*(v = agxget (ep, s))) {