Commit 26badc7c authored by Robert Bradshaw's avatar Robert Bradshaw

whitespace

parent cd97a62e
...@@ -532,7 +532,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): ...@@ -532,7 +532,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code.putln(" #error Cython requires Python 2.4+.") code.putln(" #error Cython requires Python 2.4+.")
code.putln("#else") code.putln("#else")
code.globalstate["end"].putln("#endif /* Py_PYTHON_H */") code.globalstate["end"].putln("#endif /* Py_PYTHON_H */")
from Cython import __version__ from Cython import __version__
code.putln('#define CYTHON_ABI "%s"' % __version__.replace('.', '_')) code.putln('#define CYTHON_ABI "%s"' % __version__.replace('.', '_'))
...@@ -595,12 +595,12 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): ...@@ -595,12 +595,12 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code.putln('#define __Pyx_PyObject_FromString __Pyx_Py%s_FromString' % c_string_func_name) code.putln('#define __Pyx_PyObject_FromString __Pyx_Py%s_FromString' % c_string_func_name)
code.putln('#define __Pyx_PyObject_FromStringAndSize __Pyx_Py%s_FromStringAndSize' % c_string_func_name) code.putln('#define __Pyx_PyObject_FromStringAndSize __Pyx_Py%s_FromStringAndSize' % c_string_func_name)
code.put(UtilityCode.load_as_string("TypeConversions", "TypeConversion.c")[0]) code.put(UtilityCode.load_as_string("TypeConversions", "TypeConversion.c")[0])
# These utility functions are assumed to exist and used elsewhere. # These utility functions are assumed to exist and used elsewhere.
PyrexTypes.c_long_type.create_to_py_utility_code(env) PyrexTypes.c_long_type.create_to_py_utility_code(env)
PyrexTypes.c_long_type.create_from_py_utility_code(env) PyrexTypes.c_long_type.create_from_py_utility_code(env)
PyrexTypes.c_int_type.create_from_py_utility_code(env) PyrexTypes.c_int_type.create_from_py_utility_code(env)
code.put(Nodes.branch_prediction_macros) code.put(Nodes.branch_prediction_macros)
code.putln('') code.putln('')
code.putln('static PyObject *%s;' % env.module_cname) code.putln('static PyObject *%s;' % env.module_cname)
...@@ -1155,7 +1155,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): ...@@ -1155,7 +1155,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
struct_type_cast, type.vtabptr_cname)) struct_type_cast, type.vtabptr_cname))
for entry in cpp_class_attrs: for entry in cpp_class_attrs:
code.putln("new((void*)&(p->%s)) %s();" % code.putln("new((void*)&(p->%s)) %s();" %
(entry.cname, entry.type.declaration_code(""))) (entry.cname, entry.type.declaration_code("")))
for entry in py_attrs: for entry in py_attrs:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment