Mercurial > vim
comparison src/ex_getln.c @ 14548:806e1a2648c6 v8.1.0287
patch 8.1.0287: MAX is not defined everywhere
commit https://github.com/vim/vim/commit/37b15568c26e669c333903a70422eacc09488f79
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 14 22:08:25 2018 +0200
patch 8.1.0287: MAX is not defined everywhere
Problem: MAX is not defined everywhere.
Solution: Define MAX where needed.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 14 Aug 2018 22:15:05 +0200 |
parents | 35e7ead872db |
children | 2bee637a8edc |
comparison
equal
deleted
inserted
replaced
14547:7809f42bc09a | 14548:806e1a2648c6 |
---|---|
10 /* | 10 /* |
11 * ex_getln.c: Functions for entering and editing an Ex command line. | 11 * ex_getln.c: Functions for entering and editing an Ex command line. |
12 */ | 12 */ |
13 | 13 |
14 #include "vim.h" | 14 #include "vim.h" |
15 | |
16 #ifndef MAX | |
17 # define MAX(x,y) ((x) > (y) ? (x) : (y)) | |
18 #endif | |
15 | 19 |
16 /* | 20 /* |
17 * Variables shared between getcmdline(), redrawcmdline() and others. | 21 * Variables shared between getcmdline(), redrawcmdline() and others. |
18 * These need to be saved when using CTRL-R |, that's why they are in a | 22 * These need to be saved when using CTRL-R |, that's why they are in a |
19 * structure. | 23 * structure. |