[pypy-commit] cffi default: Uh, ffi_closure_alloc() and ffi_closure_free() are already defined

2012-06-15 Thread arigo
Author: Armin Rigo Branch: Changeset: r383:befb2fde6334 Date: 2012-06-16 08:12 +0200 http://bitbucket.org/cffi/cffi/changeset/befb2fde6334/ Log:Uh, ffi_closure_alloc() and ffi_closure_free() are already defined in recent versions of , but of course not all of them. Rename. d

[pypy-commit] cffi default: Increase portability among UNIX systems with a bit of code from ctypes.

2012-06-15 Thread arigo
Author: Armin Rigo Branch: Changeset: r382:49d86c30469e Date: 2012-06-16 08:10 +0200 http://bitbucket.org/cffi/cffi/changeset/49d86c30469e/ Log:Increase portability among UNIX systems with a bit of code from ctypes. diff --git a/c/_ffi_backend.c b/c/_ffi_backend.c --- a/c/_ffi_backe

[pypy-commit] pypy stdlib-2.7.3: hg merge default

2012-06-15 Thread amauryfa
Author: Amaury Forgeot d'Arc Branch: stdlib-2.7.3 Changeset: r55691:5c1e66bdfce6 Date: 2012-06-15 23:43 +0200 http://bitbucket.org/pypy/pypy/changeset/5c1e66bdfce6/ Log:hg merge default diff --git a/ctypes_configure/cbuild.py b/ctypes_configure/cbuild.py --- a/ctypes_configure/cbuild.py +++

[pypy-commit] cffi default: Test and explicit exception in case we call verify() with the ctypes

2012-06-15 Thread arigo
Author: Armin Rigo Branch: Changeset: r381:9f6d56f9bce5 Date: 2012-06-15 23:54 +0200 http://bitbucket.org/cffi/cffi/changeset/9f6d56f9bce5/ Log:Test and explicit exception in case we call verify() with the ctypes backend (instead of the C code getting confused and crashing ob

[pypy-commit] cffi default: Tweaks.

2012-06-15 Thread arigo
Author: Armin Rigo Branch: Changeset: r380:2b02d6beb448 Date: 2012-06-15 23:13 +0200 http://bitbucket.org/cffi/cffi/changeset/2b02d6beb448/ Log:Tweaks. diff --git a/doc/source/index.rst b/doc/source/index.rst --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -423,15 +423,15 @@ types

[pypy-commit] cffi default: Clarify

2012-06-15 Thread arigo
Author: Armin Rigo Branch: Changeset: r379:94db0f48daab Date: 2012-06-15 23:05 +0200 http://bitbucket.org/cffi/cffi/changeset/94db0f48daab/ Log:Clarify diff --git a/doc/source/index.rst b/doc/source/index.rst --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -416,8 +416,8 @@ >>>

[pypy-commit] pypy stdlib-2.7.3: translation fix

2012-06-15 Thread amauryfa
Author: Amaury Forgeot d'Arc Branch: stdlib-2.7.3 Changeset: r55690:6f1d3f378072 Date: 2012-06-15 23:11 +0200 http://bitbucket.org/pypy/pypy/changeset/6f1d3f378072/ Log:translation fix diff --git a/pypy/module/_io/interp_bufferedio.py b/pypy/module/_io/interp_bufferedio.py --- a/pypy/module

[pypy-commit] cffi default: Remove the "static globvar" here, as they are confusing:

2012-06-15 Thread arigo
Author: Armin Rigo Branch: Changeset: r378:710595b1db2a Date: 2012-06-15 23:04 +0200 http://bitbucket.org/cffi/cffi/changeset/710595b1db2a/ Log:Remove the "static globvar" here, as they are confusing: it's usually not about global vars. diff --git a/doc/source/index.rst b/doc/source

[pypy-commit] pypy stdlib-2.7.3: CPython Issue #12213: Fix a buffering bug with interleaved reads and writes that

2012-06-15 Thread amauryfa
Author: Amaury Forgeot d'Arc Branch: stdlib-2.7.3 Changeset: r55689:845d29334d81 Date: 2012-06-15 22:33 +0200 http://bitbucket.org/pypy/pypy/changeset/845d29334d81/ Log:CPython Issue #12213: Fix a buffering bug with interleaved reads and writes that could appear on io.BufferedRandom s

