aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/regexp.c
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2017-12-15 15:57:38 -0500
committerJames McCoy <jamessan@jamessan.com>2017-12-15 15:57:38 -0500
commitdcb2780b834d4df006f55a0475e03bd2a38ac344 (patch)
tree1c2aa0dbd479f322fa6d8221b9f141fc6e2d3a44 /src/nvim/regexp.c
parentd5bce42b524708a54243658e87b1e3bd9c7acdf3 (diff)
downloadrneovim-dcb2780b834d4df006f55a0475e03bd2a38ac344.tar.gz
rneovim-dcb2780b834d4df006f55a0475e03bd2a38ac344.tar.bz2
rneovim-dcb2780b834d4df006f55a0475e03bd2a38ac344.zip
lint
Diffstat (limited to 'src/nvim/regexp.c')
-rw-r--r--src/nvim/regexp.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/nvim/regexp.c b/src/nvim/regexp.c
index e921706b3a..ec9916f4a2 100644
--- a/src/nvim/regexp.c
+++ b/src/nvim/regexp.c
@@ -458,17 +458,13 @@ static int toggle_Magic(int x)
/* Used for an error (down from) vim_regcomp(): give the error message, set
* rc_did_emsg and return NULL */
-#define EMSG_RET_NULL(m) return (EMSG(m), rc_did_emsg = TRUE, (void *)NULL)
+#define EMSG_RET_NULL(m) return (EMSG(m), rc_did_emsg = true, (void *)NULL)
#define IEMSG_RET_NULL(m) return (IEMSG(m), rc_did_emsg = true, (void *)NULL)
-#define EMSG_RET_FAIL(m) return (EMSG(m), rc_did_emsg = TRUE, FAIL)
-#define EMSG2_RET_NULL(m, \
- c) return (EMSG2((m), \
- (c) ? "" : "\\"), rc_did_emsg = true, \
- (void *)NULL)
-#define EMSG2_RET_FAIL(m, \
- c) return (EMSG2((m), \
- (c) ? "" : "\\"), rc_did_emsg = true, \
- FAIL)
+#define EMSG_RET_FAIL(m) return (EMSG(m), rc_did_emsg = true, FAIL)
+#define EMSG2_RET_NULL(m, c) \
+ return (EMSG2((m), (c) ? "" : "\\"), rc_did_emsg = true, (void *)NULL)
+#define EMSG2_RET_FAIL(m, c) \
+ return (EMSG2((m), (c) ? "" : "\\"), rc_did_emsg = true, FAIL)
#define EMSG_ONE_RET_NULL EMSG2_RET_NULL(_( \
"E369: invalid item in %s%%[]"), reg_magic == MAGIC_ALL)