comparison src/macros.h @ 11129:f4ea50924c6d v8.0.0452

patch 8.0.0452: some macros are in lower case commit https://github.com/vim/vim/commit/1c46544412382db8b3203d6c78e550df885540bd Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 12 20:10:05 2017 +0100 patch 8.0.0452: some macros are in lower case Problem: Some macros are in lower case. Solution: Make a few more macros upper case.
author Christian Brabandt <cb@256bit.org>
date Sun, 12 Mar 2017 20:15:06 +0100
parents 506f5d8b7d8b
children 5be73ebf6a15
comparison
equal deleted inserted replaced
11128:23154628ab7f 11129:f4ea50924c6d
42 # define EQUAL_POS(a, b) (((a).lnum == (b).lnum) && ((a).col == (b).col)) 42 # define EQUAL_POS(a, b) (((a).lnum == (b).lnum) && ((a).col == (b).col))
43 # define CLEAR_POS(a) {(a)->lnum = 0; (a)->col = 0;} 43 # define CLEAR_POS(a) {(a)->lnum = 0; (a)->col = 0;}
44 #endif 44 #endif
45 45
46 #define LTOREQ_POS(a, b) (LT_POS(a, b) || EQUAL_POS(a, b)) 46 #define LTOREQ_POS(a, b) (LT_POS(a, b) || EQUAL_POS(a, b))
47
48 /*
49 * VIM_ISWHITE() is used for "^" and the like. It differs from isspace()
50 * because it doesn't include <CR> and <LF> and the like.
51 */
52 #define VIM_ISWHITE(x) ((x) == ' ' || (x) == '\t')
47 53
48 /* 54 /*
49 * LINEEMPTY() - return TRUE if the line is empty 55 * LINEEMPTY() - return TRUE if the line is empty
50 */ 56 */
51 #define LINEEMPTY(p) (*ml_get(p) == NUL) 57 #define LINEEMPTY(p) (*ml_get(p) == NUL)