Patchwork D909: cext: put case statements on separate line

login
register
mail settings
Submitter phabricator
Date Oct. 3, 2017, 9:05 p.m.
Message ID <92602857da14718104d0b9315d6175da@localhost.localdomain>
Download mbox | patch
Permalink /patch/24448/
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 rHG88e83a618de0: cext: put case statements on separate line (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D909?vs=2348&id=2389

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

AFFECTED FILES
  mercurial/cext/charencode.c

CHANGE DETAILS




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

Patch

diff --git a/mercurial/cext/charencode.c b/mercurial/cext/charencode.c
--- a/mercurial/cext/charencode.c
+++ b/mercurial/cext/charencode.c
@@ -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 */
 }