Patchwork D1168: parsers: protect some case-folding tables from clang-format

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

Comments

phabricator - Oct. 18, 2017, 3:51 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGd0912876d7a7: parsers: protect some case-folding tables from clang-format (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1168?vs=2950&id=2977

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

AFFECTED FILES
  mercurial/cext/charencode.c

CHANGE DETAILS




To: durin42, #hg-reviewers, indygreg
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
@@ -23,6 +23,7 @@ 
 #define PyInt_AS_LONG PyLong_AS_LONG
 #endif
 
+/* clang-format off */
 static const char lowertable[128] = {
 	'\x00', '\x01', '\x02', '\x03', '\x04', '\x05', '\x06', '\x07',
 	'\x08', '\x09', '\x0a', '\x0b', '\x0c', '\x0d', '\x0e', '\x0f',
@@ -64,6 +65,7 @@ 
 	'\x58', '\x59', '\x5a', 					/* x-z */
 				'\x7b', '\x7c', '\x7d', '\x7e', '\x7f'
 };
+/* clang-format on */
 
 /* 1: no escape, 2: \<c>, 6: \u<x> */
 static const uint8_t jsonlentable[256] = {