* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <algorithm>
#ifdef _MSC_VER
}
-}
\ No newline at end of file
+}
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#ifdef _MSC_VER
#include <cfloat>
#define isfinite _finite
Agedge_t* edge = job->obj->u.e;
/* get previously saved ids for tail and head node; edge type for graph */
- NodeIds::const_iterator beginId = _nodeIds.find(edge->tail);
- NodeIds::const_iterator endId = _nodeIds.find(edge->head);
+ NodeIds::const_iterator beginId = _nodeIds.find(agtail(edge));
+ NodeIds::const_iterator endId = _nodeIds.find(aghead(edge));
/* output first connectable shape as an edge shape, all else as regular outer shapes */
bool firstConnector = true;
_graphics[0],
beginId == _nodeIds.end() ? 0 : beginId->second,
endId == _nodeIds.end() ? 0 : endId->second,
+#ifdef WITH_CGRAPH
+ EDGE_TYPE(agroot(edge))))
+#else
EDGE_TYPE(edge->head->graph->root)))
+#endif
firstConnector = false;
else
PrintOuterShape(job, *nextGraphic);
}
}
-}
\ No newline at end of file
+}
* Contributors: See CVS logs. Details at http://www.graphviz.org/
*************************************************************************/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "VisioText.h"
#include "gvcjob.h"
#include "gvio.h"
+#ifdef WITH_CGRAPH
+#include <string.h>
+#endif
extern "C" char *xml_string(char* str);
Run::Run(boxf bounds, char* text):
_bounds(bounds),
+#ifdef WITH_CGRAPH
+ _text(strdup(text)) /* copy text */
+#else
_text(agstrdup(text)) /* copy text */
+#endif
{
}
Run::~Run()
{
/* since we copied, we need to free */
+#ifdef WITH_CGRAPH
+ free(_text);
+#else
agstrfree(_text);
+#endif
}
boxf Run::GetBounds() const
}
Hyperlink::Hyperlink(char* description, char* address, char* frame):
+#ifdef WITH_CGRAPH
+ _description(strdup(description)),
+ _address(strdup(address)),
+ _frame(strdup(frame))
+#else
_description(agstrdup(description)),
_address(agstrdup(address)),
_frame(agstrdup(frame))
+#endif
{
}
Hyperlink::~Hyperlink()
{
+#ifdef WITH_CGRAPH
+ free(_description);
+ free(_address);
+ free(_frame);
+#else
agstrfree(_description);
agstrfree(_address);
agstrfree(_frame);
+#endif
}
/* output the hyperlink */
gvputs(job, "</Hyperlink>\n");
}
-}
\ No newline at end of file
+}