summaryrefslogtreecommitdiff
path: root/c
Commit message (Collapse)AuthorAgeFilesLines
* 32-bit fixArmin Rigo2017-02-201-6/+7
|
* issue #255: comparing primitive cdatasArmin Rigo2017-02-192-56/+179
|
* fix testArmin Rigo2017-02-071-1/+1
|
* ffi.addressof(lib, "name") now also works in in-line modeArmin Rigo2017-02-071-10/+8
|
* Remove a warning that doesn't really make sense here, tweak testsArmin Rigo2017-02-061-6/+0
|
* Merged in coronafire/cffi/buffer_richcompare (pull request #76)Armin Rigo2017-02-061-1/+82
|\ | | | | | | Add richcompare to buffer objects
| * Enable the richcompare function in minibufferbuffer_richcompareAndrew Leech2017-02-051-1/+1
| |
| * Add tp_richcompare from 3.5 bytearray to minibuffer (ffi.buffer)Andrew Leech2017-02-031-0/+81
| |
* | doc fixArmin Rigo2017-02-051-1/+1
| |
* | Make 'ffi.buffer' be the type of minibuffers returned by cffi, andArmin Rigo2017-02-045-17/+42
|/ | | | 'ffi.buffer()' now calls the constructor.
* extra testsArmin Rigo2017-01-251-0/+5
|
* Improve the error message for getattr/setattrArmin Rigo2017-01-252-6/+57
|
* 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-232-11/+97
|
* Version fixArmin Rigo2017-01-231-1/+1
|
* bump version number to 1.10.0Armin Rigo2017-01-232-4/+4
|
* Use __sync_synchronize() only if setup.py detects we have it. Fix forArmin Rigo2017-01-131-1/+1
| | | | people using an incredibly old gcc.
* merge strbuf-as-bufferRichard Plangger2017-01-043-26/+76
|\
| * support more obscure compilers. source is ↵Armin Rigo2017-01-021-1/+14
| | | | | | | | https://github.com/matricks/bam/pull/61/files
| * update version number to 1.9.2Armin Rigo2016-12-222-2/+2
| |
| * Detect packed structs. Improve error messages and test them.Armin Rigo2016-12-222-14/+35
| |
| * 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
* | Fix testArmin Rigo2017-01-031-1/+5
| |
* | kill invalid_input_buffer_type, update docs to state that now only unicode ↵Richard Plangger2017-01-031-31/+6
| | | | | | | | objects are forbidden
* | readd two lines accidentaly removedRichard Plangger2017-01-031-0/+2
| |
* | do not allow unicode to directly be passed to from_bufferRichard Plangger2016-12-091-2/+2
| |
* | allow from_buffer for buffer and memoryview even when they point to ↵Richard Plangger2016-12-092-18/+5
| | | | | | | | bytes/unicode
* | pypy now can get a raw address from a StringBuffer, modify testRichard Plangger2016-12-091-7/+13
|/
* 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-122-2/+2
|
* Windows compilation fixArmin Rigo2016-11-121-1/+2
|
* Bump version number to 1.9.0Armin Rigo2016-11-022-2/+2
|
* Fix: the condition "offsetof == sizeof" for being a var-sized arrayArmin Rigo2016-10-292-11/+38
| | | | | 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-282-22/+25
|
* Decided to fix ffi.sizeof() too. Update the documentation.Armin Rigo2016-10-272-2/+8
|
* Share codeArmin Rigo2016-10-251-12/+3
|
* Fix what is hopefully the last remaining issues with ↵Armin Rigo2016-10-252-56/+74
| | | | calculate_variable_array_length
* Tweaks, and add extra tests, which fail for now :-/Armin Rigo2016-10-192-16/+44
|
* Merged in coronafire/cffi/calculate_variable_array_length (pull request #71)Armin Rigo2016-10-192-12/+53
|\ | | | | | | 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-142-8/+11
| | | | | | | | | | | | BS_VARSIZESTRUCT_ARRAY Use this when returning this field/arrtibute of said struct
| * Add some initial test assertions to check length details on variable length ↵Andrew Leech2016-09-131-3/+8
| | | | | | | | structs
| * 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.
* | Improve testArmin Rigo2016-10-141-0/+2
| |
* | Blindly attempt to detect MinGW (issue #159)Armin Rigo2016-10-072-5/+3
| |
* | 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