]> granicus.if.org Git - python/commitdiff
Py_ssize_t is defined regardless of HAVE_LONG_LONG. Will backport
authorNeal Norwitz <nnorwitz@gmail.com>
Fri, 3 Aug 2007 06:46:29 +0000 (06:46 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Fri, 3 Aug 2007 06:46:29 +0000 (06:46 +0000)
Include/structmember.h
Misc/NEWS

index ce5353d515404b773abfbe961133be297bab62e1..5b68213c65e009985a960fb72e0d232a91c1ddbf 100644 (file)
@@ -68,9 +68,11 @@ typedef struct PyMemberDef {
 #ifdef HAVE_LONG_LONG
 #define T_LONGLONG      17  
 #define T_ULONGLONG      18
-#define T_PYSSIZET       19 /* Py_ssize_t */
 #endif /* HAVE_LONG_LONG */
 
+#define T_PYSSIZET       19 /* Py_ssize_t */
+
+
 /* Flags */
 #define READONLY       1
 #define RO             READONLY                /* Shorthand */
index a79810def523c35fb67aa8fbc50e99d24d661072..123e911d3558d8282d82cbd13307c3ba3f93f4cf 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,8 @@ What's New in Python 2.6 alpha 1?
 Core and builtins
 -----------------
 
+- Py_ssize_t fields work in structmember when HAVE_LONG_LONG is not defined.
+
 - PEP 3123: Provide forward compatibility with Python 3.0, while keeping
   backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and
   PyVarObject_HEAD_INIT.