diff options
author | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2014-03-26 03:16:09 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-26 16:28:13 -0300 |
commit | bd78282940b246bad34c629fa81150d4073cc330 (patch) | |
tree | 5543be6d10871d07d708a209b19ea7716f5ce701 /src/misc2.c | |
parent | 07dad7acf3d49b3136c5aad2c9fe05abb9aaf032 (diff) | |
download | rneovim-bd78282940b246bad34c629fa81150d4073cc330.tar.gz rneovim-bd78282940b246bad34c629fa81150d4073cc330.tar.bz2 rneovim-bd78282940b246bad34c629fa81150d4073cc330.zip |
Use memcmp instead of vim_memcmp
Diffstat (limited to 'src/misc2.c')
-rw-r--r-- | src/misc2.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/misc2.c b/src/misc2.c index f36eeb8741..20e137ba09 100644 --- a/src/misc2.c +++ b/src/misc2.c @@ -1408,28 +1408,6 @@ void vim_free(void *x) } } -#ifdef VIM_MEMCMP -/* - * Return zero when "b1" and "b2" are the same for "len" bytes. - * Return non-zero otherwise. - */ -int vim_memcmp(b1, b2, len) -void *b1; -void *b2; -size_t len; -{ - char_u *p1 = (char_u *)b1, *p2 = (char_u *)b2; - - for (; len > 0; --len) { - if (*p1 != *p2) - return 1; - ++p1; - ++p2; - } - return 0; -} -#endif - #if (!defined(HAVE_STRCASECMP) && !defined(HAVE_STRICMP)) || defined(PROTO) /* * Compare two strings, ignoring case, using current locale. |