Prabhu's fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6767 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
efd7f57142
commit
a111449e8c
1 changed files with 4 additions and 5 deletions
|
|
@ -44,6 +44,9 @@ extern "C" {
|
||||||
* Create a new pointer string
|
* Create a new pointer string
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
#ifndef SWIG_BUFFER_SIZE
|
||||||
|
#define SWIG_BUFFER_SIZE 1024
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(SWIG_COBJECT_TYPES)
|
#if defined(SWIG_COBJECT_TYPES)
|
||||||
#if !defined(SWIG_COBJECT_PYTHON)
|
#if !defined(SWIG_COBJECT_PYTHON)
|
||||||
|
|
@ -51,10 +54,6 @@ extern "C" {
|
||||||
* Implements a simple Swig Object type, and use it instead of PyCObject
|
* Implements a simple Swig Object type, and use it instead of PyCObject
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
#ifndef SWIG_BUFFER_SIZE
|
|
||||||
#define SWIG_BUFFER_SIZE 1024
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
void *ptr;
|
void *ptr;
|
||||||
|
|
@ -285,7 +284,7 @@ PySwigPacked_str(PySwigPacked *v)
|
||||||
if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
|
if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
|
||||||
return PyString_FromFormat("%s%s", result, v->desc);
|
return PyString_FromFormat("%s%s", result, v->desc);
|
||||||
} else {
|
} else {
|
||||||
return PyString_FromFormat("%s%s", v->desc);
|
return PyString_FromFormat("%s", v->desc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue