Mercurial > vim
changeset 4470:ab5154170c3d v7.3.983
updated for version 7.3.983
Problem: Uneccessary temp variable.
Solution: Remove the variable.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 21 May 2013 12:43:56 +0200 |
parents | 2b18e761c8d5 |
children | b62288857e8e |
files | src/regexp_nfa.c src/version.c |
diffstat | 2 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/regexp_nfa.c +++ b/src/regexp_nfa.c @@ -2833,7 +2833,6 @@ nfa_regmatch(start, submatch, m) int old_reglnum = -1; int reginput_updated = FALSE; thread_T *t; - char_u *cc; char_u *old_reginput = NULL; char_u *old_regline = NULL; nfa_state_T *sta; @@ -2931,7 +2930,6 @@ again: } if (c == NUL) n = 0; - cc = reginput; /* swap lists */ thislist = &list[flag]; @@ -3261,12 +3259,12 @@ again: break; case NFA_KWORD: /* \k */ - result = vim_iswordp(cc); + result = vim_iswordp(reginput); ADD_POS_NEG_STATE(t->state); break; case NFA_SKWORD: /* \K */ - result = !VIM_ISDIGIT(c) && vim_iswordp(cc); + result = !VIM_ISDIGIT(c) && vim_iswordp(reginput); ADD_POS_NEG_STATE(t->state); break; @@ -3281,12 +3279,12 @@ again: break; case NFA_PRINT: /* \p */ - result = ptr2cells(cc) == 1; + result = ptr2cells(reginput) == 1; ADD_POS_NEG_STATE(t->state); break; case NFA_SPRINT: /* \P */ - result = !VIM_ISDIGIT(c) && ptr2cells(cc) == 1; + result = !VIM_ISDIGIT(c) && ptr2cells(reginput) == 1; ADD_POS_NEG_STATE(t->state); break;