Lines 1228-1234
Link Here
|
1228 |
obj = pyobj; |
1228 |
obj = pyobj; |
1229 |
if (PyCFunction_Check(obj)) { |
1229 |
if (PyCFunction_Check(obj)) { |
1230 |
/* here we get the method pointer for callbacks */ |
1230 |
/* 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); |
1232 |
c = doc ? strstr(doc, "swig_ptr: ") : 0; |
1232 |
c = doc ? strstr(doc, "swig_ptr: ") : 0; |
1233 |
if (c) { |
1233 |
if (c) { |
1234 |
c = ty ? SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name) : 0; |
1234 |
c = ty ? SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name) : 0; |
Lines 5498-5504
Link Here
|
5498 |
swig_type_info **types_initial) { |
5498 |
swig_type_info **types_initial) { |
5499 |
size_t i; |
5499 |
size_t i; |
5500 |
for (i = 0; methods[i].ml_name; ++i) { |
5500 |
for (i = 0; methods[i].ml_name; ++i) { |
5501 |
char *c = methods[i].ml_doc; |
5501 |
const char *c = methods[i].ml_doc; |
5502 |
if (c && (c = strstr(c, "swig_ptr: "))) { |
5502 |
if (c && (c = strstr(c, "swig_ptr: "))) { |
5503 |
int j; |
5503 |
int j; |
5504 |
swig_const_info *ci = 0; |
5504 |
swig_const_info *ci = 0; |
Lines 5502-5508
Link Here
|
5502 |
if (c && (c = strstr(c, "swig_ptr: "))) { |
5502 |
if (c && (c = strstr(c, "swig_ptr: "))) { |
5503 |
int j; |
5503 |
int j; |
5504 |
swig_const_info *ci = 0; |
5504 |
swig_const_info *ci = 0; |
5505 |
char *name = c + 10; |
5505 |
const char *name = c + 10; |
5506 |
for (j = 0; const_table[j].type; ++j) { |
5506 |
for (j = 0; const_table[j].type; ++j) { |
5507 |
if (strncmp(const_table[j].name, name, |
5507 |
if (strncmp(const_table[j].name, name, |
5508 |
strlen(const_table[j].name)) == 0) { |
5508 |
strlen(const_table[j].name)) == 0) { |