From: Tom Tromey Date: Mon, 22 Dec 2008 19:45:58 +0000 (+0000) Subject: * python/python-value.c (valpy_length): Remove #if. X-Git-Tag: sid-snapshot-20090201~399 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1446eb676faa451b31f37766f758d2c7df1ac26e;p=thirdparty%2Fbinutils-gdb.git * python/python-value.c (valpy_length): Remove #if. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8d2980b442b..e917700f7a7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2008-12-22 Tom Tromey + + * python/python-value.c (valpy_length): Remove #if. + 2008-12-22 Paul Pluzhnikov * python/python-internal.h (PyEval_ReleaseLock): New define. diff --git a/gdb/python/python-value.c b/gdb/python/python-value.c index b23174ca2b7..9db72084047 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. */