bringing SDL 1.2.14 from vendor into the main branch
[AROS-Contrib.git] / rexx / inc / bmem.h
blobe3d38f0673beffadbb8a05abc36b464b46f80cf6
1 /*
2 * $Header$
3 * $Log$
4 * Revision 1.2 2001/04/05 16:57:00 stegerg
5 * don't include <malloc.h> as this include does not exist in AROS
7 * Revision 1.1 2001/04/04 05:43:36 wang
8 * First commit: compiles on Linux, Amiga, Windows, Windows CE, generic gcc
10 * Revision 1.1 1998/07/02 17:35:50 bnv
11 * Initial revision
15 #ifndef __BMEM_H__
16 #define __BMEM_H__
18 #include <stdlib.h>
19 #ifndef AROS
20 #include <malloc.h>
21 #endif
23 #ifdef __DEBUG__
24 # define MALLOC(s,d) mem_malloc(s,d)
25 # define REALLOC(p,s) mem_realloc(p,s)
26 # define FREE mem_free
27 #else
28 # if defined(__BORLANDC__) && (defined(__HUGE__) || defined(__LARGE__))
29 # define MALLOC(s,d) farmalloc(s)
30 # define REALLOC(p,s) farrealloc(p,s)
31 # define FREE farfree
32 # else
33 # define MALLOC(s,d) malloc(s)
34 # define REALLOC(p,s) realloc(p,s)
35 # define FREE free
36 # endif
37 #endif
39 /* ------ function prototypes --------- */
40 #ifdef __DEBUG__
41 void *mem_malloc(size_t size, char *desc);
42 void *mem_realloc(void *ptr, size_t size);
43 void mem_free(void *ptr);
44 void mem_list(void);
45 long mem_allocated(void);
46 #endif
48 #endif