repo.or.cz
/
zpugcc
/
jano.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fixes for host gcc 4.6.1
[zpugcc/jano.git]
/
toolchain
/
gcc
/
newlib
/
libc
/
machine
/
xstormy16
/
mallocr.c
blob
23e02f74c51ba542f85117976035f64ca3a10920
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