SOURCES: graphviz-python.patch (NEW) - graphviz-python.patch: adde...
qrczak
qrczak at pld-linux.org
Sat Nov 25 22:47:36 CET 2006
Author: qrczak Date: Sat Nov 25 21:47:36 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- graphviz-python.patch: added missing const, needed with newer Python
versions.
- Release 3.
---- Files affected:
SOURCES:
graphviz-python.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/graphviz-python.patch
diff -u /dev/null SOURCES/graphviz-python.patch:1.1
--- /dev/null Sat Nov 25 22:47:36 2006
+++ SOURCES/graphviz-python.patch Sat Nov 25 22:47:31 2006
@@ -0,0 +1,25 @@
+--- graphviz-2.8/tclpkg/gv/gv_python.cpp~ 2006-02-03 23:38:24.000000000 +0100
++++ graphviz-2.8/tclpkg/gv/gv_python.cpp 2006-11-25 21:51:39.000000000 +0100
+@@ -1228,7 +1228,7 @@
+ obj = pyobj;
+ if (PyCFunction_Check(obj)) {
+ /* here we get the method pointer for callbacks */
+- char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
++ const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
+ c = doc ? strstr(doc, "swig_ptr: ") : 0;
+ if (c) {
+ c = ty ? SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name) : 0;
+@@ -5498,11 +5498,11 @@
+ swig_type_info **types_initial) {
+ size_t i;
+ for (i = 0; methods[i].ml_name; ++i) {
+- char *c = methods[i].ml_doc;
++ const char *c = methods[i].ml_doc;
+ if (c && (c = strstr(c, "swig_ptr: "))) {
+ int j;
+ swig_const_info *ci = 0;
+- char *name = c + 10;
++ const char *name = c + 10;
+ for (j = 0; const_table[j].type; ++j) {
+ if (strncmp(const_table[j].name, name,
+ strlen(const_table[j].name)) == 0) {
================================================================
More information about the pld-cvs-commit
mailing list