summaryrefslogtreecommitdiff
path: root/c/_cffi_backend.c
Commit message (Collapse)AuthorAgeFilesLines
* issue #255: comparing primitive cdatasArmin Rigo2017-02-191-29/+79
|
* ffi.addressof(lib, "name") now also works in in-line modeArmin Rigo2017-02-071-10/+8
|
* Make 'ffi.buffer' be the type of minibuffers returned by cffi, andArmin Rigo2017-02-041-2/+7
| | | | 'ffi.buffer()' now calls the constructor.
* Improve the error message for getattr/setattrArmin Rigo2017-01-251-2/+31
|
* reintroduce a fast case for ffi.unpack(arrays of _Bool)Armin Rigo2017-01-241-3/+10
|
* issue300: return _Bool as Python booleans; related fixesArmin Rigo2017-01-231-8/+49
|
* bump version number to 1.10.0Armin Rigo2017-01-231-1/+1
|
* merge strbuf-as-bufferRichard Plangger2017-01-041-21/+54
|\
| * update version number to 1.9.2Armin Rigo2016-12-221-1/+1
| |
| * Detect packed structs. Improve error messages and test them.Armin Rigo2016-12-221-11/+28
| |
| * More carefulness in the error messagesArmin Rigo2016-12-221-3/+9
| |
| * Fix/test/expand the error messages we get by using structs/unions asArmin Rigo2016-12-221-17/+27
| | | | | | | | arguments/return values of functions
* | kill invalid_input_buffer_type, update docs to state that now only unicode ↵Richard Plangger2017-01-031-31/+6
| | | | | | | | objects are forbidden
* | allow from_buffer for buffer and memoryview even when they point to ↵Richard Plangger2016-12-091-13/+2
|/ | | | bytes/unicode
* test and fix for b6adad5f4ea3, actually reverting some C changes thatArmin Rigo2016-12-061-13/+6
| | | | are not necessary and cause segfaults
* Issue #295: use calloc() directly instead of PyObject_Malloc()+memset()Armin Rigo2016-12-051-7/+47
| | | | to handle ffi.new() with a default allocator.
* update to 1.9.1Armin Rigo2016-11-121-1/+1
|
* Windows compilation fixArmin Rigo2016-11-121-1/+2
|
* Bump version number to 1.9.0Armin Rigo2016-11-021-1/+1
|
* Fix: the condition "offsetof == sizeof" for being a var-sized arrayArmin Rigo2016-10-291-11/+11
| | | | | is bogus. See test for a case where it is not the case because of alignment.
* One more case, this time in CompiledFFI.sizeof().Armin Rigo2016-10-281-9/+14
|
* Decided to fix ffi.sizeof() too. Update the documentation.Armin Rigo2016-10-271-2/+5
|
* Share codeArmin Rigo2016-10-251-12/+3
|
* Fix what is hopefully the last remaining issues with ↵Armin Rigo2016-10-251-54/+73
| | | | calculate_variable_array_length
* Tweaks, and add extra tests, which fail for now :-/Armin Rigo2016-10-191-14/+25
|
* Merged in coronafire/cffi/calculate_variable_array_length (pull request #71)Armin Rigo2016-10-191-8/+44
|\ | | | | | | Track and use length of variable length structs and their varsized array
| * Detect and mark the final variable array in a varsized struct with ↵calculate_variable_array_lengthAndrew Leech2016-09-141-7/+10
| | | | | | | | | | | | BS_VARSIZESTRUCT_ARRAY Use this when returning this field/arrtibute of said struct
| * When using a variable length struct, calculate and enforce the length of the ↵Andrew Leech2016-09-131-1/+26
| | | | | | | | varsized_array when accessing this field.
| * When getting repr on CDataObject_own_structptr, use length field for owned bytesnew_struct_allocated_sizeAndrew Leech2016-09-121-1/+3
| |
| * When getting ffi.buffer() on CDataObject_own_structptr, use length field for ↵Andrew Leech2016-09-121-1/+5
| | | | | | | | buffer size
| * Add length field to CDataObject_own_structptr to hold the size of the memory ↵Andrew Leech2016-09-121-0/+2
| | | | | | | | | | | | block allocated for the struct. This is particularly useful for C99 variable-sized structures where the sizeof(<typedef>) does not directly inform the allocated size.
* | Semi-blindly fix the muls and adds that could overflow so that gccArmin Rigo2016-10-071-5/+9
| | | | | | | | doesn't optimize based on the assumption that they can't overflow
* | update to 1.8.4 and add whatsnewArmin Rigo2016-09-201-1/+1
| |
* | bump version number to 1.8.3Armin Rigo2016-09-151-1/+1
| |
* | Warn when implicitly casting between "char *" and a different pointerArmin Rigo2016-09-151-7/+24
|/ | | | type, like C does (there is no special-case of "char *" in C)
* Update and document v1.8.2Armin Rigo2016-09-061-1/+1
|
* Issue #283: initializer for nested anonymous structs inside unionsArmin Rigo2016-09-051-17/+15
|
* Bump version number to 1.8.1Armin Rigo2016-09-031-1/+1
|
* Returning unions works fine in API mode, remove the checks.Armin Rigo2016-08-221-2/+3
|
* Avoid calling more CPython functions when there is an exception setArmin Rigo2016-08-221-0/+2
|
* Give an error when subtracting two pointers and the division's result isArmin Rigo2016-08-151-2/+10
| | | | | not exact (in gcc, we get nonsense, so it means it is undefined behavior for C, which is best handled by raising in cffi)
* Update the version number to 1.8Armin Rigo2016-08-061-1/+1
|
* The null_byte_after_str branch of PyPy makes ffi.from_buffer(str)Armin Rigo2016-08-021-0/+5
| | | | possible.
* Fix for a3708c91be7bArmin Rigo2016-07-161-5/+8
|
* Same hereArmin Rigo2016-07-111-1/+1
|
* Use Py_ssize_t, not ssize_t directlyArmin Rigo2016-07-111-1/+1
|
* Issue #266: I think it would show up here, so better change the assert()Armin Rigo2016-06-091-1/+14
| | | | into a real test that runs also on non-debugging compilation.
* Support dir(p), where p is a struct or pointer-to-struct, to obtainArmin Rigo2016-06-061-0/+27
| | | | the list of field names.
* update version number to 1.7Armin Rigo2016-06-051-1/+1
|
* Slice assignment with bytearray as sourceArmin Rigo2016-06-031-8/+21
|