Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
34860:d0912876d7a7 | 34861:6ece4a85c350 |
---|---|
1989 {"nodemap", (getter)index_nodemap, NULL, "nodemap", NULL}, | 1989 {"nodemap", (getter)index_nodemap, NULL, "nodemap", NULL}, |
1990 {NULL} /* Sentinel */ | 1990 {NULL} /* Sentinel */ |
1991 }; | 1991 }; |
1992 | 1992 |
1993 static PyTypeObject indexType = { | 1993 static PyTypeObject indexType = { |
1994 PyVarObject_HEAD_INIT(NULL, 0) | 1994 PyVarObject_HEAD_INIT(NULL, 0) /* header */ |
1995 "parsers.index", /* tp_name */ | 1995 "parsers.index", /* tp_name */ |
1996 sizeof(indexObject), /* tp_basicsize */ | 1996 sizeof(indexObject), /* tp_basicsize */ |
1997 0, /* tp_itemsize */ | 1997 0, /* tp_itemsize */ |
1998 (destructor)index_dealloc, /* tp_dealloc */ | 1998 (destructor)index_dealloc, /* tp_dealloc */ |
1999 0, /* tp_print */ | 1999 0, /* tp_print */ |