From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23036 invoked by alias); 5 Jan 2009 23:25:46 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 23011 invoked by uid 306); 5 Jan 2009 23:25:46 -0000 Date: Mon, 05 Jan 2009 23:25:00 -0000 Message-ID: <20090105232546.22995.qmail@sourceware.org> From: tromey@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] master: * python/python-internal.h (Py_ssize_t): Define as int. X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 88f1dd9c85bc39ec239e934981a0c23416c87f5e X-Git-Newrev: 1a00a723098867f4667214ed1a22e2409b347430 X-SW-Source: 2009-q1/txt/msg00003.txt.bz2 List-Id: The branch, master has been updated via 1a00a723098867f4667214ed1a22e2409b347430 (commit) from 88f1dd9c85bc39ec239e934981a0c23416c87f5e (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 1a00a723098867f4667214ed1a22e2409b347430 Author: Tom Tromey Date: Mon Jan 5 20:48:51 2009 +0000 * python/python-internal.h (Py_ssize_t): Define as int. ----------------------------------------------------------------------- Summary of changes: gdb/ChangeLog | 4 ++++ gdb/python/python-internal.h | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) First 500 lines of diff: diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 94d77a8..b959e9a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2009-01-05 Tom Tromey + + * python/python-internal.h (Py_ssize_t): Define as int. + 2009-01-05 Jim Blandy * MAINTAINERS: Fix my e-mail address as steering committee member. diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h index 24d1b44..4e9da33 100644 --- a/gdb/python/python-internal.h +++ b/gdb/python/python-internal.h @@ -33,8 +33,11 @@ #if HAVE_LIBPYTHON2_4 #include "python2.4/Python.h" -/* Py_ssize_t is not defined until 2.5. */ -typedef Py_intptr_t Py_ssize_t; +/* Py_ssize_t is not defined until 2.5. + Logical type for Py_ssize_t is Py_intptr_t, but that fails in 64-bit + compilation due to several apparent mistakes in python2.4 API, so we + use 'int' instead. */ +typedef int Py_ssize_t; #elif HAVE_LIBPYTHON2_5 #include "python2.5/Python.h" #elif HAVE_LIBPYTHON2_6 hooks/post-receive -- Repository for Project Archer.