summaryrefslogtreecommitdiffstats
path: root/src/macros.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-03-12 20:10:05 +0100
committerBram Moolenaar <Bram@vim.org>2017-03-12 20:10:05 +0100
commit1c46544412382db8b3203d6c78e550df885540bd (patch)
treed4dc51020d3ebdbee4548b0d5628221f921af2f3 /src/macros.h
parent91acfffc1e6c0d8c2abfb186a0e79a5bf19c3f3f (diff)
patch 8.0.0452: some macros are in lower casev8.0.0452
Problem: Some macros are in lower case. Solution: Make a few more macros upper case.
Diffstat (limited to 'src/macros.h')
-rw-r--r--src/macros.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/macros.h b/src/macros.h
index 97e7e83223..8ebc8ceb81 100644
--- a/src/macros.h
+++ b/src/macros.h
@@ -46,6 +46,12 @@
#define LTOREQ_POS(a, b) (LT_POS(a, b) || EQUAL_POS(a, b))
/*
+ * VIM_ISWHITE() is used for "^" and the like. It differs from isspace()
+ * because it doesn't include <CR> and <LF> and the like.
+ */
+#define VIM_ISWHITE(x) ((x) == ' ' || (x) == '\t')
+
+/*
* LINEEMPTY() - return TRUE if the line is empty
*/
#define LINEEMPTY(p) (*ml_get(p) == NUL)