6507657dddebc629e49f3dc683d89a96a481fb86 |
|
07-Sep-2016 |
Martin Panter <vadmium+py@gmail.com> |
Issue #27895: Spelling fixes (Contributed by Ville Skyttä).
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
28e2771f24bc43eca3edb7a8f221344f6b886890 |
|
06-Sep-2016 |
Benjamin Peterson <benjamin@python.org> |
Backed out changeset 8b6be1341770
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
bbc8fe1841457089f81bd48cfee08b91ba8445b8 |
|
06-Sep-2016 |
Benjamin Peterson <benjamin@python.org> |
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.
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
e2eacc02bcc9f8977f5f3cea6243f236c508b772 |
|
28-Jul-2016 |
Martin Panter <vadmium+py@gmail.com> |
Issue #23943: Fix typos. Patch by Piotr Kasprzyk.
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
f45c1755c32bac80059e463039f7f0a644593189 |
|
14-May-2016 |
Martin Panter <vadmium+py@gmail.com> |
Remove PEP 291 compatibility requirements for ctypes and modulefinder https://mail.python.org/pipermail/python-dev/2016-May/144502.html
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
d3d23636cbb2fb305f672fa826c3da6a2dc72384 |
|
17-May-2014 |
Benjamin Peterson <benjamin@python.org> |
support pep 3118 format strings for ctypes objects with nontrivial shapes (closes #10744) Patch from Matti Picus.
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
8eeda72742ef98c635ce89e0b0da0af3de508e77 |
|
08-Dec-2012 |
Antoine Pitrou <solipsis@pitrou.net> |
Issue #16628: Fix a memory leak in ctypes.resize().
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
001d3a1d8ac9b5a057a585950182880f5733c608 |
|
08-Aug-2010 |
Thomas Heller <theller@ctypes.org> |
Fis issue5504: ctypes does now work with systems where mmap can't be PROT_WRITE and PROT_EXEC.
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
c83ea137d7e717f764e2f31fc2544f522de7d857 |
|
09-May-2010 |
Antoine Pitrou <solipsis@pitrou.net> |
Untabify C files. Will watch buildbots.
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
b102ddadcbcaaf8fc50e5060e45b89a4d3a3a492 |
|
30-Mar-2010 |
Thomas Heller <theller@ctypes.org> |
Revert rev. 79509; ctypes doesn't build on linux.
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
5006ba0fef6bda6d4e76a14f02a6dcefc3ba57e2 |
|
30-Mar-2010 |
Thomas Heller <theller@ctypes.org> |
Merged revisions 79115,79424,79491 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/branch_libffi-3_0_10-win ........ r79115 | thomas.heller | 2010-03-19 22:14:47 +0100 (Fr, 19 Mrz 2010) | 7 lines Work in progress. 2 tests fail on x86/win32 because the stack checking code in ffi_call_win32 is not yet implemented. 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. ........ r79424 | thomas.heller | 2010-03-25 19:28:02 +0100 (Do, 25 Mrz 2010) | 1 line Build _ctypes on Win64. ........ r79491 | thomas.heller | 2010-03-29 21:30:33 +0200 (Mo, 29 Mrz 2010) | 4 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. ........
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
402b73fb8d54ec2b24b52fdd77d389d903fa6c44 |
|
25-Mar-2010 |
Larry Hastings <larry@hastings.org> |
Backported PyCapsule from 3.1, and converted most uses of CObject to PyCapsule.
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
5c6af808f7721787dcce1bc6bfe14f225f9db6f3 |
|
24-Apr-2009 |
Thomas Heller <theller@ctypes.org> |
Issue #3102: All global symbols that the _ctypes extension defines are now prefixed with 'Py' or '_ctypes'.
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
2d693588024349dac18a882e0ff1b5721f81c89b |
|
16-Apr-2009 |
Thomas Heller <theller@ctypes.org> |
Remove duplicated function declaration. Make _pagesize static.
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
4954ffd98d07ee783a3c718129229ddf886c128c |
|
16-Apr-2009 |
Thomas Heller <theller@ctypes.org> |
Remove unneeded code.
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
ba55936b8ad3788527a959cbb0281a86a4f1af15 |
|
24-Jul-2008 |
Thomas Heller <theller@ctypes.org> |
Make ctypes compatible with Python 2.3, 2.4, and 2.5 again.
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
fbb9c0bf3c029caf02e531dac6df80b88f01b0a0 |
|
06-Jun-2008 |
Thomas Heller <theller@ctypes.org> |
Issue #1798: Add ctypes calling convention that allows safe access of errno. ctypes maintains thread-local storage that has space for two error numbers: private copies of the system 'errno' value and, on Windows, the system error code accessed by the GetLastError() and SetLastError() api functions. Foreign functions created with CDLL(..., use_errno=True), when called, swap the system 'errno' value with the private copy just before the actual function call, and swapped again immediately afterwards. The 'use_errno' parameter defaults to False, in this case 'ctypes_errno' is not touched. On Windows, foreign functions created with CDLL(..., use_last_error=True) or WinDLL(..., use_last_error=True) swap the system LastError value with the ctypes private copy. The values are also swapped immeditately before and after ctypes callback functions are called, if the callbacks are constructed using the new optional use_errno parameter set to True: CFUNCTYPE(..., use_errno=TRUE) or WINFUNCTYPE(..., use_errno=True). New ctypes functions are provided to access the ctypes private copies from Python: - ctypes.set_errno(value) and ctypes.set_last_error(value) store 'value' in the private copy and returns the previous value. - ctypes.get_errno() and ctypes.get_last_error() returns the current ctypes private copies value.
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
2e75c450d23987d49afb2a093f71cd849c2b27b9 |
|
05-Jun-2008 |
Thomas Heller <theller@ctypes.org> |
Backport from py3k: Implement the new buffer interface from pep3118 for ctypes instances. Closes issue #2404.
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
d5bb9215c960da14e138adc88c80daa54e6601c4 |
|
04-Jun-2008 |
Thomas Heller <theller@ctypes.org> |
Revert revisions 63943 and 63942 (Issue #1798: Add ctypes calling convention that allows safe access to errno) This code does not yet work on OS X (__thread storage specifier not available), so i needs a configure check plus a more portable solution.
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
e70c3378c039cae30cd9ae559c4bdeb923254c43 |
|
04-Jun-2008 |
Thomas Heller <theller@ctypes.org> |
Issue #1798: Add ctypes calling convention that allows safe access to errno (and LastError, on Windows). ctypes maintains a module-global, but thread-local, variable that contains an error number; called 'ctypes_errno' for this discussion. This variable is a private copy of the systems 'errno' value; the copy is swapped with the 'errno' variable on several occasions. Foreign functions created with CDLL(..., use_errno=True), when called, swap the values just before the actual function call, and swapped again immediately afterwards. The 'use_errno' parameter defaults to False, in this case 'ctypes_errno' is not touched. The values are also swapped immeditately before and after ctypes callback functions are called, if the callbacks are constructed using the new optional use_errno parameter set to True: CFUNCTYPE(..., use_errno=TRUE) or WINFUNCTYPE(..., use_errno=True). Two new ctypes functions are provided to access the 'ctypes_errno' value from Python: - ctypes.set_errno(value) sets ctypes_errno to 'value', the previous ctypes_errno value is returned. - ctypes.get_errno() returns the current ctypes_errno value. --- On Windows, the same scheme is implemented for the error value which is managed by the GetLastError() and SetLastError() windows api calls. The ctypes functions are 'ctypes.set_last_error(value)' and 'ctypes.get_last_error()', the CDLL and WinDLL optional parameter is named 'use_last_error', defaults to False. --- On Windows, TlsSetValue and TlsGetValue calls are used to provide thread local storage for the variables; ctypes compiled with __GNUC__ uses __thread variables.
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
bf027c48c8547f262f5ef5981c3ae44273ae249d |
|
24-Apr-2008 |
Thomas Heller <theller@ctypes.org> |
Remove cyclic reference in CFuncPtr instances; see issue #2682. Backport candidate for the release25-maint branch.
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
046e6a43ff64885d9f5cdaac13a2b9f6e0ee8c84 |
|
14-Apr-2008 |
Thomas Heller <theller@ctypes.org> |
Issue #2616: Implement ctypes.pointer() and ctypes.POINTER() in C for better performance.
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
12c4e6478afc1fcc60b492bd48441e18882e83d9 |
|
11-Apr-2008 |
Thomas Heller <theller@ctypes.org> |
Move backwards compatibility macro to the correct place; PyIndex_Check() was introduced in Python 2.5.
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
8e8ba151dde6e36a972ef64240f48d63251c43a5 |
|
04-Apr-2008 |
Thomas Heller <theller@ctypes.org> |
Issue #2543: Make ctypes compatible (again) with Python 2.3, 2.4, and 2.5.
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
50a24d8bfdb831f6cb79ad717af6e5c17230763f |
|
18-Mar-2008 |
Thomas Heller <theller@ctypes.org> |
Include <alloca.h> on Solaris, see issue #1506. It would probably be better to have a configure test for that, but this is outside of my configure expertise.
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
a06a1a88ee7c00a43e3bca2634c68aecd0170500 |
|
13-Feb-2008 |
Thomas Heller <theller@ctypes.org> |
Add pickle support to ctypes types.
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
2825b2ea444e3ce03cac7fc562fe6b7166972459 |
|
07-Sep-2007 |
Thomas Heller <theller@ctypes.org> |
Add a 'c_longdouble' type to the ctypes module.
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
ef4fff34351defce057bd45135341fb10557b4f3 |
|
13-Jul-2007 |
Thomas Heller <theller@ctypes.org> |
Fix for SF# 1649098: avoid zero-sized array declaration in structure.
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
410c3b58c925698538452351b25d15d1b816a254 |
|
11-Jun-2007 |
Thomas Heller <theller@ctypes.org> |
Use "O&" in calls to PyArg_Parse when we need a 'void*' instead of "k" or "K" codes.
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
e81c9f6d5e22dbe4252ea578211710daea95347d |
|
08-Jun-2007 |
Thomas Heller <theller@ctypes.org> |
[ 1715718 ] x64 clean compile patch for _ctypes, by Kristj?n Valur with small modifications.
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
1ad576c2672aa8d6cae2bf3427fbcd9e75dc564a |
|
04-May-2007 |
Thomas Heller <theller@ctypes.org> |
Do not truncate 64-bit pointers to 32-bit integers. Fixes SF #1703286, will backport to release25-maint.
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
867200483bd518d4fbd9e3d16f8785b6395af9b7 |
|
14-Aug-2006 |
Thomas Heller <theller@ctypes.org> |
Apply the patch #1532975 plus ideas from the patch #1533481. ctypes instances no longer have the internal and undocumented '_as_parameter_' attribute which was used to adapt them to foreign function calls; this mechanism is replaced by a function pointer in the type's stgdict. In the 'from_param' class methods, try the _as_parameter_ attribute if other conversions are not possible. This makes the documented _as_parameter_ mechanism work as intended. Change the ctypes version number to 1.0.1.
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
9f902470da71f5b4e8142a2defd5aa0ffe474717 |
|
14-Jul-2006 |
Thomas Heller <theller@ctypes.org> |
Make the prototypes of our private PyUnicode_FromWideChar and PyUnicode_AsWideChar replacement functions compatible to the official functions by using Py_ssize_t instead of int.
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
c2da9945852785c7da3c0becc7edd586b5ec628b |
|
12-Jun-2006 |
Thomas Heller <theller@ctypes.org> |
Add pep-291 compatibility markers.
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
45f59ab3eee602613bf44b5410a7d5bb87bf6c3e |
|
10-Jun-2006 |
Thomas Heller <theller@ctypes.org> |
Upgrade to ctypes version 0.9.9.7. Summary of changes: - support for 'variable sized' data - support for anonymous structure/union fields - fix severe bug with certain arrays or structures containing more than 256 fields
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
058be9adbcaa7828be1f7575b5bda64158ab2c3c |
|
18-Apr-2006 |
Skip Montanaro <skip@pobox.com> |
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.
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
59feb6f5cc2d32360f8bdebdd2e0d5df88a389d9 |
|
22-Mar-2006 |
Thomas Heller <theller@ctypes.org> |
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.
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
ba29e4c573bba3650744082276db9afb85e03c3c |
|
20-Mar-2006 |
Thomas Heller <theller@ctypes.org> |
Apply patch from Martin v. Loewis: Avoid function pointer casts. https://sourceforge.net/tracker/?func=detail&atid=532156&aid=1453037&group_id=71702
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
9998f78d6dc78e1e2652f07423e25353a32413a3 |
|
15-Mar-2006 |
Thomas Heller <theller@ctypes.org> |
Backport from upstream version: compatibility with older Python versions.
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
fe8f862cda0e85cc074f8d3f518324b96267185e |
|
14-Mar-2006 |
Thomas Heller <theller@ctypes.org> |
Integrate patch from Neal Norwitz. He writes: """ The attached patch fixes all the ctypes tests so they pass on amd64. It also fixes several warnings. I'm not sure what else to do with the patch. Let me know how you want to handle these in the future. I'm not sure the patch is 100% correct. You will need to decide what can be 64 bits and what can't. I believe sq_{item,slice,ass_item,ass_slice} all need to use Py_ssize_t. The types in ctypes.h may not require all the changes I made. I don't know how you want to support older version, so I unconditionally changed the types to Py_ssize_t. """ The patch is also in the ctypes SVN repository now, after small changes to add compatibility with older Python versions.
/external/python/cpython2/Modules/_ctypes/ctypes.h
|
d4c9320412177895f598a93d73a0e654db27c351 |
|
08-Mar-2006 |
Thomas Heller <theller@ctypes.org> |
Copy ctypes-0.9.9.4 sources from external into the trunk.
/external/python/cpython2/Modules/_ctypes/ctypes.h
|