Author: glen Date: Fri Jan 19 16:14:02 2007 GMT Module: SOURCES Tag: AC-branch ---- Log message: - backport Py_ssize_t from python 2.5
---- Files affected: SOURCES: python-Py_ssize_t.patch (NONE -> 1.1.2.1) (NEW) ---- Diffs: ================================================================ Index: SOURCES/python-Py_ssize_t.patch diff -u /dev/null SOURCES/python-Py_ssize_t.patch:1.1.2.1 --- /dev/null Fri Jan 19 17:14:02 2007 +++ SOURCES/python-Py_ssize_t.patch Fri Jan 19 17:13:57 2007 @@ -0,0 +1,21 @@ +--- Python-2.4.4/Include/pyport.h~ 2006-10-02 18:24:15.000000000 +0300 ++++ Python-2.4.4/Include/pyport.h 2007-01-19 18:12:49.008837334 +0200 +@@ -89,6 +89,18 @@ + # error "Python needs a typedef for Py_uintptr_t in pyport.h." + #endif /* HAVE_UINTPTR_T */ + ++/* Py_ssize_t is a signed integral type such that sizeof(Py_ssize_t) == ++ * sizeof(size_t). C99 doesn't define such a thing directly (size_t is an ++ * unsigned integral type). See PEP 353 for details. ++ */ ++#ifdef HAVE_SSIZE_T ++typedef ssize_t Py_ssize_t; ++#elif SIZEOF_VOID_P == SIZEOF_SIZE_T ++typedef Py_intptr_t Py_ssize_t; ++#else ++# error "Python needs a typedef for Py_ssize_t in pyport.h." ++#endif ++ + #include <stdlib.h> + + #include <math.h> /* Moved here from the math section, before extern "C" */ ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
