graphviz: graphviz-2.8-const-1.patch

File graphviz-2.8-const-1.patch, 1.1 KB (added by jbhr, 16 years ago)
  • graphviz-2.8/tclpkg/gv/gv_python.cpp

    old new  
    12281228    obj = pyobj;
    12291229    if (PyCFunction_Check(obj)) {
    12301230      /* here we get the method pointer for callbacks */
    1231       char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
     1231      const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
    12321232      c = doc ? strstr(doc, "swig_ptr: ") : 0;
    12331233      if (c) {
    12341234        c = ty ? SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name) : 0;
     
    54985498    swig_type_info **types_initial) {
    54995499        size_t i;
    55005500        for (i = 0; methods[i].ml_name; ++i) {
    5501             char *c = methods[i].ml_doc;
     5501            const char *c = methods[i].ml_doc;
    55025502            if (c && (c = strstr(c, "swig_ptr: "))) {
    55035503                int j;
    55045504                swig_const_info *ci = 0;
    5505                 char *name = c + 10;
     5505                const char *name = c + 10;
    55065506                for (j = 0; const_table[j].type; ++j) {
    55075507                    if (strncmp(const_table[j].name, name,
    55085508                    strlen(const_table[j].name)) == 0) {