[pypy-svn] r71955 - pypy/trunk/pypy/lib/ctypes_config_cache
arigo at codespeak.net
arigo at codespeak.net
Tue Mar 9 15:21:03 CET 2010
Author: arigo
Date: Tue Mar 9 15:21:02 2010
New Revision: 71955
Modified:
pypy/trunk/pypy/lib/ctypes_config_cache/locale.ctc.py
Log:
Detect HAS_LANGINFO.
Modified: pypy/trunk/pypy/lib/ctypes_config_cache/locale.ctc.py
==============================================================================
--- pypy/trunk/pypy/lib/ctypes_config_cache/locale.ctc.py (original)
+++ pypy/trunk/pypy/lib/ctypes_config_cache/locale.ctc.py Tue Mar 9 15:21:02 2010
@@ -5,7 +5,7 @@
import autopath
from ctypes_configure.configure import (configure, ExternalCompilationInfo,
- ConstantInteger, DefinedConstantInteger, SimpleType)
+ ConstantInteger, DefinedConstantInteger, SimpleType, check_eci)
from ctypes_configure.dumpcache import dumpcache
# ____________________________________________________________
@@ -34,7 +34,8 @@
# ____________________________________________________________
-HAS_LANGINFO = True # xxx hard-coded to True for now
+eci = ExternalCompilationInfo(includes=['langinfo.h'])
+HAS_LANGINFO = check_eci(eci)
if HAS_LANGINFO:
# list of all possible names
@@ -52,7 +53,7 @@
langinfo_names.append("ABMON_%d" % i)
class LanginfoConfigure:
- _compilation_info_ = ExternalCompilationInfo(includes=['langinfo.h'])
+ _compilation_info_ = eci
nl_item = SimpleType('nl_item')
for key in langinfo_names:
setattr(LanginfoConfigure, key, DefinedConstantInteger(key))
More information about the Pypy-commit
mailing list