Georg Brandl
e363b1434d
Fix refleaks in _ctypes PyCSimpleType_New, which fixes the refleak seen in test___all__.
2009-10-17 08:57:43 +00:00
Ronald Oussoren
16766d7cd6
Merge a newer version of libffi_osx, based on the
...
version of libffi in OSX 10.6.1.
This fixes issue6918
2009-09-20 18:54:16 +00:00
Thomas Heller
d25fb2ff1f
Remove unused variable and static function to fix compiler warnings.
2009-09-19 10:04:54 +00:00
Thomas Heller
6be522bfc2
Issue #4606 : Passing 'None' if ctypes argtype is set to POINTER(...)
...
does now always result in NULL.
2009-09-18 20:05:44 +00:00
Thomas Heller
7a352c0ed8
Issue #5042 : Structure sub-subclass does now initialize correctly with
...
base class positional arguments.
2009-09-18 18:55:17 +00:00
Thomas Heller
81809a42c1
Make ctypes compile again with older Python versions.
2009-09-08 19:24:36 +00:00
Thomas Heller
d8431ae3bd
Revert rev 74134, as it does not completely fixx issue #6493 .
2009-07-21 19:04:02 +00:00
Thomas Heller
6adda9641d
Issue #6493 : Fix a ctypes problem setting bitfields more than 31 bits
...
wide.
2009-07-21 06:27:14 +00:00
Mark Dickinson
cf4ad76a0a
typos in ctypes Module
2009-05-20 17:55:31 +00:00
Jeffrey Yasskin
1aa4700234
PyCode_NewEmpty:
...
Most uses of PyCode_New found by http://www.google.com/codesearch?q=PyCode_New
are trying to build an empty code object, usually to put it in a dummy frame
object. This patch adds a PyCode_NewEmpty wrapper which lets the user specify
just the filename, function name, and first line number, instead of also
requiring lots of code internals.
2009-05-08 21:51:06 +00:00
Thomas Heller
fd1ee7a8a0
Add a file that contains diffs between offical libffi files and the
...
files in this repository. Should make it easier to merge new libffi
versions.
2009-05-08 20:09:40 +00:00
Mark Dickinson
929ab93489
Issue #5933 : Fix some gcc -Wextra warnings. Thanks Victor Stinner for
...
the patch.
2009-05-05 17:41:47 +00:00
Thomas Heller
90c61a2e09
Issue #4305 : ctypes fails to build on mipsel-linux-gnu (detects mips
...
instead of mipsel)
2009-04-28 19:23:41 +00:00
Thomas Heller
e09f161618
Issue #5078 : Avoid redundant call to FormatError()
2009-04-25 16:37:18 +00:00
Thomas Heller
5c6af808f7
Issue #3102 : All global symbols that the _ctypes extension defines are
...
now prefixed with 'Py' or '_ctypes'.
2009-04-24 20:31:47 +00:00
Thomas Heller
ec21ccde12
Issue 5041: ctypes unwilling to allow pickling wide character.
2009-04-24 20:00:41 +00:00
Thomas Heller
2d69358802
Remove duplicated function declaration.
...
Make _pagesize static.
2009-04-16 06:42:02 +00:00
Thomas Heller
4954ffd98d
Remove unneeded code.
2009-04-16 06:26:33 +00:00
Mark Dickinson
3e4caeb3bf
Issue #5341 : Fix a variety of spelling errors.
2009-02-21 20:27:01 +00:00
Georg Brandl
2c07929770
Fix warnings GCC emits where the argument of PyErr_Format is a single variable.
2009-02-13 11:10:04 +00:00
Thomas Heller
3689ae256e
Issue#5203: ctypes segfaults when passing a unicode string to a
...
function without argtypes, if HAVE_USABLE_WCHAR_T is false.
2009-02-10 18:43:01 +00:00
Thomas Heller
7757d7bb51
This refactoring should make it easier to add new calling conventions.
...
Replace ffi_call_STDCALL and ffi_call_SYSV by a ffi_call_x86 function
that cleans up the stack when FFI_SYSV is used, and does nothing for
FFI_STDCALL.
Remove libffi_msvc\win32.S, which is out of date and also unused; it
was only used for building ctypes with the MingW compiler.
2009-02-03 17:07:40 +00:00
Amaury Forgeot d'Arc
59ce042766
#4077 : No need to append \n when calling Py_FatalError
...
+ fix a declaration to make it match the one in pythonrun.h
2009-01-17 20:18:59 +00:00
Thomas Heller
3a6a0431d0
Fix refcount leak in error cases. Bug found by coverity.
2009-01-13 17:32:28 +00:00
Christian Heimes
dee3c9c606
Issue #4025 again
...
Converted a C99 style comment to a C89 style comment (found by MAL).
2008-12-03 00:53:18 +00:00