summaryrefslogtreecommitdiff
path: root/cffi/vengine_cpy.py
Commit message (Collapse)AuthorAgeFilesLines
* #453Armin Rigo2020-05-201-2/+2
| | | | | | Special-case typedefs of arrays with '...' length, so that they can be used through recompiler.py as if they had a specified length in most cases.
* Issue #440Armin Rigo2020-01-191-11/+72
| | | | | | Limit the amount of memory that is requested from alloca() for temporary conversion of arguments. Non-small requests are instead handled with PyObject_Malloc() and PyObject_Free().
* Issue #300Armin Rigo2017-07-211-1/+2
| | | | | Hopefully fix the remaining cases where a _Bool return value was not correctly converted to a Python bool, but still gave a Python int.
* Didn't figure out how to cleanly define charN_t inside _cffi_include.h.Armin Rigo2017-06-041-3/+6
| | | | So for now, don't.
* Follow-up on b87441f6f36cArmin Rigo2017-01-201-7/+8
|
* Returning unions works fine in API mode, remove the checks.Armin Rigo2016-08-221-1/+1
|
* Mark these three source files as deprecatedArmin Rigo2016-02-101-0/+3
|
* Fix the verify() for const fields too, because it's very easyArmin Rigo2015-09-301-1/+2
|
* in-progress: add qualifiers through model.py, cparser.py, and recompiler.pyArmin Rigo2015-09-301-4/+7
|
* Silence some warnings with gcc 5.1: if T is a type smaller than 'int',Armin Rigo2015-05-261-2/+3
| | | | | | | then the C expression "condition ? (T)x : (T)y" is typed not as a T, but as a larger 'int' --- which means there was an implicit cast from the final 'int' to the T-typed target of the assignment whenever this macro was used.
* Acquire the import lock explicitly around the sys.setdlopenflags()Armin Rigo2015-04-301-11/+15
|
* Fix (thanks gkcn on irc): in cdef() we can say "#define FOO 42", butArmin Rigo2015-01-111-22/+33
| | | | | | this declaration is completely ignored in verify(). Instead, we need to check that the real value is 42, and store the name FOO on the returned library object.
* Silence the new gcc warnings when comparing 'unsigned >= 0' or 'unsigned < 0'.Armin Rigo2014-12-281-4/+4
|
* Update the copies of that block of #ifsArmin Rigo2014-12-241-0/+18
|
* Merged in dalcinl/python-cffi (pull request #52)Armin Rigo2014-12-221-2/+9
|\ | | | | | | Silence GCC/Clang -Wunused-parameter warnings
| * Silence GCC/Clang -Wunused-parameter warningsLisandro Dalcin2014-11-241-2/+9
| |
* | Merge headsRomain Guillebert2014-12-171-1/+8
|\ \ | |/ |/|
| * Make sure the flags kwarg of verify has no effect on WindowsRomain Guillebert2014-12-171-3/+5
| |
| * Fix failing testsRomain Guillebert2014-10-211-2/+3
| |
| * Import verify dlopen flags for cpythonRomain Guillebert2014-10-211-1/+5
| |
* | CPython: Add explicit typecasts in _cffi_from_c_int()Lisandro Dalcin2014-11-211-6/+9
| |
* | CPython: Silent GCC -Wconversion warningsLisandro Dalcin2014-04-261-4/+5
|/
* Don't check MS_WIN32, it's not always defined even on MSVC.Armin Rigo2014-06-241-1/+1
|
* Add stdint.h as an explicit include on non-Windows too.Armin Rigo2014-06-241-0/+1
|
* Unify (manually) the three blocks of #ifs for Windows. Add a commentArmin Rigo2014-06-241-15/+21
| | | | to attempt to keep them from drifting apart in the future.
* tweak for Windows (msvc versus mingw)Armin Rigo2014-05-301-1/+1
|
* issue #156: _Bool type already included in VS2013Taewook Kang2014-05-011-0/+2
|
* issue #154: Mingw32 fixesArmin Rigo2014-04-261-1/+1
|
* CPython: Better C -> Python conversion for integer constantsLisandro Dalcin2014-04-251-7/+10
| | | | - Silent GCC -Wsign-compare
* CPython: Add explicit typecasts in _cffi_to_c_int()Lisandro Dalcin2014-04-231-8/+8
| | | | | - Silent GCC -Wsign-compare warning: signed and unsigned type in conditional expression
* CPython: Initialize all slots of PyMethodDef tableLisandro Dalcin2014-04-231-5/+5
| | | | - Silent GCC -Wmissing-field-initializers
* Issue 153: Generate same C code for CPython 2 and 3Lisandro Dalcin2014-04-231-33/+51
| | | | | - CPython 2 and 3: make ffi.ferify() generate identical C code - CPython 3: fix refcount management in case of errors at import
* Issue #144: copy the "#if...#include <alloca.h>" done in _cffi_backend.c.Armin Rigo2014-04-041-0/+4
|
* Issue #142: don't generate C files that use '$' in identifiers.Armin Rigo2014-04-041-1/+6
|
* Two "decrefs" that are very theoretically missing (but it's not likeArmin Rigo2014-03-011-0/+2
| | | | you can actually free the object or win a lot)
* Kill is_{signed,unsigned}_type()Armin Rigo2013-12-151-27/+19
|
* Issue #116: give out a warning when we're doing thatArmin Rigo2013-11-101-8/+11
|
* Issue #118: improve the detection and error message, jumpingArmin Rigo2013-11-101-5/+16
| | | | through hoops to cover both signed and unsigned cases.
* Fix vengine_cpy too.Armin Rigo2013-11-081-8/+36
|
* Fix some testsArmin Rigo2013-11-081-3/+4
|
* Add a test, now passing. Fixes in the front-end.Armin Rigo2013-11-081-2/+5
|
* Support partial unions in a way very similar to partial structs.Armin Rigo2013-10-171-1/+1
| | | | Needed for a python-cffi mail.
* Fixes #110 - Support different so suffixesDonald Stufft2013-10-061-2/+2
|
* Issue #81 resolved: dir(ffi.verify(...))Armin Rigo2013-05-301-1/+5
|
* Fix (motivated by a pypy without cpyext): if we're using vengine_gen.py,Armin Rigo2013-05-201-0/+14
| | | | | | then we should not use imp.find_module() to locate our compiled module, because it's actually not a CPython C API module at all. Instead, just walk sys.path in that case.
* Fix for enums used as bitfields. (thanks jerith)Armin Rigo2013-05-051-2/+2
|
* Fix(?) an issue that only showed up on PPC64 so far, aboutArmin Rigo2013-03-301-1/+1
| | | | char-returning C functions.
* A bit hackish, but solves exactly issue #71: ffi.typeof(builtin_function).Armin Rigo2013-03-281-1/+6
|
* Add a commentArmin Rigo2013-03-281-0/+2
|
* Refactor get_c_name() in model.py to use the same logic as with theArmin Rigo2013-03-031-1/+1
| | | | backend.