mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-07 06:50:24 +08:00
merge from gcc
This commit is contained in:
parent
364b9683e4
commit
142ed05f57
@ -1,3 +1,8 @@
|
|||||||
|
2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
|
||||||
|
|
||||||
|
* libiberty.h (XDELETE, XDELETEVEC, XRESIZEVEC): Remove any
|
||||||
|
const-qualification before disposal.
|
||||||
|
|
||||||
2004-07-24 Bernardo Innocenti <bernie@develer.com>
|
2004-07-24 Bernardo Innocenti <bernie@develer.com>
|
||||||
|
|
||||||
* ansidecl.h (ARG_UNUSED): New Macro.
|
* ansidecl.h (ARG_UNUSED): New Macro.
|
||||||
|
@ -261,14 +261,14 @@ extern double physmem_available PARAMS ((void));
|
|||||||
|
|
||||||
#define XNEW(T) ((T *) xmalloc (sizeof (T)))
|
#define XNEW(T) ((T *) xmalloc (sizeof (T)))
|
||||||
#define XCNEW(T) ((T *) xcalloc (1, sizeof (T)))
|
#define XCNEW(T) ((T *) xcalloc (1, sizeof (T)))
|
||||||
#define XDELETE(P) free ((P))
|
#define XDELETE(P) free ((void*) (P))
|
||||||
|
|
||||||
/* Array allocators. */
|
/* Array allocators. */
|
||||||
|
|
||||||
#define XNEWVEC(T, N) ((T *) xmalloc (sizeof (T) * (N)))
|
#define XNEWVEC(T, N) ((T *) xmalloc (sizeof (T) * (N)))
|
||||||
#define XCNEWVEC(T, N) ((T *) xcalloc ((N), sizeof (T)))
|
#define XCNEWVEC(T, N) ((T *) xcalloc ((N), sizeof (T)))
|
||||||
#define XRESIZEVEC(T, P, N) ((T *) xrealloc ((P), sizeof (T) * (N)))
|
#define XRESIZEVEC(T, P, N) ((T *) xrealloc ((void *) (P), sizeof (T) * (N)))
|
||||||
#define XDELETEVEC(P) free ((P))
|
#define XDELETEVEC(P) free ((void*) (P))
|
||||||
|
|
||||||
/* Allocators for variable-sized structures and raw buffers. */
|
/* Allocators for variable-sized structures and raw buffers. */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user