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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [newlib/] [libc/] [stdlib/] [realloc.c] - Diff between revs 57 and 1765

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

Rev 57 Rev 1765
#ifdef MALLOC_PROVIDED
#ifdef MALLOC_PROVIDED
int _dummy_calloc = 1;
int _dummy_calloc = 1;
#else
#else
/* realloc.c -- a wrapper for realloc_r.  */
/* realloc.c -- a wrapper for realloc_r.  */
 
 
#include <_ansi.h>
#include <_ansi.h>
#include <reent.h>
#include <reent.h>
#include <stdlib.h>
#include <stdlib.h>
#include <malloc.h>
#include <malloc.h>
 
 
#ifndef _REENT_ONLY
#ifndef _REENT_ONLY
 
 
_PTR
_PTR
_DEFUN (realloc, (ap, nbytes),
_DEFUN (realloc, (ap, nbytes),
        _PTR ap _AND
        _PTR ap _AND
        size_t nbytes)
        size_t nbytes)
{
{
  return _realloc_r (_REENT, ap, nbytes);
  return _realloc_r (_REENT, ap, nbytes);
}
}
 
 
#endif
#endif
#endif /* MALLOC_PROVIDED */
#endif /* MALLOC_PROVIDED */
 
 

powered by: WebSVN 2.1.0

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