[RFA,v2,3/6] Reindent type_object_getset in py-type.c

Message ID 20180427140139.7957-4-tom@tromey.com
State New
Headers show
Series
  • Type alignment
Related show

Commit Message

Tom Tromey April 27, 2018, 2:01 p.m.
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(-)

-- 
2.14.3

Comments

Pedro Alves April 27, 2018, 6:47 p.m. | #1
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
Tom Tromey April 27, 2018, 8:39 p.m. | #2
>>>>> "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

Patch

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 73eba465a1..caab3a7284 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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:
diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c
index 8a948eeaa6..fcd6ed5621 100644
--- a/gdb/python/py-type.c
+++ b/gdb/python/py-type.c
@@ -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[] =