implemented Setup.hs to build boehm cpp libs and install them;
[hs-boehmgc.git] / gc-7.2 / real_malloc.c
1 /*
2  * Copyright 1988, 1989 Hans-J. Boehm, Alan J. Demers
3  * Copyright (c) 1991-1994 by Xerox Corporation.  All rights reserved.
4  *
5  * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
6  * OR IMPLIED.  ANY USE IS AT YOUR OWN RISK.
7  *
8  * Permission is hereby granted to use or copy this program
9  * for any purpose,  provided the above notices are retained on all copies.
10  * Permission to modify the code and to distribute modified code is granted,
11  * provided the above notices are retained, and a notice that the code was
12  * modified is included with the above copyright notice.
13  */
14
15 # ifdef HAVE_CONFIG_H
16 #   include "private/config.h"
17 # endif
18
19 # ifdef PCR
20 /*
21  * This definition should go in its own file that includes no other
22  * header files.  Otherwise, we risk not getting the underlying system
23  * malloc.
24  */
25 # define PCR_NO_RENAME
26 # include <stdlib.h>
27
28 void * real_malloc(size_t size)
29 {
30     return(malloc(size));
31 }
32
33 # else
34
35 extern int GC_quiet;
36         /* ANSI C doesn't allow translation units to be empty.  */
37         /* So we guarantee this one is nonempty.                */
38
39 #endif /* PCR */