summaryrefslogtreecommitdiff
path: root/src/macros.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-03-01 22:01:55 +0000
committerBram Moolenaar <Bram@vim.org>2006-03-01 22:01:55 +0000
commite1438bb8d0b7a48f712458e68755ab8b66d92ace (patch)
tree94f3fc83b2f5138213f7843ac53e7cfa5179c8cc /src/macros.h
parente224ffa156ce968d3e823fb8aa77d93812ca4092 (diff)
downloadvim-git-e1438bb8d0b7a48f712458e68755ab8b66d92ace.tar.gz
updated for version 7.0211
Diffstat (limited to 'src/macros.h')
-rw-r--r--src/macros.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/macros.h b/src/macros.h
index 9310bdd20..c4c9a14da 100644
--- a/src/macros.h
+++ b/src/macros.h
@@ -30,12 +30,14 @@
? (a)->col < (b)->col \
: (a)->coladd < (b)->coladd)
# define equalpos(a, b) (((a).lnum == (b).lnum) && ((a).col == (b).col) && ((a).coladd == (b).coladd))
+# define clearpos(a) {(a)->lnum = 0; (a)->col = 0; (a)->coladd = 0;}
#else
# define lt(a, b) (((a).lnum != (b).lnum) \
? ((a).lnum < (b).lnum) : ((a).col < (b).col))
# define ltp(a, b) (((a)->lnum != (b)->lnum) \
? ((a)->lnum < (b)->lnum) : ((a)->col < (b)->col))
# define equalpos(a, b) (((a).lnum == (b).lnum) && ((a).col == (b).col))
+# define clearpos(a) {(a)->lnum = 0; (a)->col = 0;}
#endif
#define ltoreq(a, b) (lt(a, b) || equalpos(a, b))