2000-02-18 03:39:52 +08:00
|
|
|
#ifdef MALLOC_PROVIDED
|
2017-11-14 16:01:14 +08:00
|
|
|
int _dummy_realloc = 1;
|
2000-02-18 03:39:52 +08:00
|
|
|
#else
|
|
|
|
/* realloc.c -- a wrapper for realloc_r. */
|
|
|
|
|
|
|
|
#include <_ansi.h>
|
|
|
|
#include <reent.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <malloc.h>
|
|
|
|
|
|
|
|
#ifndef _REENT_ONLY
|
|
|
|
|
2017-12-04 10:53:22 +08:00
|
|
|
void *
|
2017-12-04 11:43:30 +08:00
|
|
|
realloc (void *ap,
|
2000-02-18 03:39:52 +08:00
|
|
|
size_t nbytes)
|
|
|
|
{
|
|
|
|
return _realloc_r (_REENT, ap, nbytes);
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#endif /* MALLOC_PROVIDED */
|