From 979c1b6ef4916a36e1f055105ae130a3e5305199 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 22 Apr 2010 12:30:04 +0200 Subject: [PATCH] cleanup --- Cython/Compiler/Optimize.py | 2 +- Cython/Compiler/PyrexTypes.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Cython/Compiler/Optimize.py b/Cython/Compiler/Optimize.py index 6d394316..be74c56c 100644 --- a/Cython/Compiler/Optimize.py +++ b/Cython/Compiler/Optimize.py @@ -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) ]) diff --git a/Cython/Compiler/PyrexTypes.py b/Cython/Compiler/PyrexTypes.py index 6837621c..20e9fc1e 100755 --- a/Cython/Compiler/PyrexTypes.py +++ b/Cython/Compiler/PyrexTypes.py @@ -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) -- 2.26.2