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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [newlib-1.18.0/] [newlib-1.18.0-or32-1.0rc1/] [newlib/] [libc/] [machine/] [xstormy16/] [mallocr.c] - Diff between revs 207 and 345

Only display areas with differences | Details | Blame | View Log

Rev 207 Rev 345
#include <malloc.h>
#include <malloc.h>
 
 
#ifdef DEFINE_MALLOC
#ifdef DEFINE_MALLOC
_PTR
_PTR
_malloc_r (struct _reent *r, size_t sz)
_malloc_r (struct _reent *r, size_t sz)
{
{
  return malloc (sz);
  return malloc (sz);
}
}
#endif
#endif
 
 
#ifdef DEFINE_CALLOC
#ifdef DEFINE_CALLOC
_PTR
_PTR
_calloc_r (struct _reent *r, size_t a, size_t b)
_calloc_r (struct _reent *r, size_t a, size_t b)
{
{
  return calloc (a, b);
  return calloc (a, b);
}
}
#endif
#endif
 
 
#ifdef DEFINE_FREE
#ifdef DEFINE_FREE
void
void
_free_r (struct _reent *r, _PTR x)
_free_r (struct _reent *r, _PTR x)
{
{
  free (x);
  free (x);
}
}
#endif
#endif
 
 
#ifdef DEFINE_REALLOC
#ifdef DEFINE_REALLOC
_PTR
_PTR
_realloc_r (struct _reent *r, _PTR x, size_t sz)
_realloc_r (struct _reent *r, _PTR x, size_t sz)
{
{
  return realloc (x, sz);
  return realloc (x, sz);
}
}
#endif
#endif
 
 

powered by: WebSVN 2.1.0

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