From e1438bb8d0b7a48f712458e68755ab8b66d92ace Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 1 Mar 2006 22:01:55 +0000 Subject: updated for version 7.0211 --- src/macros.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/macros.h') 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)) -- cgit v1.2.1