aboutsummaryrefslogtreecommitdiffstats
path: root/allocn.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2018-08-12 21:35:12 +0200
committerMattias Andrée <maandree@kth.se>2018-08-12 21:35:12 +0200
commit93b8428b5812191177c790ea9ffb9158d5a296b4 (patch)
tree8e43220208a7e3b4780a49b8278e731f3b5fcbbf /allocn.c
parentAdd DONT_DEFINE_CLOCK_MONOTONIC_RAW (diff)
downloadlibsimple-93b8428b5812191177c790ea9ffb9158d5a296b4.tar.gz
libsimple-93b8428b5812191177c790ea9ffb9158d5a296b4.tar.bz2
libsimple-93b8428b5812191177c790ea9ffb9158d5a296b4.tar.xz
Add tests
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'allocn.c')
-rw-r--r--allocn.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/allocn.c b/allocn.c
index 168e54c..7b78ba7 100644
--- a/allocn.c
+++ b/allocn.c
@@ -3,7 +3,7 @@
static inline size_t
-alloc_size_product(size_t n, va_list ap)
+alloc_size_product(size_t n, va_list ap) /* TODO test */
{
size_t prod = n;
if (!n) {
@@ -24,14 +24,14 @@ alloc_size_product(size_t n, va_list ap)
}
void *
-libsimple_vmalloczn(int clear, size_t n, va_list ap)
+libsimple_vmalloczn(int clear, size_t n, va_list ap) /* TODO test */
{
n = alloc_size_product(n, ap);
return !n ? NULL : clear ? calloc(1, n) : malloc(n);
}
void *
-libsimple_vreallocn(void *ptr, size_t n, va_list ap)
+libsimple_vreallocn(void *ptr, size_t n, va_list ap) /* TODO test */
{
n = alloc_size_product(n, ap);
return !n ? NULL : realloc(ptr, n);