oops, fix previous commit with <<< conflicts
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7946 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
6e77a6ba25
commit
e55c3596b6
1 changed files with 0 additions and 51 deletions
|
|
@ -27,57 +27,6 @@ typedef struct swig_const_info {
|
|||
swig_type_info **ptype;
|
||||
} swig_const_info;
|
||||
|
||||
<<<<<<< pyapi.swg
|
||||
=======
|
||||
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
* Safe Py_None and Py_Void accessors
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
SWIGRUNTIME PyObject *
|
||||
SWIG_Py_None(void)
|
||||
{
|
||||
static PyObject *none = 0;
|
||||
if (!none) {
|
||||
none = Py_BuildValue("");
|
||||
Py_DECREF(none);
|
||||
}
|
||||
return none;
|
||||
}
|
||||
|
||||
SWIGRUNTIMEINLINE PyObject *
|
||||
SWIG_Py_Void(void)
|
||||
{
|
||||
PyObject *none = SWIG_Py_None();
|
||||
Py_INCREF(none);
|
||||
return none;
|
||||
}
|
||||
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
* Append a value to the result obj
|
||||
* ----------------------------------------------------------------------------- */
|
||||
SWIGINTERN PyObject*
|
||||
SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
|
||||
if (!result) {
|
||||
result = obj;
|
||||
} else if (result == SWIG_Py_None()) {
|
||||
Py_DECREF(result);
|
||||
result = obj;
|
||||
} else {
|
||||
if (!PyList_Check(result)) {
|
||||
PyObject *o2 = result;
|
||||
result = PyList_New(1);
|
||||
PyList_SetItem(result, 0, o2);
|
||||
}
|
||||
PyList_Append(result,obj);
|
||||
Py_DECREF(obj);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
>>>>>>> 1.13
|
||||
#ifdef __cplusplus
|
||||
#if 0
|
||||
{ /* cc-mode */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue