summaryrefslogtreecommitdiffstats
path: root/src/vf_malloc_stdlib.h
blob: d7652565896429e55f3c5fc367806c3842a30390 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/******************************************************************************

    (C) Nick Marley, 2001 -

    This software is distributed under the GNU Lesser General Public Licence.
    Please read and understand the comments at the top of vf_iface.h before use!

FILE
    $Workfile: vf_malloc.h $
    $Revision: 1.1 $
    $Author: tilda $
         
ORIGINAL AUTHOR
    Nick Marley

DESCRIPTION
    Externs for the malloc() based memory allocator.

MODIFICATION HISTORY
 *  $Log: vf_malloc_stdlib.h,v $
 *  Revision 1.1  2002/10/26 15:57:11  tilda
 *  Initial Version
 *
 * 
 *******************************************************************************/

#ifndef _VF_MALLOC_STDLIB_H_
#define _VF_MALLOC_STDLIB_H_

#ifndef NORCSID
static const char vf_malloc_stdlib_h_vss_id[] = "$Header: /cvsroot/vformat/src/vformat/src/vf_malloc_stdlib.h,v 1.1 2002/10/26 15:57:11 tilda Exp $";
#endif

/*=============================================================================*
 Public Includes
 *============================================================================*/
/* None */

/*=============================================================================*
 Public Defines
 *============================================================================*/
/* None */

/*=============================================================================*
 Public Types
 *============================================================================*/
/* None */

/*=============================================================================*
 Public Functions
 *============================================================================*/
/* None */

/*=============================================================================*
 End of file
 *============================================================================*/


/*----------------------------------------------------------------------------*
 * NAME
 *      _vf_stdlib_malloc(), _vf_stdlib_realloc(), _vf_stdlib_free()
 * 
 * DESCRIPTION
 *      Memory allocation functions provided in terms of C runtime library
 *      malloc() etc.  If VFORMAT_MEM_DEBUG is defined the line & file are
 *      passed through for ebugging purposes.
 *
 * RETURNS
 *      (various)
 *----------------------------------------------------------------------------*/

#if defined(VFORMAT_MEM_DEBUG)

extern void *_vf_stdlib_malloc(uint32_t s, const char *file, int line);
extern void *_vf_stdlib_realloc(void *p, uint32_t ns, const char *file, int line);
extern void _vf_stdlib_free(void *p, const char *file, int line);

#else

extern void *_vf_stdlib_malloc(uint32_t s);
extern void *_vf_stdlib_realloc(void *p, uint32_t ns);
extern void _vf_stdlib_free(void *p);

#endif

/*=============================================================================*
 FIN
 *============================================================================*/

#endif /*_VF_MALLOC_STDLIB_H_*/