1 /* @(#) pf_mem.h 98/01/26 1.3 */
\r
5 /***************************************************************
\r
6 ** Include file for PForth Fake Memory Allocator
\r
9 ** Copyright 1994 3DO, Phil Burk, Larry Polansky, David Rosenboom
\r
11 ** The pForth software code is dedicated to the public domain,
\r
12 ** and any third party may reproduce, distribute and modify
\r
13 ** code is provided on an "as is" basis without any warranty
\r
14 ** of any kind, including, without limitation, the implied
\r
15 ** warranties of merchantability and fitness for a particular
\r
16 ***************************************************************/
\r
24 void pfInitMemoryAllocator( void );
\r
25 char *pfAllocMem( cell_t NumBytes );
\r
26 void pfFreeMem( void *Mem );
\r
34 #ifdef PF_USER_MALLOC
\r
35 /* Get user prototypes or macros from include file.
\r
36 ** API must match that defined above for the stubs.
\r
38 #include PF_USER_MALLOC
\r
40 #define pfInitMemoryAllocator()
\r
41 #define pfAllocMem malloc
\r
42 #define pfFreeMem free
\r
45 #endif /* PF_NO_MALLOC */
\r
47 #endif /* _pf_mem_h */
\r