Hye-Shik Chang
f4795c82df
Fix build on MIPS for libffi. I haven't tested this yet because I
...
don't have an access on MIPS machines. Will be tested by buildbot. :)
2006-04-26 19:20:26 +00:00
Thomas Heller
4e1777de63
Fix compiler warnings on Darwin.
...
Patch by Brett Canon, see
https://sourceforge.net/tracker/?func=detail&atid=532156&aid=1475959&group_id=71702
2006-04-25 18:26:08 +00:00
Thomas Heller
4b75a7c1cf
Merge in changes from ctypes 0.9.9.6 upstream version.
2006-04-21 16:48:56 +00:00
Thomas Heller
b6dfaed903
Rename remaining StgDictObject's ffi_type fields to ffi_type_pointer.
2006-04-18 20:09:27 +00:00
Skip Montanaro
058be9adbc
C++ compiler cleanup: the typical few casts, and ... C++ didn't like that
...
the StgDictObject's ffi_type member had the same name as its type. I
changed that to ffi_type_pointer. Feel free to change it to something else
more meaningful, just not ffi_type.
2006-04-18 19:45:17 +00:00
Thomas Heller
9d89299fea
Fix refcounting.
...
This makes 'import ctypes; reload(ctypes)' no longer leak reference counts.
2006-04-18 14:57:39 +00:00
Thomas Heller
eb6f1835b1
Fix for FreeBSD. Fixes http://python.org/sf/1470353 .
...
Looks like a libffi bug.
2006-04-15 20:23:54 +00:00
Thomas Heller
55d031ef23
Fix for a bug found by Armin Rigo, plus test.
...
https://sourceforge.net/tracker/?func=detail&atid=532154&aid=1467852&group_id=71702
2006-04-12 19:07:36 +00:00
Neal Norwitz
b183a25c29
Fix some warnings on HP-UX when using cc/aCC
2006-04-10 01:03:32 +00:00
Thomas Heller
fff61ea025
Expose RTLD_LOCAL and RTLD_GLOBAL always from the _ctypes extension module.
...
If RTLD_LOCAL is not #defined in any header file (Windows), set it to 0.
If RTLD_GLOBAL is not #defined, set it equal to RTLD_LOCAL.
This should fix ctypes on cygwin.
2006-04-06 15:23:16 +00:00
Thomas Heller
430947ac66
Replace a few more 'char' types with 'signed char', to fix test failures
...
on platforms (ppc debian) where 'char' is unsigned.
2006-04-06 09:02:58 +00:00
Neal Norwitz
915ae41b3a
Handle error conditions from PyString_ConcatAndDel().
2006-04-06 08:06:52 +00:00
Neal Norwitz
b038333d4b
Handle ssize_t
...
No need to INCREF then let PyString_ConcatAndDel() DECREF. Just
use PyString_Concat().
Handle error condition if we can't concat.
2006-04-06 08:05:53 +00:00
Thomas Heller
3c423a04ba
Explicitely use 'signed char', to avoid problems on platforms with unsigned char type.
2006-04-05 20:34:18 +00:00
Thomas Heller
0890de3be0
Explicitely use 'signed char', to avoid problems on platforms with unsigned char type.
2006-04-05 19:51:19 +00:00
Thomas Heller
cdab455f9a
Try to fix the build on Mac OS X 10.3. The 'live_support' segment
...
attribute is not supported in this version.
2006-04-03 20:12:41 +00:00
Thomas Heller
db5483be64
Try to fix the tests on OpenBSD. Apparently OpenBSD passes
...
structure parameters differently than other posix-like systems.
2006-04-03 16:19:45 +00:00
Thomas Heller
3987df5adf
Try to build _ctypes on x86 openbsd.
2006-03-30 11:51:58 +00:00
Thomas Heller
bcfcccaf6e
Fix some int/Py_ssize_t issues which led to compiler warnings
...
on 64-bit platforms.
2006-03-22 13:21:16 +00:00
Thomas Heller
59feb6f5cc
Include <malloc.h> on windows, to avoid warnings when compiling with mingw.
...
Don't use SEH when compiling wth mingw.
Use IS_INTRESOURCE to determine function name from function ordinal.
Rewrite the code that allocates and frees callback functions, hopefully
this avoids the coverty warnings: Remove the THUNK typedef, and move the
definition of struct ffi_info into the header file.
2006-03-22 12:59:53 +00:00
Thomas Heller
e502693ee9
Avoid a potential double-free bug.
2006-03-20 14:22:05 +00:00
Thomas Heller
ba29e4c573
Apply patch from Martin v. Loewis: Avoid function pointer casts.
...
https://sourceforge.net/tracker/?func=detail&atid=532156&aid=1453037&group_id=71702
2006-03-20 10:22:42 +00:00
Thomas Heller
711e7f00ca
Fix another bug found by Coverty.
2006-03-20 08:29:28 +00:00
Thomas Heller
e2061dc48e
Fix bug found by Coverty.
2006-03-20 08:28:19 +00:00
Thomas Heller
d59ca8f335
Accessing unaligned structure fields works now on all architectures.
...
Including unittest.
2006-03-20 07:54:01 +00:00