Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cext/revlog.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 | 7ed0750c71a1 |
children | d13526333835 |
line wrap: on
line diff
--- 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 */