[pypy-commit] cffi default: test and fix for b6adad5f4ea3, actually reverting some C changes that

2016-12-07 Thread arigo
Author: Armin Rigo Branch: Changeset: r2825:d0f7cb27f93f Date: 2016-12-06 22:29 +0100 http://bitbucket.org/cffi/cffi/changeset/d0f7cb27f93f/ Log:test and fix for b6adad5f4ea3, actually reverting some C changes that are not necessary and cause segfaults diff --git a/c/_cffi_backend.c

[pypy-commit] cffi default: Test and fix: refuse to 'recompile' a cdef that declares a struct

2016-07-31 Thread arigo
Author: Armin Rigo Branch: Changeset: r2728:a50293aa9bd1 Date: 2016-07-31 15:07 +0200 http://bitbucket.org/cffi/cffi/changeset/a50293aa9bd1/ Log:Test and fix: refuse to 'recompile' a cdef that declares a struct with an opaque struct as a field diff --git a/cffi/recompiler.py b/cffi/

[pypy-commit] cffi default: Test and fix: the "bool" type in C++

2016-06-05 Thread arigo
Author: Armin Rigo Branch: Changeset: r2707:c417e08b79b7 Date: 2016-06-05 22:01 +0200 http://bitbucket.org/cffi/cffi/changeset/c417e08b79b7/ Log:Test and fix: the "bool" type in C++ diff --git a/cffi/_cffi_include.h b/cffi/_cffi_include.h --- a/cffi/_cffi_include.h +++ b/cffi/_cffi_include.

[pypy-commit] cffi default: Test and fix for converting empty ffi's in embedding mode

2016-04-15 Thread arigo
Author: Armin Rigo Branch: Changeset: r2657:28bd9c90bce3 Date: 2016-04-15 17:55 +0200 http://bitbucket.org/cffi/cffi/changeset/28bd9c90bce3/ Log:Test and fix for converting empty ffi's in embedding mode diff --git a/cffi/recompiler.py b/cffi/recompiler.py --- a/cffi/recompiler.py +++ b/cffi

[pypy-commit] cffi default: Test and fix: a negative size was implicitly converted to a huge size_t

2015-10-09 Thread arigo
Author: Armin Rigo Branch: Changeset: r2333:2a9a1726dae3 Date: 2015-10-09 09:58 +0200 http://bitbucket.org/cffi/cffi/changeset/2a9a1726dae3/ Log:Test and fix: a negative size was implicitly converted to a huge size_t number diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c --- a/c/

[pypy-commit] cffi default: Test and fix: don't crash if there is a partial enum in the cdef()

2015-09-26 Thread arigo
Author: Armin Rigo Branch: Changeset: r2277:8228937d2afe Date: 2015-09-26 09:01 +0200 http://bitbucket.org/cffi/cffi/changeset/8228937d2afe/ Log:Test and fix: don't crash if there is a partial enum in the cdef() but we try to access an enum constant from a different enum. diff --git

[pypy-commit] cffi default: Test and fix: Python 3.5 (at least the current beta) is unhappy

2015-06-26 Thread arigo
Author: Armin Rigo Branch: Changeset: r2194:9d86b893ad22 Date: 2015-06-26 23:47 +0200 http://bitbucket.org/cffi/cffi/changeset/9d86b893ad22/ Log:Test and fix: Python 3.5 (at least the current beta) is unhappy with module-like objects without a '__name__' diff --git a/c/lib_obj.c b/c

