diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-03-01 22:01:55 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-03-01 22:01:55 +0000 |
commit | e1438bb8d0b7a48f712458e68755ab8b66d92ace (patch) | |
tree | 94f3fc83b2f5138213f7843ac53e7cfa5179c8cc /src/macros.h | |
parent | e224ffa156ce968d3e823fb8aa77d93812ca4092 (diff) | |
download | vim-git-e1438bb8d0b7a48f712458e68755ab8b66d92ace.tar.gz |
updated for version 7.0211
Diffstat (limited to 'src/macros.h')
-rw-r--r-- | src/macros.h | 2 |
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)) |