Permalink
Browse files

better Py -> C conversion for integral types (ticket #255)

  • Loading branch information...
dalcinl committed Apr 6, 2009
1 parent 7b052e8 commit 644238bd7e9d71f56abea13bca7136da259881c9
Showing with 999 additions and 147 deletions.
  1. +6 −0 Cython/Compiler/ModuleNode.py
  2. +209 −147 Cython/Compiler/PyrexTypes.py
  3. +2 −0 Cython/Utils.py
  4. +782 −0 tests/bugs/c_int_types_T255.pyx
@@ -565,6 +565,12 @@ def generate_module_preamble(self, env, cimported_modules, code):
env.use_utility_code(streq_utility_code)
+ # XXX this is a mess
+ for utility_code in PyrexTypes.c_int_from_py_function.specialize_list:
+ env.use_utility_code(utility_code)
+ for utility_code in PyrexTypes.c_long_from_py_function.specialize_list:
+ env.use_utility_code(utility_code)
+
def generate_extern_c_macro_definition(self, code):
name = Naming.extern_c_macro
code.putln("#ifdef __cplusplus")
Oops, something went wrong.

0 comments on commit 644238b

Please sign in to comment.