Patchwork D7103: dirs: tag a struct as not being formattable

login
register
mail settings
Submitter phabricator
Date Oct. 15, 2019, 1:54 p.m.
Message ID <differential-rev-PHID-DREV-7oiwlkttc7s6uxsslxqm-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/42354/
State Superseded
Headers show

Comments

phabricator - Oct. 15, 2019, 1:54 p.m.
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  mercurial/cext/dirs.c

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/cext/dirs.c b/mercurial/cext/dirs.c
--- a/mercurial/cext/dirs.c
+++ b/mercurial/cext/dirs.c
@@ -27,10 +27,12 @@ 
  * We modify Python integers for refcounting, but those integers are
  * never visible to Python code.
  */
+/* clang-format off */
 typedef struct {
 	PyObject_HEAD
 	PyObject *dict;
 } dirsObject;
+/* clang-format on */
 
 static inline Py_ssize_t _finddir(const char *path, Py_ssize_t pos)
 {