[Python-checkins] cpython (3.5): asyncio: sync overlapped.c with GitHub
victor.stinner
python-checkins at python.org
Fri Apr 1 15:41:03 EDT 2016
https://hg.python.org/cpython/rev/466d2e21acf8
changeset: 100821:466d2e21acf8
branch: 3.5
parent: 100816:b3c79e0ba477
user: Victor Stinner <victor.stinner at gmail.com>
date: Fri Apr 01 21:37:41 2016 +0200
summary:
asyncio: sync overlapped.c with GitHub
On Python 3.3, use aliases:
* PyMem_RawMalloc = PyMem_Malloc
* PyMem_RawFree = PyMem_Free
These aliases are not need in Python 3.5, but this change makes synchronization
of code base simpler.
files:
Modules/overlapped.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/Modules/overlapped.c b/Modules/overlapped.c
--- a/Modules/overlapped.c
+++ b/Modules/overlapped.c
@@ -23,6 +23,12 @@
# define T_POINTER T_ULONGLONG
#endif
+/* Compatibility with Python 3.3 */
+#if PY_VERSION_HEX < 0x03040000
+# define PyMem_RawMalloc PyMem_Malloc
+# define PyMem_RawFree PyMem_Free
+#endif
+
#define F_HANDLE F_POINTER
#define F_ULONG_PTR F_POINTER
#define F_DWORD "k"
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list