[RFA,v2,3/6] Reindent type_object_getset in py-type.c
Commit Message
I noticed that type_object_getset was indented incorrectly. This
fixes it.
2018-04-27 Tom Tromey <tom@tromey.com>
* python/py-type.c (type_object_getset): Reindent.
---
gdb/ChangeLog | 4 ++++
gdb/python/py-type.c | 18 +++++++++---------
2 files changed, 13 insertions(+), 9 deletions(-)
Comments
On 04/27/2018 03:01 PM, Tom Tromey wrote:
> I noticed that type_object_getset was indented incorrectly. This
> fixes it.
>
...
> static gdb_PyGetSetDef type_object_getset[] =
> {
> - { "code", typy_get_code, NULL,
> - "The code for this type.", NULL },
> - { "name", typy_get_name, NULL,
> - "The name for this type, or None.", NULL },
> - { "sizeof", typy_get_sizeof, NULL,
> - "The size of this type, in bytes.", NULL },
> - { "tag", typy_get_tag, NULL,
> - "The tag name for this type, or None.", NULL },
> - { NULL }
> + { "code", typy_get_code, NULL,
> + "The code for this type.", NULL },
> + { "name", typy_get_name, NULL,
> + "The name for this type, or None.", NULL },
> + { "sizeof", typy_get_sizeof, NULL,
> + "The size of this type, in bytes.", NULL },
> + { "tag", typy_get_tag, NULL,
> + "The tag name for this type, or None.", NULL },
> + { NULL }
> };
Hmm, AFAICT this is currently indented like other similar
arrays. My emacs seems to agree with the current alignment
too. Isn't two spaces the usual?
Thanks,
Pedro Alves
>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
Pedro> Hmm, AFAICT this is currently indented like other similar
Pedro> arrays. My emacs seems to agree with the current alignment
Pedro> too. Isn't two spaces the usual?
Yeah. I think I have a bad version of cc-mode at the moment.
I'll drop this patch.
Tom
@@ -1,3 +1,7 @@
+2018-04-27 Tom Tromey <tom@tromey.com>
+
+ * python/py-type.c (type_object_getset): Reindent.
+
2018-04-27 Tom Tromey <tom@tromey.com>
PR exp/17095:
@@ -1410,15 +1410,15 @@ gdbpy_initialize_types (void)
static gdb_PyGetSetDef type_object_getset[] =
{
- { "code", typy_get_code, NULL,
- "The code for this type.", NULL },
- { "name", typy_get_name, NULL,
- "The name for this type, or None.", NULL },
- { "sizeof", typy_get_sizeof, NULL,
- "The size of this type, in bytes.", NULL },
- { "tag", typy_get_tag, NULL,
- "The tag name for this type, or None.", NULL },
- { NULL }
+ { "code", typy_get_code, NULL,
+ "The code for this type.", NULL },
+ { "name", typy_get_name, NULL,
+ "The name for this type, or None.", NULL },
+ { "sizeof", typy_get_sizeof, NULL,
+ "The size of this type, in bytes.", NULL },
+ { "tag", typy_get_tag, NULL,
+ "The tag name for this type, or None.", NULL },
+ { NULL }
};
static PyMethodDef type_object_methods[] =