Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cext/osutil.c @ 34861:6ece4a85c350
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
author | Augie Fackler <augie@google.com> |
---|---|
date | Mon, 16 Oct 2017 14:49:35 -0400 |
parents | b90e8da190da |
children | 8652ab4046e4 |
line wrap: on
line diff
--- 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*/