This lets us avoid putting operators directly in macro arguments,
and thus will help us unconfuse coccinelle.
For ticket 13172.
--- /dev/null
+ o Code simplification and refactoring:
+ - Avoid using operators directly as macro arguments: this lets us
+ apply coccinelle transformations to our codebase more
+ directly. Closes ticket 13172.
\ No newline at end of file
#define STMT_END } while (0)
#endif
+/* Some tools (like coccinelle) don't like to see operators as macro
+ * arguments. */
+#define OP_LT <
+#define OP_GT >
+#define OP_GE >=
+#define OP_LE <=
+#define OP_EQ ==
+#define OP_NE !=
+
/* ===== String compatibility */
#ifdef _WIN32
/* Windows names string functions differently from most other platforms. */