OSDN Git Service
(root)
/
pf3gnuchains
/
pf3gnuchains3x.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
r288@cf-ppc-macosx: monabuilder | 2008-12-07 13:17:34 +0900
[pf3gnuchains/pf3gnuchains3x.git]
/
newlib
/
libc
/
machine
/
xstormy16
/
mallocr.c
1
#include <malloc.h>
2
3
#ifdef DEFINE_MALLOC
4
_PTR
5
_malloc_r (struct _reent *r, size_t sz)
6
{
7
return malloc (sz);
8
}
9
#endif
10
11
#ifdef DEFINE_CALLOC
12
_PTR
13
_calloc_r (struct _reent *r, size_t a, size_t b)
14
{
15
return calloc (a, b);
16
}
17
#endif
18
19
#ifdef DEFINE_FREE
20
void
21
_free_r (struct _reent *r, _PTR x)
22
{
23
free (x);
24
}
25
#endif
26
27
#ifdef DEFINE_REALLOC
28
_PTR
29
_realloc_r (struct _reent *r, _PTR x, size_t sz)
30
{
31
return realloc (x, sz);
32
}
33
#endif