Beispiel #1
0
class ResourceConfigure:
    _compilation_info_ = ExternalCompilationInfo(includes=['sys/resource.h'])
    rlim_t = SimpleType('rlim_t')
Beispiel #2
0
class SyslogConfigure:
    _compilation_info_ = ExternalCompilationInfo(includes=['sys/syslog.h'])
Beispiel #3
0
class LocaleConfigure:
    _compilation_info_ = ExternalCompilationInfo(includes=['locale.h'])
Beispiel #4
0
 class LanginfoConfigure:
     _compilation_info_ = ExternalCompilationInfo(includes=['langinfo.h'])
     nl_item = SimpleType('nl_item')
Beispiel #5
0
    _compilation_info_ = ExternalCompilationInfo(
        includes=['limits.h', 'locale.h'])


for key in _CONSTANTS:
    setattr(LocaleConfigure, key, DefinedConstantInteger(key))

config = configure(LocaleConfigure, noerr=True)
for key, value in config.items():
    if value is None:
        del config[key]
        _CONSTANTS.remove(key)

# ____________________________________________________________

eci = ExternalCompilationInfo(includes=['locale.h', 'langinfo.h'])
HAS_LANGINFO = check_eci(eci)

if HAS_LANGINFO:
    # list of all possible names
    langinfo_names = [
        "RADIXCHAR",
        "THOUSEP",
        "CRNCYSTR",
        "D_T_FMT",
        "D_FMT",
        "T_FMT",
        "AM_STR",
        "PM_STR",
        "CODESET",
        "T_FMT_AMPM",