summaryrefslogtreecommitdiff
path: root/numpy/f2py/lib/extgen/converters.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/f2py/lib/extgen/converters.py')
-rw-r--r--numpy/f2py/lib/extgen/converters.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/numpy/f2py/lib/extgen/converters.py b/numpy/f2py/lib/extgen/converters.py
deleted file mode 100644
index 182c95339..000000000
--- a/numpy/f2py/lib/extgen/converters.py
+++ /dev/null
@@ -1,22 +0,0 @@
-
-from base import Component
-from c_code import CCode
-
-Component.register(
- CCode('''
-static int pyobj_to_int(PyObject *obj, int* value) {
- int status = 1;
- if (PyInt_Check(obj)) {
- *value = PyInt_AS_LONG(obj);
- status = 0;
- }
- return status;
-}
-''', provides='pyobj_to_int'),
- CCode('''\
-static PyObject* pyobj_from_int(int* value) {
- return PyInt_FromLong(*value);
-}
-''', provides='pyobj_from_int'),
-
- )