[pypy-commit] cffi default: fix some gcc warnings

2020-01-05 Thread arigo
Author: Armin Rigo Branch: Changeset: r3321:f04433be6f7d Date: 2020-01-05 15:50 +0100 http://bitbucket.org/cffi/cffi/changeset/f04433be6f7d/ Log:fix some gcc warnings diff --git a/cffi/recompiler.py b/cffi/recompiler.py --- a/cffi/recompiler.py +++ b/cffi/recompiler.py @@ -1216,7 +1216,8 @@

[pypy-commit] cffi default: fix test for b9a98b040bd7

2020-01-05 Thread arigo
Author: Armin Rigo Branch: Changeset: r3320:ba124ec241c1 Date: 2020-01-05 15:31 +0100 http://bitbucket.org/cffi/cffi/changeset/ba124ec241c1/ Log:fix test for b9a98b040bd7 diff --git a/testing/cffi1/test_recompiler.py b/testing/cffi1/test_recompiler.py --- a/testing/cffi1/test_recompiler.py

[pypy-commit] cffi default: Fix C integer division. Add modulo.

2019-04-26 Thread arigo
Author: Armin Rigo Branch: Changeset: r3273:1fc05b4f57de Date: 2019-04-26 14:15 +0200 http://bitbucket.org/cffi/cffi/changeset/1fc05b4f57de/ Log:Fix C integer division. Add modulo. diff --git a/cffi/cparser.py b/cffi/cparser.py --- a/cffi/cparser.py +++ b/cffi/cparser.py @@ -868,8 +868,9 @@

[pypy-commit] cffi default: Fix deprecated uses of pytest.raises()

2019-04-02 Thread rlamy
Author: Ronan Lamy Branch: Changeset: r3252:326ee02b5d12 Date: 2019-03-12 16:28 + http://bitbucket.org/cffi/cffi/changeset/326ee02b5d12/ Log:Fix deprecated uses of pytest.raises() diff --git a/c/test_c.py b/c/test_c.py --- a/c/test_c.py +++ b/c/test_c.py @@ -1,4 +1,6 @@ import py +impo

[pypy-commit] cffi default: fix #407 add support for u/U suffix in integer constants (eg. 0xABu, or 0xCDU).

2019-03-27 Thread guil...@Guillaumes-MacBook-Pro.local
Author: guillaumesottas@Guillaumes-MacBook-Pro.local Branch: Changeset: r3248:c0fbaf8dc825 Date: 2019-03-25 10:24 -0600 http://bitbucket.org/cffi/cffi/changeset/c0fbaf8dc825/ Log:fix #407 add support for u/U suffix in integer constants (eg. 0xABu, or 0xCDU). diff --git a/cffi/cparser

[pypy-commit] cffi default: Fix (corner case, hard to test)

2019-03-11 Thread arigo
Author: Armin Rigo Branch: Changeset: r3242:ff25b4e68195 Date: 2019-03-11 10:27 +0100 http://bitbucket.org/cffi/cffi/changeset/ff25b4e68195/ Log:Fix (corner case, hard to test) diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c --- a/c/_cffi_backend.c +++ b/c/_cffi_backend.c @@ -4973,14 +49

[pypy-commit] cffi default: fix encoding of `--libs-only-l` it's about file system names

2019-01-31 Thread vyskocilm
Author: Michal Vyskocil Branch: Changeset: r3198:428261c7ae2c Date: 2019-01-08 19:58 +0100 http://bitbucket.org/cffi/cffi/changeset/428261c7ae2c/ Log:fix encoding of `--libs-only-l` it's about file system names diff --git a/cffi/pkgconfig.py b/cffi/pkgconfig.py --- a/cffi/pkgconfig.py +++ b

[pypy-commit] cffi default: Fix (very unlikely case though)

2018-12-18 Thread arigo
Author: Armin Rigo Branch: Changeset: r3176:4e1b8c2f5410 Date: 2018-12-18 17:10 +0100 http://bitbucket.org/cffi/cffi/changeset/4e1b8c2f5410/ Log:Fix (very unlikely case though) diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c --- a/c/_cffi_backend.c +++ b/c/_cffi_backend.c @@ -3489,6 +348

[pypy-commit] cffi default: Fix documentation for 70838cb63445

2018-09-11 Thread arigo
Author: Armin Rigo Branch: Changeset: r3159:97a61f7b0bcd Date: 2018-09-11 23:16 +0200 http://bitbucket.org/cffi/cffi/changeset/97a61f7b0bcd/ Log:Fix documentation for 70838cb63445 diff --git a/doc/source/cdef.rst b/doc/source/cdef.rst --- a/doc/source/cdef.rst +++ b/doc/source/cdef.rst @@ -

