From patchwork Wed May 13 17:16:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: util.h: kill no longer needed definitions for Python < 2.5 From: Adrian Buehlmann X-Patchwork-Id: 9058 Message-Id: To: Mercurial-devel@selenic.com Date: Wed, 13 May 2015 19:16:07 +0200 # HG changeset patch # User Adrian Buehlmann # Date 1431536258 -7200 # Node ID fd6b5512d1a15490b40954f43432aaf3da5c1c05 # Parent 10bbdcd8916436f65aa0217b672528acaa0b3db8 util.h: kill no longer needed definitions for Python < 2.5 see e1fb276d4619 diff --git a/mercurial/util.h b/mercurial/util.h --- a/mercurial/util.h +++ b/mercurial/util.h @@ -101,22 +101,6 @@ #endif /* PY_VERSION_HEX */ -#if (PY_VERSION_HEX < 0x02050000) -/* Definitions to get compatibility with python 2.4 and earlier which - does not have Py_ssize_t. See also PEP 353. - Note: msvc (8 or earlier) does not have ssize_t, so we use Py_ssize_t. -*/ -typedef int Py_ssize_t; -typedef Py_ssize_t (*lenfunc)(PyObject *); -typedef PyObject *(*ssizeargfunc)(PyObject *, Py_ssize_t); -#define PyInt_FromSsize_t PyInt_FromLong - -#if !defined(PY_SSIZE_T_MIN) -#define PY_SSIZE_T_MAX INT_MAX -#define PY_SSIZE_T_MIN INT_MIN -#endif -#endif - #ifdef _WIN32 #ifdef _MSC_VER /* msvc 6.0 has problems */