cext: add /* header */ comment to all PyVarObject_HEAD_INIT() calls
authorAugie Fackler <augie@google.com>
Mon, 16 Oct 2017 14:49:35 -0400
changeset 34861 6ece4a85c350
parent 34860 d0912876d7a7
child 34862 d92dc725223b
cext: add /* header */ comment to all PyVarObject_HEAD_INIT() calls This gives clang-format the right notion about formatting these struct initializers, therefore allowing us to automatically format several additional files. # skip-blame because this is just a content-free comment addition Differential Revision: https://phab.mercurial-scm.org/D1169
mercurial/cext/manifest.c
mercurial/cext/osutil.c
mercurial/cext/parsers.c
mercurial/cext/revlog.c
--- a/mercurial/cext/manifest.c	Tue Apr 21 16:02:23 2015 -0400
+++ b/mercurial/cext/manifest.c	Mon Oct 16 14:49:35 2017 -0400
@@ -262,7 +262,7 @@
 #endif
 
 static PyTypeObject lazymanifestEntriesIterator = {
-	PyVarObject_HEAD_INIT(NULL, 0)
+	PyVarObject_HEAD_INIT(NULL, 0) /* header */
 	"parsers.lazymanifest.entriesiterator", /*tp_name */
 	sizeof(lmIter),                  /*tp_basicsize */
 	0,                               /*tp_itemsize */
@@ -310,7 +310,7 @@
 #endif
 
 static PyTypeObject lazymanifestKeysIterator = {
-	PyVarObject_HEAD_INIT(NULL, 0)
+	PyVarObject_HEAD_INIT(NULL, 0) /* header */
 	"parsers.lazymanifest.keysiterator", /*tp_name */
 	sizeof(lmIter),                  /*tp_basicsize */
 	0,                               /*tp_itemsize */
@@ -890,7 +890,7 @@
 #endif
 
 static PyTypeObject lazymanifestType = {
-	PyVarObject_HEAD_INIT(NULL, 0)
+	PyVarObject_HEAD_INIT(NULL, 0) /* header */
 	"parsers.lazymanifest",                           /* tp_name */
 	sizeof(lazymanifest),                             /* tp_basicsize */
 	0,                                                /* tp_itemsize */
--- a/mercurial/cext/osutil.c	Tue Apr 21 16:02:23 2015 -0400
+++ b/mercurial/cext/osutil.c	Mon Oct 16 14:49:35 2017 -0400
@@ -121,7 +121,7 @@
 }
 
 static PyTypeObject listdir_stat_type = {
-	PyVarObject_HEAD_INIT(NULL, 0)
+	PyVarObject_HEAD_INIT(NULL, 0) /* header */
 	"osutil.stat",             /*tp_name*/
 	sizeof(struct listdir_stat), /*tp_basicsize*/
 	0,                         /*tp_itemsize*/
--- a/mercurial/cext/parsers.c	Tue Apr 21 16:02:23 2015 -0400
+++ b/mercurial/cext/parsers.c	Mon Oct 16 14:49:35 2017 -0400
@@ -195,7 +195,7 @@
 };
 
 PyTypeObject dirstateTupleType = {
-	PyVarObject_HEAD_INIT(NULL, 0)
+	PyVarObject_HEAD_INIT(NULL, 0) /* header */
 	"dirstate_tuple",          /* tp_name */
 	sizeof(dirstateTupleObject),/* tp_basicsize */
 	0,                         /* tp_itemsize */
--- a/mercurial/cext/revlog.c	Tue Apr 21 16:02:23 2015 -0400
+++ b/mercurial/cext/revlog.c	Mon Oct 16 14:49:35 2017 -0400
@@ -1991,7 +1991,7 @@
 };
 
 static PyTypeObject indexType = {
-	PyVarObject_HEAD_INIT(NULL, 0)
+	PyVarObject_HEAD_INIT(NULL, 0) /* header */
 	"parsers.index",           /* tp_name */
 	sizeof(indexObject),       /* tp_basicsize */
 	0,                         /* tp_itemsize */