[pypy-svn] r49091 - pypy/dist/pypy/rlib
fijal at codespeak.net
fijal at codespeak.net
Sun Nov 25 16:40:36 CET 2007
Author: fijal
Date: Sun Nov 25 16:40:35 2007
New Revision: 49091
Modified:
pypy/dist/pypy/rlib/rzlib.py
Log:
Fix zlib
Modified: pypy/dist/pypy/rlib/rzlib.py
==============================================================================
--- pypy/dist/pypy/rlib/rzlib.py (original)
+++ pypy/dist/pypy/rlib/rzlib.py Sun Nov 25 16:40:35 2007
@@ -1,6 +1,7 @@
import sys
from pypy.rpython.lltypesystem import rffi, lltype
from pypy.rpython.tool import rffi_platform
+from pypy.translator.tool.cbuild import ExternalCompilationInfo
includes = ['zlib.h']
libraries = ['z']
@@ -18,7 +19,9 @@
"""
Definitions for basic types defined by zlib.
"""
- _includes_ = includes
+ _compilation_info_ = ExternalCompilationInfo(
+ includes = includes
+ )
# XXX If Z_PREFIX was defined for the libz build, then these types are
# named z_uInt, z_uLong, and z_Bytef instead.
@@ -60,7 +63,9 @@
Definitions of structure types defined by zlib and based on SimpleCConfig
definitions.
"""
- _includes_ = includes
+ _compilation_info_ = ExternalCompilationInfo(
+ includes = includes
+ )
z_stream = rffi_platform.Struct(
'z_stream',
@@ -91,8 +96,10 @@
z_stream_p = lltype.Ptr(z_stream)
def zlib_external(*a, **kw):
- kw['includes'] = includes
- kw['libraries'] = libraries
+ kw['compilation_info'] = ExternalCompilationInfo(
+ libraries=libraries,
+ includes=includes
+ )
return rffi.llexternal(*a, **kw)
_crc32 = zlib_external('crc32', [uLong, Bytefp, uInt], uLong)
More information about the Pypy-commit
mailing list