[pypy-commit] cffi default: Fix the remaining places for PyPy3. (Originally in Pull Request #82)

2017-09-21 Thread arigo
Author: Armin Rigo Branch: Changeset: r3022:ee67e4bc2501 Date: 2017-09-21 17:20 +0200 http://bitbucket.org/cffi/cffi/changeset/ee67e4bc2501/ Log:Fix the remaining places for PyPy3. (Originally in Pull Request #82) diff --git a/testing/cffi0/test_verify.py b/testing/cffi0/test_verify.py ---

[pypy-commit] cffi default: Fix: the type char32_t is defined by the standard as always unsigned

2017-06-02 Thread arigo
Author: Armin Rigo Branch: Changeset: r2965:c0c2020872d3 Date: 2017-06-02 10:02 +0200 http://bitbucket.org/cffi/cffi/changeset/c0c2020872d3/ Log:Fix: the type char32_t is defined by the standard as always unsigned diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c --- a/c/_cffi_backend.c ++

[pypy-commit] cffi default: fix test

2017-02-07 Thread arigo
Author: Armin Rigo Branch: Changeset: r2887:6f5001375739 Date: 2017-02-07 16:31 +0100 http://bitbucket.org/cffi/cffi/changeset/6f5001375739/ Log:fix test diff --git a/c/test_c.py b/c/test_c.py --- a/c/test_c.py +++ b/c/test_c.py @@ -376,7 +376,7 @@ x = find_and_load_library(None)

[pypy-commit] cffi default: fix the FakeBackend classes for tests

2017-02-06 Thread arigo
Author: Armin Rigo Branch: Changeset: r2880:be4ee14ac677 Date: 2017-02-06 09:10 +0100 http://bitbucket.org/cffi/cffi/changeset/be4ee14ac677/ Log:fix the FakeBackend classes for tests diff --git a/testing/cffi0/test_cdata.py b/testing/cffi0/test_cdata.py --- a/testing/cffi0/test_cdata.py +++

[pypy-commit] cffi default: Fix/test/expand the error messages we get by using structs/unions as

2016-12-22 Thread arigo
Author: Armin Rigo Branch: Changeset: r2836:6e21f10eead4 Date: 2016-12-22 12:05 +0100 http://bitbucket.org/cffi/cffi/changeset/6e21f10eead4/ Log:Fix/test/expand the error messages we get by using structs/unions as arguments/return values of functions diff --git a/c/_cffi_backend.c b

[pypy-commit] cffi default: fix test

2016-12-07 Thread arigo
Author: Armin Rigo Branch: Changeset: r2826:cc764123ad33 Date: 2016-12-07 09:33 +0100 http://bitbucket.org/cffi/cffi/changeset/cc764123ad33/ Log:fix test diff --git a/testing/cffi1/test_ffi_obj.py b/testing/cffi1/test_ffi_obj.py --- a/testing/cffi1/test_ffi_obj.py +++ b/testing/cffi1/test_f

[pypy-commit] cffi default: Fix a warning for PyPy3

2016-11-09 Thread arigo
Author: Armin Rigo Branch: Changeset: r2808:0ecb431b2b94 Date: 2016-11-09 16:21 +0100 http://bitbucket.org/cffi/cffi/changeset/0ecb431b2b94/ Log:Fix a warning for PyPy3 diff --git a/cffi/_embedding.h b/cffi/_embedding.h --- a/cffi/_embedding.h +++ b/cffi/_embedding.h @@ -358,7 +358,7 @@

[pypy-commit] cffi default: Fix: the condition "offsetof == sizeof" for being a var-sized array

2016-10-29 Thread arigo
Author: Armin Rigo Branch: Changeset: r2802:d1bbb5f82640 Date: 2016-10-29 15:57 +0200 http://bitbucket.org/cffi/cffi/changeset/d1bbb5f82640/ Log:Fix: the condition "offsetof == sizeof" for being a var-sized array is bogus. See test for a case where it is not the case because of

[pypy-commit] cffi default: Fix test

2016-10-25 Thread arigo
Author: Armin Rigo Branch: Changeset: r2799:3cf075e86070 Date: 2016-10-25 12:04 +0200 http://bitbucket.org/cffi/cffi/changeset/3cf075e86070/ Log:Fix test diff --git a/testing/cffi1/test_recompiler.py b/testing/cffi1/test_recompiler.py --- a/testing/cffi1/test_recompiler.py +++ b/testing/cff

[pypy-commit] cffi default: Fix what is hopefully the last remaining issues with calculate_variable_array_length

2016-10-25 Thread arigo
Author: Armin Rigo Branch: Changeset: r2797:b4de89f7cec4 Date: 2016-10-25 09:18 +0200 http://bitbucket.org/cffi/cffi/changeset/b4de89f7cec4/ Log:Fix what is hopefully the last remaining issues with calculate_variable_array_length diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c --

[pypy-commit] cffi default: Fix leak. Remaining issue: if the user close()s the file object in Python,

2016-09-27 Thread arigo
Author: Armin Rigo Branch: Changeset: r2779:630f22d1d446 Date: 2016-09-27 11:37 +0200 http://bitbucket.org/cffi/cffi/changeset/630f22d1d446/ Log:Fix leak. Remaining issue: if the user close()s the file object in Python, the __cffi_FILE attribute remains there and the dup'ed file

[pypy-commit] cffi default: fix

2016-09-03 Thread arigo
Author: Armin Rigo Branch: Changeset: r2758:b81ca61b6de6 Date: 2016-09-03 20:10 +0200 http://bitbucket.org/cffi/cffi/changeset/b81ca61b6de6/ Log:fix diff --git a/cffi/backend_ctypes.py b/cffi/backend_ctypes.py --- a/cffi/backend_ctypes.py +++ b/cffi/backend_ctypes.py @@ -1004,9 +1004,11 @@

[pypy-commit] cffi default: Fix test

2016-09-03 Thread arigo
Author: Armin Rigo Branch: Changeset: r2748:849a40dd7925 Date: 2016-09-03 11:02 +0200 http://bitbucket.org/cffi/cffi/changeset/849a40dd7925/ Log:Fix test diff --git a/testing/cffi0/test_zintegration.py b/testing/cffi0/test_zintegration.py --- a/testing/cffi0/test_zintegration.py +++ b/test

[pypy-commit] cffi default: Fix for a3708c91be7b

2016-07-16 Thread arigo
Author: Armin Rigo Branch: Changeset: r2725:d1cff6ef1b2f Date: 2016-07-16 13:57 +0200 http://bitbucket.org/cffi/cffi/changeset/d1cff6ef1b2f/ Log:Fix for a3708c91be7b diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c --- a/c/_cffi_backend.c +++ b/c/_cffi_backend.c @@ -3778,7 +3778,7 @@

[pypy-commit] cffi default: Fix docstrings

2016-06-03 Thread arigo
Author: Armin Rigo Branch: Changeset: r2704:dcb9f97611a7 Date: 2016-06-03 14:12 +0200 http://bitbucket.org/cffi/cffi/changeset/dcb9f97611a7/ Log:Fix docstrings diff --git a/c/ffi_obj.c b/c/ffi_obj.c --- a/c/ffi_obj.c +++ b/c/ffi_obj.c @@ -707,7 +707,7 @@ PyDoc_STRVAR(ffi_from_buffer_doc,

[pypy-commit] cffi default: fix: Lib objects didn't have the cyclic GC enabled

2016-05-25 Thread arigo
Author: Armin Rigo Branch: Changeset: r2698:d1d89621e6f5 Date: 2016-05-25 17:31 +0200 http://bitbucket.org/cffi/cffi/changeset/d1d89621e6f5/ Log:fix: Lib objects didn't have the cyclic GC enabled diff --git a/c/lib_obj.c b/c/lib_obj.c --- a/c/lib_obj.c +++ b/c/lib_obj.c @@ -93,7 +93,7 @@

[pypy-commit] cffi default: Fix tests in 'testing' to account for e7ca388b0197 (I only fixed the

2016-05-08 Thread arigo
Author: Armin Rigo Branch: Changeset: r2695:72a157dc2bde Date: 2016-05-08 18:38 +0200 http://bitbucket.org/cffi/cffi/changeset/72a157dc2bde/ Log:Fix tests in 'testing' to account for e7ca388b0197 (I only fixed the tests in 'c/test_c.py') diff --git a/cffi/backend_ctypes.py b/cffi/ba

[pypy-commit] cffi default: Fix the next version number (not for immediate release!)

2016-05-07 Thread arigo
Author: Armin Rigo Branch: Changeset: r2687:ab0396f739ff Date: 2016-05-07 09:22 +0200 http://bitbucket.org/cffi/cffi/changeset/ab0396f739ff/ Log:Fix the next version number (not for immediate release!) diff --git a/doc/source/ref.rst b/doc/source/ref.rst --- a/doc/source/ref.rst +++ b/doc/s

[pypy-commit] cffi default: Fix for Python 2.6

2016-02-13 Thread arigo
Author: Armin Rigo Branch: Changeset: r2633:97b191f401bd Date: 2016-02-13 16:32 +0100 http://bitbucket.org/cffi/cffi/changeset/97b191f401bd/ Log:Fix for Python 2.6 diff --git a/cffi/api.py b/cffi/api.py --- a/cffi/api.py +++ b/cffi/api.py @@ -1,4 +1,4 @@ -import sys, sysconfig, types +impor

[pypy-commit] cffi default: fix when running this test in the same process as ../cffi0/test_verify.py (found on os/x, but I don't know why it doesn't also fail on linux)

2016-01-16 Thread arigo
Author: Armin Rigo Branch: Changeset: r2602:95386637958b Date: 2016-01-16 17:25 +0100 http://bitbucket.org/cffi/cffi/changeset/95386637958b/ Log:fix when running this test in the same process as ../cffi0/test_verify.py (found on os/x, but I don't know why it doesn't also fail

[pypy-commit] cffi default: fix

2016-01-16 Thread arigo
Author: Armin Rigo Branch: Changeset: r2596:03fe8ca059d1 Date: 2016-01-16 11:52 +0100 http://bitbucket.org/cffi/cffi/changeset/03fe8ca059d1/ Log:fix diff --git a/testing/embedding/test_basic.py b/testing/embedding/test_basic.py --- a/testing/embedding/test_basic.py +++ b/testing/embedding/t

[pypy-commit] cffi default: fix

2016-01-15 Thread arigo
Author: Armin Rigo Branch: Changeset: r2591:2bb743b8b97e Date: 2016-01-15 20:20 +0100 http://bitbucket.org/cffi/cffi/changeset/2bb743b8b97e/ Log:fix diff --git a/doc/source/embedding.rst b/doc/source/embedding.rst --- a/doc/source/embedding.rst +++ b/doc/source/embedding.rst @@ -194,15 +194

[pypy-commit] cffi default: Fix the reason

2015-12-21 Thread arigo
Author: Armin Rigo Branch: Changeset: r2496:123d9f27f75c Date: 2015-12-21 22:31 +0100 http://bitbucket.org/cffi/cffi/changeset/123d9f27f75c/ Log:Fix the reason diff --git a/doc/source/using.rst b/doc/source/using.rst --- a/doc/source/using.rst +++ b/doc/source/using.rst @@ -1311,8 +1311,8 @

[pypy-commit] cffi default: fix

2015-12-21 Thread arigo
Author: Armin Rigo Branch: Changeset: r2495:8f48bf33a51e Date: 2015-12-21 22:19 +0100 http://bitbucket.org/cffi/cffi/changeset/8f48bf33a51e/ Log:fix diff --git a/doc/source/using.rst b/doc/source/using.rst --- a/doc/source/using.rst +++ b/doc/source/using.rst @@ -823,7 +823,7 @@ hurt) to s

[pypy-commit] cffi default: fix

2015-11-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r2410:0c0093754b62 Date: 2015-11-17 10:36 +0100 http://bitbucket.org/cffi/cffi/changeset/0c0093754b62/ Log:fix diff --git a/testing/cffi0/test_function.py b/testing/cffi0/test_function.py --- a/testing/cffi0/test_function.py +++ b/testing/cffi0/test_fun

[pypy-commit] cffi default: Fix the error we get for 'int f(unknown_type); '

2015-11-02 Thread arigo
Author: Armin Rigo Branch: Changeset: r2363:e6500be6fdfb Date: 2015-11-02 16:17 +0100 http://bitbucket.org/cffi/cffi/changeset/e6500be6fdfb/ Log:Fix the error we get for 'int f(unknown_type);' diff --git a/cffi/cparser.py b/cffi/cparser.py --- a/cffi/cparser.py +++ b/cffi/cparser.py @@ -456

[pypy-commit] cffi default: fix on 32-bit for test_some_float_invalid_2

2015-10-06 Thread arigo
Author: Armin Rigo Branch: Changeset: r2323:6f38ec69eac6 Date: 2015-10-06 13:51 +0200 http://bitbucket.org/cffi/cffi/changeset/6f38ec69eac6/ Log:fix on 32-bit for test_some_float_invalid_2 diff --git a/cffi/parse_c_type.h b/cffi/parse_c_type.h --- a/cffi/parse_c_type.h +++ b/cffi/parse_c_ty

[pypy-commit] cffi default: Fix tests to run on more 32-bit x86es

2015-10-01 Thread arigo
Author: Armin Rigo Branch: Changeset: r2298:1a73afff26e2 Date: 2015-10-01 23:58 +0200 http://bitbucket.org/cffi/cffi/changeset/1a73afff26e2/ Log:Fix tests to run on more 32-bit x86es diff --git a/testing/cffi0/test_verify.py b/testing/cffi0/test_verify.py --- a/testing/cffi0/test_verify.py

[pypy-commit] cffi default: fix textual reference

2015-09-04 Thread arigo
Author: Armin Rigo Branch: Changeset: r2269:9b9b28de48be Date: 2015-09-04 13:43 +0200 http://bitbucket.org/cffi/cffi/changeset/9b9b28de48be/ Log:fix textual reference diff --git a/doc/source/cdef.rst b/doc/source/cdef.rst --- a/doc/source/cdef.rst +++ b/doc/source/cdef.rst @@ -206,8 +206,8

[pypy-commit] cffi default: Fix tests for Python 3

2015-06-23 Thread arigo
Author: Armin Rigo Branch: Changeset: r2192:a010585333d4 Date: 2015-06-23 19:51 +0200 http://bitbucket.org/cffi/cffi/changeset/a010585333d4/ Log:Fix tests for Python 3 diff --git a/testing/cffi1/test_new_ffi_1.py b/testing/cffi1/test_new_ffi_1.py --- a/testing/cffi1/test_new_ffi_1.py +++ b/

[pypy-commit] cffi default: Fix the logic to handle ffi.gc(x) being called several times with equal

2015-06-06 Thread arigo
Author: Armin Rigo Branch: Changeset: r2163:ce83dce59b83 Date: 2015-06-06 20:56 +0200 http://bitbucket.org/cffi/cffi/changeset/ce83dce59b83/ Log:Fix the logic to handle ffi.gc(x) being called several times with equal values of x. (PyPy 2.6.0's RPython version is already corre

[pypy-commit] cffi default: fix

2015-05-27 Thread arigo
Author: Armin Rigo Branch: Changeset: r2113:1f18df199d5b Date: 2015-05-27 12:03 +0200 http://bitbucket.org/cffi/cffi/changeset/1f18df199d5b/ Log:fix diff --git a/testing/cffi1/test_zdist.py b/testing/cffi1/test_zdist.py --- a/testing/cffi1/test_zdist.py +++ b/testing/cffi1/test_zdist.py @@

[pypy-commit] cffi default: Fix the test on Windows

2015-05-27 Thread arigo
Author: Armin Rigo Branch: Changeset: r2110:92be9c5dbce5 Date: 2015-05-27 11:47 +0200 http://bitbucket.org/cffi/cffi/changeset/92be9c5dbce5/ Log:Fix the test on Windows diff --git a/testing/cffi1/test_zdist.py b/testing/cffi1/test_zdist.py --- a/testing/cffi1/test_zdist.py +++ b/testing/cff

[pypy-commit] cffi default: Fix comments

2015-05-21 Thread arigo
Author: Armin Rigo Branch: Changeset: r2082:3a5409b8c92f Date: 2015-05-22 01:05 +0200 http://bitbucket.org/cffi/cffi/changeset/3a5409b8c92f/ Log:Fix comments diff --git a/cffi/_cffi_include.h b/cffi/_cffi_include.h --- a/cffi/_cffi_include.h +++ b/cffi/_cffi_include.h @@ -7,7 +7,8 @@ #incl

[pypy-commit] cffi default: Fix

2015-05-06 Thread arigo
Author: Armin Rigo Branch: Changeset: r1916:abf5158d9c54 Date: 2015-05-06 16:58 +0200 http://bitbucket.org/cffi/cffi/changeset/abf5158d9c54/ Log:Fix diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -116,7 +116,7 @@ if __name__ == '__main__': from setuptools import set

[pypy-commit] cffi default: Fix for test_vgen.test_struct_returned_by_func (and uniformize the error message)

2015-04-24 Thread arigo
Author: Armin Rigo Branch: Changeset: r1790:3fcfce174377 Date: 2015-04-24 11:54 +0200 http://bitbucket.org/cffi/cffi/changeset/3fcfce174377/ Log:Fix for test_vgen.test_struct_returned_by_func (and uniformize the error message) diff --git a/cffi/vengine_gen.py b/cffi/vengine_gen.py -

[pypy-commit] cffi default: Fix (thanks gkcn on irc): in cdef() we can say "#define FOO 42", but

2015-01-11 Thread arigo
Author: Armin Rigo Branch: Changeset: r1630:932dc0fe2e16 Date: 2015-01-11 15:04 +0100 http://bitbucket.org/cffi/cffi/changeset/932dc0fe2e16/ Log:Fix (thanks gkcn on irc): in cdef() we can say "#define FOO 42", but this declaration is completely ignored in verify(). Instead, we

[pypy-commit] cffi default: fix test

2015-01-09 Thread arigo
Author: Armin Rigo Branch: Changeset: r1628:a0e43b0f5743 Date: 2015-01-09 11:58 +0100 http://bitbucket.org/cffi/cffi/changeset/a0e43b0f5743/ Log:fix test diff --git a/testing/test_parsing.py b/testing/test_parsing.py --- a/testing/test_parsing.py +++ b/testing/test_parsing.py @@ -247,7 +247

[pypy-commit] cffi default: fix an obscure-case leak

2014-12-19 Thread arigo
Author: Armin Rigo Branch: Changeset: r1593:c6be8df144eb Date: 2014-12-19 15:59 +0100 http://bitbucket.org/cffi/cffi/changeset/c6be8df144eb/ Log:fix an obscure-case leak diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c --- a/c/_cffi_backend.c +++ b/c/_cffi_backend.c @@ -3070,6 +3070,7 @@

[pypy-commit] cffi default: Fix failing tests

2014-12-17 Thread rguillebert
Author: Romain Guillebert Branch: Changeset: r1589:f0241abbaab0 Date: 2014-10-21 15:38 +0200 http://bitbucket.org/cffi/cffi/changeset/f0241abbaab0/ Log:Fix failing tests diff --git a/cffi/vengine_cpy.py b/cffi/vengine_cpy.py --- a/cffi/vengine_cpy.py +++ b/cffi/vengine_cpy.py @@ -138,12 +13

[pypy-commit] cffi default: Fix test for approximate floating point return type

2014-11-21 Thread dalcinl
Author: Lisandro Dalcin Branch: Changeset: r1579:9642bf799905 Date: 2014-11-21 14:40 +0300 http://bitbucket.org/cffi/cffi/changeset/9642bf799905/ Log:Fix test for approximate floating point return type diff --git a/testing/test_verify.py b/testing/test_verify.py --- a/testing/test_verify.py

[pypy-commit] cffi default: Fix for Windows, which doesn't have a reasonable snprintf()

2014-07-05 Thread arigo
Author: Armin Rigo Branch: Changeset: r1544:079492211215 Date: 2014-07-05 19:41 +0200 http://bitbucket.org/cffi/cffi/changeset/079492211215/ Log:Fix for Windows, which doesn't have a reasonable snprintf() diff --git a/cffi/vengine_gen.py b/cffi/vengine_gen.py --- a/cffi/vengine_gen.py +++ b

[pypy-commit] cffi default: Fix a type mismatch that causes a warning on some compilers

2014-04-04 Thread arigo
Author: Armin Rigo Branch: Changeset: r1499:51d87933eb4b Date: 2014-04-04 17:30 +0200 http://bitbucket.org/cffi/cffi/changeset/51d87933eb4b/ Log:Fix a type mismatch that causes a warning on some compilers diff --git a/testing/test_verify.py b/testing/test_verify.py --- a/testing/test_verify

[pypy-commit] cffi default: Fix test for 6f31a53a6275

2014-04-04 Thread arigo
Author: Armin Rigo Branch: Changeset: r1496:0457fbb2d452 Date: 2014-04-04 17:09 +0200 http://bitbucket.org/cffi/cffi/changeset/0457fbb2d452/ Log:Fix test for 6f31a53a6275 diff --git a/testing/test_parsing.py b/testing/test_parsing.py --- a/testing/test_parsing.py +++ b/testing/test_parsing.

[pypy-commit] cffi default: fix for win32

2014-03-02 Thread mattip
Author: Matti Picus Branch: Changeset: r1470:023010b338a2 Date: 2014-03-02 17:33 +0200 http://bitbucket.org/cffi/cffi/changeset/023010b338a2/ Log:fix for win32 diff --git a/testing/test_function.py b/testing/test_function.py --- a/testing/test_function.py +++ b/testing/test_function.py @@ -

[pypy-commit] cffi default: Fix ffi.dlopen(None): we can't replace it with ffi.dlopen("c") on POSIX

2014-02-28 Thread arigo
Author: Armin Rigo Branch: Changeset: r1466:90be5bcd6bc8 Date: 2014-02-28 10:37 +0100 http://bitbucket.org/cffi/cffi/changeset/90be5bcd6bc8/ Log:Fix ffi.dlopen(None): we can't replace it with ffi.dlopen("c") on POSIX systems. It has a different meaning: getting a handle that

[pypy-commit] cffi default: Fix

2014-01-18 Thread arigo
Author: Armin Rigo Branch: Changeset: r1456:7eb548fec961 Date: 2014-01-18 18:39 +0100 http://bitbucket.org/cffi/cffi/changeset/7eb548fec961/ Log:Fix diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c --- a/c/_cffi_backend.c +++ b/c/_cffi_backend.c @@ -3785,6 +3785,7 @@

[pypy-commit] cffi default: Fix test

2014-01-14 Thread arigo
Author: Armin Rigo Branch: Changeset: r1454:1974af91fdb2 Date: 2014-01-14 09:08 +0100 http://bitbucket.org/cffi/cffi/changeset/1974af91fdb2/ Log:Fix test diff --git a/testing/test_parsing.py b/testing/test_parsing.py --- a/testing/test_parsing.py +++ b/testing/test_parsing.py @@ -32,7 +32,8

[pypy-commit] cffi default: Fix for issue #129: 'bytes(buffer)' needs to work on Python 2,

2013-12-06 Thread arigo
Author: Armin Rigo Branch: Changeset: r1437:65a3bcbcb054 Date: 2013-12-06 19:52 +0100 http://bitbucket.org/cffi/cffi/changeset/65a3bcbcb054/ Log:Fix for issue #129: 'bytes(buffer)' needs to work on Python 2, because it works on Python 3 and cannot be prevented to. diff --git a/c/min

[pypy-commit] cffi default: Fix link to pycparser pointing to its new home

2013-11-27 Thread eliben
Author: Eli Bendersky Branch: Changeset: r1432:c0debe14a6ef Date: 2013-11-26 13:44 + http://bitbucket.org/cffi/cffi/changeset/c0debe14a6ef/ Log:Fix link to pycparser pointing to its new home diff --git a/doc/source/index.rst b/doc/source/index.rst --- a/doc/source/index.rst +++ b/doc/so

[pypy-commit] cffi default: Fix a segfault

2013-11-09 Thread arigo
Author: Armin Rigo Branch: Changeset: r1397:9ba268ca7739 Date: 2013-11-09 09:27 +0100 http://bitbucket.org/cffi/cffi/changeset/9ba268ca7739/ Log:Fix a segfault diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c --- a/c/_cffi_backend.c +++ b/c/_cffi_backend.c @@ -2112,23 +2112,21 @@

[pypy-commit] cffi default: Fix the test for 77da9e592d23.

2013-10-10 Thread arigo
Author: Armin Rigo Branch: Changeset: r1374:2c78dd9872e7 Date: 2013-10-10 09:34 +0200 http://bitbucket.org/cffi/cffi/changeset/2c78dd9872e7/ Log:Fix the test for 77da9e592d23. diff --git a/testing/test_zdistutils.py b/testing/test_zdistutils.py --- a/testing/test_zdistutils.py +++ b/testing

[pypy-commit] cffi default: Fix for win64

2013-08-01 Thread arigo
Author: Armin Rigo Branch: Changeset: r1331:1e1f88442f65 Date: 2013-08-01 22:54 +0200 http://bitbucket.org/cffi/cffi/changeset/1e1f88442f65/ Log:Fix for win64 diff --git a/c/libffi_msvc/ffi.c b/c/libffi_msvc/ffi.c --- a/c/libffi_msvc/ffi.c +++ b/c/libffi_msvc/ffi.c @@ -379,7 +379,12 @@ #

[pypy-commit] cffi default: Fix the doc

2013-08-01 Thread arigo
Author: Armin Rigo Branch: Changeset: r1329:2162ca1d7b7e Date: 2013-08-01 17:49 +0200 http://bitbucket.org/cffi/cffi/changeset/2162ca1d7b7e/ Log:Fix the doc diff --git a/doc/source/index.rst b/doc/source/index.rst --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -134,7 +134,8 @@

[pypy-commit] cffi default: Fix the front-end to work (but still show $ signs)

2013-06-19 Thread arigo
Author: Armin Rigo Branch: Changeset: r1272:613cd8c50b9f Date: 2013-06-19 09:50 +0200 http://bitbucket.org/cffi/cffi/changeset/613cd8c50b9f/ Log:Fix the front-end to work (but still show $ signs) diff --git a/cffi/backend_ctypes.py b/cffi/backend_ctypes.py --- a/cffi/backend_ctypes.py +++ b

[pypy-commit] cffi default: Fix for the alignment calculation of anonymous and zero sized bitfields on ARM.

2013-06-16 Thread bivab
Author: David Schneider Branch: Changeset: r1268:09f85e97e9d3 Date: 2013-06-16 10:18 -0500 http://bitbucket.org/cffi/cffi/changeset/09f85e97e9d3/ Log:Fix for the alignment calculation of anonymous and zero sized bitfields on ARM. diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c --

[pypy-commit] cffi default: Fix MSVC bitfields in all tested cases.

2013-06-01 Thread arigo
Author: Armin Rigo Branch: Changeset: r1266:263caa88878e Date: 2013-06-01 13:34 +0200 http://bitbucket.org/cffi/cffi/changeset/263caa88878e/ Log:Fix MSVC bitfields in all tested cases. diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c --- a/c/_cffi_backend.c +++ b/c/_cffi_backend.c @@ -347

[pypy-commit] cffi default: Fix this test for MSVC

2013-06-01 Thread arigo
Author: Armin Rigo Branch: Changeset: r1265:110b6b1931df Date: 2013-06-01 13:07 +0200 http://bitbucket.org/cffi/cffi/changeset/110b6b1931df/ Log:Fix this test for MSVC diff --git a/testing/test_ffi_backend.py b/testing/test_ffi_backend.py --- a/testing/test_ffi_backend.py +++ b/testing/test

[pypy-commit] cffi default: Fix (motivated by a pypy without cpyext): if we're using vengine_gen.py,

2013-05-20 Thread arigo
Author: Armin Rigo Branch: Changeset: r1253:617edf867775 Date: 2013-05-20 13:52 +0200 http://bitbucket.org/cffi/cffi/changeset/617edf867775/ Log:Fix (motivated by a pypy without cpyext): if we're using vengine_gen.py, then we should not use imp.find_module() to locate our com

[pypy-commit] cffi default: Fix for enums used as bitfields. (thanks jerith)

2013-05-05 Thread arigo
Author: Armin Rigo Branch: Changeset: r1248:a3f43e99b02e Date: 2013-05-05 12:25 +0200 http://bitbucket.org/cffi/cffi/changeset/a3f43e99b02e/ Log:Fix for enums used as bitfields. (thanks jerith) diff --git a/cffi/vengine_cpy.py b/cffi/vengine_cpy.py --- a/cffi/vengine_cpy.py +++ b/cffi/vengi

[pypy-commit] cffi default: Fix for issue 77: give cdatas __module__, __name__ and __doc__ attributes,

2013-04-15 Thread arigo
Author: Armin Rigo Branch: Changeset: r1245:184ddf196151 Date: 2013-04-15 19:13 +0200 http://bitbucket.org/cffi/cffi/changeset/184ddf196151/ Log:Fix for issue 77: give cdatas __module__, __name__ and __doc__ attributes, for convenience with functools.wraps(). diff --git a/c/_cffi_ba

[pypy-commit] cffi default: fix handling w/ py3 hasattr, which only swallows AttributeErrors

2013-04-06 Thread pjenvey
Author: Philip Jenvey Branch: Changeset: r1241:e2b9db908b90 Date: 2013-04-05 12:01 -0700 http://bitbucket.org/cffi/cffi/changeset/e2b9db908b90/ Log:fix handling w/ py3 hasattr, which only swallows AttributeErrors diff --git a/cffi/api.py b/cffi/api.py --- a/cffi/api.py +++ b/cffi/api.py @@

[pypy-commit] cffi default: Fix the docstring.

2013-04-04 Thread arigo
Author: Armin Rigo Branch: Changeset: r1232:95cea550141d Date: 2013-04-04 23:49 +0200 http://bitbucket.org/cffi/cffi/changeset/95cea550141d/ Log:Fix the docstring. diff --git a/cffi/api.py b/cffi/api.py --- a/cffi/api.py +++ b/cffi/api.py @@ -221,7 +221,7 @@ it as a string or unico

[pypy-commit] cffi default: Fix(?) an issue that only showed up on PPC64 so far, about

2013-03-30 Thread arigo
Author: Armin Rigo Branch: Changeset: r1208:c5e85201f3ce Date: 2013-03-30 09:48 -0700 http://bitbucket.org/cffi/cffi/changeset/c5e85201f3ce/ Log:Fix(?) an issue that only showed up on PPC64 so far, about char- returning C functions. diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c

[pypy-commit] cffi default: Fix for PPC: check that "long double" has more precision than "double"

2013-03-30 Thread arigo
Author: Armin Rigo Branch: Changeset: r1207:e67cd88ae64b Date: 2013-03-30 16:59 +0100 http://bitbucket.org/cffi/cffi/changeset/e67cd88ae64b/ Log:Fix for PPC: check that "long double" has more precision than "double" if the type is larger, without assuming that it can hold big

[pypy-commit] cffi default: Fix a warning.

2013-03-29 Thread arigo
Author: Armin Rigo Branch: Changeset: r1206:c6a699d27cab Date: 2013-03-29 23:42 +0100 http://bitbucket.org/cffi/cffi/changeset/c6a699d27cab/ Log:Fix a warning. diff --git a/demo/_curses.py b/demo/_curses.py --- a/demo/_curses.py +++ b/demo/_curses.py @@ -25,7 +25,7 @@ int tigetflag(char *)

[pypy-commit] cffi default: Fix (also for Python 3).

2013-03-29 Thread arigo
Author: Armin Rigo Branch: Changeset: r1204:c4ddde521b92 Date: 2013-03-29 17:10 +0100 http://bitbucket.org/cffi/cffi/changeset/c4ddde521b92/ Log:Fix (also for Python 3). diff --git a/cffi/api.py b/cffi/api.py --- a/cffi/api.py +++ b/cffi/api.py @@ -386,7 +386,7 @@ return

[pypy-commit] cffi default: Fix for a potential race condition in multithreaded programs (hard to test).

2013-03-27 Thread arigo
Author: Armin Rigo Branch: Changeset: r1200:37d1044bd114 Date: 2013-03-27 20:54 +0100 http://bitbucket.org/cffi/cffi/changeset/37d1044bd114/ Log:Fix for a potential race condition in multithreaded programs (hard to test). diff --git a/cffi/api.py b/cffi/api.py --- a/cffi/api.py +++

[pypy-commit] cffi default: Fix when running on pypy without cpyext.

2013-02-07 Thread arigo
Author: Armin Rigo Branch: Changeset: r1128:a8bdd46c8afb Date: 2013-02-07 23:22 +0100 http://bitbucket.org/cffi/cffi/changeset/a8bdd46c8afb/ Log:Fix when running on pypy without cpyext. diff --git a/cffi/verifier.py b/cffi/verifier.py --- a/cffi/verifier.py +++ b/cffi/verifier.py @@ -223,7

[pypy-commit] cffi default: Fix issue #44: ffi.new/cast("undefined") raises confusing exception.

2012-12-29 Thread arigo
Author: Armin Rigo Branch: Changeset: r1105:758d9da5cebb Date: 2012-12-29 15:53 +0100 http://bitbucket.org/cffi/cffi/changeset/758d9da5cebb/ Log:Fix issue #44: ffi.new/cast("undefined") raises confusing exception. diff --git a/cffi/cparser.py b/cffi/cparser.py --- a/cffi/cparser.py +++ b/cf

[pypy-commit] cffi default: Fix Python 3.1 compat (callable)

2012-12-27 Thread SimonSapin
Author: Simon Sapin Branch: Changeset: r1102:caad797a6b3d Date: 2012-12-27 17:11 +0100 http://bitbucket.org/cffi/cffi/changeset/caad797a6b3d/ Log:Fix Python 3.1 compat (callable) diff --git a/cffi/api.py b/cffi/api.py --- a/cffi/api.py +++ b/cffi/api.py @@ -1,5 +1,13 @@ import types +try

[pypy-commit] cffi default: Fix issue #45: accept unicode strings as the name of the enum constants,

2012-12-27 Thread arigo
Author: Armin Rigo Branch: Changeset: r1101:df807c9701bf Date: 2012-12-27 19:01 +0100 http://bitbucket.org/cffi/cffi/changeset/df807c9701bf/ Log:Fix issue #45: accept unicode strings as the name of the enum constants, as long as they can be converted to plain strings. diff --git a/c

[pypy-commit] cffi default: Fix these tests for Python 3.

2012-11-24 Thread arigo
Author: Armin Rigo Branch: Changeset: r1068:037096d1bdaa Date: 2012-11-25 01:01 +0100 http://bitbucket.org/cffi/cffi/changeset/037096d1bdaa/ Log:Fix these tests for Python 3. diff --git a/testing/test_zintegration.py b/testing/test_zintegration.py --- a/testing/test_zintegration.py +++ b/te

[pypy-commit] cffi default: Fix for Win32.

2012-11-24 Thread arigo
Author: Armin Rigo Branch: Changeset: r1066:afef8684ef13 Date: 2012-11-25 00:33 +0100 http://bitbucket.org/cffi/cffi/changeset/afef8684ef13/ Log:Fix for Win32. diff --git a/cffi/vengine_gen.py b/cffi/vengine_gen.py --- a/cffi/vengine_gen.py +++ b/cffi/vengine_gen.py @@ -39,7 +39,12 @@

[pypy-commit] cffi default: Fix: this assert was not checking anything.

2012-11-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r1045:f3157378d8d2 Date: 2012-11-17 17:23 +0100 http://bitbucket.org/cffi/cffi/changeset/f3157378d8d2/ Log:Fix: this assert was not checking anything. diff --git a/cffi/cparser.py b/cffi/cparser.py --- a/cffi/cparser.py +++ b/cffi/cparser.py @@ -202,7 +

[pypy-commit] cffi default: Fix issue #32: turn types like "size_t" into primitive types from the

2012-11-12 Thread arigo
Author: Armin Rigo Branch: Changeset: r1039:86564854139f Date: 2012-11-12 18:18 +0100 http://bitbucket.org/cffi/cffi/changeset/86564854139f/ Log:Fix issue #32: turn types like "size_t" into primitive types from the point of view of CFFI. diff --git a/c/_cffi_backend.c b/c/_cffi_back

[pypy-commit] cffi default: fix the test, which was randomly occasionally failing

2012-11-04 Thread arigo
Author: Armin Rigo Branch: Changeset: r1029:30115faf8019 Date: 2012-11-04 11:26 +0100 http://bitbucket.org/cffi/cffi/changeset/30115faf8019/ Log:fix the test, which was randomly occasionally failing diff --git a/c/test_c.py b/c/test_c.py --- a/c/test_c.py +++ b/c/test_c.py @@ -1444,7 +1444,

[pypy-commit] cffi default: fix test

2012-11-04 Thread arigo
Author: Armin Rigo Branch: Changeset: r1027:a9b7746a6a20 Date: 2012-11-04 11:13 +0100 http://bitbucket.org/cffi/cffi/changeset/a9b7746a6a20/ Log:fix test diff --git a/c/test_c.py b/c/test_c.py --- a/c/test_c.py +++ b/c/test_c.py @@ -2361,7 +2361,7 @@ # SetLastError(42) # a ra

[pypy-commit] cffi default: Fix the tests for Python 3.

2012-10-30 Thread arigo
Author: Armin Rigo Branch: Changeset: r1024:568b239a7824 Date: 2012-10-30 15:08 +0100 http://bitbucket.org/cffi/cffi/changeset/568b239a7824/ Log:Fix the tests for Python 3. diff --git a/testing/backend_tests.py b/testing/backend_tests.py --- a/testing/backend_tests.py +++ b/testing/backend_

[pypy-commit] cffi default: Fix tests.

2012-10-30 Thread arigo
Author: Armin Rigo Branch: Changeset: r1022:c7af62d13de6 Date: 2012-10-30 12:44 +0100 http://bitbucket.org/cffi/cffi/changeset/c7af62d13de6/ Log:Fix tests. diff --git a/c/test_c.py b/c/test_c.py --- a/c/test_c.py +++ b/c/test_c.py @@ -2310,8 +2310,9 @@ fw1 = posix.fdopen(fdw, 'w')

[pypy-commit] cffi default: Fix the documentation.

2012-10-29 Thread arigo
Author: Armin Rigo Branch: Changeset: r1016:81e1b38d5e2f Date: 2012-10-29 09:14 +0100 http://bitbucket.org/cffi/cffi/changeset/81e1b38d5e2f/ Log:Fix the documentation. diff --git a/cffi/api.py b/cffi/api.py --- a/cffi/api.py +++ b/cffi/api.py @@ -208,8 +208,13 @@ def buffer(self, cdata

[pypy-commit] cffi default: Fix the tests and kill support in the ctypes backend.

2012-10-29 Thread arigo
Author: Armin Rigo Branch: Changeset: r1017:f5ee4b029afc Date: 2012-10-29 09:17 +0100 http://bitbucket.org/cffi/cffi/changeset/f5ee4b029afc/ Log:Fix the tests and kill support in the ctypes backend. diff --git a/cffi/backend_ctypes.py b/cffi/backend_ctypes.py --- a/cffi/backend_ctypes.py ++

[pypy-commit] cffi default: Fix function name in error message

2012-10-26 Thread arigo
Author: Armin Rigo Branch: Changeset: r1007:3cd724b5f677 Date: 2012-10-26 09:59 +0200 http://bitbucket.org/cffi/cffi/changeset/3cd724b5f677/ Log:Fix function name in error message diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c --- a/c/_cffi_backend.c +++ b/c/_cffi_backend.c @@ -2637,7 +

[pypy-commit] cffi default: Fix docstring to work around xemacs syntax highlighting issues.

2012-10-26 Thread arigo
Author: Armin Rigo Branch: Changeset: r1006:fe0269906048 Date: 2012-10-26 09:23 +0200 http://bitbucket.org/cffi/cffi/changeset/fe0269906048/ Log:Fix docstring to work around xemacs syntax highlighting issues. diff --git a/cffi/api.py b/cffi/api.py --- a/cffi/api.py +++ b/cffi/api.py @@ -201

[pypy-commit] cffi default: Fix hyperlink

2012-10-19 Thread arigo
Author: Armin Rigo Branch: Changeset: r999:3436a0eec188 Date: 2012-10-19 17:32 +0200 http://bitbucket.org/cffi/cffi/changeset/3436a0eec188/ Log:Fix hyperlink diff --git a/doc/source/index.rst b/doc/source/index.rst --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -667,7 +667,7 @@ w

[pypy-commit] cffi default: Fix.

2012-10-07 Thread arigo
Author: Armin Rigo Branch: Changeset: r985:46d7c3ff4031 Date: 2012-10-07 18:25 +0200 http://bitbucket.org/cffi/cffi/changeset/46d7c3ff4031/ Log:Fix. diff --git a/testing/test_zdistutils.py b/testing/test_zdistutils.py --- a/testing/test_zdistutils.py +++ b/testing/test_zdistutils.py @@ -124

[pypy-commit] cffi default: Fix this test to run from any current working dir.

2012-10-07 Thread arigo
Author: Armin Rigo Branch: Changeset: r984:660f8bb17cf7 Date: 2012-10-07 18:14 +0200 http://bitbucket.org/cffi/cffi/changeset/660f8bb17cf7/ Log:Fix this test to run from any current working dir. diff --git a/testing/test_verify.py b/testing/test_verify.py --- a/testing/test_verify.py +++ b/

[pypy-commit] cffi default: Fix (thanks Hakan Ardo)

2012-09-27 Thread arigo
Author: Armin Rigo Branch: Changeset: r977:33292fa6fbea Date: 2012-09-27 19:01 +0200 http://bitbucket.org/cffi/cffi/changeset/33292fa6fbea/ Log:Fix (thanks Hakan Ardo) diff --git a/cffi/model.py b/cffi/model.py --- a/cffi/model.py +++ b/cffi/model.py @@ -313,6 +313,7 @@ class EnumType(Stru

[pypy-commit] cffi default: Fix this test file to really avoid reusing the same CRC hashes.

2012-09-25 Thread arigo
Author: Armin Rigo Branch: Changeset: r971:fedb0a316930 Date: 2012-09-25 10:36 +0200 http://bitbucket.org/cffi/cffi/changeset/fedb0a316930/ Log:Fix this test file to really avoid reusing the same CRC hashes. diff --git a/testing/test_zdistutils.py b/testing/test_zdistutils.py --- a/testing/

[pypy-commit] cffi default: Fix for PyPy: load the '.pypy-19.so' file even though find_module()

2012-09-25 Thread arigo
Author: Armin Rigo Branch: Changeset: r970:b5119bf013f8 Date: 2012-09-25 10:24 +0200 http://bitbucket.org/cffi/cffi/changeset/b5119bf013f8/ Log:Fix for PyPy: load the '.pypy-19.so' file even though find_module() tends to return the dummy '.py' file created by setuptools. diff --git

[pypy-commit] cffi default: Fix in backend_ctypes.

2012-09-18 Thread arigo
Author: Armin Rigo Branch: Changeset: r940:0ee9430b3c1d Date: 2012-09-18 11:13 +0200 http://bitbucket.org/cffi/cffi/changeset/0ee9430b3c1d/ Log:Fix in backend_ctypes. diff --git a/cffi/backend_ctypes.py b/cffi/backend_ctypes.py --- a/cffi/backend_ctypes.py +++ b/cffi/backend_ctypes.py @@ -8

  1   2   >