]> Dogcows Code - chaz/openbox/blobdiff - otk_c/rect.c
check for the python cflags and libs
[chaz/openbox] / otk_c / rect.c
index cf23b45ba0a117ce2ff4408103017b93587f3e6e..086e46a7eb897f47beeee495c0367045f33b1257 100644 (file)
@@ -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(PyObjectself)
+static void otkrect_dealloc(PyObject *self)
 {
   PyObject_Del(self);
 }
This page took 0.027001 seconds and 4 git commands to generate.