- if (!PyArg_ParseTuple(args, "l", &ptr)) {
- return NULL;
- }
- bset = (isl_basic_set *) ptr;
- n = isl_basic_set_n_constraint(bset);
- if (n == -1) {
- PyErr_SetString(PyExc_RuntimeError,
- "an error occurred in isl_basic_set_n_constraint");
- return NULL;
- }
- pointers = PyList_New(n);
- if (pointers == NULL) {
+static PyObject * isl_basic_set_constraints(PyObject *self, PyObject *args) {
+ long pointer;
+ isl_basic_set *bset;
+ PyObject *list;
+ if (!PyArg_ParseTuple(args, "l", &pointer)) {