[pypy-commit] cffi default: Test and fix for ffi.verify() only on PyPy (thanks Alex Gaynor for

2015-06-02 Thread arigo
Author: Armin Rigo Branch: Changeset: r2157:8e0288e21778 Date: 2015-06-02 15:56 +0200 http://bitbucket.org/cffi/cffi/changeset/8e0288e21778/ Log:Test and fix for ffi.verify() only on PyPy (thanks Alex Gaynor for pointing it out) diff --git a/cffi/vengine_gen.py b/cffi/vengine_gen.py

[pypy-commit] cffi default: Test and fix: ABI out-of-line didn't support C functions with

2015-05-21 Thread arigo
Author: Armin Rigo Branch: Changeset: r2078:9a74c1c6b5ce Date: 2015-05-22 00:12 +0200 http://bitbucket.org/cffi/cffi/changeset/9a74c1c6b5ce/ Log:Test and fix: ABI out-of-line didn't support C functions with dot- dot-dot (reported by lazka on irc) diff --git a/cffi/recompiler.py b/cf

[pypy-commit] cffi default: Test and fix (reported by sarvi)

2015-05-20 Thread arigo
Author: Armin Rigo Branch: Changeset: r2061:a0f4efcdb20b Date: 2015-05-20 09:26 +0200 http://bitbucket.org/cffi/cffi/changeset/a0f4efcdb20b/ Log:Test and fix (reported by sarvi) diff --git a/cffi/cparser.py b/cffi/cparser.py --- a/cffi/cparser.py +++ b/cffi/cparser.py @@ -604,19 +604,21 @@

[pypy-commit] cffi default: Test and fix: the new types like "int_least8_t" were actually not

2015-04-27 Thread arigo
Author: Armin Rigo Branch: Changeset: r1858:a7b42ee0db8e Date: 2015-04-27 19:04 +0200 http://bitbucket.org/cffi/cffi/changeset/a7b42ee0db8e/ Log:Test and fix: the new types like "int_least8_t" were actually not available because model.py didn't list them diff --git a/cffi/model.py b

[pypy-commit] cffi default: Test and fix for from_buffer() receiving read-only buffer objects as

2015-03-13 Thread arigo
Author: Armin Rigo Branch: Changeset: r1665:18a20248b9f7 Date: 2015-03-13 09:02 +0100 http://bitbucket.org/cffi/cffi/changeset/18a20248b9f7/ Log:Test and fix for from_buffer() receiving read-only buffer objects as argument. diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c --- a/c/

[pypy-commit] cffi default: Test and fix: a remaining deadlock

2013-11-09 Thread arigo
Author: Armin Rigo Branch: Changeset: r1405:ec61ea587ec6 Date: 2013-11-09 23:29 +0100 http://bitbucket.org/cffi/cffi/changeset/ec61ea587ec6/ Log:Test and fix: a remaining deadlock diff --git a/cffi/vengine_gen.py b/cffi/vengine_gen.py --- a/cffi/vengine_gen.py +++ b/cffi/vengine_gen.py @@ -

[pypy-commit] cffi default: Test and fix for issue #99.

2013-11-08 Thread arigo
Author: Armin Rigo Branch: Changeset: r1394:26390b01617e Date: 2013-11-08 21:47 +0100 http://bitbucket.org/cffi/cffi/changeset/26390b01617e/ Log:Test and fix for issue #99. diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c --- a/c/_cffi_backend.c +++ b/c/_cffi_backend.c @@ -1939,6 +1939,22

[pypy-commit] cffi default: Test and fix: two pointers of different types can compare equal, but

2013-05-16 Thread arigo
Author: Armin Rigo Branch: Changeset: r1252:0ac3dee78264 Date: 2013-05-16 17:02 +0200 http://bitbucket.org/cffi/cffi/changeset/0ac3dee78264/ Log:Test and fix: two pointers of different types can compare equal, but they still had different hashes diff --git a/c/_cffi_backend.c b/c/_c

[pypy-commit] cffi default: Test and fix in the ctypes backend for calling "void *" functions with a

2013-04-06 Thread arigo
Author: Armin Rigo Branch: Changeset: r1239:557412448032 Date: 2013-04-06 11:32 +0200 http://bitbucket.org/cffi/cffi/changeset/557412448032/ Log:Test and fix in the ctypes backend for calling "void *" functions with a Python string argument. diff --git a/cffi/backend_ctypes.py b/cff

[pypy-commit] cffi default: Test and fix for pull request #11: anonymous enums.

2013-03-29 Thread arigo
Author: Armin Rigo Branch: Changeset: r1205:5a456356e4ee Date: 2013-03-29 17:46 +0100 http://bitbucket.org/cffi/cffi/changeset/5a456356e4ee/ Log:Test and fix for pull request #11: anonymous enums. diff --git a/cffi/api.py b/cffi/api.py --- a/cffi/api.py +++ b/cffi/api.py @@ -386,8 +386,9 @@

[pypy-commit] cffi default: test and fix

2013-02-13 Thread arigo
Author: Armin Rigo Branch: Changeset: r1153:94d3a3cf5895 Date: 2013-02-13 09:46 +0100 http://bitbucket.org/cffi/cffi/changeset/94d3a3cf5895/ Log:test and fix diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c --- a/c/_cffi_backend.c +++ b/c/_cffi_backend.c @@ -1730,9 +1730,9 @@

[pypy-commit] cffi default: Test and fix for issue #51: unlike what is documented, we can't pass a

2013-01-06 Thread arigo
Author: Armin Rigo Branch: Changeset: r1117:05e4ecdd2943 Date: 2013-01-07 00:19 +0100 http://bitbucket.org/cffi/cffi/changeset/05e4ecdd2943/ Log:Test and fix for issue #51: unlike what is documented, we can't pass a list argument to a function expecting a "foo *" argument. It

[pypy-commit] cffi default: Test and fix

2012-11-30 Thread arigo
Author: Armin Rigo Branch: Changeset: r1093:12a797fcf465 Date: 2012-11-30 15:46 -0800 http://bitbucket.org/cffi/cffi/changeset/12a797fcf465/ Log:Test and fix diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c --- a/c/_cffi_backend.c +++ b/c/_cffi_backend.c @@ -1915,7 +1915,9 @@ if (PyB

[pypy-commit] cffi default: Test and fix.

2012-11-29 Thread arigo
Author: Armin Rigo Branch: Changeset: r1079:92bdeb9ef3e2 Date: 2012-11-29 21:34 -0800 http://bitbucket.org/cffi/cffi/changeset/92bdeb9ef3e2/ Log:Test and fix. diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c --- a/c/_cffi_backend.c +++ b/c/_cffi_backend.c @@ -437,7 +437,7 @@ { if (c

[pypy-commit] cffi default: Test and fix (thanks Sarvi on python-cffi): there was some dependency

2012-09-11 Thread arigo
Author: Armin Rigo Branch: Changeset: r924:d71ddeaf61ed Date: 2012-09-11 11:46 +0200 http://bitbucket.org/cffi/cffi/changeset/d71ddeaf61ed/ Log:Test and fix (thanks Sarvi on python-cffi): there was some dependency on dictionary order when half the structs were complete and ha

[pypy-commit] cffi default: Test and fix for setup.py's that use the 'package_dir' argument

2012-09-11 Thread arigo
Author: Armin Rigo Branch: Changeset: r922:2df9a7b24753 Date: 2012-09-11 10:36 +0200 http://bitbucket.org/cffi/cffi/changeset/2df9a7b24753/ Log:Test and fix for setup.py's that use the 'package_dir' argument and thus where we can't even import the package before installation.

[pypy-commit] cffi default: Test and fix: don't allow 'void' as the type of a function argument.

2012-08-22 Thread arigo
Author: Armin Rigo Branch: Changeset: r872:b3678ddd1d27 Date: 2012-08-22 19:50 +0200 http://bitbucket.org/cffi/cffi/changeset/b3678ddd1d27/ Log:Test and fix: don't allow 'void' as the type of a function argument. diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c --- a/c/_cffi_backend.c +++

[pypy-commit] cffi default: Test and fix (thanks nphg)

2012-08-12 Thread arigo
Author: Armin Rigo Branch: Changeset: r808:81dfcc881daa Date: 2012-08-12 13:23 +0200 http://bitbucket.org/cffi/cffi/changeset/81dfcc881daa/ Log:Test and fix (thanks nphg) diff --git a/cffi/vengine_cpy.py b/cffi/vengine_cpy.py --- a/cffi/vengine_cpy.py +++ b/cffi/vengine_cpy.py @@ -97,7 +97,

[pypy-commit] cffi default: Test and fix.

2012-08-04 Thread arigo
Author: Armin Rigo Branch: Changeset: r781:09102559bc4c Date: 2012-08-04 22:03 +0200 http://bitbucket.org/cffi/cffi/changeset/09102559bc4c/ Log:Test and fix. diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c --- a/c/_cffi_backend.c +++ b/c/_cffi_backend.c @@ -585,7 +585,16 @@

[pypy-commit] cffi default: Test and fix for an obscure case that raised SystemError instead of

2012-07-27 Thread arigo
Author: Armin Rigo Branch: Changeset: r710:419181fc231b Date: 2012-07-27 14:27 +0200 http://bitbucket.org/cffi/cffi/changeset/419181fc231b/ Log:Test and fix for an obscure case that raised SystemError instead of the proper TypeError. diff --git a/c/_cffi_backend.c b/c/_cffi_backend.

[pypy-commit] cffi default: Test and fix.

2012-07-26 Thread arigo
Author: Armin Rigo Branch: Changeset: r692:bcb1f88942a8 Date: 2012-07-26 21:53 +0200 http://bitbucket.org/cffi/cffi/changeset/bcb1f88942a8/ Log:Test and fix. diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c --- a/c/_cffi_backend.c +++ b/c/_cffi_backend.c @@ -1217,7 +1217,7 @@ ret

[pypy-commit] cffi default: Test and fix.

2012-07-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r662:af85c6508b72 Date: 2012-07-17 10:24 +0200 http://bitbucket.org/cffi/cffi/changeset/af85c6508b72/ Log:Test and fix. diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c --- a/c/_cffi_backend.c +++ b/c/_cffi_backend.c @@ -1578,6 +1578,22 @@ static cif

[pypy-commit] cffi default: Test and fix

2012-07-15 Thread arigo
Author: Armin Rigo Branch: Changeset: r655:0170315924eb Date: 2012-07-15 21:38 +0200 http://bitbucket.org/cffi/cffi/changeset/0170315924eb/ Log:Test and fix diff --git a/cffi/verifier.py b/cffi/verifier.py --- a/cffi/verifier.py +++ b/cffi/verifier.py @@ -61,6 +61,8 @@ return os.pa

[pypy-commit] cffi default: Test and fix

2012-07-13 Thread arigo
Author: Armin Rigo Branch: Changeset: r638:e582b09b9d40 Date: 2012-07-13 20:39 +0200 http://bitbucket.org/cffi/cffi/changeset/e582b09b9d40/ Log:Test and fix diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c --- a/c/_cffi_backend.c +++ b/c/_cffi_backend.c @@ -877,6 +877,8 @@ } if

[pypy-commit] cffi default: Test and fix: keep the two backends in sync

2012-07-13 Thread arigo
Author: Armin Rigo Branch: Changeset: r633:57b82e48bbc1 Date: 2012-07-13 19:14 +0200 http://bitbucket.org/cffi/cffi/changeset/57b82e48bbc1/ Log:Test and fix: keep the two backends in sync diff --git a/cffi/backend_ctypes.py b/cffi/backend_ctypes.py --- a/cffi/backend_ctypes.py +++ b/cffi/ba

[pypy-commit] cffi default: Test and fix

2012-07-07 Thread arigo
Author: Armin Rigo Branch: Changeset: r587:ab5fef220d88 Date: 2012-07-07 12:51 +0200 http://bitbucket.org/cffi/cffi/changeset/ab5fef220d88/ Log:Test and fix diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c --- a/c/_cffi_backend.c +++ b/c/_cffi_backend.c @@ -1289,7 +1289,7 @@ char *c

[pypy-commit] cffi default: Test and fix: from callbacks with 'void' as the result type, you should

2012-07-05 Thread arigo
Author: Armin Rigo Branch: Changeset: r581:5380328af7ce Date: 2012-07-05 19:07 +0200 http://bitbucket.org/cffi/cffi/changeset/5380328af7ce/ Log:Test and fix: from callbacks with 'void' as the result type, you should really return None and not anything else. diff --git a/c/_cffi_back

[pypy-commit] cffi default: Test and fix: you keep learning about the C syntax.

2012-07-03 Thread arigo
Author: Armin Rigo Branch: Changeset: r577:b09373197403 Date: 2012-07-04 06:01 +0200 http://bitbucket.org/cffi/cffi/changeset/b09373197403/ Log:Test and fix: you keep learning about the C syntax. diff --git a/cffi/cparser.py b/cffi/cparser.py --- a/cffi/cparser.py +++ b/cffi/cparser.py @@ -

[pypy-commit] cffi default: Test and fix: passing structures to functions through ffi.verify()

2012-06-28 Thread arigo
Author: Armin Rigo Branch: Changeset: r549:1139c2b9f312 Date: 2012-06-28 00:33 +0200 http://bitbucket.org/cffi/cffi/changeset/1139c2b9f312/ Log:Test and fix: passing structures to functions through ffi.verify() diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c --- a/c/_cffi_backend.c +++ b

[pypy-commit] cffi default: Test and fix

2012-06-28 Thread arigo
Author: Armin Rigo Branch: Changeset: r550:045f5bfdd5ea Date: 2012-06-28 00:49 +0200 http://bitbucket.org/cffi/cffi/changeset/045f5bfdd5ea/ Log:Test and fix diff --git a/cffi/cparser.py b/cffi/cparser.py --- a/cffi/cparser.py +++ b/cffi/cparser.py @@ -144,7 +144,8 @@ self._declarat

[pypy-commit] cffi default: Test and fix

2012-06-26 Thread arigo
Author: Armin Rigo Branch: Changeset: r531:561037ef6db0 Date: 2012-06-26 18:47 +0200 http://bitbucket.org/cffi/cffi/changeset/561037ef6db0/ Log:Test and fix diff --git a/c/_ffi_backend.c b/c/_ffi_backend.c --- a/c/_ffi_backend.c +++ b/c/_ffi_backend.c @@ -757,12 +757,21 @@ if (!CDa

[pypy-commit] cffi default: Test and fix: it's inconvenient that str(x) crashes with a segfault

2012-06-26 Thread arigo
Author: Armin Rigo Branch: Changeset: r521:68ad27bb619c Date: 2012-06-26 11:12 +0200 http://bitbucket.org/cffi/cffi/changeset/68ad27bb619c/ Log:Test and fix: it's inconvenient that str(x) crashes with a segfault if x is . Detect this case and raise RuntimeError. diff --git a

[pypy-commit] cffi default: Test and fix.

2012-06-26 Thread arigo
Author: Armin Rigo Branch: Changeset: r515:2f8dba6f83aa Date: 2012-06-25 23:37 +0200 http://bitbucket.org/cffi/cffi/changeset/2f8dba6f83aa/ Log:Test and fix. diff --git a/c/_ffi_backend.c b/c/_ffi_backend.c --- a/c/_ffi_backend.c +++ b/c/_ffi_backend.c @@ -760,7 +760,8 @@ if (!(cti

[pypy-commit] cffi default: Test and fix.

2012-06-26 Thread arigo
Author: Armin Rigo Branch: Changeset: r513:ad29c07c0119 Date: 2012-06-25 21:27 +0200 http://bitbucket.org/cffi/cffi/changeset/ad29c07c0119/ Log:Test and fix. diff --git a/c/_ffi_backend.c b/c/_ffi_backend.c --- a/c/_ffi_backend.c +++ b/c/_ffi_backend.c @@ -764,6 +764,8 @@ if (!

[pypy-commit] cffi default: Test and fix.

2012-06-24 Thread arigo
Author: Armin Rigo Branch: Changeset: r502:bf0449814cff Date: 2012-06-24 16:22 +0200 http://bitbucket.org/cffi/cffi/changeset/bf0449814cff/ Log:Test and fix. diff --git a/c/_ffi_backend.c b/c/_ffi_backend.c --- a/c/_ffi_backend.c +++ b/c/_ffi_backend.c @@ -744,6 +744,8 @@

[pypy-commit] cffi default: Test and fix.

2012-06-23 Thread arigo
Author: Armin Rigo Branch: Changeset: r494:14254c1b824c Date: 2012-06-23 12:34 +0200 http://bitbucket.org/cffi/cffi/changeset/14254c1b824c/ Log:Test and fix. diff --git a/c/_ffi_backend.c b/c/_ffi_backend.c --- a/c/_ffi_backend.c +++ b/c/_ffi_backend.c @@ -1325,7 +1325,7 @@

[pypy-commit] cffi default: Test and fix.

2012-06-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r400:08e97a7d719f Date: 2012-06-17 11:57 +0200 http://bitbucket.org/cffi/cffi/changeset/08e97a7d719f/ Log:Test and fix. diff --git a/cffi/cparser.py b/cffi/cparser.py --- a/cffi/cparser.py +++ b/cffi/cparser.py @@ -86,7 +86,6 @@ if (isi

[pypy-commit] cffi default: Test and fix.

2012-06-16 Thread arigo
Author: Armin Rigo Branch: Changeset: r392:afc6e0b7234b Date: 2012-06-16 11:35 +0200 http://bitbucket.org/cffi/cffi/changeset/afc6e0b7234b/ Log:Test and fix. diff --git a/cffi/backend_ctypes.py b/cffi/backend_ctypes.py --- a/cffi/backend_ctypes.py +++ b/cffi/backend_ctypes.py @@ -647,7 +647

[pypy-commit] cffi default: Test and fix.

2012-06-15 Thread arigo
Author: Armin Rigo Branch: Changeset: r377:d55cf06971e3 Date: 2012-06-15 20:57 +0200 http://bitbucket.org/cffi/cffi/changeset/d55cf06971e3/ Log:Test and fix. diff --git a/c/_ffi_backend.c b/c/_ffi_backend.c --- a/c/_ffi_backend.c +++ b/c/_ffi_backend.c @@ -3119,7 +3119,7 @@ return