OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [newlib/] [libc/] [machine/] [xstormy16/] [mallocr.c] - Blame information for rev 823

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 148 jeremybenn
#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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.