Back to index

plt-scheme  4.2.1
real_malloc.c
Go to the documentation of this file.
00001 /* 
00002  * Copyright 1988, 1989 Hans-J. Boehm, Alan J. Demers
00003  * Copyright (c) 1991-1994 by Xerox Corporation.  All rights reserved.
00004  *
00005  * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
00006  * OR IMPLIED.  ANY USE IS AT YOUR OWN RISK.
00007  *
00008  * Permission is hereby granted to use or copy this program
00009  * for any purpose,  provided the above notices are retained on all copies.
00010  * Permission to modify the code and to distribute modified code is granted,
00011  * provided the above notices are retained, and a notice that the code was
00012  * modified is included with the above copyright notice.
00013  */
00014 /* Boehm, May 19, 1994 2:04 pm PDT */
00015 
00016 
00017 # ifdef PCR
00018 /*
00019  * This definition should go in its own file that includes no other
00020  * header files.  Otherwise, we risk not getting the underlying system
00021  * malloc.
00022  */
00023 # define PCR_NO_RENAME
00024 # include <stdlib.h>
00025 
00026 # ifdef __STDC__
00027     char * real_malloc(size_t size)
00028 # else 
00029     char * real_malloc()
00030     int size;
00031 # endif
00032 {
00033     return((char *)malloc(size));
00034 }
00035 #endif /* PCR */
00036