Mercurial > vim
comparison src/tag.c @ 10430:37a441352da2 v8.0.0109
commit https://github.com/vim/vim/commit/b129a447f3b580d4c941869672b0557c52c37e4d
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Dec 1 17:25:20 2016 +0100
patch 8.0.0109
Problem: Still checking if memcmp() exists while every system should have
it now.
Solution: Remove vim_memcmp(). (James McCoy, closes https://github.com/vim/vim/issues/1295)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 01 Dec 2016 17:30:05 +0100 |
parents | 154d5a2e7395 |
children | 2edda415c28a |
comparison
equal
deleted
inserted
replaced
10429:71632fef5928 | 10430:37a441352da2 |
---|---|
2398 for (i = ga_match[mtt].ga_len; --i >= 0 && !got_int; ) | 2398 for (i = ga_match[mtt].ga_len; --i >= 0 && !got_int; ) |
2399 { | 2399 { |
2400 mfp2 = ((struct match_found **) | 2400 mfp2 = ((struct match_found **) |
2401 (ga_match[mtt].ga_data))[i]; | 2401 (ga_match[mtt].ga_data))[i]; |
2402 if (mfp2->len == mfp->len | 2402 if (mfp2->len == mfp->len |
2403 && vim_memcmp(mfp2->match, mfp->match, | 2403 && memcmp(mfp2->match, mfp->match, |
2404 (size_t)mfp->len) == 0) | 2404 (size_t)mfp->len) == 0) |
2405 break; | 2405 break; |
2406 fast_breakcheck(); | 2406 fast_breakcheck(); |
2407 } | 2407 } |
2408 if (i < 0) | 2408 if (i < 0) |