Mercurial > vim
diff src/regexp_nfa.c @ 11127:506f5d8b7d8b v8.0.0451
patch 8.0.0451: some macros are in lower case
commit https://github.com/vim/vim/commit/91acfffc1e6c0d8c2abfb186a0e79a5bf19c3f3f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 12 19:22:36 2017 +0100
patch 8.0.0451: some macros are in lower case
Problem: Some macros are in lower case.
Solution: Make a few more macros upper case. Avoid lower case macros use an
argument twice.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 12 Mar 2017 19:30:05 +0100 |
parents | c3cc8b2aab6a |
children | f4ea50924c6d |
line wrap: on
line diff
--- a/src/regexp_nfa.c +++ b/src/regexp_nfa.c @@ -1425,7 +1425,7 @@ nfa_regatom(void) EMSG(_(e_nopresub)); return FAIL; } - for (lp = reg_prev_sub; *lp != NUL; mb_cptr_adv(lp)) + for (lp = reg_prev_sub; *lp != NUL; MB_CPTR_ADV(lp)) { EMIT(PTR2CHAR(lp)); if (lp != reg_prev_sub) @@ -1672,7 +1672,7 @@ collection: else EMIT(result); regparse = endp; - mb_ptr_adv(regparse); + MB_PTR_ADV(regparse); return OK; } /* @@ -1684,7 +1684,7 @@ collection: if (*regparse == '^') /* negated range */ { negated = TRUE; - mb_ptr_adv(regparse); + MB_PTR_ADV(regparse); EMIT(NFA_START_NEG_COLL); } else @@ -1694,7 +1694,7 @@ collection: startc = '-'; EMIT(startc); EMIT(NFA_CONCAT); - mb_ptr_adv(regparse); + MB_PTR_ADV(regparse); } /* Emit the OR branches for each character in the [] */ emit_range = FALSE; @@ -1797,7 +1797,7 @@ collection: { emit_range = TRUE; startc = oldstartc; - mb_ptr_adv(regparse); + MB_PTR_ADV(regparse); continue; /* reading the end of the range */ } @@ -1817,7 +1817,7 @@ collection: ) ) { - mb_ptr_adv(regparse); + MB_PTR_ADV(regparse); if (*regparse == 'n') startc = reg_string ? NL : NFA_NEWL; @@ -1832,7 +1832,7 @@ collection: /* TODO(RE) This needs more testing */ startc = coll_get_char(); got_coll_char = TRUE; - mb_ptr_back(old_regparse, regparse); + MB_PTR_BACK(old_regparse, regparse); } else { @@ -1932,10 +1932,10 @@ collection: } } - mb_ptr_adv(regparse); + MB_PTR_ADV(regparse); } /* while (p < endp) */ - mb_ptr_back(old_regparse, regparse); + MB_PTR_BACK(old_regparse, regparse); if (*regparse == '-') /* if last, '-' is just a char */ { EMIT('-'); @@ -1944,7 +1944,7 @@ collection: /* skip the trailing ] */ regparse = endp; - mb_ptr_adv(regparse); + MB_PTR_ADV(regparse); /* Mark end of the collection. */ if (negated == TRUE)