diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-06-06 21:59:07 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-06-06 21:59:07 +0000 |
commit | 45eeb13324b1d4fa80c1e4ed872bebd1202bf1f0 (patch) | |
tree | 04352cb65f7968a02df5a3ec8021feff22fdea54 /src/regexp.c | |
parent | cfc6c43ce2fe59ccc7e48785e6c20126f0ee9d7f (diff) | |
download | vim-git-45eeb13324b1d4fa80c1e4ed872bebd1202bf1f0.tar.gz |
updated for version 7.0081v7.0081
Diffstat (limited to 'src/regexp.c')
-rw-r--r-- | src/regexp.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/regexp.c b/src/regexp.c index 81035af97..bc13b38ea 100644 --- a/src/regexp.c +++ b/src/regexp.c @@ -322,9 +322,9 @@ toggle_Magic(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) { EMSG(m); rc_did_emsg = TRUE; return NULL; } -#define EMSG_M_RET_NULL(m, c) { EMSG2(m, c ? "" : "\\"); rc_did_emsg = TRUE; return NULL; } -#define EMSG_RET_FAIL(m) { EMSG(m); rc_did_emsg = TRUE; return FAIL; } +#define EMSG_RET_NULL(m) return (EMSG(m), rc_did_emsg = TRUE, NULL) +#define EMSG_M_RET_NULL(m, c) return (EMSG2((m), (c) ? "" : "\\"), rc_did_emsg = TRUE, NULL) +#define EMSG_RET_FAIL(m) return (EMSG(m), rc_did_emsg = TRUE, FAIL) #define EMSG_ONE_RET_NULL EMSG_M_RET_NULL(_("E369: invalid item in %s%%[]"), reg_magic == MAGIC_ALL) #define MAX_LIMIT (32767L << 16L) @@ -1246,20 +1246,20 @@ reg(paren, flagp) { #ifdef FEAT_SYN_HL if (paren == REG_ZPAREN) - EMSG_RET_NULL(_("E52: Unmatched \\z(")) + EMSG_RET_NULL(_("E52: Unmatched \\z(")); else #endif if (paren == REG_NPAREN) - EMSG_M_RET_NULL(_("E53: Unmatched %s%%("), reg_magic == MAGIC_ALL) + EMSG_M_RET_NULL(_("E53: Unmatched %s%%("), reg_magic == MAGIC_ALL); else - EMSG_M_RET_NULL(_("E54: Unmatched %s("), reg_magic == MAGIC_ALL) + EMSG_M_RET_NULL(_("E54: Unmatched %s("), reg_magic == MAGIC_ALL); } else if (paren == REG_NOPAREN && peekchr() != NUL) { if (curchr == Magic(')')) - EMSG_M_RET_NULL(_("E55: Unmatched %s)"), reg_magic == MAGIC_ALL) + EMSG_M_RET_NULL(_("E55: Unmatched %s)"), reg_magic == MAGIC_ALL); else - EMSG_RET_NULL(_(e_trailing)) /* "Can't happen". */ + EMSG_RET_NULL(_(e_trailing)); /* "Can't happen". */ /* NOTREACHED */ } /* @@ -2985,7 +2985,6 @@ typedef struct char_u *ptr; lpos_T pos; } se_u; - int se_len; } save_se_T; static char_u *reg_getline __ARGS((linenr_T lnum)); |