summaryrefslogtreecommitdiffstats
path: root/Include/pyport.h
diff options
context:
space:
mode:
authorLarry Hastings <larry@hastings.org>2013-11-23 22:54:00 (GMT)
committerLarry Hastings <larry@hastings.org>2013-11-23 22:54:00 (GMT)
commitebdcb50b8a0d37af4acd7d2387eae8ff2b5f0b9b (patch)
tree37c439db53352c588bac7c9fb5b05457ce52fa3e /Include/pyport.h
parent3a9079742f2d71e6968823e155f3778473113538 (diff)
downloadcpython-ebdcb50b8a0d37af4acd7d2387eae8ff2b5f0b9b.zip
cpython-ebdcb50b8a0d37af4acd7d2387eae8ff2b5f0b9b.tar.gz
cpython-ebdcb50b8a0d37af4acd7d2387eae8ff2b5f0b9b.tar.bz2
Issue #19730: Argument Clinic now supports all the existing PyArg
"format units" as legacy converters, as well as two new features: "self converters" and the "version" directive.
Diffstat (limited to 'Include/pyport.h')
-rw-r--r--Include/pyport.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Include/pyport.h b/Include/pyport.h
index b6b426a..c706213 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -188,6 +188,13 @@ typedef Py_ssize_t Py_hash_t;
#define SIZEOF_PY_UHASH_T SIZEOF_SIZE_T
typedef size_t Py_uhash_t;
+/* Only used for compatibility with code that may not be PY_SSIZE_T_CLEAN. */
+#ifdef PY_SSIZE_T_CLEAN
+typedef Py_ssize_t Py_ssize_clean_t;
+#else
+typedef int Py_ssize_clean_t;
+#endif
+
/* Largest possible value of size_t.
SIZE_MAX is part of C99, so it might be defined on some
platforms. If it is not defined, (size_t)-1 is a portable