提交 23104525 authored 作者: Hengjean's avatar Hengjean

Removed helper class in get_c_extract, fixed typedef indentation in scalar.

上级 e574a994
......@@ -309,11 +309,9 @@ def get_nothing(r, name, sub):
def get_c_declare(r, name, sub):
"""Wrapper around c_declare that declares py_name"""
class helper:
check_input = False
if any([getattr(getattr(c, 'op', helper), 'check_input', True) for (c, _)
in r.clients]) or (r.owner and getattr(r.owner.op,
'check_input', True)):
if any([c != "output" and getattr(c.op, 'check_input',
config.check_input) for (c, _) in r.clients]) or (r.owner
and getattr(r.owner.op, 'check_input', True)):
c_declare = r.type.c_declare(name, sub, True)
else:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论