[pypy-commit] cffi default: Missing case: verify() with a function with varargs.

2012-06-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r427:9de1d659cad3 Date: 2012-06-17 23:17 +0200 http://bitbucket.org/cffi/cffi/changeset/9de1d659cad3/ Log:Missing case: verify() with a function with varargs. diff --git a/cffi/verifier.py b/cffi/verifier.py --- a/cffi/verifier.py +++ b/cffi/verifier.py

[pypy-commit] cffi default: Reduce README.md to a pointer to the readthedocs page.

2012-06-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r426:edbc94462b8e Date: 2012-06-17 20:43 +0200 http://bitbucket.org/cffi/cffi/changeset/edbc94462b8e/ Log:Reduce README.md to a pointer to the readthedocs page. diff --git a/README.md b/README.md --- a/README.md +++ b/README.md @@ -1,106 +1,15 @@ CFFI

[pypy-commit] cffi default: Sign.

2012-06-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r425:8131dfcf57b2 Date: 2012-06-17 20:24 +0200 http://bitbucket.org/cffi/cffi/changeset/8131dfcf57b2/ Log:Sign. diff --git a/doc/source/index.rst b/doc/source/index.rst --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -576,6 +576,8 @@ We hope t

[pypy-commit] cffi default: Mention PyPy, at least.

2012-06-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r424:169c1f927c9a Date: 2012-06-17 20:21 +0200 http://bitbucket.org/cffi/cffi/changeset/169c1f927c9a/ Log:Mention PyPy, at least. diff --git a/doc/source/index.rst b/doc/source/index.rst --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -44,9 +44

[pypy-commit] cffi default: Add demo/__pycache__ to hgignore

2012-06-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r423:e754f44fcc3a Date: 2012-06-17 20:09 +0200 http://bitbucket.org/cffi/cffi/changeset/e754f44fcc3a/ Log:Add demo/__pycache__ to hgignore diff --git a/.hgignore b/.hgignore --- a/.hgignore +++ b/.hgignore @@ -3,4 +3,5 @@ *~ .*.swp testing/__pycache_

[pypy-commit] cffi default: Linkify.

2012-06-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r422:cdf38ced47fa Date: 2012-06-17 20:05 +0200 http://bitbucket.org/cffi/cffi/changeset/cdf38ced47fa/ Log:Linkify. diff --git a/doc/source/index.rst b/doc/source/index.rst --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -67,13 +67,14 @@ Demo

[pypy-commit] cffi default: Mention demos.

2012-06-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r421:3d8c6a7029cf Date: 2012-06-17 20:04 +0200 http://bitbucket.org/cffi/cffi/changeset/3d8c6a7029cf/ Log:Mention demos. diff --git a/doc/source/index.rst b/doc/source/index.rst --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -65,6 +65,18 @@

[pypy-commit] cffi default: Should work on Win32, but I guess not out of the box on Win64.

2012-06-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r420:421f5cb4cfe0 Date: 2012-06-17 19:58 +0200 http://bitbucket.org/cffi/cffi/changeset/421f5cb4cfe0/ Log:Should work on Win32, but I guess not out of the box on Win64. diff --git a/doc/source/index.rst b/doc/source/index.rst --- a/doc/source/index.rst

[pypy-commit] cffi default: Document

2012-06-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r419:1c31579fb9da Date: 2012-06-17 19:57 +0200 http://bitbucket.org/cffi/cffi/changeset/1c31579fb9da/ Log:Document diff --git a/doc/source/index.rst b/doc/source/index.rst --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -57,7 +57,7 @@ * http

[pypy-commit] cffi default: typo

2012-06-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r418:42c72d04b6f8 Date: 2012-06-17 19:54 +0200 http://bitbucket.org/cffi/cffi/changeset/42c72d04b6f8/ Log:typo diff --git a/doc/source/index.rst b/doc/source/index.rst --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -283,7 +283,7 @@ compili

[pypy-commit] cffi default: Linkify.

2012-06-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r417:c29580408dbb Date: 2012-06-17 19:53 +0200 http://bitbucket.org/cffi/cffi/changeset/c29580408dbb/ Log:Linkify. diff --git a/doc/source/index.rst b/doc/source/index.rst --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -275,7 +275,7 @@ imp

[pypy-commit] cffi default: Even advanced use cases of macros are possible, if we wrap them

2012-06-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r416:2149bed2b0c7 Date: 2012-06-17 19:51 +0200 http://bitbucket.org/cffi/cffi/changeset/2149bed2b0c7/ Log:Even advanced use cases of macros are possible, if we wrap them in some custom C code. diff --git a/doc/source/index.rst b/doc/source/index

[pypy-commit] cffi default: Capitalize

2012-06-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r415:3e84029d2a66 Date: 2012-06-17 19:46 +0200 http://bitbucket.org/cffi/cffi/changeset/3e84029d2a66/ Log:Capitalize diff --git a/doc/source/index.rst b/doc/source/index.rst --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -6,7 +6,7 @@ Foreig

[pypy-commit] cffi default: Fix

