[pypy-svn] r74725 - pypy/trunk/pypy/lib
afa at codespeak.net
afa at codespeak.net
Tue May 25 09:10:08 CEST 2010
Author: afa
Date: Tue May 25 09:10:06 2010
New Revision: 74725
Modified:
pypy/trunk/pypy/lib/_locale.py
Log:
Apply last patch of issue361.
This is not very important, now that the module has been rewritten in module/_locale,
(the code there already use size_t for strxfrm)
Modified: pypy/trunk/pypy/lib/_locale.py
==============================================================================
--- pypy/trunk/pypy/lib/_locale.py (original)
+++ pypy/trunk/pypy/lib/_locale.py Tue May 25 09:10:06 2010
@@ -4,7 +4,7 @@
"""
from ctypes import (Structure, POINTER, create_string_buffer,
- c_ubyte, c_int, c_char_p, c_wchar_p)
+ c_ubyte, c_int, c_char_p, c_wchar_p, c_size_t)
from ctypes_support import standard_c_lib as libc
from ctypes_support import get_errno
@@ -12,9 +12,6 @@
from ctypes_config_cache._locale_cache import *
-size_t = c_int
-
-
# Ubuntu Gusty i386 structure
class lconv(Structure):
_fields_ = (
@@ -94,8 +91,8 @@
_wcscoll.restype = c_int
_strxfrm = libc.strxfrm
-_strxfrm.argtypes = (c_char_p, c_char_p, size_t)
-_strxfrm.restype = size_t
+_strxfrm.argtypes = (c_char_p, c_char_p, c_size_t)
+_strxfrm.restype = c_size_t
HAS_LIBINTL = hasattr(libc, 'gettext')
if HAS_LIBINTL:
More information about the Pypy-commit
mailing list