|
Packit |
d28291 |
/*
|
|
Packit |
d28291 |
* Copyright 1988, 1989 Hans-J. Boehm, Alan J. Demers
|
|
Packit |
d28291 |
* Copyright (c) 1991-1994 by Xerox Corporation. All rights reserved.
|
|
Packit |
d28291 |
*
|
|
Packit |
d28291 |
* THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
|
|
Packit |
d28291 |
* OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
|
|
Packit |
d28291 |
*
|
|
Packit |
d28291 |
* Permission is hereby granted to use or copy this program
|
|
Packit |
d28291 |
* for any purpose, provided the above notices are retained on all copies.
|
|
Packit |
d28291 |
* Permission to modify the code and to distribute modified code is granted,
|
|
Packit |
d28291 |
* provided the above notices are retained, and a notice that the code was
|
|
Packit |
d28291 |
* modified is included with the above copyright notice.
|
|
Packit |
d28291 |
*/
|
|
Packit |
d28291 |
|
|
Packit |
d28291 |
# ifdef HAVE_CONFIG_H
|
|
Packit |
d28291 |
# include "config.h"
|
|
Packit |
d28291 |
# endif
|
|
Packit |
d28291 |
|
|
Packit |
d28291 |
# ifdef PCR
|
|
Packit |
d28291 |
/*
|
|
Packit |
d28291 |
* This definition should go in its own file that includes no other
|
|
Packit |
d28291 |
* header files. Otherwise, we risk not getting the underlying system
|
|
Packit |
d28291 |
* malloc.
|
|
Packit |
d28291 |
*/
|
|
Packit |
d28291 |
# define PCR_NO_RENAME
|
|
Packit |
d28291 |
# include <stdlib.h>
|
|
Packit |
d28291 |
|
|
Packit |
d28291 |
void * real_malloc(size_t size)
|
|
Packit |
d28291 |
{
|
|
Packit |
d28291 |
return(malloc(size));
|
|
Packit |
d28291 |
}
|
|
Packit |
d28291 |
|
|
Packit |
d28291 |
# else
|
|
Packit |
d28291 |
|
|
Packit |
d28291 |
extern int GC_quiet;
|
|
Packit |
d28291 |
/* ANSI C doesn't allow translation units to be empty. */
|
|
Packit |
d28291 |
/* So we guarantee this one is nonempty. */
|
|
Packit |
d28291 |
|
|
Packit |
d28291 |
#endif /* PCR */
|