cleanup
authorStefan Behnel <scoder@users.berlios.de>
Thu, 22 Apr 2010 10:30:04 +0000 (12:30 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Thu, 22 Apr 2010 10:30:04 +0000 (12:30 +0200)
Cython/Compiler/Optimize.py
Cython/Compiler/PyrexTypes.py

index 6d3943166c542fbf05804d39600245f75dfbaa82..be74c56cf049878fa1c116f28bae6724520a768c 100644 (file)
@@ -137,7 +137,7 @@ class IterationTransform(Visitor.VisitorTransform):
         return node
 
     PyUnicode_AS_UNICODE_func_type = PyrexTypes.CFuncType(
-        PyrexTypes.CPtrType(PyrexTypes.c_py_unicode_type), [
+        PyrexTypes.c_py_unicode_ptr_type, [
             PyrexTypes.CFuncTypeArg("s", Builtin.unicode_type, None)
             ])
 
index 6837621cba2c77b83fe53babe5f16958c2569d67..20e9fc1e9aecf13212c6509c681969d8c7a236a8 100755 (executable)
@@ -1,5 +1,3 @@
-
-
 #
 #   Pyrex - Types
 #
@@ -2156,6 +2154,7 @@ c_uchar_ptr_type =    CUCharPtrType()
 c_utf8_char_array_type = CUTF8CharArrayType(None)
 c_char_ptr_ptr_type = CPtrType(c_char_ptr_type)
 c_int_ptr_type =      CPtrType(c_int_type)
+c_py_unicode_ptr_type = CPtrType(c_py_unicode_type)
 c_py_ssize_t_ptr_type =  CPtrType(c_py_ssize_t_type)
 c_ssize_t_ptr_type =  CPtrType(c_ssize_t_type)
 c_size_t_ptr_type =  CPtrType(c_size_t_type)