summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorunknown <ramil@mysql.com>2005-10-12 18:50:25 +0500
committerunknown <ramil@mysql.com>2005-10-12 18:50:25 +0500
commit6c89848de9f3bedf0a1d5e6721f9c88959a9f9b4 (patch)
tree56b760f4a61f7e099eb52b50576b6e0fec2da8a6 /include
parente032994ea87224310157facb35396a2e80460628 (diff)
downloadmariadb-git-6c89848de9f3bedf0a1d5e6721f9c88959a9f9b4.tar.gz
memcpy_overlap() removed, as
1. it's wrong to use memcpy() for overlapped areas; 2. we use it only once. During merge to 4.1 will remove a memcpy_overlap() call from strings/ctype-tis620.c as well in order to fix bug #10836: ctype_tis620 test failure with ICC-compiled binaries on IA64. myisam/mi_search.c: use memmove() instead, as memcpy_overlap() is removed.
Diffstat (limited to 'include')
-rw-r--r--include/m_string.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/include/m_string.h b/include/m_string.h
index 419e70d93bf..f081c966fac 100644
--- a/include/m_string.h
+++ b/include/m_string.h
@@ -119,16 +119,6 @@ extern void bmove_allign(gptr dst,const gptr src,uint len);
#define bmove512(A,B,C) memcpy(A,B,C)
#endif
-#ifdef HAVE_purify
-#include <assert.h>
-#define memcpy_overlap(A,B,C) \
-DBUG_ASSERT((A) <= (B) || ((B)+(C)) <= (A)); \
-bmove((byte*) key,(byte*) from,(size_t) length);
-#else
-#define memcpy_overlap(A,B,C) memcpy((A), (B), (C))
-#endif /* HAVE_purify */
-
-
/* Prototypes for string functions */
#if !defined(bfill) && !defined(HAVE_BFILL)