Rename islhelper into _isl
[linpy.git] / pypol / _isl.c
diff --git a/pypol/_isl.c b/pypol/_isl.c
new file mode 100644 (file)
index 0000000..974b0c0
--- /dev/null
@@ -0,0 +1,25 @@
+#include <Python.h>
+#include <isl/space.h>
+
+static PyMethodDef _isl_methods[] = {
+    {NULL, NULL, 0, NULL}
+};
+
+static struct PyModuleDef _islmodule = {
+    PyModuleDef_HEAD_INIT,
+    "_isl",
+    NULL,
+    -1,
+    _isl_methods
+};
+
+PyMODINIT_FUNC PyInit__isl(void) {
+    PyObject *m;
+    m = PyModule_Create(&_islmodule);
+    if (m == NULL)
+        return NULL;
+
+    PyModule_AddObject(m, "isl_dim_set", PyLong_FromLong(isl_dim_set));
+
+    return m;
+}