14
0
Files
python-pygraphviz/graphviz_14-0-0.patch

41 lines
1.7 KiB
Diff

---
pygraphviz/graphviz.i | 4 ++--
setup.py | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
Index: pygraphviz-1.14/pygraphviz/graphviz.i
===================================================================
--- pygraphviz-1.14.orig/pygraphviz/graphviz.i 2024-09-29 20:31:00.000000000 +0200
+++ pygraphviz-1.14/pygraphviz/graphviz.i 2025-10-22 19:43:41.606164205 +0200
@@ -338,7 +338,7 @@
/* three lines are straight from the SWIG manual. */
%include <cstring.i>
%include <typemaps.i>
-%cstring_output_allocate_size(char **result, unsigned int* size, free(*$1));
-int gvRenderData(GVC_t *gvc, Agraph_t* g, char *format, char **result, unsigned int *size);
+%cstring_output_allocate_size(char **result, size_t* size, free(*$1));
+int gvRenderData(GVC_t *gvc, Agraph_t* g, char *format, char **result, size_t *size);
/* Free memory allocated and pointed to by *result in gvRenderData */
extern void gvFreeRenderData (char* data);
Index: pygraphviz-1.14/setup.py
===================================================================
--- pygraphviz-1.14.orig/setup.py 2024-09-29 20:31:00.000000000 +0200
+++ pygraphviz-1.14/setup.py 2025-10-22 19:46:41.138483128 +0200
@@ -2,14 +2,14 @@
from setuptools import setup, Extension
if __name__ == "__main__":
- define_macros = [("SWIG_PYTHON_STRICT_BYTE_CHAR", None)]
+ define_macros = []
if sys.platform == "win32":
define_macros.append(("GVDLL", None))
extension = [
Extension(
name="pygraphviz._graphviz",
- sources=["pygraphviz/graphviz_wrap.c"],
+ sources=["pygraphviz/graphviz.i"],
include_dirs=[],
library_dirs=[],
# cdt does not link to cgraph, whereas cgraph links to cdt.