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

login
register
mail settings
Submitter phabricator
Date Oct. 16, 2019, 4:08 a.m.
Message ID <0d72ae1cb5bf14935f1a77beae1fac86@localhost.localdomain>
Download mbox | patch
Permalink /patch/42374/
State Not Applicable
Headers show

Comments

phabricator - Oct. 16, 2019, 4:08 a.m.
Closed by commit rHGbe178b5d91c8: dirs: tag a struct as not being formattable (authored by durin42).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7103?vs=17171&id=17190

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7103/new/

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

AFFECTED FILES
  mercurial/cext/dirs.c

CHANGE DETAILS




To: durin42, #hg-reviewers, indygreg
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)
 {