提交 3dad804a authored 作者: Frédéric Bastien's avatar Frédéric Bastien

Merge pull request #1713 from MarcCote/scalar_cdeclare

Uniformize the typedef name of Scalar's dtype.
......@@ -245,7 +245,8 @@ class Scalar(Type):
def c_declare(self, name, sub):
return """
%(dtype)s %(name)s;
typedef %(dtype)s %(name)s_dtype;
typedef %(dtype)s %(name)s_dtype; // Deprecated use dtype_%(name)s instead.
typedef %(dtype)s dtype_%(name)s;
""" % dict(name=name, dtype=self.dtype_specs()[1])
def c_init(self, name, sub):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论