]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.983 v7.3.983
authorBram Moolenaar <Bram@vim.org>
Tue, 21 May 2013 10:43:56 +0000 (12:43 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 21 May 2013 10:43:56 +0000 (12:43 +0200)
Problem:    Uneccessary temp variable.
Solution:   Remove the variable.

src/regexp_nfa.c
src/version.c

index 9ae59ae63f9860d5d86b58346ad46bba05458949..ba3a0f492d63bfb46d2bc9a09ad07a01635569e4 100644 (file)
@@ -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;
 
index a57f685bfece2f3b4f5bcc8fdb4adf9021dec1c3..2e685dcc58db78d3aa5c434761a42b152aa6ffda 100644 (file)
@@ -728,6 +728,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    983,
 /**/
     982,
 /**/