- Uninitialized variable read in delaunay_tri
- potentially mismatched format string in tclpkg
+- `gvToolTred` is now exported from gvc.dll on Windows mirroring the behavior on
+ Unix platforms.
## [2.47.1] - 2021-04-17
<ClCompile Include="gvc\gvplugin.c" />
<ClCompile Include="gvc\gvrender.c" />
<ClCompile Include="gvc\gvtextlayout.c" />
+ <ClCompile Include="gvc\gvtool_tred.c" />
<ClCompile Include="gvc\gvusershape.c" />
<ClCompile Include="label\index.c" />
<ClCompile Include="label\node.c" />
<ClCompile Include="gvc\gvtextlayout.c">
<Filter>Source Files</Filter>
</ClCompile>
+ <ClCompile Include="gvc\gvtool_tred.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
<ClCompile Include="gvc\gvusershape.c">
<Filter>Source Files</Filter>
</ClCompile>
gvRenderFilename
gvRenderJobs
gvToggle
+gvToolTred
gvusershape_file_access
gvusershape_file_release
gvwrite
--- /dev/null
+// see test_regression.py:test_2057
+
+#include <stdio.h>
+#include <graphviz/gvc.h>
+
+int main(void) {
+ printf("%p\n", gvToolTred);
+ return 0;
+}
assert "line 3\nline 4" in xdot
assert "line 5\nline 6" in xdot
+def test_2057():
+ """
+ gvToolTred should be usable by user code
+ https://gitlab.com/graphviz/graphviz/-/issues/2057
+ """
+
+ # FIXME: Remove skip when
+ # https://gitlab.com/graphviz/graphviz/-/issues/1777 is fixed
+ if os.getenv("build_system") == "msbuild":
+ pytest.skip("Windows MSBuild release does not contain any header files (#1777)")
+
+ # find co-located test source
+ c_src = (Path(__file__).parent / "2057.c").resolve()
+ assert c_src.exists(), "missing test case"
+
+ # run the test
+ ret, _, _ = run_c(c_src, link=["gvc"])
+ assert ret == 0
+
def test_package_version():
"""
The graphviz_version.h header should define a non-empty PACKAGE_VERSION