X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk_c%2Frect.c;h=086e46a7eb897f47beeee495c0367045f33b1257;hb=bc88d310fea71823fb2c61d071ff499579bffaba;hp=cf23b45ba0a117ce2ff4408103017b93587f3e6e;hpb=ca94e7a32a0f4ac1a1b0d59460afce79e9fed6f8;p=chaz%2Fopenbox diff --git a/otk_c/rect.c b/otk_c/rect.c index cf23b45b..086e46a7 100644 --- a/otk_c/rect.c +++ b/otk_c/rect.c @@ -3,8 +3,6 @@ #include "../config.h" #include "rect.h" -extern PyTypeObject OtkRect_Type; - PyObject *OtkRect_New(int x, int y, int width, int height) { OtkRect* self = PyObject_New(OtkRect, &OtkRect_Type); @@ -19,28 +17,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")) return NULL; 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")) return NULL; 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")) return NULL; 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")) return NULL; @@ -62,7 +60,7 @@ static PyMethodDef get_methods[] = { -static void otkrect_dealloc(PyObject* self) +static void otkrect_dealloc(PyObject *self) { PyObject_Del(self); }