summaryrefslogtreecommitdiff
path: root/numpy/f2py/lib/wrapper_base.py
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2006-10-13 11:52:25 +0000
committerPearu Peterson <pearu.peterson@gmail.com>2006-10-13 11:52:25 +0000
commit9361c17caa2816d755e2ce2a5faa860ea2e675c2 (patch)
tree0b1b8862a561c7c4376651619e14cea26831a485 /numpy/f2py/lib/wrapper_base.py
parent0aaac11ce7be7354a101d90d9c95dde6e562008d (diff)
downloadnumpy-9361c17caa2816d755e2ce2a5faa860ea2e675c2.tar.gz
F2PY: Impl. (suboptimal) solution for nested f90 module wrapping.
Diffstat (limited to 'numpy/f2py/lib/wrapper_base.py')
-rw-r--r--numpy/f2py/lib/wrapper_base.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/numpy/f2py/lib/wrapper_base.py b/numpy/f2py/lib/wrapper_base.py
index f290c2f86..d969b87fb 100644
--- a/numpy/f2py/lib/wrapper_base.py
+++ b/numpy/f2py/lib/wrapper_base.py
@@ -118,12 +118,12 @@ class WrapperCPPMacro(WrapperBase):
"""
CPP macros
"""
- _defined_macros = []
def __init__(self, parent, name):
WrapperBase.__init__(self)
- if name in self._defined_macros:
+ defined = parent.defined_cpp_code
+ if name in defined:
return
- self._defined_macros.append(name)
+ defined.append(name)
body = self.get_resource_content(name,'.cpp')
if body is None:
@@ -137,12 +137,12 @@ class WrapperCCode(WrapperBase):
"""
C code
"""
- _defined_codes = []
def __init__(self, parent, name):
WrapperBase.__init__(self)
- if name in self._defined_codes:
+ defined = parent.defined_c_code
+ if name in defined:
return
- self._defined_codes.append(name)
+ defined.append(name)
body = self.get_resource_content(name,'.c')
if body is None: