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

@@ -286,7 +286,7 @@ M_Ipo_Get (PyObject * self, PyObject * args)
ipolist = PyList_New (BLI_countlist (&(G.main->ipo)));
if (ipolist == NULL)
return (PythonReturnErrorObject (PyExc_MemoryError,
return (EXPP_ReturnPyObjError (PyExc_MemoryError,
"couldn't create PyList"));
while (ipo_iter)
@@ -294,7 +294,7 @@ M_Ipo_Get (PyObject * self, PyObject * args)
pyobj = Ipo_CreatePyObject (ipo_iter);
if (!pyobj)
return (PythonReturnErrorObject (PyExc_MemoryError,
return (EXPP_ReturnPyObjError (PyExc_MemoryError,
"couldn't create PyString"));
PyList_SET_ITEM (ipolist, index, pyobj);