summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
authorAaron Crane <arc@cpan.org>2017-10-12 11:02:27 +0200
committerAaron Crane <arc@cpan.org>2017-10-21 16:50:42 +0100
commit04322328fc4bc2863d0bc74339ed92d33b7eaba7 (patch)
tree1d346b8714d55af8fc3c9cd112dcc1effe526b5c /handy.h
parent11568d10a6b3495b7a54f171d4134d8798fd64d6 (diff)
downloadperl-04322328fc4bc2863d0bc74339ed92d33b7eaba7.tar.gz
Assume we have C89 memset()
This means we also never need to consider using BSD bzero().
Diffstat (limited to 'handy.h')
-rw-r--r--handy.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/handy.h b/handy.h
index 8e18d78532..0f31e57218 100644
--- a/handy.h
+++ b/handy.h
@@ -2418,12 +2418,7 @@ void Perl_mem_log_del_sv(const SV *sv, const char *filename, const int linenumbe
#define MoveD(s,d,n,t) (MEM_WRAP_CHECK_(n,t) perl_assert_ptr(d), perl_assert_ptr(s), memmove((char*)(d),(const char*)(s), (n) * sizeof(t)))
#define CopyD(s,d,n,t) (MEM_WRAP_CHECK_(n,t) perl_assert_ptr(d), perl_assert_ptr(s), memcpy((char*)(d),(const char*)(s), (n) * sizeof(t)))
-#ifdef HAS_MEMSET
#define ZeroD(d,n,t) (MEM_WRAP_CHECK_(n,t) perl_assert_ptr(d), memzero((char*)(d), (n) * sizeof(t)))
-#else
-/* Using bzero(), which returns void. */
-#define ZeroD(d,n,t) (MEM_WRAP_CHECK_(n,t) perl_assert_ptr(d), memzero((char*)(d), (n) * sizeof(t)),d)
-#endif
#define PoisonWith(d,n,t,b) (MEM_WRAP_CHECK_(n,t) (void)memset((char*)(d), (U8)(b), (n) * sizeof(t)))
#define PoisonNew(d,n,t) PoisonWith(d,n,t,0xAB)