A big code clean-up patch from Bastien Montagne, many thanks!

This commit is contained in:
Tamito Kajiyama
2013-03-07 23:17:23 +00:00
parent b4b2269985
commit 4a92d82626
221 changed files with 986 additions and 798 deletions

View File

@@ -101,19 +101,19 @@ static int UnaryPredicate0D___init__(BPy_UnaryPredicate0D *self, PyObject *args,
return 0;
}
static void UnaryPredicate0D___dealloc__(BPy_UnaryPredicate0D* self)
static void UnaryPredicate0D___dealloc__(BPy_UnaryPredicate0D *self)
{
if (self->up0D)
delete self->up0D;
Py_TYPE(self)->tp_free((PyObject*)self);
Py_TYPE(self)->tp_free((PyObject *)self);
}
static PyObject * UnaryPredicate0D___repr__(BPy_UnaryPredicate0D* self)
static PyObject *UnaryPredicate0D___repr__(BPy_UnaryPredicate0D *self)
{
return PyUnicode_FromFormat("type: %s - address: %p", Py_TYPE(self)->tp_name, self->up0D);
}
static PyObject * UnaryPredicate0D___call__(BPy_UnaryPredicate0D *self, PyObject *args, PyObject *kwds)
static PyObject *UnaryPredicate0D___call__(BPy_UnaryPredicate0D *self, PyObject *args, PyObject *kwds)
{
static const char *kwlist[] = {"it", NULL};
PyObject *py_if0D_it;