Patchwork D910: cext: wrap before brace for functions

login
register
mail settings
Submitter phabricator
Date Oct. 3, 2017, 9:05 p.m.
Message ID <b50e5d435d6170ec6bad92ba7d6873f2@localhost.localdomain>
Download mbox | patch
Permalink /patch/24449/
State Not Applicable
Headers show

Comments

phabricator - Oct. 3, 2017, 9:05 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG7ed0750c71a1: cext: wrap before brace for functions (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D910?vs=2349&id=2390

REVISION DETAIL
  https://phab.mercurial-scm.org/D910

AFFECTED FILES
  mercurial/cext/manifest.c
  mercurial/cext/parsers.c
  mercurial/cext/revlog.c

CHANGE DETAILS




To: indygreg, #hg-reviewers, quark, martinvonz
Cc: mercurial-devel

Patch

diff --git a/mercurial/cext/revlog.c b/mercurial/cext/revlog.c
--- a/mercurial/cext/revlog.c
+++ b/mercurial/cext/revlog.c
@@ -407,7 +407,8 @@ 
 	return newlist;
 }
 
-static int check_filter(PyObject *filter, Py_ssize_t arg) {
+static int check_filter(PyObject *filter, Py_ssize_t arg)
+{
 	if (filter) {
 		PyObject *arglist, *result;
 		int isfiltered;
diff --git a/mercurial/cext/parsers.c b/mercurial/cext/parsers.c
--- a/mercurial/cext/parsers.c
+++ b/mercurial/cext/parsers.c
@@ -321,7 +321,8 @@ 
 /*
  * Build a set of non-normal and other parent entries from the dirstate dmap
 */
-static PyObject *nonnormalotherparententries(PyObject *self, PyObject *args) {
+static PyObject *nonnormalotherparententries(PyObject *self, PyObject *args)
+{
 	PyObject *dmap, *fname, *v;
 	PyObject *nonnset = NULL, *otherpset = NULL, *result = NULL;
 	Py_ssize_t pos;
@@ -645,7 +646,8 @@ 
 }
 
 
-static PyObject *fm1readmarkers(PyObject *self, PyObject *args) {
+static PyObject *fm1readmarkers(PyObject *self, PyObject *args)
+{
 	const char *data, *dataend;
 	int datalen;
 	Py_ssize_t offset, stop;
diff --git a/mercurial/cext/manifest.c b/mercurial/cext/manifest.c
--- a/mercurial/cext/manifest.c
+++ b/mercurial/cext/manifest.c
@@ -40,12 +40,14 @@ 
 #define MANIFEST_MALFORMED -3
 
 /* get the length of the path for a line */
-static size_t pathlen(line *l) {
+static size_t pathlen(line *l)
+{
 	return strlen(l->start);
 }
 
 /* get the node value of a single line */
-static PyObject *nodeof(line *l) {
+static PyObject *nodeof(line *l)
+{
 	char *s = l->start;
 	ssize_t llen = pathlen(l);
 	PyObject *hash = unhexlify(s + llen + 1, 40);
@@ -434,7 +436,8 @@ 
 
 /* Do a binary search for the insertion point for new, creating the
  * new entry if needed. */
-static int internalsetitem(lazymanifest *self, line *new) {
+static int internalsetitem(lazymanifest *self, line *new)
+{
 	int start = 0, end = self->numlines;
 	while (start < end) {
 		int pos = start + (end - start) / 2;
@@ -602,7 +605,8 @@ 
 static PyTypeObject lazymanifestType;
 
 /* If the manifest has changes, build the new manifest text and reindex it. */
-static int compact(lazymanifest *self) {
+static int compact(lazymanifest *self)
+{
 	int i;
 	ssize_t need = 0;
 	char *data;