| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | add missing importmsvcrt | Matti Picus | 2020-04-01 | 1 | -1/+1 |
| | | |||||
| * | support python2 builds with msvc>13 | Matti Picus | 2020-04-01 | 1 | -2/+2 |
| | | |||||
| * | May fix test on OS/X | Armin Rigo | 2020-02-07 | 1 | -0/+1 |
| | | |||||
| * | Issue #440 | Armin Rigo | 2020-01-19 | 3 | -0/+33 |
| | | | | | | | 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(). | ||||
| * | Python 3.9 compat | Armin Rigo | 2020-01-07 | 4 | -13/+22 |
| | | |||||
| * | merge branch 'shortername', thanks matti | Armin Rigo | 2020-01-06 | 1 | -1/+1 |
| |\ | |||||
| | * | tweak how to pass define_macros, shorten module name to not go over 260 chars | Matti Picus | 2020-01-05 | 1 | -1/+1 |
| | | | |||||
| * | | fix some gcc warnings | Armin Rigo | 2020-01-05 | 1 | -8/+11 |
| | | | |||||
| * | | fix test for b9a98b040bd7 | Armin Rigo | 2020-01-05 | 1 | -3/+3 |
| | | | |||||
| * | | Issue #437 | Armin Rigo | 2020-01-05 | 2 | -0/+47 |
| |/ | | | | Support ffi.dlopen(<void* cdata>). See updated documentation. | ||||
| * | Tweak the '-Wno-*' arguments passed to gcc during tests | Armin Rigo | 2019-11-07 | 4 | -27/+27 |
| | | |||||
| * | Issue #429 | Armin Rigo | 2019-10-21 | 1 | -0/+6 |
| | | | | | | | There are corner cases in which we can see a recursion on the same types. Instead of fighting them all, change the logic to complain if we recurse more than 1000 times. | ||||
| * | Windows fix: sometimes, time.sleep() doesn't sleep apparently | Armin Rigo | 2019-10-15 | 2 | -12/+20 |
| | | |||||
| * | Add a warning when we use in cdef() a global variable without also ↵ | Armin Rigo | 2019-10-14 | 10 | -109/+113 |
| | | | | | specifying a storage class (extern or static) | ||||
| * | oops | Armin Rigo | 2019-09-20 | 1 | -2/+2 |
| | | |||||
| * | Silence the warning | Armin Rigo | 2019-09-20 | 1 | -1/+1 |
| | | |||||
| * | Add another test | Armin Rigo | 2019-07-23 | 1 | -0/+12 |
| | | |||||
| * | Issue #413 | Armin Rigo | 2019-07-23 | 1 | -0/+12 |
| | | | | | | Test and "fix" for a corner case: now it gives a RuntimeError with a message, instead of a C-level infinite recursion | ||||
| * | Issue #412 | Armin Rigo | 2019-06-12 | 1 | -0/+53 |
| | | | | | Test and fix for unnamed bitfields which are not ":0" bitfields. | ||||
| * | Support for from_buffer("type *") | Armin Rigo | 2019-05-26 | 1 | -0/+21 |
| | | |||||
| * | Fix C integer division. Add modulo. | Armin Rigo | 2019-04-26 | 1 | -0/+26 |
| | | |||||
| * | merge pull request #96. Thanks Cody! | Armin Rigo | 2019-04-26 | 14 | -126/+326 |
| |\ | |||||
| | * | Modernize this, because very recent pytests crash when seeing the | Armin Rigo | 2019-04-19 | 2 | -4/+6 |
| | | | | | | | | | old way | ||||
| | * | Windows fix | Armin Rigo | 2019-04-19 | 1 | -2/+2 |
| | | | |||||
| | * | merge heads | Armin Rigo | 2019-04-02 | 8 | -117/+238 |
| | |\ | |||||
| | | * | style | Armin Rigo | 2019-04-02 | 1 | -1/+1 |
| | | | | |||||
| | | * | Fix deprecated uses of pytest.raises() | Ronan Lamy | 2019-03-12 | 8 | -117/+238 |
| | | | | |||||
| | * | | remove useless try/catch, and remove unreachable elif statement. | guillaumesottas | 2019-03-26 | 1 | -4/+1 |
| | | | | |||||
| | * | | add support for long/long long C integer constant suffixes, and support | guillaumesottas | 2019-03-26 | 1 | -3/+36 |
| | | | | | | | | | | | | | for base 2 integer constant as well. | ||||
| | * | | fix #407 add support for u/U suffix in integer constants (eg. 0xABu, or 0xCDU). | guillaumesottas | 2019-03-25 | 1 | -0/+7 |
| | | | | |||||
| | * | | Issue #406: document the failure | Armin Rigo | 2019-03-20 | 1 | -0/+5 |
| | | | | |||||
| | * | | py3.8 fixes | Armin Rigo | 2019-03-16 | 3 | -3/+6 |
| | |/ | |||||
| | * | Issue #405 | Armin Rigo | 2019-03-11 | 1 | -0/+30 |
| | | | | | | | | | Fix for nested struct types that end in a var-sized array | ||||
| | * | skip this test with the ctypes backend, for arm64 / pa-risc 64 / risc-v 64 / ↵ | Armin Rigo | 2019-02-14 | 1 | -0/+2 |
| | | | | | | | | | sparc 64 | ||||
| | * | Found out a way that appears to fix the problems on Windows | Armin Rigo | 2019-02-13 | 2 | -5/+1 |
| | | | |||||
| | * | Add comments about this test failing occasionally on Windows | Armin Rigo | 2019-02-13 | 1 | -0/+5 |
| | | | |||||
| * | | Add support for more binary ops in enum definitions. | Cody Piersall | 2019-02-02 | 1 | -2/+17 |
| |/ | |||||
| * | Tweaks to the pkgconfig support | Armin Rigo | 2019-01-31 | 1 | -17/+68 |
| | | |||||
| * | Merged in vyskocilm/cffi (pull request #80) | Armin Rigo | 2019-01-31 | 1 | -0/+43 |
| |\ | | | | | | | Passing of proper CFLAGS/CXXFLAGS/LDFLAGS is hard and error prone | ||||
| | * | Exception based flow | Michal Vyskocil | 2019-01-09 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now the with non pkg-config backup would be ``` module_name = "_czmq" source = "#include <czmq.h>" try: print(f"### pkg-config path") ffibuilder.set_source( module_name, source, pkgconfig=["libczmq"] ) except Exception as e: print(f"Exception e: {e}") ffibuilder.set_source( module_name, source, libraries=["czmq"] ) ``` | ||||
| | * | Real test of a pkgconfig integration | Michal Vyskocil | 2019-01-08 | 1 | -6/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix encoding errors Given testing Python program ``` from cffi import FFI ffibuilder = FFI() ffibuilder.cdef( "char* zsys_hostname();" ) ffibuilder.set_source( "_czmq", "#include <czmq.h>", pkgconfig=["libczmq"] ) if __name__ == "__main__": ffibuilder.compile(verbose=True) ``` We can run ffibuilder from source dir of czmq ``` PKG_CONFIG_PATH=`pwd`/src python3 t.py generating ./_czmq.c ... gcc -pthread -shared -flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none ./_czmq.o -L/usr/local/lib64 -L/usr/lib64 -lczmq -lzmq -lpython3.6m -o ./_czmq.cpython-36m-x86_64-linux-gnu.so ``` ``` python3 t.py generating ./_czmq.c ... gcc -pthread -shared -flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none ./_czmq.o -L/usr/lib64 -lczmq -lpython3.6m -o ./_czmq.cpython-36m-x86_64-linux-gnu.so ``` Note that in the first case `/usr/local` has been added to the compiler path as provided by local pkg-config file. | ||||
| | * | merge with latest tip | Michal Vyskocil | 2019-01-08 | 1 | -0/+43 |
| | |\ | |||||
| | | * | Increase testing coverage and refactor method names | Michal Vyskocil | 2019-01-08 | 1 | -16/+29 |
| | | | | | | | | | | | | | | | | | | | Making `pkgconfig.call` function accessible, tests can monkey patch it and provide mock. This improves testing, however raised a need to give functions better names than `pkgconfig.pkgconfig_kwargs` or `pkgconfig.pc`. | ||||
| | | * | code not compatible with python3 | Michal Vyskocil | 2017-05-25 | 1 | -2/+2 |
| | | | | | | | | | | | | | use bytes instead of strings | ||||
| | | * | add test for pkg-config integration | Michal Vyskocil | 2017-05-25 | 1 | -0/+30 |
| | | | | |||||
| * | | | py3 fix | Armin Rigo | 2019-01-29 | 1 | -1/+1 |
| | | | | |||||
| * | | | Backed out changeset 7a76a3815340 | Armin Rigo | 2019-01-29 | 1 | -4/+5 |
| |/ / | | | | | | | | | On Windows, there is no lround() or (as far as I can find) any math function returning an integer. | ||||
| * | | Implement ffi.from_buffer("foo[]", x) | Armin Rigo | 2019-01-07 | 3 | -26/+26 |
| | | | | | | | | | | | Also contains some improvements to the documentation about other recent additions | ||||
| * | | ffi.release() | Armin Rigo | 2019-01-05 | 2 | -0/+36 |
| | | | |||||
| * | | Issue #394 | Armin Rigo | 2018-12-16 | 3 | -0/+30 |
| | | | | | | | | | Implement ffi.from_buffer(x, require_writable=True) | ||||
