This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: C++ PATCH: Builtins (2 of 3)


On Thu, May 24, 2001 at 06:17:52PM -0700, Mark Mitchell wrote:
> and a use of `memset' in libsupc++ that should have been
> `std::memset'.

Shouldn't we also do the following?  It's including <cstdlib> not <stdlib.h>,
so malloc and free should be qualified.  (Also abort(), but that's trickier.)


Index: eh_alloc.cc
===================================================================
101c101
<   ret = malloc (thrown_size);
---
>   ret = std::malloc (thrown_size);
161c161
<     free (ptr - sizeof (__cxa_exception));
---
>     std::free (ptr - sizeof (__cxa_exception));


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]