Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 148728
Collapse All | Expand All

(-)python/lcms_wrap.cxx~ (-4 / +4 lines)
Lines 2048-2054 Link Here
2048
    void *vptr = 0;
2048
    void *vptr = 0;
2049
    
2049
    
2050
    /* here we get the method pointer for callbacks */
2050
    /* here we get the method pointer for callbacks */
2051
    char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2051
    const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2052
    const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2052
    const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2053
    if (desc) {
2053
    if (desc) {
2054
      desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2054
      desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
Lines 2916-2922 Link Here
2916
SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
2916
SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
2917
{
2917
{
2918
  if (PyString_Check(obj)) {
2918
  if (PyString_Check(obj)) {
2919
    char *cstr; int len;
2919
    char *cstr; Py_ssize_t len;
2920
    PyString_AsStringAndSize(obj, &cstr, &len);
2920
    PyString_AsStringAndSize(obj, &cstr, &len);
2921
    if (cptr)  {
2921
    if (cptr)  {
2922
      if (alloc) {
2922
      if (alloc) {
Lines 33904-33914 Link Here
33904
    swig_type_info **types_initial) {
33904
    swig_type_info **types_initial) {
33905
    size_t i;
33905
    size_t i;
33906
    for (i = 0; methods[i].ml_name; ++i) {
33906
    for (i = 0; methods[i].ml_name; ++i) {
33907
      char *c = methods[i].ml_doc;
33907
      const char *c = methods[i].ml_doc;
33908
      if (c && (c = strstr(c, "swig_ptr: "))) {
33908
      if (c && (c = strstr(c, "swig_ptr: "))) {
33909
        int j;
33909
        int j;
33910
        swig_const_info *ci = 0;
33910
        swig_const_info *ci = 0;
33911
        char *name = c + 10;
33911
        const char *name = c + 10;
33912
        for (j = 0; const_table[j].type; ++j) {
33912
        for (j = 0; const_table[j].type; ++j) {
33913
          if (strncmp(const_table[j].name, name, 
33913
          if (strncmp(const_table[j].name, name, 
33914
              strlen(const_table[j].name)) == 0) {
33914
              strlen(const_table[j].name)) == 0) {

Return to bug 148728