public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
From: tromey@sourceware.org
To: archer-commits@sourceware.org
Subject: [SCM]  archer-tromey-python: 	* python/python-membuf.c (CHARBUFFERPROC_NAME): New define.
Date: Thu, 08 Jan 2009 23:14:00 -0000	[thread overview]
Message-ID: <20090108231415.12309.qmail@sourceware.org> (raw)

The branch, archer-tromey-python has been updated
       via  7cb294ef217a6053836af8acd56e626b95a533dc (commit)
      from  61cda02c121db1b2999a173e56c7de3f0671c728 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 7cb294ef217a6053836af8acd56e626b95a533dc
Author: Tom Tromey <tromey@redhat.com>
Date:   Thu Jan 8 16:13:58 2009 -0700

    	* python/python-membuf.c (CHARBUFFERPROC_NAME): New define.
    	(buffer_procs): Use it.

-----------------------------------------------------------------------

Summary of changes:
 gdb/ChangeLog              |    5 +++++
 gdb/python/python-membuf.c |    9 ++++++++-
 2 files changed, 13 insertions(+), 1 deletions(-)

First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0d6622b..fdf8a2b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2009-01-08  Tom Tromey  <tromey@redhat.com>
+
+	* python/python-membuf.c (CHARBUFFERPROC_NAME): New define.
+	(buffer_procs): Use it.
+
 2009-01-07  Tom Tromey  <tromey@redhat.com>
 
 	* python/python-membuf.c (buffer_procs): Add compatibility cast.
diff --git a/gdb/python/python-membuf.c b/gdb/python/python-membuf.c
index 1b57da7..df8849d 100644
--- a/gdb/python/python-membuf.c
+++ b/gdb/python/python-membuf.c
@@ -168,13 +168,20 @@ get_char_buffer (PyObject *self, Py_ssize_t segment, char **ptrptr)
   return get_char_buffer (self, segment, ptrptr);
 }
 
+/* Python doesn't provide a decent way to get compatibility here.  */
+#if HAVE_LIBPYTHON2_4
+#define CHARBUFFERPROC_NAME getcharbufferproc
+#else
+#define CHARBUFFERPROC_NAME charbufferproc
+#endif
+
 static PyBufferProcs buffer_procs = {
   get_read_buffer,
   get_write_buffer,
   get_seg_count,
   /* The cast here works around a difference between Python 2.4 and
      Python 2.5.  */
-  (getcharbufferproc) get_char_buffer
+  (CHARBUFFERPROC_NAME) get_char_buffer
 };
 
 static PyTypeObject membuf_object_type = {


hooks/post-receive
--
Repository for Project Archer.


                 reply	other threads:[~2009-01-08 23:14 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=20090108231415.12309.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).