comparison src/g23m-aci/aci/aci_mem.h @ 1:fa8dc04885d8

src/g23m-*: import from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Oct 2020 06:25:50 +0000
parents
children
comparison
equal deleted inserted replaced
0:4e78acac3d88 1:fa8dc04885d8
1 /*
2 +-----------------------------------------------------------------------------
3 | Project :
4 | Modul : J:\g23m-aci\aci\aci_mem.h
5 +-----------------------------------------------------------------------------
6 | Copyright 2002 Texas Instruments Berlin, AG
7 | All rights reserved.
8 |
9 | This file is confidential and a trade secret of Texas
10 | Instruments Berlin, AG
11 | The receipt of or possession of this file does not convey
12 | any rights to reproduce or disclose its contents or to
13 | manufacture, use, or sell anything it may describe, in
14 | whole, or in part, without the specific written consent of
15 | Texas Instruments Berlin, AG.
16 +-----------------------------------------------------------------------------
17 | Purpose :
18 +-----------------------------------------------------------------------------
19 */
20 #ifndef ACI_MEM_H
21 #define ACI_MEM_H
22
23 /* #define ACI_MEMORY_TRACE */
24
25 #ifdef ACI_MEMORY_TRACE
26
27 EXTERN void *aci_malloc (USHORT size, char* file, int line);
28 #define ACI_MALLOC(P,S) { P = (void*)aci_malloc(S, __FILE__, __LINE__);}
29
30 #if (CHIPSET==15)
31 EXTERN void *aci_malloc_nb (USHORT size, char* file, int line);
32 #define ACI_MALLOC_NB(P,S) { P = (void*)aci_malloc_nb(S, __FILE__, __LINE__);}
33 #endif /* (CHIPSET==15) */
34
35 EXTERN void aci_mfree (void *ptr, char* file, int line);
36 #define ACI_MFREE(P) aci_mfree(P, __FILE__, __LINE__)
37
38 #else /* ifdef ACI_MEMORY_TRACE */
39
40 #define ACI_MALLOC MALLOC
41
42 #if (CHIPSET==15)
43 #define ACI_MALLOC_NB MALLOC_NB
44 #endif /* (CHIPSET==15) */
45
46 #define ACI_MFREE MFREE
47
48 #endif /* ifdef ACI_MEMORY_TRACE */
49
50 #endif