Code cleanup
[linpy.git] / pypol / islhelper.c
1 #include <Python.h>
2 #include <isl/space.h>
3
4 static PyMethodDef islhelper_methods[] = {
5 {NULL, NULL, 0, NULL}
6 };
7
8 static struct PyModuleDef islhelpermodule = {
9 PyModuleDef_HEAD_INIT,
10 "islhelper",
11 NULL,
12 -1,
13 islhelper_methods
14 };
15
16 PyMODINIT_FUNC PyInit_islhelper(void) {
17 PyObject *m;
18 m = PyModule_Create(&islhelpermodule);
19 if (m == NULL)
20 return NULL;
21
22 PyModule_AddObject(m, "isl_dim_set", PyLong_FromLong(isl_dim_set));
23
24 return m;
25 }