Patchwork base85: clean up function definition style

login
register
mail settings
Submitter Augie Fackler
Date Nov. 21, 2015, 7:32 p.m.
Message ID <90823216d61d6ab07852.1448134358@imladris.local>
Download mbox | patch
Permalink /patch/11564/
State Accepted
Headers show

Comments

Augie Fackler - Nov. 21, 2015, 7:32 p.m.
# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1447287045 18000
#      Wed Nov 11 19:10:45 2015 -0500
# Node ID 90823216d61d6ab07852a7e616df1b29bfebd056
# Parent  27091292c5f847f472cfbc82c50cd4fc5b5ac84c
base85: clean up function definition style

Cleanup performed with clang-format.
Pierre-Yves David - Nov. 21, 2015, 8:11 p.m.
On 11/21/2015 11:32 AM, Augie Fackler wrote:
> # HG changeset patch
> # User Augie Fackler <augie@google.com>
> # Date 1447287045 18000
> #      Wed Nov 11 19:10:45 2015 -0500
> # Node ID 90823216d61d6ab07852a7e616df1b29bfebd056
> # Parent  27091292c5f847f472cfbc82c50cd4fc5b5ac84c
> base85: clean up function definition style

Pushed to the clowncopter. Thanks.

Patch

diff --git a/mercurial/base85.c b/mercurial/base85.c
--- a/mercurial/base85.c
+++ b/mercurial/base85.c
@@ -18,8 +18,7 @@  static const char b85chars[] = "01234567
 	"abcdefghijklmnopqrstuvwxyz!#$%&()*+-;<=>?@^_`{|}~";
 static char b85dec[256];
 
-static void
-b85prep(void)
+static void b85prep(void)
 {
 	unsigned i;
 
@@ -28,8 +27,7 @@  b85prep(void)
 		b85dec[(int)(b85chars[i])] = i + 1;
 }
 
-static PyObject *
-b85encode(PyObject *self, PyObject *args)
+static PyObject *b85encode(PyObject *self, PyObject *args)
 {
 	const unsigned char *text;
 	PyObject *out;
@@ -76,8 +74,7 @@  b85encode(PyObject *self, PyObject *args
 	return out;
 }
 
-static PyObject *
-b85decode(PyObject *self, PyObject *args)
+static PyObject *b85decode(PyObject *self, PyObject *args)
 {
 	PyObject *out;
 	const char *text;