* RFA: a small python-value.c normalization
@ 2008-12-22 16:24 Tom Tromey
2008-12-22 18:27 ` Pedro Alves
0 siblings, 1 reply; 3+ messages in thread
From: Tom Tromey @ 2008-12-22 16:24 UTC (permalink / raw)
To: gdb-patches
This patch removes a #if from python-value.c.
We define Py_ssize_t as int in the cases where this is needed --
Python 2.4. So, a second test is not needed.
FYI, there was a previous thread on this topic:
http://sourceware.org/ml/archer/2008-q4/msg00111.html
Ok?
Tom
2008-12-22 Tom Tromey <tromey@redhat.com>
* python/python-value.c (valpy_length): Remove #if.
diff --git a/gdb/python/python-value.c b/gdb/python/python-value.c
index b23174c..9db7208 100644
--- a/gdb/python/python-value.c
+++ b/gdb/python/python-value.c
@@ -132,11 +132,7 @@ valpy_dereference (PyObject *self, PyObject *args)
return value_to_value_object (res_val);
}
-#ifdef HAVE_LIBPYTHON2_4
-static int
-#else
static Py_ssize_t
-#endif
valpy_length (PyObject *self)
{
/* We don't support getting the number of elements in a struct / class. */
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-12-22 19:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-22 16:24 RFA: a small python-value.c normalization Tom Tromey
2008-12-22 18:27 ` Pedro Alves
2008-12-22 19:48 ` Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox