[pypy-commit] pypy more-cpyext: cpython compatibility

mattip pypy.commits at gmail.com
Wed Sep 11 11:15:29 EDT 2019


Author: Matti Picus <matti.picus at gmail.com>
Branch: more-cpyext
Changeset: r97443:454d7d902ed4
Date: 2019-09-11 10:11 -0500
http://bitbucket.org/pypy/pypy/changeset/454d7d902ed4/

Log:	cpython compatibility

diff --git a/pypy/module/cpyext/include/Python.h b/pypy/module/cpyext/include/Python.h
--- a/pypy/module/cpyext/include/Python.h
+++ b/pypy/module/cpyext/include/Python.h
@@ -62,14 +62,6 @@
 
 #define Py_USING_UNICODE
 
-/* Convert a possibly signed character to a nonnegative int */
-/* XXX This assumes characters are 8 bits wide */
-#ifdef __CHAR_UNSIGNED__
-#define Py_CHARMASK(c)		(c)
-#else
-#define Py_CHARMASK(c)		((unsigned char)((c) & 0xff))
-#endif
-
 #define statichere static
 
 #define Py_MEMCPY memcpy


More information about the pypy-commit mailing list