Replace deprecated methods from old api:

PythonReturnErrorObject
  PythonIncRef

Fix some compiler warnings about missing initializers
in method tables.
This commit is contained in:
Stephen Swaney
2004-06-06 22:42:51 +00:00
parent d97e3e5527
commit a703837179
28 changed files with 98 additions and 106 deletions

View File

@@ -204,7 +204,7 @@ M_NLA_GetActions(PyObject* self)
Py_DECREF (py_action);
} else {
Py_DECREF ( dict );
return (PythonReturnErrorObject (PyExc_RuntimeError,
return (EXPP_ReturnPyObjError (PyExc_RuntimeError,
"NLA_GetActions: could not create Action object"));
}
}
@@ -359,7 +359,7 @@ static PyObject *Action_getAllChannelIpos (BPy_Action *self)
Py_DECREF (ipo_attr);
} else {
Py_DECREF ( dict );
return (PythonReturnErrorObject (PyExc_RuntimeError,
return (EXPP_ReturnPyObjError (PyExc_RuntimeError,
"Action_getAllChannelIpos: could not create Ipo object"));
}
}