summaryrefslogtreecommitdiff
path: root/numpy/f2py/lib/py_wrap_subprogram.py
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2006-10-05 07:23:48 +0000
committerPearu Peterson <pearu.peterson@gmail.com>2006-10-05 07:23:48 +0000
commitc6aa52df0532547ba1e046fbd65b8d0524e89c16 (patch)
treeca36e8e03e7077e71c3ecc34442d0e609ad36f89 /numpy/f2py/lib/py_wrap_subprogram.py
parent3a6607f4ccd87d54c8be6387cf6ee568e4bf77c0 (diff)
downloadnumpy-c6aa52df0532547ba1e046fbd65b8d0524e89c16.tar.gz
F2PY G3: started subprogram support addition.
Diffstat (limited to 'numpy/f2py/lib/py_wrap_subprogram.py')
-rw-r--r--numpy/f2py/lib/py_wrap_subprogram.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/numpy/f2py/lib/py_wrap_subprogram.py b/numpy/f2py/lib/py_wrap_subprogram.py
new file mode 100644
index 000000000..3c203c317
--- /dev/null
+++ b/numpy/f2py/lib/py_wrap_subprogram.py
@@ -0,0 +1,23 @@
+
+__all__ = ['PythonCAPISubProgram']
+
+import sys
+
+from wrapper_base import *
+
+class PythonCAPISubProgram(WrapperBase):
+ """
+ Fortran subprogram hooks.
+ """
+ _defined = []
+ def __init__(self, parent, block):
+ WrapperBase.__init__(self)
+ self.name = name = block.name
+ if name in self._defined:
+ return
+ self._defined.append(name)
+ self.info('Generating interface for %s: %s' % (block.__class__, name))
+
+
+ raise NotImplementedError,`name,block.__class__`
+ return