cext: put case statements on separate line
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 02 Oct 2017 19:09:52 +0100
changeset 34439 88e83a618de0
parent 34438 b90e8da190da
child 34440 7ed0750c71a1
cext: put case statements on separate line This seems to be the prevailing style, even though it is a bit more verbose for very simple switch statements. Differential Revision: https://phab.mercurial-scm.org/D909
mercurial/cext/charencode.c
--- a/mercurial/cext/charencode.c	Mon Oct 02 19:06:00 2017 +0100
+++ b/mercurial/cext/charencode.c	Mon Oct 02 19:09:52 2017 +0100
@@ -319,13 +319,20 @@
 static char jsonescapechar2(char c)
 {
 	switch (c) {
-	case '\b': return 'b';
-	case '\t': return 't';
-	case '\n': return 'n';
-	case '\f': return 'f';
-	case '\r': return 'r';
-	case '"':  return '"';
-	case '\\': return '\\';
+	case '\b':
+		return 'b';
+	case '\t':
+		return 't';
+	case '\n':
+		return 'n';
+	case '\f':
+		return 'f';
+	case '\r':
+		return 'r';
+	case '"':
+		return '"';
+	case '\\':
+		return '\\';
 	}
 	return '\0';  /* should not happen */
 }