提交 3279427b authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Make the data arrays in cutils_ext static.

上级 4fde748a
...@@ -51,7 +51,7 @@ def compile_cutils(): ...@@ -51,7 +51,7 @@ def compile_cutils():
'op': complexadd % {'type': t}} 'op': complexadd % {'type': t}}
for t in complex_types]) for t in complex_types])
fn_array = ("inplace_map_binop addition_funcs[] = {" + fn_array = ("static inplace_map_binop addition_funcs[] = {" +
''.join([""" ''.join(["""
#if defined(%(typen)s) #if defined(%(typen)s)
%(type)s_inplace_add, %(type)s_inplace_add,
...@@ -61,7 +61,7 @@ def compile_cutils(): ...@@ -61,7 +61,7 @@ def compile_cutils():
"""NULL}; """NULL};
""") """)
type_number_array = ("int type_numbers[] = {" + type_number_array = ("static int type_numbers[] = {" +
''.join([""" ''.join(["""
#if defined(%(typen)s) #if defined(%(typen)s)
%(typen)s, %(typen)s,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论