blob: c500063a647962552e982e40f6f2e60d7629b7d6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/* See LICENSE file for copyright and license details. */
#include "libsimple.h"
#ifndef TEST
void *
libsimple_envmemalloc(int status, size_t n, va_list ap) /* TODO test (e[n][v]{mem,array}alloc) */
{
void *ret;
int saved_errno = errno;
errno = 0;
ret = libsimple_vmemalloc(n, ap);
if (errno)
enprintf(status, "libsimple_vmemalloc:");
errno = saved_errno;
return ret;
}
#else
#include "test.h"
int
main(void)
{
return 0;
}
#endif
|