URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 207 |
Rev 345 |
#ifndef MALLOC_PROVIDED
|
#ifndef MALLOC_PROVIDED
|
/* valloc.c -- a wrapper for valloc_r and pvalloc_r. */
|
/* valloc.c -- a wrapper for valloc_r and pvalloc_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 (valloc, (nbytes),
|
_DEFUN (valloc, (nbytes),
|
size_t nbytes)
|
size_t nbytes)
|
{
|
{
|
return _valloc_r (_REENT, nbytes);
|
return _valloc_r (_REENT, nbytes);
|
}
|
}
|
|
|
_PTR
|
_PTR
|
_DEFUN (pvalloc, (nbytes),
|
_DEFUN (pvalloc, (nbytes),
|
size_t nbytes)
|
size_t nbytes)
|
{
|
{
|
return _pvalloc_r (_REENT, nbytes);
|
return _pvalloc_r (_REENT, nbytes);
|
}
|
}
|
|
|
#endif
|
#endif
|
#endif
|
#endif
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.