This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Wrap PyObject_Get/HasAttrString in a function with second arg having const qualifier.
- From: Pedro Alves <palves at redhat dot com>
- To: Siva Chandra <sivachandra at google dot com>, gdb-patches <gdb-patches at sourceware dot org>
- Cc: Ulrich Weigand <uweigand at de dot ibm dot com>
- Date: Mon, 09 Jun 2014 14:52:13 +0100
- Subject: Re: [PATCH] Wrap PyObject_Get/HasAttrString in a function with second arg having const qualifier.
- Authentication-results: sourceware.org; auth=none
- References: <CAGyQ6gzhoLC3DrxGqx+JaOZzydY4wJbh2zs9cwtN0508C_P26Q at mail dot gmail dot com>
On 06/09/2014 02:42 PM, Siva Chandra wrote:
> @@ -555,7 +555,7 @@ get_field_flag (PyObject *field, const char *flag_name)
> {
> int flag_value;
> /* Python 2.4 did not have a 'const' here. */
Oh, and this comment is stale here now.
> - PyObject *flag_object = PyObject_GetAttrString (field, (char *) flag_name);
> + PyObject *flag_object = PyObject_GetAttrString (field, flag_name);
--
Pedro Alves