comparison src/fileio.c @ 4805:66803af09906 v7.3.1149

updated for version 7.3.1149 Problem: New regexp engine: Matching plain text could be faster. Solution: Detect a plain text match and handle it specifically. Add vim_regfree().
author Bram Moolenaar <bram@vim.org>
date Sat, 08 Jun 2013 18:19:48 +0200
parents c80838526eeb
children e79a20f07daa
comparison
equal deleted inserted replaced
4804:62663cfeb216 4805:66803af09906
7919 7919
7920 /* remove the pattern if it has been marked for deletion */ 7920 /* remove the pattern if it has been marked for deletion */
7921 if (ap->pat == NULL) 7921 if (ap->pat == NULL)
7922 { 7922 {
7923 *prev_ap = ap->next; 7923 *prev_ap = ap->next;
7924 vim_free(ap->reg_prog); 7924 vim_regfree(ap->reg_prog);
7925 vim_free(ap); 7925 vim_free(ap);
7926 } 7926 }
7927 else 7927 else
7928 prev_ap = &(ap->next); 7928 prev_ap = &(ap->next);
7929 } 7929 }
10068 && vim_regexec(&regmatch, sfname, (colnr_T)0)))) 10068 && vim_regexec(&regmatch, sfname, (colnr_T)0))))
10069 || (!allow_dirs && vim_regexec(&regmatch, tail, (colnr_T)0))))) 10069 || (!allow_dirs && vim_regexec(&regmatch, tail, (colnr_T)0)))))
10070 result = TRUE; 10070 result = TRUE;
10071 10071
10072 if (prog == NULL) 10072 if (prog == NULL)
10073 vim_free(regmatch.regprog); 10073 vim_regfree(regmatch.regprog);
10074 return result; 10074 return result;
10075 } 10075 }
10076 #endif 10076 #endif
10077 10077
10078 #if defined(FEAT_WILDIGN) || defined(PROTO) 10078 #if defined(FEAT_WILDIGN) || defined(PROTO)