Welcome to mirror list, hosted at ThFree Co, Russian Federation.

mallocr.c « xstormy16 « machine « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 23e02f74c51ba542f85117976035f64ca3a10920 (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
#include <malloc.h>

#ifdef DEFINE_MALLOC
_PTR 
_malloc_r (struct _reent *r, size_t sz)
{
  return malloc (sz);
}
#endif

#ifdef DEFINE_CALLOC
_PTR 
_calloc_r (struct _reent *r, size_t a, size_t b)
{
  return calloc (a, b);
}
#endif

#ifdef DEFINE_FREE
void
_free_r (struct _reent *r, _PTR x)
{
  free (x);
}
#endif

#ifdef DEFINE_REALLOC
_PTR 
_realloc_r (struct _reent *r, _PTR x, size_t sz)
{
  return realloc (x, sz);
}
#endif