put the *'s in the right place for pointers
This commit is contained in:
parent
ca94e7a32a
commit
2ab939a205
1 changed files with 5 additions and 5 deletions
10
otk_c/rect.c
10
otk_c/rect.c
|
@ -19,28 +19,28 @@ PyObject *OtkRect_New(int x, int y, int width, int height)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static PyObject *otkrect_getx(OtkRect* self, PyObject* args)
|
static PyObject *otkrect_getx(OtkRect *self, PyObject *args)
|
||||||
{
|
{
|
||||||
if (!PyArg_ParseTuple(args, ":getX"))
|
if (!PyArg_ParseTuple(args, ":getX"))
|
||||||
return NULL;
|
return NULL;
|
||||||
return PyInt_FromLong(self->x);
|
return PyInt_FromLong(self->x);
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyObject *otkrect_gety(OtkRect* self, PyObject* args)
|
static PyObject *otkrect_gety(OtkRect *self, PyObject *args)
|
||||||
{
|
{
|
||||||
if (!PyArg_ParseTuple(args, ":getY"))
|
if (!PyArg_ParseTuple(args, ":getY"))
|
||||||
return NULL;
|
return NULL;
|
||||||
return PyInt_FromLong(self->y);
|
return PyInt_FromLong(self->y);
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyObject *otkrect_getwidth(OtkRect* self, PyObject* args)
|
static PyObject *otkrect_getwidth(OtkRect *self, PyObject *args)
|
||||||
{
|
{
|
||||||
if (!PyArg_ParseTuple(args, ":getWidth"))
|
if (!PyArg_ParseTuple(args, ":getWidth"))
|
||||||
return NULL;
|
return NULL;
|
||||||
return PyInt_FromLong(self->width);
|
return PyInt_FromLong(self->width);
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyObject *otkrect_getheight(OtkRect* self, PyObject* args)
|
static PyObject *otkrect_getheight(OtkRect *self, PyObject *args)
|
||||||
{
|
{
|
||||||
if (!PyArg_ParseTuple(args, ":getHeight"))
|
if (!PyArg_ParseTuple(args, ":getHeight"))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -62,7 +62,7 @@ static PyMethodDef get_methods[] = {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static void otkrect_dealloc(PyObject* self)
|
static void otkrect_dealloc(PyObject *self)
|
||||||
{
|
{
|
||||||
PyObject_Del(self);
|
PyObject_Del(self);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue