Last change
on this file was 2, checked in by bird, 22 years ago |
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
File size:
1021 bytes
|
Line | |
---|
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 | /* Boehm, May 19, 1994 2:04 pm PDT */
|
---|
15 |
|
---|
16 |
|
---|
17 | # ifdef PCR
|
---|
18 | /*
|
---|
19 | * This definition should go in its own file that includes no other
|
---|
20 | * header files. Otherwise, we risk not getting the underlying system
|
---|
21 | * malloc.
|
---|
22 | */
|
---|
23 | # define PCR_NO_RENAME
|
---|
24 | # include <stdlib.h>
|
---|
25 |
|
---|
26 | # ifdef __STDC__
|
---|
27 | char * real_malloc(size_t size)
|
---|
28 | # else
|
---|
29 | char * real_malloc()
|
---|
30 | int size;
|
---|
31 | # endif
|
---|
32 | {
|
---|
33 | return((char *)malloc(size));
|
---|
34 | }
|
---|
35 | #endif /* PCR */
|
---|
36 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.