Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jamessan
Copy link
Contributor

@jamessan jamessan commented Dec 1, 2016

vim_memcmp exists to abstract how the memory comparison is performed on
various systems and to fallback to Vim's own memcmp implementation, if
needed. However, there have been various direct memcmp calls in Vim
since at least 2010 without issue.

Converting the remaining vim_memcmp calls to memcmp allows us to remove
the reimplementation of memcmp and reduces the need to know another
Vim-specific function that should be used.

vim_memcmp exists to abstract how the memory comparison is performed on
various systems and to fallback to Vim's own memcmp implementation, if
needed.  However, there have been various direct memcmp calls in Vim
since at least 2010 without issue.

Converting the remaining vim_memcmp calls to memcmp allows us to remove
the reimplementation of memcmp and reduces the need to know another
Vim-specific function that should be used.
@brammool
Copy link
Contributor

brammool commented Dec 1, 2016 via email

@brammool brammool closed this in b129a44 Dec 1, 2016
@jamessan jamessan deleted the remove-vim_memcmp branch December 15, 2016 13:27
desvp pushed a commit to desvp/vim that referenced this pull request May 30, 2017
Problem:    Still checking if memcmp() exists while every system should have
            it now.
Solution:   Remove vim_memcmp().  (James McCoy, closes vim#1295)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants