summaryrefslogtreecommitdiff
path: root/c
Commit message (Collapse)AuthorAgeFilesLines
* Keep the original usages of the macro PyString_AS_STRING as a macro,Armin Rigo2012-08-121-13/+14
| | | | at least on Python 2.
* Better error message.Armin Rigo2012-08-121-2/+2
|
* hack hack hackArmin Rigo2012-08-121-10/+0
|
* Fix test_c to pass both on Python 2.6-2.7 and on Python 3.3.Armin Rigo2012-08-122-95/+125
| | | | | Will not care about Python 3.0-3.2 for the test suite because of the u'' syntax used everywhere, which was re-added in Python 3.3.
* hg merge defaultArmin Rigo2012-08-122-1/+16
|\
| * More regularily in casts to floats.Armin Rigo2012-08-122-1/+16
| |
* | Start to tweak test_c for 3.3.Armin Rigo2012-08-121-3/+9
| |
* | FixesArmin Rigo2012-08-121-12/+16
| |
* | Tests pass on Linux Python 2.6Armin Rigo2012-08-121-2/+2
| |
* | Fixes for 2.6 compatArmin Rigo2012-08-121-17/+21
| |
* | hg merge default, and try to resolve all conflicts.Armin Rigo2012-08-123-335/+745
|\ \ | |/ | | | | Not tested so far.
| * Fix test for Windows.Armin Rigo2012-08-111-0/+3
| |
| * Fix: never send NULL to PyErr_Format().Armin Rigo2012-08-111-6/+9
| |
| * Test for load_library(None).Armin Rigo2012-08-081-1/+11
| |
| * Allow weakrefs to any cdata object, prompted by issue 12.Armin Rigo2012-08-082-60/+55
| |
| * Tentative: allow load_library(None).Armin Rigo2012-08-071-2/+6
| |
| * Fix testsArmin Rigo2012-08-071-2/+4
| |
| * Fix the testsArmin Rigo2012-08-071-1/+2
| |
| * C99 has complex types as standard, at least "_Complex double" andArmin Rigo2012-08-061-0/+34
| | | | | | | | "_Complex float". Added tests but not implemented so far.
| * Revert 0d5efadab0ac and use a different approach: reading a fieldArmin Rigo2012-08-052-18/+28
| | | | | | | | | | | | of type 'foo[0]' returns not a <cdata 'foo[0]'>, but a <cdata 'foo *'>. This is a bit of a special-case, but more consistent with what we can do with the cdata.
| * Workaround: allow out-of-bound array indexes if the array is 'type[0]'.Armin Rigo2012-08-052-1/+14
| |
| * Test and fix.Armin Rigo2012-08-041-1/+10
| |
| * Be more precise: only 'struct *'.Armin Rigo2012-08-041-1/+1
| |
| * Fix the merge: I was getting confused about the numbers of testfuncsArmin Rigo2012-08-042-9/+9
| |
| * hg merge defaultArmin Rigo2012-08-043-242/+544
| |\
| | * Move a repeated piece of code before.Armin Rigo2012-08-041-6/+3
| | |
| | * Don't accidentally decode ints as unicodes.Armin Rigo2012-08-031-2/+4
| | |
| | * As discussed on the mailing list: str() -> ffi.string()Armin Rigo2012-08-032-127/+161
| | |
| | * Skip more things when running on py.py, because the 'c_longdouble'Armin Rigo2012-08-011-7/+11
| | | | | | | | | | | | type doesn't always work (or is missing)
| | * Adapt the tests for pypyArmin Rigo2012-08-012-3/+7
| | |
| | * Implement and document "long double".Armin Rigo2012-08-012-18/+127
| | |
| | * Add the dance of releasing the GIL.Armin Rigo2012-07-311-0/+8
| | |
| | * Found a slow leak on Win32. Don't know how to fix it :-(Armin Rigo2012-07-311-1/+2
| | |
| | * Found out how to properly generalize the "pass a Python string asArmin Rigo2012-07-302-95/+201
| | | | | | | | | | | | | | | a 'char *' argument to a function call". It has the nice effect that the documented example can be simplified.
| | * Bump the version number to 0.3Armin Rigo2012-07-301-1/+1
| | |
| | * Add tests for the fact (implicit so far) that the backend acceptsArmin Rigo2012-07-291-0/+37
| | | | | | | | | | | | for example <cdata 'int'> instead of real integers.
| * | Test and fixArmin Rigo2012-07-272-1/+23
| | |
| * | Fix the last failure in test_verify.Armin Rigo2012-07-271-1/+11
| |/
* | Disable this special case for nowArmin Rigo2012-08-121-0/+2
| |
* | An attempt to port cffi to python3.Amaury Forgeot d'Arc2012-07-291-116/+244
|/ | | | Most tests are passing, yeah!
* Test and fix for an obscure case that raised SystemError instead ofArmin Rigo2012-07-272-19/+26
| | | | the proper TypeError.
* Bump the version number to 0.2.1Armin Rigo2012-07-271-1/+1
|
* Fix testsArmin Rigo2012-07-271-2/+3
|
* Remove _get_ct_long() and a fragile detail about sizeof(ffi_arg).Armin Rigo2012-07-261-19/+7
|
* Test and fix.Armin Rigo2012-07-262-1/+9
|
* This part of the test only really makes sense if wchar_tArmin Rigo2012-07-261-1/+1
| | | | is 4 bytes but unicode chars are 2 bytes.
* Test an invalid cast (in this case, cast-to-struct-type)Armin Rigo2012-07-261-0/+7
|
* Simplify this error messageArmin Rigo2012-07-262-13/+5
|
* Split test_errno into two parts and skip the second part if runningArmin Rigo2012-07-261-1/+6
| | | | inside py.py on top of ll2ctypes on top of an old ctypes.
* Improve the test to check forArmin Rigo2012-07-251-4/+4
| | | | int(unicode-char-that-would-be-accidentally-signed)