Serhiy Storchaka
5e79321742
bpo-30074: Fix compile warnings of _PySlice_Unpack and convert missed ( #1154 )
...
PySlice_GetIndicesEx in _ctypes.c.
2017-04-15 20:11:12 +03:00
Serhiy Storchaka
e41390aca5
bpo-27867: Expand the PySlice_GetIndicesEx macro. ( #1023 ) ( #1046 )
...
(cherry picked from commit b879fe8
)
2017-04-08 11:48:57 +03:00
Serhiy Storchaka
99ba17f553
Issue #29082 : Fixed loading libraries in ctypes by unicode names on Windows.
...
Original patch by Chi Hsuan Yen.
2017-01-12 17:00:32 +02:00
Martin Panter
fd08fdc7be
Issue #25659 : Change assert to TypeError in from_buffer/_copy()
...
Based on suggestion by Eryk Sun.
2016-11-20 09:35:06 +00:00
Ned Deily
0436cebb8f
Issue #24381 : Avoid unused function warning when building bundled macOS libffi.
...
Patch by Vajrasky Kok.
2016-10-20 15:41:11 -04:00
Serhiy Storchaka
36beb5ec13
Issue #27963 : Fixed possible null pointer dereference in ctypes.set_conversion_mode().
...
Patch by Xiang Zhang.
2016-09-27 15:24:13 +03:00
Martin Panter
ca56dd4767
Issue #28139 : Fix messed up indentation
...
Also update the classmethod and staticmethod doc strings and comments to
match the RST documentation.
2016-09-17 07:54:55 +00:00
Martin Panter
6507657ddd
Issue #27895 : Spelling fixes (Contributed by Ville Skyttä).
2016-09-07 12:03:06 +00:00
Martin Panter
6eec87810f
Issue #27570 : Avoid zero-length memcpy() calls with null source pointers
2016-09-07 11:04:41 +00:00
Benjamin Peterson
28e2771f24
Backed out changeset 8b6be1341770
2016-09-05 17:22:09 -07:00
Benjamin Peterson
bbc8fe1841
remove long double from ctypes value union
...
It is unused. It also forces a 16-byte alignment, which creates problems because
Python's allocator only uses 8-byte alignment.
2016-09-05 16:24:52 -07:00
Vinay Sajip
e1f3afbde2
Issue #20160 : Handled passing of large structs to callbacks correctly.
2016-08-05 21:10:26 +01:00
Martin Panter
a850ef698e
Issue #27626 : Spelling fixes in docs, comments and internal names
...
Based on patch by Ville Skyttä.
2016-07-28 01:11:04 +00:00
Martin Panter
e2eacc02bc
Issue #23943 : Fix typos. Patch by Piotr Kasprzyk.
2016-07-28 03:04:04 +00:00
Victor Stinner
2e1a34025c
ctypes: fix CThunkObject_new()
...
* Initialize restype and flags fields to fix a crash when Python runs on a
read-only file system
* Use Py_ssize_t type rather than int for the "i" iterator variable
* Reorder assignements to be able to more easily check if all fields are
initialized
Issue #11048 . Initial patch written by Marcin Bachry.
2016-07-27 16:58:47 +02:00
Martin Panter
b362f75f6e
Issue #25523 : Correct "a" article to "an" article
...
This changes the main documentation, doc strings, source code comments, and a
couple error messages in the test suite. In some cases the word was removed
to fix the grammar.
2015-11-02 03:37:02 +00:00
Martin Panter
b3eaaf0bfc
Issue #22463 : Cure unused function warnings on AIX
2016-06-22 02:46:33 +00:00
Martin Panter
646b528467
Issue #22463 : Backport compiler warning fixes and workarounds
...
* Set but unused variable in Parser/pgen.c in non-debug builds. Patch by
Christian Heimes.
* Unused static function in Modules/readline.c. Patch by Georg Brandl.
* main_window unused in Modules/tkappinit.c. Patch by Gregory P. Smith.
* Dead assignment in Modules/_ctypes/cfield.c. Extracted from patch by Brett
Cannon.
* Expression result unused in PyObject_INIT macro expansions. Based on
patches by Christian Heimes.
* Load expat_config.h and therefore pyconfig.h before C stdlib headers are
loaded. This silences pre-processor warnings including '_POSIX_C_SOURCE
redefined'. Extracted from patch by Christian Heimes.
2016-06-21 23:58:05 +00:00
Serhiy Storchaka
f46d3afc51
ctypes: the type of b_size is Py_ssize_t.
2016-06-17 11:11:07 +03:00
Serhiy Storchaka
ef012cc7f7
Issue #27330 : Fixed possible leaks in the ctypes module.
2016-06-16 22:08:11 +03:00
Martin Panter
200a615774
Issue #27125 : Remove duplicated words from documentation and comments
2016-05-30 04:04:50 +00:00
Martin Panter
f45c1755c3
Remove PEP 291 compatibility requirements for ctypes and modulefinder
...
https://mail.python.org/pipermail/python-dev/2016-May/144502.html
2016-05-14 07:25:37 +00:00
Serhiy Storchaka
9a118f1dc3
Issue #26778 : Fixed "a/an/and" typos in code comment and documentation.
2016-04-17 09:37:36 +03:00
Serhiy Storchaka
763a61ca95
Issue #26200 : Added Py_SETREF and replaced Py_XSETREF with Py_SETREF
...
in places where Py_DECREF was used.
2016-04-10 18:05:12 +03:00
Serhiy Storchaka
bc62af1bbe
Issue #22570 : Renamed Py_SETREF to Py_XSETREF.
2016-04-06 09:51:18 +03:00
Martin Panter
53ae0ba6e3
Issue #26304 : Change "allows to <verb>" to "allows <verb>ing" or similar
...
The original form is incorrect grammar and feels awkward, even though the
meaning is clear.
2016-02-10 05:44:01 +00:00
Serhiy Storchaka
2e6c829681
Issue #20440 : More use of Py_SETREF.
...
This patch is manually crafted and contains changes that couldn't be handled
automatically.
2015-12-27 15:41:58 +02:00
Serhiy Storchaka
5951f2300f
Issue #20440 : Massive replacing unsafe attribute setting code with special
...
macro Py_SETREF.
2015-12-24 10:35:35 +02:00
Victor Stinner
e97944a27e
Issue #23319 : Fix ctypes.BigEndianStructure, swap correctly bytes. Patch
...
written by Matthieu Gautier.
2015-07-29 14:37:17 +02:00
Benjamin Peterson
36691efe7b
fix libffi compilation on FreeBSD ( #23042 )
...
Patch from Marc-Andre Lemburg.
2015-05-08 21:31:36 -04:00
Serhiy Storchaka
37943b07fe
Issue #23338 : Fixed formatting ctypes error messages on Cygwin.
...
Patch by Makoto Kato.
2015-04-04 10:05:35 +03:00
Serhiy Storchaka
a2269d074b
Issue #23446 : Use PyMem_New instead of PyMem_Malloc to avoid possible integer
...
overflows. Added few missed PyErr_NoMemory().
2015-02-16 13:16:07 +02:00
Benjamin Peterson
07f90476b9
fix instances of consecutive articles ( closes #23221 )
...
Patch by Karan Goel.
2015-01-13 09:17:24 -05:00
Benjamin Peterson
9dcab59b08
fix test where sizeof(long) != sizeof(int)
2014-11-06 00:52:58 -05:00
Steve Dower
31221a7285
Issue #20160 : broken ctypes calling convention on MSVC / 64-bit Windows (large structs). Patch by mattip
2014-11-05 19:16:05 -08:00
R David Murray
55bf20ad6e
#13096 : Fix segfault in CTypes POINTER handling of large values.
...
Patch by Meador Inge.
2014-10-12 14:26:30 -04:00
doko@ubuntu.com
baa84b827b
- Issue #22176 : Update the ctypes module's libffi to v3.1. This release
...
adds support for the Linux AArch64 and POWERPC ELF ABIv2 little endian
architectures.
2014-08-10 11:15:28 +02:00
Benjamin Peterson
d3d23636cb
support pep 3118 format strings for ctypes objects with nontrivial shapes ( closes #10744 )
...
Patch from Matti Picus.
2014-05-17 14:57:10 -07:00
Benjamin Peterson
e3af6f0a88
fix ctypes test alignment assumptions ( closes #20946 )
...
Patch by Andreas Schwab.
2014-03-16 10:07:26 +01:00
Serhiy Storchaka
98a9722e4a
Issue #20437 : Fixed 43 potential bugs when deleting objects references.
2014-02-09 13:14:04 +02:00
Serhiy Storchaka
e0ed2d75c8
Issue #19936 : Added executable bits or shebang lines to Python scripts which
...
requires them. Disable executable bits and shebang lines in test and
benchmark files in order to prevent using a random system python, and in
source files of modules which don't provide command line interface.
2014-01-16 18:59:17 +02:00
Christian Heimes
6e0be01bfb
Issue #18178 : Fix ctypes on BSD. dlmalloc.c was compiled twice which broke malloc weak symbols.
2013-08-17 15:01:54 +02:00
Christian Heimes
3aa138fe1d
Fix for r84195: add HAVE_ALLOCA_H to configure and only include alloca.h if it's available
2013-06-18 13:25:24 +02:00
Victor Stinner
c7b0990a05
ctypes: AIX needs an explicit #include <alloca.h> to get alloca()
2013-06-17 22:03:35 +02:00
Gregory P. Smith
06544eacdf
This local change was lost during the fixing of issue17192 to update
...
libffi to 3.0.13. (i'm not sure if it is needed anymore but see
issue 10309 for details which makes no mention of upstream)
2013-04-30 00:08:51 -07:00
Kristján Valur Jónsson
11f989320e
Issue #10296 : Don't handle BreakPoint exceptions using
...
Structured Exception Handling on windows.
2013-03-19 15:24:10 -07:00
Gregory P. Smith
46ce27ab1e
Fixes issue #17192 : Update the ctypes module's libffi to v3.0.13. This
...
specifically addresses a stack misalignment issue on x86 and issues on
some more recent platforms.
2013-03-18 16:58:50 -07:00
Terry Jan Reedy
ce9cc49104
Issue #17047 : remove doubled words found in 2.7 to 3.4 Modules/*,
...
as reported by Serhiy Storchaka and Matthew Barnett.
2013-03-11 17:41:44 -04:00
Serhiy Storchaka
a07a8b4f18
Issue #6083 : Fix multiple segmentation faults occured when PyArg_ParseTuple
...
parses nested mutating sequence.
2013-02-04 12:45:46 +02:00
Stefan Krah
6d3a8605a5
Issue #11729 : Backport commit bff052d9 from libffi upstream in order to fix
...
a ctypes build failure with clang.
2013-01-27 18:00:24 +01:00