* cxx.cc (new): Fix formatting. Just return result of ccalloc rather than
calling memset explicitly.
This commit is contained in:
parent
e48feef96a
commit
026dcb34c6
|
@ -1,3 +1,8 @@
|
||||||
|
2003-09-03 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
* cxx.cc (new): Fix formatting. Just return result of ccalloc rather
|
||||||
|
than calling memset explicitly.
|
||||||
|
|
||||||
2003-09-03 Christopher Faylor <cgf@redhat.com>
|
2003-09-03 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* exceptions.cc (set_process_mask): Set pending signals only when
|
* exceptions.cc (set_process_mask): Set pending signals only when
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* cxx.cc
|
/* cxx.cc
|
||||||
|
|
||||||
Copyright 2002 Red Hat, Inc.
|
Copyright 2002, 2003 Red Hat, Inc.
|
||||||
|
|
||||||
This file is part of Cygwin.
|
This file is part of Cygwin.
|
||||||
|
|
||||||
|
@ -16,9 +16,7 @@ details. */
|
||||||
void *
|
void *
|
||||||
operator new (size_t s)
|
operator new (size_t s)
|
||||||
{
|
{
|
||||||
void *p = malloc (s);
|
void *p = calloc (1, s);
|
||||||
if (p)
|
|
||||||
memset (p,0,s);
|
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,5 +43,4 @@ __cxa_pure_virtual (void)
|
||||||
{
|
{
|
||||||
api_fatal ("pure virtual method called");
|
api_fatal ("pure virtual method called");
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue