Benjamin Peterson
eb2389be0e
merge 3.2
2011-03-26 18:18:09 -05:00
Benjamin Peterson
1a07f07337
merge 3.1
2011-03-26 18:17:05 -05:00
Benjamin Peterson
39530f8cbe
always check return value of PyObject_IsInstance for error
2011-03-26 18:04:09 -05:00
Benjamin Peterson
8d6c62dd89
check possible recursive _as_parameter_ to prevent segfault ( closes #1838 )
2011-03-26 17:56:28 -05:00
Ezio Melotti
3b3499ba69
#11565 : Merge with 3.1.
2011-03-16 11:35:38 +02:00
Ezio Melotti
13925008dc
#11565 : Fix several typos. Patch by Piotr Kasprzyk.
2011-03-16 11:05:33 +02:00
Ezio Melotti
b78b4d7bf5
Merge with 3.2
2011-03-15 19:19:04 +02:00
Ezio Melotti
8beaa6c2ec
Revert typo fixes in _cytpes/libffi*
2011-03-15 19:10:51 +02:00
Ezio Melotti
4969f709cc
#11515 : Merge with 3.1.
2011-03-15 05:59:46 +02:00
Ezio Melotti
42da663e6f
#11515 : fix several typos. Patch by Piotr Kasprzyk.
2011-03-15 05:18:48 +02:00
Ezio Melotti
b88ed1549e
#11565 : Merge with 3.2.
2011-03-16 11:38:59 +02:00
Ezio Melotti
3796befe37
Merge with 3.2
2011-03-15 19:21:03 +02:00
Ezio Melotti
373089239b
#11515 : Merge with 3.2.
2011-03-15 06:03:08 +02:00
Victor Stinner
f3fd733f92
Remove useless argument of _PyUnicode_AsDefaultEncodedString()
2011-03-02 01:03:11 +00:00
Brett Cannon
b94767ff44
Issue #8914 : fix various warnings from the Clang static analyzer v254.
2011-02-22 20:15:44 +00:00
Antoine Pitrou
2e811c92c7
Merged revisions 88284 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88284 | antoine.pitrou | 2011-01-31 22:08:57 +0100 (lun., 31 janv. 2011) | 4 lines
Issue #8275 : Fix passing of callback arguments with ctypes under Win64.
Patch by Stan Mihai. Ok'ed by Georg.
........
2011-01-31 21:36:33 +00:00
Antoine Pitrou
0ea622a5c8
Issue #8275 : Fix passing of callback arguments with ctypes under Win64.
...
Patch by Stan Mihai. Ok'ed by Georg.
2011-01-31 21:08:57 +00:00
Victor Stinner
0fcab4a3ed
Issue #9566 : use Py_ssize_t instead of int
2011-01-04 12:59:15 +00:00
Martin v. Löwis
4d0d471a80
Merge branches/pep-0384.
2010-12-03 20:14:31 +00:00
Georg Brandl
d49bf5e8a5
Fix type of hash function.
2010-10-18 07:30:06 +00:00
Amaury Forgeot d'Arc
20f11fe43c
Fix compilation warning in _ctypes module on Window
2010-10-17 08:34:22 +00:00
Georg Brandl
2a531395cd
Get rid of a "unused static function" warning.
2010-10-16 20:33:11 +00:00
Victor Stinner
beb4135b8c
PyUnicode_AsWideCharString() takes a PyObject*, not a PyUnicodeObject*
...
All unicode functions uses PyObject* except PyUnicode_AsWideChar(). Fix the
prototype for the new function PyUnicode_AsWideCharString().
2010-10-07 01:02:42 +00:00
Victor Stinner
749261e241
Issue #8670 : ctypes.c_wchar supports non-BMP characters with 32 bits wchar_t
2010-10-02 11:25:35 +00:00
Victor Stinner
4c2e4fa242
Issue #9979 : Use PyUnicode_AsWideCharString() in _ctypes module
...
* Convert unicode to wide character string before creating the PyCapsule
object
* Catch integer overflow
* Avoid useless memset()
* Prepare the support of surrogates
2010-09-29 10:37:16 +00:00
Hirokazu Yamamoto
ffa272d4d8
Merged revisions 83841,84741 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r83841 | thomas.heller | 2010-08-09 03:16:20 +0900 | 2 lines
Fix issue6869: refcount problem in the _ctypes extension.
........
r84741 | hirokazu.yamamoto | 2010-09-13 01:06:18 +0900 | 2 lines
Fixed refcount bug. I placed Py_INCREF in create_comerror() for compatibility
with Python2.7.
........
2010-09-12 16:19:05 +00:00
Hirokazu Yamamoto
34aa30ca2b
Fixed refcount bug. I placed Py_INCREF in create_comerror() for compatibility
...
with Python2.7.
2010-09-12 16:06:18 +00:00
Ronald Oussoren
2decf22b95
Fix for issue9662, patch by Łukasz Langa in issue5504.
2010-09-05 18:25:59 +00:00
Daniel Stutzbach
8515eaefda
Issue 8781: On systems a signed 4-byte wchar_t and a 4-byte Py_UNICODE, use memcpy to convert between the two (as already done when wchar_t is unsigned)
2010-08-24 21:57:33 +00:00
Antoine Pitrou
e647b4766d
Fix buildbot issues due to _ctypes failing to compile in 3.1.
...
Recorded rollback of revisions 83837,83841 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
2010-08-10 00:22:01 +00:00
Thomas Heller
51d19cf227
Merged revisions 83837,83841 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r83837 | thomas.heller | 2010-08-08 19:58:53 +0200 (So, 08 Aug 2010) | 3 lines
Fix issue5504: ctypes does now work with systems where mmap can't be
PROT_WRITE and PROT_EXEC.
........
r83841 | thomas.heller | 2010-08-08 20:16:20 +0200 (So, 08 Aug 2010) | 2 lines
Fix issue6869: refcount problem in the _ctypes extension.
........
2010-08-08 18:24:06 +00:00
Thomas Heller
bf4cc5d469
Fix issue6869: refcount problem in the _ctypes extension.
2010-08-08 18:16:20 +00:00
Thomas Heller
864cc6703a
Fix issue5504: ctypes does now work with systems where mmap can't be
...
PROT_WRITE and PROT_EXEC.
2010-08-08 17:58:53 +00:00
Georg Brandl
527a5cf1e6
Merged revisions 83325,83328,83341 via svnmerge from
...
svn+ssh://svn.python.org/python/branches/py3k
........
r83325 | georg.brandl | 2010-07-31 11:37:03 +0200 (Sa, 31 Jul 2010) | 1 line
Copy Sun-specific inclusion of <alloca.h> from 2.7 maint to trunk; it seems to not have been merged to py3k.
........
r83328 | raymond.hettinger | 2010-07-31 12:14:41 +0200 (Sa, 31 Jul 2010) | 1 line
Document how to change OrderedDict update order from first to last.
........
r83341 | georg.brandl | 2010-07-31 13:40:07 +0200 (Sa, 31 Jul 2010) | 1 line
#9430 : document timedelta str() and repr().
........
2010-08-01 19:21:34 +00:00
Georg Brandl
ca9400f051
Copy Sun-specific inclusion of <alloca.h> from 2.7 maint to trunk; it seems to not have been merged to py3k.
2010-07-31 09:37:03 +00:00
Victor Stinner
cf448832eb
Issue #8966 : ctypes: Remove implicit bytes-unicode conversion
2010-07-28 00:15:03 +00:00
Benjamin Peterson
e0edb8b3cd
Merged revisions 79894-79895,80098,80120 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79894 | jeroen.ruigrok | 2010-04-07 09:33:37 -0500 (Wed, 07 Apr 2010) | 5 lines
FreeBSD is not a sysv platform, so use freebsd.S instead of sysv.S (as is
also the case in FreeBSD's port of libffi).
Reviewed by: dickinsm
........
r79895 | jeroen.ruigrok | 2010-04-07 11:34:08 -0500 (Wed, 07 Apr 2010) | 2 lines
Document the libffi FreeBSD fix.
........
r80098 | benjamin.peterson | 2010-04-15 16:42:16 -0500 (Thu, 15 Apr 2010) | 1 line
add space
........
r80120 | antoine.pitrou | 2010-04-16 16:34:02 -0500 (Fri, 16 Apr 2010) | 3 lines
Ignore jinja2
........
2010-06-27 23:49:45 +00:00
Thomas Heller
b00697e67c
Merged revisions 82126-82127 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r82126 | thomas.heller | 2010-06-21 16:00:24 +0200 (Mo, 21 Jun 2010) | 1 line
Fix #8959 by reverting revision 80761.
........
r82127 | thomas.heller | 2010-06-21 17:01:18 +0200 (Mo, 21 Jun 2010) | 2 lines
Add tests for problems reported in issue 8959.
........
2010-06-21 16:00:31 +00:00
Victor Stinner
da0eca427a
Issue #8966 : If a ctypes structure field is an array of c_char, convert its
...
value to bytes instead of str (as done for c_char and c_char_p).
2010-06-11 21:50:30 +00:00
Victor Stinner
7eeb5b5e50
Issue #8848 : U / U# formats of Py_BuildValue() are just alias to s / s#
2010-06-07 19:57:46 +00:00
Antoine Pitrou
7f14f0d8a0
Recorded merge of revisions 81032 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r81032 | antoine.pitrou | 2010-05-09 17:52:27 +0200 (dim., 09 mai 2010) | 9 lines
Recorded merge of revisions 81029 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines
Untabify C files. Will watch buildbots.
........
................
2010-05-09 16:14:21 +00:00
Antoine Pitrou
f95a1b3c53
Recorded merge of revisions 81029 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines
Untabify C files. Will watch buildbots.
........
2010-05-09 15:52:27 +00:00
Thomas Heller
667ce06de4
Merged revisions 80761,80766 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80761 | thomas.heller | 2010-05-04 20:44:42 +0200 (Di, 04 Mai 2010) | 8 lines
On Windows, ctypes does no longer check the stack before and after
calling a foreign function. This allows to use the unmodified libffi
library.
Remove most files from _ctypes/libffi_msvc, only two include files
stay (updated from _ctypes/libffi/...). Other files are used in the
cross-platform _ctypes/libffi directory.
........
r80766 | thomas.heller | 2010-05-04 21:08:18 +0200 (Di, 04 Mai 2010) | 2 lines
Remove reference to unused source file.
........
2010-05-04 19:17:41 +00:00
Victor Stinner
ba1f449ca2
Merged revisions 80159 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r80159 | victor.stinner | 2010-04-18 02:00:44 +0200 (dim., 18 avril 2010) | 3 lines
Issue #8394 : _ctypes.dlopen() accepts bytes, bytearray and str with
surrogates.
........
2010-04-18 00:03:40 +00:00
Victor Stinner
738446f0f7
Issue #8394 : _ctypes.dlopen() accepts bytes, bytearray and str with
...
surrogates.
2010-04-18 00:00:44 +00:00
Victor Stinner
febecd8276
Merged revisions 79892 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79892 | martin.v.loewis | 2010-04-07 13:01:46 +0200 (mer., 07 avril 2010) | 2 lines
Issue #8314 : Fix unsigned long long bug in libffi on Sparc v8.
........
2010-04-16 12:07:30 +00:00
Matthias Klose
9a6587747c
Merged revisions 79101 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79101 | matthias.klose | 2010-03-19 19:59:20 +0100 (Fr, 19 Mär 2010) | 3 lines
update libffi to commit 59a259f4d348f593b45f452309f4d020a28051c4 from the
trunk (adding msvc port).
........
2010-03-19 19:02:09 +00:00
Matthias Klose
fb60f8002c
Merged revisions 79098 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79098 | matthias.klose | 2010-03-19 18:46:33 +0100 (Fr, 19 Mär 2010) | 8 lines
Generate libffi's Makefiles again to be able to run the libffi testsuite
-- Diese und die folgenden Zeilen werden ignoriert --
M _ctypes/libffi/configure
M _ctypes/libffi/configure.ac
M _ctypes/libffi/aclocal.m4
M _ctypes/libffi.diff
........
2010-03-19 17:47:21 +00:00
Matthias Klose
a8349756fa
Merged revisions 78968-78969 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78968 | matthias.klose | 2010-03-15 01:02:36 +0100 (Mon, 15 Mar 2010) | 226 lines
- Issue #8142 : Update libffi to the 3.0.9 release.
........
r78969 | matthias.klose | 2010-03-15 01:36:18 +0100 (Mon, 15 Mar 2010) | 7 lines
Backport from the libffi trunk:
2010-02-15 Matthias Klose <doko@ubuntu.com>
* src/arm/sysv.S (__ARM_ARCH__): Define for processor
__ARM_ARCH_7EM__.
........
2010-03-15 13:25:28 +00:00
Larry Hastings
e5fd21f11f
Merged revisions 78435 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r78435 | larry.hastings | 2010-02-24 17:49:58 -0500 (Wed, 24 Feb 2010) | 4 lines
Issue #5939 : Add additional runtime checking to ensure a valid capsule
in Modules/_ctypes/callproc.c. Reviewed by Benjamin P. My first commit!
........
2010-02-24 22:58:18 +00:00