public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  master:  * python/python-internal.h (Py_ssize_t): Define as int.
@ 2009-01-05 23:25 tromey
  0 siblings, 0 replies; only message in thread
From: tromey @ 2009-01-05 23:25 UTC (permalink / raw)
  To: archer-commits

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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-01-05 23:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-05 23:25 [SCM] master: * python/python-internal.h (Py_ssize_t): Define as int tromey

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).