##// END OF EJS Templates
util: add clang-format control comment around struct and format macro...
Augie Fackler -
r34636:3455e2e2 default
parent child Browse files
Show More
@@ -14,6 +14,7 b''
14 #define IS_PY3K
14 #define IS_PY3K
15 #endif
15 #endif
16
16
17 /* clang-format off */
17 typedef struct {
18 typedef struct {
18 PyObject_HEAD
19 PyObject_HEAD
19 char state;
20 char state;
@@ -21,11 +22,12 b' typedef struct {'
21 int size;
22 int size;
22 int mtime;
23 int mtime;
23 } dirstateTupleObject;
24 } dirstateTupleObject;
25 /* clang-format on */
24
26
25 extern PyTypeObject dirstateTupleType;
27 extern PyTypeObject dirstateTupleType;
26 #define dirstate_tuple_check(op) (Py_TYPE(op) == &dirstateTupleType)
28 #define dirstate_tuple_check(op) (Py_TYPE(op) == &dirstateTupleType)
27
29
28 #define MIN(a, b) (((a)<(b))?(a):(b))
30 #define MIN(a, b) (((a) < (b)) ? (a) : (b))
29 /* VC9 doesn't include bool and lacks stdbool.h based on my searching */
31 /* VC9 doesn't include bool and lacks stdbool.h based on my searching */
30 #if defined(_MSC_VER) || __STDC_VERSION__ < 199901L
32 #if defined(_MSC_VER) || __STDC_VERSION__ < 199901L
31 #define true 1
33 #define true 1
General Comments 0
You need to be logged in to leave comments. Login now