Mercurial > hg-stable
changeset 34860:d0912876d7a7
parsers: protect some case-folding tables from clang-format
We want a slightly weird format here so that it's easier to read, but
in order to preserve that we need to disable clang-format.
Differential Revision: https://phab.mercurial-scm.org/D1168
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Tue, 21 Apr 2015 16:02:23 -0400 |
parents | 2bf152128d59 |
children | 6ece4a85c350 |
files | mercurial/cext/charencode.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/cext/charencode.c Mon Sep 14 14:52:20 2015 -0400 +++ b/mercurial/cext/charencode.c Tue Apr 21 16:02:23 2015 -0400 @@ -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] = {