[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

[pypy-commit] cffi default: Access global structures, why not

2012-06-15 Thread arigo
Author: Armin Rigo Branch: Changeset: r375:04d292467b82 Date: 2012-06-15 20:44 +0200 http://bitbucket.org/cffi/cffi/changeset/04d292467b82/ Log:Access global structures, why not diff --git a/testing/test_verify.py b/testing/test_verify.py --- a/testing/test_verify.py +++ b/testing/test_veri

[pypy-commit] cffi default: A test with a global callback that we set from a Python function.

2012-06-15 Thread arigo
Author: Armin Rigo Branch: Changeset: r376:c1ff6d753e22 Date: 2012-06-15 20:47 +0200 http://bitbucket.org/cffi/cffi/changeset/c1ff6d753e22/ Log:A test with a global callback that we set from a Python function. Mildly impressive: it works out of the box. diff --git a/testing/test_ver

[pypy-commit] cffi default: Clarify

2012-06-15 Thread arigo
Author: Armin Rigo Branch: Changeset: r374:c79d5b0fc99b Date: 2012-06-15 20:39 +0200 http://bitbucket.org/cffi/cffi/changeset/c79d5b0fc99b/ Log:Clarify diff --git a/cffi/verifier.py b/cffi/verifier.py --- a/cffi/verifier.py +++ b/cffi/verifier.py @@ -467,7 +467,7 @@ loading_cpy_variabl

[pypy-commit] cffi default: Accessing global array variables. C is fun :-/

2012-06-15 Thread arigo
Author: Armin Rigo Branch: Changeset: r373:96f9a1b9fe69 Date: 2012-06-15 20:39 +0200 http://bitbucket.org/cffi/cffi/changeset/96f9a1b9fe69/ Log:Accessing global array variables. C is fun :-/ diff --git a/c/_ffi_backend.c b/c/_ffi_backend.c --- a/c/_ffi_backend.c +++ b/c/_ffi_backend.c @@ -3

[pypy-commit] cffi default: Simplify the module setup logic; add high-level comments.

2012-06-15 Thread arigo
Author: Armin Rigo Branch: Changeset: r372:f8adb916ed0c Date: 2012-06-15 20:17 +0200 http://bitbucket.org/cffi/cffi/changeset/f8adb916ed0c/ Log:Simplify the module setup logic; add high-level comments. diff --git a/cffi/verifier.py b/cffi/verifier.py --- a/cffi/verifier.py +++ b/cffi/verifi

[pypy-commit] cffi default: Global variables. Needed a bit of refactoring: we cannot return

2012-06-15 Thread arigo
Author: Armin Rigo Branch: Changeset: r371:6c37945392dd Date: 2012-06-15 19:47 +0200 http://bitbucket.org/cffi/cffi/changeset/6c37945392dd/ Log:Global variables. Needed a bit of refactoring: we cannot return directly the extension module any more, because we need to have the

[pypy-commit] cffi default: Remove 'ffi.rawload(None).errno', which was a hack that made sense at

2012-06-15 Thread arigo
Author: Armin Rigo Branch: Changeset: r370:c39a3b9b0286 Date: 2012-06-15 19:46 +0200 http://bitbucket.org/cffi/cffi/changeset/c39a3b9b0286/ Log:Remove 'ffi.rawload(None).errno', which was a hack that made sense at the time where it was 'ffi.C.errno', but no longer really does

[pypy-commit] cffi default: Add support for constants, either via "static sometype const x; "

2012-06-15 Thread arigo
Author: Armin Rigo Branch: Changeset: r369:02aa72e88cf9 Date: 2012-06-15 19:11 +0200 http://bitbucket.org/cffi/cffi/changeset/02aa72e88cf9/ Log:Add support for constants, either via "static sometype const x;" or via "#define X ...". diff --git a/cffi/cparser.py b/cffi/cparser.py ---

[pypy-commit] pypy default: More precise test: can call c_bool(anything). Fix for the whole test.

2012-06-15 Thread arigo
Author: Armin Rigo Branch: Changeset: r55688:13efcfa19df4 Date: 2012-06-15 17:56 +0200 http://bitbucket.org/pypy/pypy/changeset/13efcfa19df4/ Log:More precise test: can call c_bool(anything). Fix for the whole test. diff --git a/lib_pypy/_ctypes/primitive.py b/lib_pypy/_ctypes/primi

[pypy-commit] pypy default: A failing test.

2012-06-15 Thread arigo
Author: Armin Rigo Branch: Changeset: r55687:707182353e1b Date: 2012-06-15 17:52 +0200 http://bitbucket.org/pypy/pypy/changeset/707182353e1b/ Log:A failing test. diff --git a/pypy/module/test_lib_pypy/ctypes_tests/test_cast.py b/pypy/module/test_lib_pypy/ctypes_tests/test_cast.py --- a/pyp

[pypy-commit] pypy default: 'cast_primitive' to a bool: it was not working on non-GNU systems where

2012-06-15 Thread arigo
Author: Armin Rigo Branch: Changeset: r55686:1ef5ed3cd321 Date: 2012-06-15 17:29 +0200 http://bitbucket.org/pypy/pypy/changeset/1ef5ed3cd321/ Log:'cast_primitive' to a bool: it was not working on non-GNU systems where bools are implemented with a "char". This cast should really

[pypy-commit] pypy default: It seems that some versions of ctypes, maybe, return 2 from

2012-06-15 Thread arigo
Author: Armin Rigo Branch: Changeset: r55685:7b07f9f1df29 Date: 2012-06-15 17:27 +0200 http://bitbucket.org/pypy/pypy/changeset/7b07f9f1df29/ Log:It seems that some versions of ctypes, maybe, return 2 from c_bool(2).value. diff --git a/pypy/rpython/lltypesystem/ll2ctypes.py b/pypy/

[pypy-commit] cffi default: Update the example: the buffer is read-write.

2012-06-15 Thread arigo
Author: Armin Rigo Branch: Changeset: r368:b153965be6e6 Date: 2012-06-15 16:44 +0200 http://bitbucket.org/cffi/cffi/changeset/b153965be6e6/ Log:Update the example: the buffer is read-write. diff --git a/doc/source/index.rst b/doc/source/index.rst --- a/doc/source/index.rst +++ b/doc/source/

[pypy-commit] cffi default: Uh, I thought I ran the tests.

2012-06-15 Thread arigo
Author: Armin Rigo Branch: Changeset: r367:3a46368020f3 Date: 2012-06-15 16:43 +0200 http://bitbucket.org/cffi/cffi/changeset/3a46368020f3/ Log:Uh, I thought I ran the tests. diff --git a/cffi/api.py b/cffi/api.py --- a/cffi/api.py +++ b/cffi/api.py @@ -166,7 +166,7 @@ an array. T

[pypy-commit] pypy ppc-jit-backend: Support push and pop of floating point registers.

2012-06-15 Thread edelsohn
Author: edelsohn Branch: ppc-jit-backend Changeset: r55684:21bd23bf1aeb Date: 2012-06-15 10:38 -0400 http://bitbucket.org/pypy/pypy/changeset/21bd23bf1aeb/ Log:Support push and pop of floating point registers. diff --git a/pypy/jit/backend/ppc/ppc_assembler.py b/pypy/jit/backend/ppc/ppc_asse

[pypy-commit] cffi default: Replace ffi.string() with ffi.buffer() and update the docs. Add an

2012-06-15 Thread arigo
Author: Armin Rigo Branch: Changeset: r366:c8cefb96f807 Date: 2012-06-15 16:29 +0200 http://bitbucket.org/cffi/cffi/changeset/c8cefb96f807/ Log:Replace ffi.string() with ffi.buffer() and update the docs. Add an example of how to use it. diff --git a/c/_ffi_backend.c b/c/_ffi_backend

[pypy-commit] cffi default: Fix on 64-bit.

2012-06-15 Thread arigo
Author: Armin Rigo Branch: Changeset: r365:e2e605454124 Date: 2012-06-15 15:32 +0200 http://bitbucket.org/cffi/cffi/changeset/e2e605454124/ Log:Fix on 64-bit. diff --git a/testing/backend_tests.py b/testing/backend_tests.py --- a/testing/backend_tests.py +++ b/testing/backend_tests.py @@ -6

[pypy-commit] cffi default: Use distutils. Took me a while to figure out these lines.

2012-06-15 Thread arigo
Author: Armin Rigo Branch: Changeset: r363:b8bff874b2ce Date: 2012-06-15 11:02 +0200 http://bitbucket.org/cffi/cffi/changeset/b8bff874b2ce/ Log:Use distutils. Took me a while to figure out these lines. diff --git a/cffi/ffiplatform.py b/cffi/ffiplatform.py --- a/cffi/ffiplatform.py +++ b/cf

[pypy-commit] cffi default: - Fixes to silence all -Wall warnings that now show up.

2012-06-15 Thread arigo
Author: Armin Rigo Branch: Changeset: r364:69aa45b4ec38 Date: 2012-06-15 11:20 +0200 http://bitbucket.org/cffi/cffi/changeset/69aa45b4ec38/ Log:- Fixes to silence all -Wall warnings that now show up. - Fixes to the tests to crash upon warnings too. diff --git a/c/_ffi_backend.c b/c/