2012-06-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r414:413a356c702e Date: 2012-06-17 19:17 +0200 http://bitbucket.org/cffi/cffi/changeset/413a356c702e/ Log:Fix diff --git a/doc/source/index.rst b/doc/source/index.rst --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -428,7 +428,7 @@ 'Hello'

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

2012-06-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r413:89d424825a45 Date: 2012-06-17 19:16 +0200 http://bitbucket.org/cffi/cffi/changeset/89d424825a45/ Log:Add a warning. diff --git a/doc/source/index.rst b/doc/source/index.rst --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -356,7 +356,10 @@

[pypy-commit] cffi default: Link to an example.

2012-06-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r412:b55d529c7010 Date: 2012-06-17 19:10 +0200 http://bitbucket.org/cffi/cffi/changeset/b55d529c7010/ Log:Link to an example. diff --git a/doc/source/index.rst b/doc/source/index.rst --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -273,7 +273,8

[pypy-commit] cffi default: A partial implementation of '_curses', done in one hour :-)

2012-06-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r411:ea5496b6ab34 Date: 2012-06-17 19:03 +0200 http://bitbucket.org/cffi/cffi/changeset/ea5496b6ab34/ Log:A partial implementation of '_curses', done in one hour :-) diff --git a/demo/_curses.py b/demo/_curses.py new file mode 100644 --- /dev/null +++ b

[pypy-commit] cffi default: Mention more clearly that p.x and p->x in C become the same thing in Python.

2012-06-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r410:495daf2ca4a5 Date: 2012-06-17 17:33 +0200 http://bitbucket.org/cffi/cffi/changeset/495daf2ca4a5/ Log:Mention more clearly that p.x and p->x in C become the same thing in Python. diff --git a/doc/source/index.rst b/doc/source/index.rst --- a

[pypy-commit] pypy default: The double version of this also can't produce gc pointers.

2012-06-17 Thread alex_gaynor
Author: Alex Gaynor Branch: Changeset: r55703:f4ed41fe4499 Date: 2012-06-17 10:32 -0500 http://bitbucket.org/pypy/pypy/changeset/f4ed41fe4499/ Log:The double version of this also can't produce gc pointers. diff --git a/pypy/translator/c/gcc/trackgcroot.py b/pypy/translator/c/gcc/trackgcroo

[pypy-commit] pypy default: movups cannot produce gc pointers

2012-06-17 Thread alex_gaynor
Author: Alex Gaynor Branch: Changeset: r55702:34401a96ea7d Date: 2012-06-17 10:30 -0500 http://bitbucket.org/pypy/pypy/changeset/34401a96ea7d/ Log:movups cannot produce gc pointers diff --git a/pypy/translator/c/gcc/trackgcroot.py b/pypy/translator/c/gcc/trackgcroot.py --- a/pypy/translato

[pypy-commit] cffi default: Note that the buffer only works to read/write in files opened

2012-06-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r409:c65dc7d34f2c Date: 2012-06-17 16:38 +0200 http://bitbucket.org/cffi/cffi/changeset/c65dc7d34f2c/ Log:Note that the buffer only works to read/write in files opened in binary mode. diff --git a/doc/source/index.rst b/doc/source/index.rst ---

[pypy-commit] cffi default: Add a separator line.

2012-06-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r408:fdfe913bd856 Date: 2012-06-17 16:29 +0200 http://bitbucket.org/cffi/cffi/changeset/fdfe913bd856/ Log:Add a separator line. diff --git a/doc/source/index.rst b/doc/source/index.rst --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -181,6 +181

[pypy-commit] cffi default: Add also this, which uses bsdopendirtype.py to expose

2012-06-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r407:4b7575eb9037 Date: 2012-06-17 16:21 +0200 http://bitbucket.org/cffi/cffi/changeset/4b7575eb9037/ Log:Add also this, which uses bsdopendirtype.py to expose a version of py.cleanup. (It is much faster than the py.cleanup from py lib,

[pypy-commit] cffi default: Missing Py_INCREF().

2012-06-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r406:5b263c5b416c Date: 2012-06-17 16:16 +0200 http://bitbucket.org/cffi/cffi/changeset/5b263c5b416c/ Log:Missing Py_INCREF(). diff --git a/c/_ffi_backend.c b/c/_ffi_backend.c --- a/c/_ffi_backend.c +++ b/c/_ffi_backend.c @@ -1092,6 +1092,7 @@ { C

[pypy-commit] cffi default: Split setup.py into a part in setup_base.py that can be used

2012-06-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r404:aa1d065d886c Date: 2012-06-17 15:28 +0200 http://bitbucket.org/cffi/cffi/changeset/aa1d065d886c/ Log:Split setup.py into a part in setup_base.py that can be used even without having installed 'setuptools' previously. diff --git a/setup.py b

[pypy-commit] cffi default: Cast from None (as a NULL pointer) to an integer.

