ac2c9ba719
v1.10 Issue #295: use calloc() directly instead of PyObject_Malloc()+memset() to handle ffi.new() with a default allocator. Speeds up ffi.new(large-array) where most of the time you never touch most of the array. Some OS/X build fixes (“only with Xcode but without CLT”). Improve a couple of error messages: when getting mismatched versions of cffi and its backend; and when calling functions which cannot be called with libffi because an argument is a struct that is “too complicated” (and not a struct pointer, which always works). Add support for some unusual compilers (non-msvc, non-gcc, non-icc, non-clang) Implemented the remaining cases for ffi.from_buffer. Now all buffer/memoryview objects can be passed. The one remaining check is against passing unicode strings in Python 2. (They support the buffer interface, but that gives the raw bytes behind the UTF16/UCS4 storage, which is most of the times not what you expect. In Python 3 this has been fixed and the unicode strings don’t support the memoryview interface any more.) The C type _Bool or bool now converts to a Python boolean when reading, instead of the content of the byte as an integer. The potential incompatibility here is what occurs if the byte contains a value different from 0 and 1. Previously, it would just return it; with this change, CFFI raises an exception in this case. But this case means “undefined behavior” in C; if you really have to interface with a library relying on this, don’t use bool in the CFFI side. Also, it is still valid to use a byte string as initializer for a bool[], but now it must only contain \x00 or \x01. As an aside, ffi.string() no longer works on bool[] (but it never made much sense, as this function stops at the first zero). ffi.buffer is now the name of cffi’s buffer type, and ffi.buffer() works like before but is the constructor of that type. ffi.addressof(lib, "name") now works also in in-line mode, not only in out-of-line mode. This is useful for taking the address of global variables. Issue #255: cdata objects of a primitive type (integers, floats, char) are now compared and ordered by value. For example, <cdata 'int' 42> compares equal to 42 and <cdata 'char' b'A'> compares equal to b'A'. Unlike C, <cdata 'int' -1> does not compare equal to ffi.cast("unsigned int", -1): it compares smaller, because -1 < 4294967295. PyPy: ffi.new() and ffi.new_allocator()() did not record “memory pressure”, causing the GC to run too infrequently if you call ffi.new() very often and/or with large arrays. Fixed in PyPy 5.7. Support in ffi.cdef() for numeric expressions with + or -. Assumes that there is no overflow; it should be fixed first before we add more general support for arbitrary arithmetic on constants.
57 lines
1.9 KiB
Text
57 lines
1.9 KiB
Text
@comment $NetBSD: PLIST,v 1.6 2017/04/05 15:54:26 wiz Exp $
|
|
${PYSITELIB}/_cffi_backend.so
|
|
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
|
|
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
|
|
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
|
|
${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
|
|
${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
|
|
${PYSITELIB}/${EGG_INFODIR}/requires.txt
|
|
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
|
|
${PYSITELIB}/cffi/__init__.py
|
|
${PYSITELIB}/cffi/__init__.pyc
|
|
${PYSITELIB}/cffi/__init__.pyo
|
|
${PYSITELIB}/cffi/_cffi_include.h
|
|
${PYSITELIB}/cffi/_embedding.h
|
|
${PYSITELIB}/cffi/api.py
|
|
${PYSITELIB}/cffi/api.pyc
|
|
${PYSITELIB}/cffi/api.pyo
|
|
${PYSITELIB}/cffi/backend_ctypes.py
|
|
${PYSITELIB}/cffi/backend_ctypes.pyc
|
|
${PYSITELIB}/cffi/backend_ctypes.pyo
|
|
${PYSITELIB}/cffi/cffi_opcode.py
|
|
${PYSITELIB}/cffi/cffi_opcode.pyc
|
|
${PYSITELIB}/cffi/cffi_opcode.pyo
|
|
${PYSITELIB}/cffi/commontypes.py
|
|
${PYSITELIB}/cffi/commontypes.pyc
|
|
${PYSITELIB}/cffi/commontypes.pyo
|
|
${PYSITELIB}/cffi/cparser.py
|
|
${PYSITELIB}/cffi/cparser.pyc
|
|
${PYSITELIB}/cffi/cparser.pyo
|
|
${PYSITELIB}/cffi/error.py
|
|
${PYSITELIB}/cffi/error.pyc
|
|
${PYSITELIB}/cffi/error.pyo
|
|
${PYSITELIB}/cffi/ffiplatform.py
|
|
${PYSITELIB}/cffi/ffiplatform.pyc
|
|
${PYSITELIB}/cffi/ffiplatform.pyo
|
|
${PYSITELIB}/cffi/lock.py
|
|
${PYSITELIB}/cffi/lock.pyc
|
|
${PYSITELIB}/cffi/lock.pyo
|
|
${PYSITELIB}/cffi/model.py
|
|
${PYSITELIB}/cffi/model.pyc
|
|
${PYSITELIB}/cffi/model.pyo
|
|
${PYSITELIB}/cffi/parse_c_type.h
|
|
${PYSITELIB}/cffi/recompiler.py
|
|
${PYSITELIB}/cffi/recompiler.pyc
|
|
${PYSITELIB}/cffi/recompiler.pyo
|
|
${PYSITELIB}/cffi/setuptools_ext.py
|
|
${PYSITELIB}/cffi/setuptools_ext.pyc
|
|
${PYSITELIB}/cffi/setuptools_ext.pyo
|
|
${PYSITELIB}/cffi/vengine_cpy.py
|
|
${PYSITELIB}/cffi/vengine_cpy.pyc
|
|
${PYSITELIB}/cffi/vengine_cpy.pyo
|
|
${PYSITELIB}/cffi/vengine_gen.py
|
|
${PYSITELIB}/cffi/vengine_gen.pyc
|
|
${PYSITELIB}/cffi/vengine_gen.pyo
|
|
${PYSITELIB}/cffi/verifier.py
|
|
${PYSITELIB}/cffi/verifier.pyc
|
|
${PYSITELIB}/cffi/verifier.pyo
|