changeset 30169:5f7151e6de85

parsers: alias more PyInt* symbols on Python 3 I feel dirty for having to do this. But this is currently our approach for dealing with PyInt -> PyLong in Python 3 for this file. This removes a ton of compiler warnings by fixing unresolved symbols.
author Gregory Szorc <gregory.szorc@gmail.com>
date Thu, 13 Oct 2016 13:22:40 +0200
parents 1a327889c13c
children 15635d8b17e0
files mercurial/parsers.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/parsers.c	Thu Oct 13 13:17:23 2016 +0200
+++ b/mercurial/parsers.c	Thu Oct 13 13:22:40 2016 +0200
@@ -20,7 +20,10 @@
  * 3 to compile. We should remove this once Python 3 support is fully
  * supported and proper types are used in the extensions themselves. */
 #define PyInt_Type PyLong_Type
+#define PyInt_Check PyLong_Check
 #define PyInt_FromLong PyLong_FromLong
+#define PyInt_FromSsize_t PyLong_FromSsize_t
+#define PyInt_AS_LONG PyLong_AS_LONG
 #define PyInt_AsLong PyLong_AsLong
 #endif