public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
From: tromey@sourceware.org
To: archer-commits@sourceware.org
Subject: [SCM]  master: 	* python/python-internal.h (Py_ssize_t): Define as int.
Date: Mon, 05 Jan 2009 23:25:00 -0000	[thread overview]
Message-ID: <20090105232546.22995.qmail@sourceware.org> (raw)

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 <tromey@redhat.com>
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  <tromey@redhat.com>
+
+	* python/python-internal.h (Py_ssize_t): Define as int.
+
 2009-01-05  Jim Blandy  <jimb@red-bean.com>
 
 	* 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.


                 reply	other threads:[~2009-01-05 23:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090105232546.22995.qmail@sourceware.org \
    --to=tromey@sourceware.org \
    --cc=archer-commits@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).