Mercurial > vim
comparison src/quickfix.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 | 000bb500208d |
children | 30910831e5b0 |
comparison
equal
deleted
inserted
replaced
4804:62663cfeb216 | 4805:66803af09906 |
---|---|
861 if (fd != NULL) | 861 if (fd != NULL) |
862 fclose(fd); | 862 fclose(fd); |
863 for (fmt_ptr = fmt_first; fmt_ptr != NULL; fmt_ptr = fmt_first) | 863 for (fmt_ptr = fmt_first; fmt_ptr != NULL; fmt_ptr = fmt_first) |
864 { | 864 { |
865 fmt_first = fmt_ptr->next; | 865 fmt_first = fmt_ptr->next; |
866 vim_free(fmt_ptr->prog); | 866 vim_regfree(fmt_ptr->prog); |
867 vim_free(fmt_ptr); | 867 vim_free(fmt_ptr); |
868 } | 868 } |
869 qf_clean_dir_stack(&dir_stack); | 869 qf_clean_dir_stack(&dir_stack); |
870 qf_clean_dir_stack(&file_stack); | 870 qf_clean_dir_stack(&file_stack); |
871 qf_init_end: | 871 qf_init_end: |
3485 | 3485 |
3486 theend: | 3486 theend: |
3487 vim_free(dirname_now); | 3487 vim_free(dirname_now); |
3488 vim_free(dirname_start); | 3488 vim_free(dirname_start); |
3489 vim_free(target_dir); | 3489 vim_free(target_dir); |
3490 vim_free(regmatch.regprog); | 3490 vim_regfree(regmatch.regprog); |
3491 } | 3491 } |
3492 | 3492 |
3493 /* | 3493 /* |
3494 * Skip over the pattern argument of ":vimgrep /pat/[g][j]". | 3494 * Skip over the pattern argument of ":vimgrep /pat/[g][j]". |
3495 * Put the start of the pattern in "*s", unless "s" is NULL. | 3495 * Put the start of the pattern in "*s", unless "s" is NULL. |
4176 } | 4176 } |
4177 FreeWild(fcount, fnames); | 4177 FreeWild(fcount, fnames); |
4178 } | 4178 } |
4179 } | 4179 } |
4180 | 4180 |
4181 vim_free(regmatch.regprog); | 4181 vim_regfree(regmatch.regprog); |
4182 #ifdef FEAT_MBYTE | 4182 #ifdef FEAT_MBYTE |
4183 if (vc.vc_type != CONV_NONE) | 4183 if (vc.vc_type != CONV_NONE) |
4184 convert_setup(&vc, NULL, NULL); | 4184 convert_setup(&vc, NULL, NULL); |
4185 #endif | 4185 #endif |
4186 | 4186 |