2012-06-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r405:80faa502d66d Date: 2012-06-17 15:43 +0200 http://bitbucket.org/cffi/cffi/changeset/80faa502d66d/ Log:Cast from None (as a NULL pointer) to an integer. diff --git a/c/_ffi_backend.c b/c/_ffi_backend.c --- a/c/_ffi_backend.c +++ b/c/_ffi_backend.c @@

[pypy-commit] cffi default: Add another example. This one segfaults CPython on a bogus

2012-06-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r403:5aff894301f6 Date: 2012-06-17 15:28 +0200 http://bitbucket.org/cffi/cffi/changeset/5aff894301f6/ Log:Add another example. This one segfaults CPython on a bogus reference count issue. Needs to investigate. diff --git a/demo/bsdopendirtype.py

[pypy-commit] cffi default: Test iteration over array cdatas, and found out that we need more code.

2012-06-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r402:5a64a124c201 Date: 2012-06-17 14:46 +0200 http://bitbucket.org/cffi/cffi/changeset/5a64a124c201/ Log:Test iteration over array cdatas, and found out that we need more code. diff --git a/c/_ffi_backend.c b/c/_ffi_backend.c --- a/c/_ffi_backe

[pypy-commit] cffi default: Write a passing test about files and buffers.

2012-06-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r401:d862ba0c2d0d Date: 2012-06-17 14:45 +0200 http://bitbucket.org/cffi/cffi/changeset/d862ba0c2d0d/ Log:Write a passing test about files and buffers. diff --git a/testing/backend_tests.py b/testing/backend_tests.py --- a/testing/backend_tests.py +++ b

[pypy-commit] pypy stm-thread: Update docs.

2012-06-17 Thread arigo
Author: Armin Rigo Branch: stm-thread Changeset: r55701:55e0d80a3edb Date: 2012-06-17 12:55 +0200 http://bitbucket.org/pypy/pypy/changeset/55e0d80a3edb/ Log:Update docs. diff --git a/pypy/doc/stm.rst b/pypy/doc/stm.rst --- a/pypy/doc/stm.rst +++ b/pypy/doc/stm.rst @@ -114,10 +114,17 @@ been

[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: Remove the limitation about "typedef ... foo_t", and change the test.

2012-06-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r399:f688bc624218 Date: 2012-06-17 11:44 +0200 http://bitbucket.org/cffi/cffi/changeset/f688bc624218/ Log:Remove the limitation about "typedef ... foo_t", and change the test. diff --git a/cffi/cparser.py b/cffi/cparser.py --- a/cffi/cparser.py

[pypy-commit] cffi default: Test for 'ffi.cast("foo*", None) == None'. Documentation.

2012-06-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r398:b7a980b11462 Date: 2012-06-17 11:21 +0200 http://bitbucket.org/cffi/cffi/changeset/b7a980b11462/ Log:Test for 'ffi.cast("foo*", None) == None'. Documentation. diff --git a/c/_ffi_backend.c b/c/_ffi_backend.c --- a/c/_ffi_backend.c +++ b/c/_ffi_back

[pypy-commit] cffi default: Fix the issue. Tests pass but would need some review because it's

2012-06-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r397:b33e90bc3e69 Date: 2012-06-17 11:11 +0200 http://bitbucket.org/cffi/cffi/changeset/b33e90bc3e69/ Log:Fix the issue. Tests pass but would need some review because it's slightly fragile... But it's enough to have the simple xclient.py

[pypy-commit] cffi default: A non-passing test, a bit annoying: how are we supposed to fill in

2012-06-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r396:874950ec032e Date: 2012-06-16 18:42 +0200 http://bitbucket.org/cffi/cffi/changeset/874950ec032e/ Log:A non-passing test, a bit annoying: how are we supposed to fill in the anonymous struct types declared in the middle of a typedef? diff --g

[pypy-commit] cffi default: Check extra spaces around #define.

2012-06-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r394:0d7f559c2d25 Date: 2012-06-16 17:26 +0200 http://bitbucket.org/cffi/cffi/changeset/0d7f559c2d25/ Log:Check extra spaces around #define. diff --git a/testing/test_verify.py b/testing/test_verify.py --- a/testing/test_verify.py +++ b/testing/test_ver

[pypy-commit] cffi default: ffi.buffer() with an optional second argument "size".

2012-06-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r395:f19a438dc009 Date: 2012-06-16 17:44 +0200 http://bitbucket.org/cffi/cffi/changeset/f19a438dc009/ Log:ffi.buffer() with an optional second argument "size". diff --git a/c/_ffi_backend.c b/c/_ffi_backend.c --- a/c/_ffi_backend.c +++ b/c/_ffi_backend.

[pypy-commit] cffi default: Add a passing test.

2012-06-17 Thread arigo
Author: Armin Rigo Branch: Changeset: r393:e63d2411b1ab Date: 2012-06-16 17:25 +0200 http://bitbucket.org/cffi/cffi/changeset/e63d2411b1ab/ Log:Add a passing test. diff --git a/testing/test_verify.py b/testing/test_verify.py --- a/testing/test_verify.py +++ b/testing/test_verify.py @@ -379,