aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-06-11 17:04:35 +0200
committerMattias Andrée <maandree@kth.se>2022-06-11 17:04:35 +0200
commitc76c12f0d0ea8c2f5fa6853636e3e7c2021ac93c (patch)
tree711e295bfd186d6bee9d2b53eb4c9fc2f058f136
parentFix warnings, replace some static inline with inline + extern inline, and fix glibc support (diff)
downloadlibsimple-c76c12f0d0ea8c2f5fa6853636e3e7c2021ac93c.tar.gz
libsimple-c76c12f0d0ea8c2f5fa6853636e3e7c2021ac93c.tar.bz2
libsimple-c76c12f0d0ea8c2f5fa6853636e3e7c2021ac93c.tar.xz
Remove `static` from some `static inline`
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--Makefile91
-rw-r--r--aligned_allocn.c18
-rw-r--r--aligned_allocz.c18
-rw-r--r--aligned_alloczn.c18
-rw-r--r--aligned_realloc.c18
-rw-r--r--aligned_reallocarray.c18
-rw-r--r--aligned_reallocarrayf.c18
-rw-r--r--aligned_reallocf.c18
-rw-r--r--aligned_reallocfn.c18
-rw-r--r--aligned_reallocn.c18
-rw-r--r--callocn.c18
-rw-r--r--ealigned_alloc.c18
-rw-r--r--ealigned_allocn.c18
-rw-r--r--ealigned_allocz.c18
-rw-r--r--ealigned_alloczn.c18
-rw-r--r--ealigned_realloc.c18
-rw-r--r--ealigned_reallocarray.c18
-rw-r--r--ealigned_reallocn.c18
-rw-r--r--ecalloc.c18
-rw-r--r--ecallocn.c18
-rw-r--r--emalloc.c18
-rw-r--r--emallocn.c18
-rw-r--r--emallocz.c18
-rw-r--r--emalloczn.c18
-rw-r--r--ememalign.c18
-rw-r--r--ememalignn.c18
-rw-r--r--ememalignz.c18
-rw-r--r--ememalignzn.c18
-rw-r--r--enaligned_alloc.c18
-rw-r--r--enaligned_allocn.c18
-rw-r--r--enaligned_alloczn.c18
-rw-r--r--enaligned_reallocn.c18
-rw-r--r--encallocn.c18
-rw-r--r--enmallocn.c18
-rw-r--r--enmallocz.c18
-rw-r--r--enmalloczn.c18
-rw-r--r--enmemalign.c18
-rw-r--r--enmemalignn.c18
-rw-r--r--enmemalignz.c18
-rw-r--r--enmemalignzn.c18
-rw-r--r--envaligned_allocn.c18
-rw-r--r--envalloc.c18
-rw-r--r--envallocn.c18
-rw-r--r--envcallocn.c18
-rw-r--r--envmallocn.c18
-rw-r--r--envmemalignn.c18
-rw-r--r--envmemalignzn.c18
-rw-r--r--envvallocn.c18
-rw-r--r--evaligned_allocn.c18
-rw-r--r--evaligned_alloczn.c18
-rw-r--r--evaligned_reallocn.c18
-rw-r--r--evalloc.c18
-rw-r--r--evallocn.c18
-rw-r--r--evcallocn.c18
-rw-r--r--evmallocn.c18
-rw-r--r--evmalloczn.c18
-rw-r--r--evmemalignn.c18
-rw-r--r--evmemalignzn.c18
-rw-r--r--evvallocn.c18
-rw-r--r--libsimple/aligned_alloc.h16
-rw-r--r--libsimple/aligned_allocz.h12
-rw-r--r--libsimple/aligned_realloc.h32
-rw-r--r--libsimple/calloc.h14
-rw-r--r--libsimple/malloc.h14
-rw-r--r--libsimple/mallocz.h14
-rw-r--r--libsimple/memalign.h18
-rw-r--r--libsimple/memalignz.h18
-rw-r--r--libsimple/strn.h34
-rw-r--r--libsimple/valloc.h18
-rw-r--r--mallocn.c18
-rw-r--r--mallocz.c18
-rw-r--r--malloczn.c18
-rw-r--r--memalign.c18
-rw-r--r--memalignn.c18
-rw-r--r--memalignz.c18
-rw-r--r--memalignzn.c18
-rw-r--r--stpnmove.c18
-rw-r--r--stpnset.c18
-rw-r--r--strncasecmpnul.c18
-rw-r--r--strncaseeq.c18
-rw-r--r--strncaseeqnul.c18
-rw-r--r--strnccpy.c18
-rw-r--r--strncmpnul.c18
-rw-r--r--strneq.c18
-rw-r--r--strneqnul.c18
-rw-r--r--strnisutf8.c18
-rw-r--r--strnmove.c18
-rw-r--r--strnreplace.c18
-rw-r--r--strnset.c18
-rw-r--r--strntolower.c18
-rw-r--r--strntoupper.c18
-rw-r--r--strrncaseeqlen.c18
-rw-r--r--strrneqlen.c18
-rw-r--r--valigned_allocn.c18
-rw-r--r--valigned_reallocfn.c18
-rw-r--r--valloc.c18
-rw-r--r--vallocn.c18
-rw-r--r--vcallocn.c18
-rw-r--r--vmallocn.c18
-rw-r--r--vmemalignn.c18
-rw-r--r--vmemalignzn.c18
-rw-r--r--vvallocn.c18
102 files changed, 1824 insertions, 95 deletions
diff --git a/Makefile b/Makefile
index 3299480..57bc372 100644
--- a/Makefile
+++ b/Makefile
@@ -49,7 +49,16 @@ HDR =\
libsimple.h
OBJ =\
+ aligned_allocn.o\
+ aligned_allocz.o\
+ aligned_alloczn.o\
aligned_memdup.o\
+ aligned_realloc.o\
+ aligned_reallocarray.o\
+ aligned_reallocarrayf.o\
+ aligned_reallocf.o\
+ aligned_reallocfn.o\
+ aligned_reallocn.o\
aligned_strdup.o\
aligned_strndup.o\
aligned_wcsdup.o\
@@ -57,6 +66,7 @@ OBJ =\
aligned_wmemdup.o\
allocn.o\
asprintf.o\
+ callocn.o\
close.o\
cmptimespec.o\
cmptimeval.o\
@@ -64,29 +74,58 @@ OBJ =\
difftimeval.o\
doubletotimespec.o\
doubletotimeval.o\
+ ealigned_alloc.o\
+ ealigned_allocn.o\
+ ealigned_allocz.o\
+ ealigned_alloczn.o\
ealigned_memdup.o\
+ ealigned_realloc.o\
+ ealigned_reallocarray.o\
+ ealigned_reallocn.o\
ealigned_strdup.o\
ealigned_strndup.o\
ealigned_wcsdup.o\
ealigned_wcsndup.o\
ealigned_wmemdup.o\
+ ecalloc.o\
+ ecallocn.o\
egmtime.o\
elocaltime.o\
+ emalloc.o\
+ emallocn.o\
+ emallocz.o\
+ emalloczn.o\
+ ememalign.o\
+ ememalignn.o\
+ ememalignz.o\
+ ememalignzn.o\
ememalloc.o\
ememdup.o\
+ enaligned_alloc.o\
+ enaligned_allocn.o\
enaligned_allocz.o\
+ enaligned_alloczn.o\
enaligned_memdup.o\
enaligned_realloc.o\
enaligned_reallocarray.o\
+ enaligned_reallocn.o\
enaligned_strdup.o\
enaligned_strndup.o\
enaligned_wcsdup.o\
enaligned_wcsndup.o\
enaligned_wmemdup.o\
encalloc.o\
+ encallocn.o\
engmtime.o\
enlocaltime.o\
enmalloc.o\
+ enmallocn.o\
+ enmallocz.o\
+ enmalloczn.o\
+ enmemalign.o\
+ enmemalignn.o\
+ enmemalignz.o\
+ enmemalignzn.o\
enmemalloc.o\
enmemdup.o\
enposix_memalign.o\
@@ -104,11 +143,18 @@ OBJ =\
enreallocn.o\
enstrdup.o\
enstrndup.o\
+ envaligned_allocn.o\
envaligned_alloczn.o\
envaligned_reallocn.o\
+ envalloc.o\
+ envallocn.o\
envallocz.o\
envalloczn.o\
+ envcallocn.o\
+ envmallocn.o\
envmalloczn.o\
+ envmemalignn.o\
+ envmemalignzn.o\
envmemalloc.o\
envposix_memalignn.o\
envposix_memalignzn.o\
@@ -116,6 +162,7 @@ OBJ =\
envpvallocn.o\
envpvalloczn.o\
envreallocn.o\
+ envvallocn.o\
envvalloczn.o\
enwcsdup.o\
enwcsndup.o\
@@ -135,8 +182,18 @@ OBJ =\
ereallocn.o\
estrdup.o\
estrndup.o\
+ evaligned_allocn.o\
+ evaligned_alloczn.o\
+ evaligned_reallocn.o\
+ evalloc.o\
+ evallocn.o\
evallocz.o\
evalloczn.o\
+ evcallocn.o\
+ evmallocn.o\
+ evmalloczn.o\
+ evmemalignn.o\
+ evmemalignzn.o\
evmemalloc.o\
evposix_memalignn.o\
evposix_memalignzn.o\
@@ -144,6 +201,7 @@ OBJ =\
evpvallocn.o\
evpvalloczn.o\
evreallocn.o\
+ evvallocn.o\
evvalloczn.o\
ewcsdup.o\
ewcsndup.o\
@@ -152,6 +210,13 @@ OBJ =\
getenv_ne.o\
gmtime.o\
localtime.o\
+ mallocn.o\
+ mallocz.o\
+ malloczn.o\
+ memalign.o\
+ memalignn.o\
+ memalignz.o\
+ memalignzn.o\
memalloc.o\
memcasechr.o\
memcasechr_inv.o\
@@ -233,6 +298,8 @@ OBJ =\
reallocf.o\
reallocfn.o\
reallocn.o\
+ stpnmove.o\
+ stpnset.o\
stpntolower.o\
stpntoupper.o\
stptolower.o\
@@ -254,29 +321,44 @@ OBJ =\
strncasechr_inv.o\
strncasechrnul.o\
strncasechrnul_inv.o\
+ strncasecmpnul.o\
strncaseends.o\
+ strncaseeq.o\
strncaseeqlen.o\
+ strncaseeqnul.o\
strncasestarts.o\
strncasestr.o\
+ strnccpy.o\
strnchr.o\
strnchr_inv.o\
strnchrnul.o\
strnchrnul_inv.o\
strncmove.o\
+ strncmpnul.o\
strnend.o\
strnends.o\
+ strneq.o\
strneqlen.o\
+ strneqnul.o\
+ strnisutf8.o\
+ strnmove.o\
+ strnreplace.o\
+ strnset.o\
strnstarts.o\
strnstr.o\
+ strntolower.o\
+ strntoupper.o\
strrcasechr.o\
strrcasechr_inv.o\
strrcasestr.o\
strrchr_inv.o\
strrncasechr.o\
strrncasechr_inv.o\
+ strrncaseeqlen.o\
strrncasestr.o\
strrnchr.o\
strrnchr_inv.o\
+ strrneqlen.o\
strrnstr.o\
strrstr.o\
strstarts.o\
@@ -307,17 +389,26 @@ OBJ =\
timevaltodouble.o\
timevaltostr.o\
unlist.o\
+ valigned_allocn.o\
+ valigned_reallocfn.o\
+ valloc.o\
+ vallocn.o\
vallocz.o\
valloczn.o\
vasprintf.o\
+ vcallocn.o\
venprintf.o\
veprintf.o\
+ vmallocn.o\
+ vmemalignn.o\
+ vmemalignzn.o\
vmemalloc.o\
vposix_memalignn.o\
vputenvf.o\
vpvallocn.o\
vpvalloczn.o\
vreallocfn.o\
+ vvallocn.o\
vvalloczn.o\
vweprintf.o\
wcsndup.o\
diff --git a/aligned_allocn.c b/aligned_allocn.c
new file mode 100644
index 0000000..42e614c
--- /dev/null
+++ b/aligned_allocn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_aligned_allocn(size_t, size_t, ...);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/aligned_allocz.c b/aligned_allocz.c
new file mode 100644
index 0000000..ab18d1a
--- /dev/null
+++ b/aligned_allocz.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_aligned_allocz(int, size_t, size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/aligned_alloczn.c b/aligned_alloczn.c
new file mode 100644
index 0000000..9b35a17
--- /dev/null
+++ b/aligned_alloczn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_aligned_alloczn(int, size_t, size_t, ...);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/aligned_realloc.c b/aligned_realloc.c
new file mode 100644
index 0000000..1aaa0b9
--- /dev/null
+++ b/aligned_realloc.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_aligned_realloc(void *, size_t, size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/aligned_reallocarray.c b/aligned_reallocarray.c
new file mode 100644
index 0000000..185f24a
--- /dev/null
+++ b/aligned_reallocarray.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_aligned_reallocarray(void *, size_t, size_t, size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/aligned_reallocarrayf.c b/aligned_reallocarrayf.c
new file mode 100644
index 0000000..561615f
--- /dev/null
+++ b/aligned_reallocarrayf.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_aligned_reallocarrayf(void *, size_t, size_t, size_t); /* TODO test */
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/aligned_reallocf.c b/aligned_reallocf.c
new file mode 100644
index 0000000..9493fb9
--- /dev/null
+++ b/aligned_reallocf.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_aligned_reallocf(void *, size_t, size_t); /* TODO test */
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/aligned_reallocfn.c b/aligned_reallocfn.c
new file mode 100644
index 0000000..21e97ec
--- /dev/null
+++ b/aligned_reallocfn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_aligned_reallocfn(void *, size_t, size_t, ...);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/aligned_reallocn.c b/aligned_reallocn.c
new file mode 100644
index 0000000..ffae2fd
--- /dev/null
+++ b/aligned_reallocn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_aligned_reallocn(void *, size_t, size_t, ...);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/callocn.c b/callocn.c
new file mode 100644
index 0000000..70b95a6
--- /dev/null
+++ b/callocn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_callocn(size_t, ...);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/ealigned_alloc.c b/ealigned_alloc.c
new file mode 100644
index 0000000..8076b23
--- /dev/null
+++ b/ealigned_alloc.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_ealigned_alloc(size_t, size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/ealigned_allocn.c b/ealigned_allocn.c
new file mode 100644
index 0000000..e10399b
--- /dev/null
+++ b/ealigned_allocn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_ealigned_allocn(size_t, size_t, ...);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/ealigned_allocz.c b/ealigned_allocz.c
new file mode 100644
index 0000000..586df48
--- /dev/null
+++ b/ealigned_allocz.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_ealigned_allocz(int, size_t, size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/ealigned_alloczn.c b/ealigned_alloczn.c
new file mode 100644
index 0000000..2787549
--- /dev/null
+++ b/ealigned_alloczn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_ealigned_alloczn(int, size_t, size_t, ...);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/ealigned_realloc.c b/ealigned_realloc.c
new file mode 100644
index 0000000..40b8372
--- /dev/null
+++ b/ealigned_realloc.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_ealigned_realloc(void *, size_t, size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/ealigned_reallocarray.c b/ealigned_reallocarray.c
new file mode 100644
index 0000000..8f44315
--- /dev/null
+++ b/ealigned_reallocarray.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_ealigned_reallocarray(void *, size_t, size_t, size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/ealigned_reallocn.c b/ealigned_reallocn.c
new file mode 100644
index 0000000..3292a5a
--- /dev/null
+++ b/ealigned_reallocn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_ealigned_reallocn(void *, size_t, size_t, ...);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/ecalloc.c b/ecalloc.c
new file mode 100644
index 0000000..edf3549
--- /dev/null
+++ b/ecalloc.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_ecalloc(size_t, size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/ecallocn.c b/ecallocn.c
new file mode 100644
index 0000000..d5cf8f4
--- /dev/null
+++ b/ecallocn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_ecallocn(size_t, ...);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/emalloc.c b/emalloc.c
new file mode 100644
index 0000000..54da30d
--- /dev/null
+++ b/emalloc.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_emalloc(size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/emallocn.c b/emallocn.c
new file mode 100644
index 0000000..e742427
--- /dev/null
+++ b/emallocn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_emallocn(size_t, ...);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/emallocz.c b/emallocz.c
new file mode 100644
index 0000000..ab52b36
--- /dev/null
+++ b/emallocz.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_emallocz(int, size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/emalloczn.c b/emalloczn.c
new file mode 100644
index 0000000..760ee59
--- /dev/null
+++ b/emalloczn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_emalloczn(int, size_t, ...);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/ememalign.c b/ememalign.c
new file mode 100644
index 0000000..422c08d
--- /dev/null
+++ b/ememalign.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_ememalign(size_t, size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/ememalignn.c b/ememalignn.c
new file mode 100644
index 0000000..cda6e99
--- /dev/null
+++ b/ememalignn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_ememalignn(size_t, size_t, ...);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/ememalignz.c b/ememalignz.c
new file mode 100644
index 0000000..2ca550d
--- /dev/null
+++ b/ememalignz.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_ememalignz(int, size_t, size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/ememalignzn.c b/ememalignzn.c
new file mode 100644
index 0000000..72ab6f2
--- /dev/null
+++ b/ememalignzn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_ememalignzn(int, size_t, size_t, ...);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/enaligned_alloc.c b/enaligned_alloc.c
new file mode 100644
index 0000000..b7f8754
--- /dev/null
+++ b/enaligned_alloc.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_enaligned_alloc(int, size_t, size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/enaligned_allocn.c b/enaligned_allocn.c
new file mode 100644
index 0000000..2c10177
--- /dev/null
+++ b/enaligned_allocn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_enaligned_allocn(int, size_t, size_t, ...);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/enaligned_alloczn.c b/enaligned_alloczn.c
new file mode 100644
index 0000000..55f00d7
--- /dev/null
+++ b/enaligned_alloczn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_enaligned_alloczn(int, int, size_t, size_t, ...);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/enaligned_reallocn.c b/enaligned_reallocn.c
new file mode 100644
index 0000000..3b561d8
--- /dev/null
+++ b/enaligned_reallocn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_enaligned_reallocn(int, void *, size_t, size_t, ...);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/encallocn.c b/encallocn.c
new file mode 100644
index 0000000..49336da
--- /dev/null
+++ b/encallocn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_encallocn(int, size_t, ...);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/enmallocn.c b/enmallocn.c
new file mode 100644
index 0000000..761f196
--- /dev/null
+++ b/enmallocn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_enmallocn(int, size_t, ...);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/enmallocz.c b/enmallocz.c
new file mode 100644
index 0000000..6204df8
--- /dev/null
+++ b/enmallocz.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_enmallocz(int, int, size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/enmalloczn.c b/enmalloczn.c
new file mode 100644
index 0000000..69636f5
--- /dev/null
+++ b/enmalloczn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_enmalloczn(int, int, size_t, ...);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/enmemalign.c b/enmemalign.c
new file mode 100644
index 0000000..766317d
--- /dev/null
+++ b/enmemalign.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_enmemalign(int, size_t, size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/enmemalignn.c b/enmemalignn.c
new file mode 100644
index 0000000..d7f67c7
--- /dev/null
+++ b/enmemalignn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_enmemalignn(int, size_t, size_t, ...);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/enmemalignz.c b/enmemalignz.c
new file mode 100644
index 0000000..11fdb3a
--- /dev/null
+++ b/enmemalignz.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_enmemalignz(int, int, size_t, size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/enmemalignzn.c b/enmemalignzn.c
new file mode 100644
index 0000000..4a43192
--- /dev/null
+++ b/enmemalignzn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_enmemalignzn(int, int, size_t, size_t, ...);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/envaligned_allocn.c b/envaligned_allocn.c
new file mode 100644
index 0000000..622eada
--- /dev/null
+++ b/envaligned_allocn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_envaligned_allocn(int, size_t, size_t, va_list);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/envalloc.c b/envalloc.c
new file mode 100644
index 0000000..48f8fe2
--- /dev/null
+++ b/envalloc.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_envalloc(int, size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/envallocn.c b/envallocn.c
new file mode 100644
index 0000000..664d50c
--- /dev/null
+++ b/envallocn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_envallocn(int, size_t, ...);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/envcallocn.c b/envcallocn.c
new file mode 100644
index 0000000..1e5a0dd
--- /dev/null
+++ b/envcallocn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_envcallocn(int, size_t, va_list);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/envmallocn.c b/envmallocn.c
new file mode 100644
index 0000000..531234e
--- /dev/null
+++ b/envmallocn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_envmallocn(int, size_t, va_list);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/envmemalignn.c b/envmemalignn.c
new file mode 100644
index 0000000..8df18c0
--- /dev/null
+++ b/envmemalignn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_envmemalignn(int, size_t, size_t, va_list);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/envmemalignzn.c b/envmemalignzn.c
new file mode 100644
index 0000000..278785f
--- /dev/null
+++ b/envmemalignzn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_envmemalignzn(int, int, size_t, size_t, va_list);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/envvallocn.c b/envvallocn.c
new file mode 100644
index 0000000..93ea889
--- /dev/null
+++ b/envvallocn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_envvallocn(int, size_t, va_list);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/evaligned_allocn.c b/evaligned_allocn.c
new file mode 100644
index 0000000..4f318fe
--- /dev/null
+++ b/evaligned_allocn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_evaligned_allocn(size_t, size_t, va_list);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/evaligned_alloczn.c b/evaligned_alloczn.c
new file mode 100644
index 0000000..1e5d543
--- /dev/null
+++ b/evaligned_alloczn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_evaligned_alloczn(int, size_t, size_t, va_list);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/evaligned_reallocn.c b/evaligned_reallocn.c
new file mode 100644
index 0000000..676fbb6
--- /dev/null
+++ b/evaligned_reallocn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_evaligned_reallocn(void *, size_t, size_t, va_list);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/evalloc.c b/evalloc.c
new file mode 100644
index 0000000..6103b9e
--- /dev/null
+++ b/evalloc.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_evalloc(size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/evallocn.c b/evallocn.c
new file mode 100644
index 0000000..7f736fc
--- /dev/null
+++ b/evallocn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_evallocn(size_t, ...);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/evcallocn.c b/evcallocn.c
new file mode 100644
index 0000000..d577ebc
--- /dev/null
+++ b/evcallocn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_evcallocn(size_t, va_list);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/evmallocn.c b/evmallocn.c
new file mode 100644
index 0000000..f15b8d6
--- /dev/null
+++ b/evmallocn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_evmallocn(size_t, va_list);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/evmalloczn.c b/evmalloczn.c
new file mode 100644
index 0000000..3afa855
--- /dev/null
+++ b/evmalloczn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_evmalloczn(int, size_t, va_list);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/evmemalignn.c b/evmemalignn.c
new file mode 100644
index 0000000..5cacc95
--- /dev/null
+++ b/evmemalignn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_evmemalignn(size_t, size_t, va_list);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/evmemalignzn.c b/evmemalignzn.c
new file mode 100644
index 0000000..643d5a6
--- /dev/null
+++ b/evmemalignzn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_evmemalignzn(int, size_t, size_t, va_list);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/evvallocn.c b/evvallocn.c
new file mode 100644
index 0000000..a87d171
--- /dev/null
+++ b/evvallocn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_evvallocn(size_t, va_list);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/libsimple/aligned_alloc.h b/libsimple/aligned_alloc.h
index a4fe0fc..6916b9a 100644
--- a/libsimple/aligned_alloc.h
+++ b/libsimple/aligned_alloc.h
@@ -20,7 +20,7 @@
* @throws ENOMEM Could not allocated enough memory
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_align__(1), __warn_unused_result__)))
-static inline void *
+inline void *
libsimple_valigned_allocn(size_t alignment__, size_t n__, va_list ap__)
{
return libsimple_valigned_alloczn(0, alignment__, n__, ap__);
@@ -42,7 +42,7 @@ libsimple_valigned_allocn(size_t alignment__, size_t n__, va_list ap__)
* @throws ENOMEM Could not allocated enough memory
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_align__(1), __warn_unused_result__)))
-static inline void *
+inline void *
libsimple_aligned_allocn(size_t alignment__, size_t n__, ... /*, (size_t)0 */)
{
va_list ap__;
@@ -71,7 +71,7 @@ libsimple_aligned_allocn(size_t alignment__, size_t n__, ... /*, (size_t)0 */)
* and alignment
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_align__(2), __alloc_size__(3), __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_enaligned_alloc(int status__, size_t alignment__, size_t n__)
{
return libsimple_enaligned_allocz(status__, 0, alignment__, n__);
@@ -103,7 +103,7 @@ libsimple_enaligned_alloc(int status__, size_t alignment__, size_t n__)
* and alignment
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_align__(2), __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_envaligned_allocn(int status__, size_t alignment__, size_t n__, va_list ap__)
{
return libsimple_envaligned_alloczn(status__, 0, alignment__, n__, ap__);
@@ -135,7 +135,7 @@ libsimple_envaligned_allocn(int status__, size_t alignment__, size_t n__, va_lis
* and alignment
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_align__(2), __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_enaligned_allocn(int status__, size_t alignment__, size_t n__, ... /*, (size_t)0 */)
{
va_list ap__;
@@ -163,7 +163,7 @@ libsimple_enaligned_allocn(int status__, size_t alignment__, size_t n__, ... /*,
* and alignment
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_align__(1), __alloc_size__(2), __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_ealigned_alloc(size_t alignment__, size_t n__)
{
return libsimple_enaligned_alloc(libsimple_default_failure_exit, alignment__, n__);
@@ -194,7 +194,7 @@ libsimple_ealigned_alloc(size_t alignment__, size_t n__)
* and alignment
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_align__(1), __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_evaligned_allocn(size_t alignment__, size_t n__, va_list ap__)
{
return libsimple_envaligned_allocn(libsimple_default_failure_exit, alignment__, n__, ap__);
@@ -225,7 +225,7 @@ libsimple_evaligned_allocn(size_t alignment__, size_t n__, va_list ap__)
* and alignment
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_align__(1), __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_ealigned_allocn(size_t alignment__, size_t n__, ... /*, (size_t)0 */)
{
va_list ap__;
diff --git a/libsimple/aligned_allocz.h b/libsimple/aligned_allocz.h
index 7213c9b..b27a17b 100644
--- a/libsimple/aligned_allocz.h
+++ b/libsimple/aligned_allocz.h
@@ -41,7 +41,7 @@ void *libsimple_valigned_alloczn(int, size_t, size_t, va_list);
* @throws ENOMEM Could not allocated enough memory
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_align__(2), __alloc_size__(3), __warn_unused_result__)))
-static inline void *
+inline void *
libsimple_aligned_allocz(int clear__, size_t alignment__, size_t n__)
{
void *ret__ = aligned_alloc(alignment__, n__);
@@ -74,7 +74,7 @@ libsimple_aligned_allocz(int clear__, size_t alignment__, size_t n__)
* @throws ENOMEM Could not allocated enough memory
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_align__(2), __warn_unused_result__)))
-static inline void *
+inline void *
libsimple_aligned_alloczn(int clear__, size_t alignment__, size_t n__, ... /*, (size_t)0 */)
{
va_list ap__;
@@ -162,7 +162,7 @@ void *libsimple_envaligned_alloczn(int, int, size_t, size_t, va_list);
* and alignment
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_align__(3), __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_enaligned_alloczn(int status__, int clear__, size_t alignment__, size_t n__, ... /*, (size_t)0 */)
{
va_list ap__;
@@ -190,7 +190,7 @@ libsimple_enaligned_alloczn(int status__, int clear__, size_t alignment__, size_
* and alignment
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_align__(2), __alloc_size__(3), __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_ealigned_allocz(int clear__, size_t alignment__, size_t n__)
{
return libsimple_enaligned_allocz(libsimple_default_failure_exit, clear__, alignment__, n__);
@@ -222,7 +222,7 @@ libsimple_ealigned_allocz(int clear__, size_t alignment__, size_t n__)
* and alignment
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_align__(2), __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_evaligned_alloczn(int clear__, size_t alignment__, size_t n__, va_list ap__)
{
return libsimple_envaligned_alloczn(libsimple_default_failure_exit, clear__, alignment__, n__, ap__);
@@ -254,7 +254,7 @@ libsimple_evaligned_alloczn(int clear__, size_t alignment__, size_t n__, va_list
* and alignment
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_align__(2), __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_ealigned_alloczn(int clear__, size_t alignment__, size_t n__, ... /*, (size_t)0 */)
{
va_list ap__;
diff --git a/libsimple/aligned_realloc.h b/libsimple/aligned_realloc.h
index bc66d84..0c81cd7 100644
--- a/libsimple/aligned_realloc.h
+++ b/libsimple/aligned_realloc.h
@@ -31,7 +31,7 @@ LIBSIMPLE_GCC_ONLY__(__attribute__((__alloc_align__(2), __alloc_size__(3), __war
#if defined(__GLIBC__)
# define LIBSIMPLE_HAVE_ALIGNED_REALLOC
# include <malloc.h>
-static inline void *
+inline void *
libsimple_aligned_realloc(void *ptr__, size_t alignment__, size_t n__) /* TODO musl */
{
size_t old__ = malloc_usable_size(ptr__);
@@ -48,7 +48,7 @@ libsimple_aligned_realloc(void *ptr__, size_t alignment__, size_t n__) /* TODO m
return new__;
}
#else
-static inline void *
+inline void *
libsimple_aligned_realloc(void *ptr__, size_t alignment__, size_t n__)
{
(void) ptr__;
@@ -122,7 +122,7 @@ void *libsimple_enaligned_realloc(int, void *, size_t, size_t);
* the specified size
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__alloc_align__(2), __alloc_size__(3), __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_ealigned_realloc(void *ptr__, size_t alignment__, size_t n__)
{
return libsimple_enaligned_realloc(libsimple_default_failure_exit, ptr__, alignment__, n__);
@@ -159,8 +159,8 @@ libsimple_ealigned_realloc(void *ptr__, size_t alignment__, size_t n__)
* @throws ENOMEM Could not allocated enough memory
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__alloc_align__(2), __alloc_size__(3), __warn_unused_result__)))
-static inline void *
-libsimple_aligned_reallocf(void *ptr__, size_t alignment__, size_t n__) /* TODO test */
+inline void *
+libsimple_aligned_reallocf(void *ptr__, size_t alignment__, size_t n__)
{
void *new__ = n__ ? libsimple_aligned_realloc(ptr__, alignment__, n__) : NULL;
if (!new__)
@@ -202,7 +202,7 @@ libsimple_aligned_reallocf(void *ptr__, size_t alignment__, size_t n__) /* TODO
* @throws ENOSYS Not implemented (requires non-standard libc functions)
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__alloc_align__(2), __alloc_size__(3, 4), __warn_unused_result__)))
-static inline void *
+inline void *
libsimple_aligned_reallocarray(void *ptr__, size_t alignment__, size_t n__, size_t m__)
{
if (LIBSIMPLE_UMUL_OVERFLOW(n__, m__, &n__, SIZE_MAX)) {
@@ -282,7 +282,7 @@ void *libsimple_enaligned_reallocarray(int, void *, size_t, size_t, size_t);
* the specified size
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__alloc_align__(2), __alloc_size__(3, 4), __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_ealigned_reallocarray(void *ptr__, size_t alignment__, size_t n__, size_t m__)
{
return libsimple_enaligned_reallocarray(libsimple_default_failure_exit, ptr__, alignment__, n__, m__);
@@ -318,8 +318,8 @@ libsimple_ealigned_reallocarray(void *ptr__, size_t alignment__, size_t n__, siz
* @throws ENOSYS Not implemented (requires non-standard libc functions)
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__alloc_align__(2), __alloc_size__(3, 4), __warn_unused_result__)))
-static inline void *
-libsimple_aligned_reallocarrayf(void *ptr__, size_t alignment__, size_t n__, size_t m__) /* TODO test */
+inline void *
+libsimple_aligned_reallocarrayf(void *ptr__, size_t alignment__, size_t n__, size_t m__)
{
void *new__ = (n__ && m__) ? libsimple_aligned_reallocarray(ptr__, alignment__, n__, m__) : NULL;
if (!new__)
@@ -437,7 +437,7 @@ void *libsimple_envaligned_reallocn(int, void *, size_t, size_t, va_list);
* the specified size
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__alloc_align__(2), __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_evaligned_reallocn(void *ptr__, size_t alignment__, size_t n__, va_list ap__)
{
return libsimple_envaligned_reallocn(libsimple_default_failure_exit, ptr__, alignment__, n__, ap__);
@@ -474,8 +474,8 @@ libsimple_evaligned_reallocn(void *ptr__, size_t alignment__, size_t n__, va_lis
* @throws ENOSYS Not implemented (requires non-standard libc functions)
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__alloc_align__(2), __warn_unused_result__)))
-static inline void *
-libsimple_valigned_reallocfn(void *ptr__, size_t alignment__, size_t n__, va_list ap__) /* TODO test (aligned_reallocfn) */
+inline void *
+libsimple_valigned_reallocfn(void *ptr__, size_t alignment__, size_t n__, va_list ap__)
{
void *new__ = libsimple_valigned_reallocn(ptr__, alignment__, n__, ap__);
if (!new__)
@@ -518,7 +518,7 @@ libsimple_valigned_reallocfn(void *ptr__, size_t alignment__, size_t n__, va_lis
* @throws ENOSYS Not implemented (requires non-standard libc functions)
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__alloc_align__(2), __warn_unused_result__)))
-static inline void *
+inline void *
libsimple_aligned_reallocn(void *ptr__, size_t alignment__, size_t n__, ... /*, (size_t)0 */)
{
va_list ap__;
@@ -563,7 +563,7 @@ libsimple_aligned_reallocn(void *ptr__, size_t alignment__, size_t n__, ... /*,
* the specified size
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__alloc_align__(3), __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_enaligned_reallocn(int status__, void *ptr__, size_t alignment__, size_t n__, ... /*, (size_t)0 */)
{
va_list ap__;
@@ -607,7 +607,7 @@ libsimple_enaligned_reallocn(int status__, void *ptr__, size_t alignment__, size
* the specified size
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__alloc_align__(2), __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_ealigned_reallocn(void *ptr__, size_t alignment__, size_t n__, ... /*, (size_t)0 */)
{
va_list ap__;
@@ -651,7 +651,7 @@ libsimple_ealigned_reallocn(void *ptr__, size_t alignment__, size_t n__, ... /*,
* @throws ENOSYS Not implemented (requires non-standard libc functions)
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__alloc_align__(2), __warn_unused_result__)))
-static inline void *
+inline void *
libsimple_aligned_reallocfn(void *ptr__, size_t alignment__, size_t n__, ... /*, (size_t)0 */)
{
va_list ap__;
diff --git a/libsimple/calloc.h b/libsimple/calloc.h
index 28f284d..7e6500e 100644
--- a/libsimple/calloc.h
+++ b/libsimple/calloc.h
@@ -19,7 +19,7 @@
* @throws ENOMEM Could not allocated enough memory
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __warn_unused_result__)))
-static inline void *
+inline void *
libsimple_vcallocn(size_t n__, va_list ap__)
{
return libsimple_vmalloczn(1, n__, ap__);
@@ -47,7 +47,7 @@ libsimple_vcallocn(size_t n__, va_list ap__)
* @throws ENOMEM Could not allocated enough memory
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __warn_unused_result__)))
-static inline void *
+inline void *
libsimple_callocn(size_t n__, ... /*, (size_t)0 */)
{
va_list ap__;
@@ -106,7 +106,7 @@ void *libsimple_encalloc(int, size_t, size_t);
* and with the alignment `alignof(max_align_t)`
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_envcallocn(int status__, size_t n__, va_list ap__)
{
return libsimple_envmalloczn(status__, 1, n__, ap__);
@@ -136,7 +136,7 @@ libsimple_envcallocn(int status__, size_t n__, va_list ap__)
* and with the alignment `alignof(max_align_t)`
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_encallocn(int status__, size_t n__, ... /*, (size_t)0 */)
{
va_list ap__;
@@ -165,7 +165,7 @@ libsimple_encallocn(int status__, size_t n__, ... /*, (size_t)0 */)
* and with the alignment `alignof(max_align_t)`
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_size__(1, 2), __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_ecalloc(size_t n__, size_t m__)
{
return encalloc(libsimple_default_failure_exit, n__, m__);
@@ -194,7 +194,7 @@ libsimple_ecalloc(size_t n__, size_t m__)
* and with the alignment `alignof(max_align_t)`
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_evcallocn(size_t n__, va_list ap__)
{
return libsimple_envcallocn(libsimple_default_failure_exit, n__, ap__);
@@ -223,7 +223,7 @@ libsimple_evcallocn(size_t n__, va_list ap__)
* and with the alignment `alignof(max_align_t)`
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_ecallocn(size_t n__, ... /*, (size_t)0 */)
{
va_list ap__;
diff --git a/libsimple/malloc.h b/libsimple/malloc.h
index ca057da..df742a1 100644
--- a/libsimple/malloc.h
+++ b/libsimple/malloc.h
@@ -19,7 +19,7 @@
* @throws ENOMEM Could not allocated enough memory
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __warn_unused_result__)))
-static inline void *
+inline void *
libsimple_vmallocn(size_t n__, va_list ap__)
{
return libsimple_vmalloczn(0, n__, ap__);
@@ -47,7 +47,7 @@ libsimple_vmallocn(size_t n__, va_list ap__)
* @throws ENOMEM Could not allocated enough memory
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __warn_unused_result__)))
-static inline void *
+inline void *
libsimple_mallocn(size_t n__, ... /*, (size_t)0 */)
{
va_list ap__;
@@ -104,7 +104,7 @@ void *libsimple_enmalloc(int, size_t);
* and with the alignment `alignof(max_align_t)`
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_envmallocn(int status__, size_t n__, va_list ap__)
{
return libsimple_envmalloczn(status__, 0, n__, ap__);
@@ -134,7 +134,7 @@ libsimple_envmallocn(int status__, size_t n__, va_list ap__)
* and with the alignment `alignof(max_align_t)`
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_enmallocn(int status__, size_t n__, ... /*, (size_t)0 */)
{
va_list ap__;
@@ -161,7 +161,7 @@ libsimple_enmallocn(int status__, size_t n__, ... /*, (size_t)0 */)
* and with the alignment `alignof(max_align_t)`
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_size__(1), __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_emalloc(size_t n__)
{
return libsimple_enmalloc(libsimple_default_failure_exit, n__);
@@ -190,7 +190,7 @@ libsimple_emalloc(size_t n__)
* and with the alignment `alignof(max_align_t)`
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_evmallocn(size_t n__, va_list ap__)
{
return libsimple_envmallocn(libsimple_default_failure_exit, n__, ap__);
@@ -219,7 +219,7 @@ libsimple_evmallocn(size_t n__, va_list ap__)
* and with the alignment `alignof(max_align_t)`
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_emallocn(size_t n__, ... /*, (size_t)0 */)
{
va_list ap__;
diff --git a/libsimple/mallocz.h b/libsimple/mallocz.h
index 7bd9999..6909b1f 100644
--- a/libsimple/mallocz.h
+++ b/libsimple/mallocz.h
@@ -56,7 +56,7 @@ void *libsimple_vmalloczn(int, size_t, va_list);
* @throws ENOMEM Could not allocated enough memory
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_size__(2), __warn_unused_result__)))
-static inline void *
+inline void *
libsimple_mallocz(int clear__, size_t n__)
{
return clear__ ? calloc(1, n__) : malloc(n__);
@@ -85,7 +85,7 @@ libsimple_mallocz(int clear__, size_t n__)
* @throws ENOMEM Could not allocated enough memory
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __warn_unused_result__)))
-static inline void *
+inline void *
libsimple_malloczn(int clear__, size_t n__, ... /*, (size_t)0 */)
{
va_list ap__;
@@ -113,7 +113,7 @@ libsimple_malloczn(int clear__, size_t n__, ... /*, (size_t)0 */)
* and with the alignment `alignof(max_align_t)`
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_size__(3), __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_enmallocz(int status__, int clear__, size_t n__)
{
return clear__ ? libsimple_encalloc(status__, 1, n__) : libsimple_enmalloc(status__, n__);
@@ -173,7 +173,7 @@ void *libsimple_envmalloczn(int, int, size_t, va_list);
* and with the alignment `alignof(max_align_t)`
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_enmalloczn(int status__, int clear__, size_t n__, ... /*, (size_t)0 */)
{
va_list ap__;
@@ -200,7 +200,7 @@ libsimple_enmalloczn(int status__, int clear__, size_t n__, ... /*, (size_t)0 */
* and with the alignment `alignof(max_align_t)`
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_size__(2), __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_emallocz(int clear__, size_t n__)
{
return libsimple_enmallocz(libsimple_default_failure_exit, clear__, n__);
@@ -230,7 +230,7 @@ libsimple_emallocz(int clear__, size_t n__)
* and with the alignment `alignof(max_align_t)`
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_evmalloczn(int clear__, size_t n__, va_list ap__)
{
return libsimple_envmalloczn(libsimple_default_failure_exit, clear__, n__, ap__);
@@ -260,7 +260,7 @@ libsimple_evmalloczn(int clear__, size_t n__, va_list ap__)
* and with the alignment `alignof(max_align_t)`
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_emalloczn(int clear__, size_t n__, ... /*, (size_t)0 */)
{
va_list ap__;
diff --git a/libsimple/memalign.h b/libsimple/memalign.h
index e36c6f9..bb6551f 100644
--- a/libsimple/memalign.h
+++ b/libsimple/memalign.h
@@ -20,7 +20,7 @@
* @throws ENOMEM Could not allocated enough memory
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_align__(1), __warn_unused_result__)))
-static inline void *
+inline void *
libsimple_vmemalignn(size_t alignment__, size_t n__, va_list ap__)
{
return libsimple_vmemalignzn(0, alignment__, n__, ap__);
@@ -42,7 +42,7 @@ libsimple_vmemalignn(size_t alignment__, size_t n__, va_list ap__)
* @throws ENOMEM Could not allocated enough memory
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_align__(1), __alloc_size__(2), __warn_unused_result__)))
-static inline void *
+inline void *
libsimple_memalign(size_t alignment__, size_t n__)
{
return libsimple_memalignz(0, alignment__, n__);
@@ -71,7 +71,7 @@ libsimple_memalign(size_t alignment__, size_t n__)
* @throws ENOMEM Could not allocated enough memory
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_align__(1), __warn_unused_result__)))
-static inline void *
+inline void *
libsimple_memalignn(size_t alignment__, size_t n__, ... /*, (size_t)0 */)
{
va_list ap__;
@@ -100,7 +100,7 @@ libsimple_memalignn(size_t alignment__, size_t n__, ... /*, (size_t)0 */)
* and alignment
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_align__(2), __alloc_size__(3), __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_enmemalign(int status__, size_t alignment__, size_t n__)
{
return libsimple_enmemalignz(status__, 0, alignment__, n__);
@@ -132,7 +132,7 @@ libsimple_enmemalign(int status__, size_t alignment__, size_t n__)
* and alignment
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_align__(2), __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_envmemalignn(int status__, size_t alignment__, size_t n__, va_list ap__)
{
return libsimple_envmemalignzn(status__, 0, alignment__, n__, ap__);
@@ -164,7 +164,7 @@ libsimple_envmemalignn(int status__, size_t alignment__, size_t n__, va_list ap_
* and alignment
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_align__(2), __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_enmemalignn(int status__, size_t alignment__, size_t n__, ... /*, (size_t)0 */)
{
va_list ap__;
@@ -192,7 +192,7 @@ libsimple_enmemalignn(int status__, size_t alignment__, size_t n__, ... /*, (siz
* and alignment
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_align__(1), __alloc_size__(2), __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_ememalign(size_t alignment__, size_t n__)
{
return libsimple_enmemalign(libsimple_default_failure_exit, alignment__, n__);
@@ -224,7 +224,7 @@ libsimple_ememalign(size_t alignment__, size_t n__)
* and alignment
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_align__(1), __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_evmemalignn(size_t alignment__, size_t n__, va_list ap__)
{
return libsimple_envmemalignn(libsimple_default_failure_exit, alignment__, n__, ap__);
@@ -255,7 +255,7 @@ libsimple_evmemalignn(size_t alignment__, size_t n__, va_list ap__)
* and alignment
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_align__(1), __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_ememalignn(size_t alignment__, size_t n__, ... /*, (size_t)0 */)
{
va_list ap__;
diff --git a/libsimple/memalignz.h b/libsimple/memalignz.h
index 62ab444..1630783 100644
--- a/libsimple/memalignz.h
+++ b/libsimple/memalignz.h
@@ -21,7 +21,7 @@
* @throws ENOMEM Could not allocated enough memory
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_align__(2), __warn_unused_result__)))
-static inline void *
+inline void *
libsimple_vmemalignzn(int clear__, size_t alignment__, size_t n__, va_list ap__)
{
if (!alignment__ || (alignment__ & (alignment__ - 1UL))) {
@@ -51,7 +51,7 @@ libsimple_vmemalignzn(int clear__, size_t alignment__, size_t n__, va_list ap__)
* @throws ENOMEM Could not allocated enough memory
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_align__(2), __alloc_size__(3), __warn_unused_result__)))
-static inline void *
+inline void *
libsimple_memalignz(int clear__, size_t alignment__, size_t n__)
{
if (!alignment__ || (alignment__ & (alignment__ - 1UL))) {
@@ -88,7 +88,7 @@ libsimple_memalignz(int clear__, size_t alignment__, size_t n__)
* @throws ENOMEM Could not allocated enough memory
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_align__(2), __warn_unused_result__)))
-static inline void *
+inline void *
libsimple_memalignzn(int clear__, size_t alignment__, size_t n__, ... /*, (size_t)0 */)
{
va_list ap__;
@@ -118,7 +118,7 @@ libsimple_memalignzn(int clear__, size_t alignment__, size_t n__, ... /*, (size_
* and alignment
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_align__(3), __alloc_size__(4), __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_enmemalignz(int status__, int clear__, size_t alignment__, size_t n__)
{
if (!alignment__ || (alignment__ & (alignment__ - 1UL))) {
@@ -158,7 +158,7 @@ libsimple_enmemalignz(int status__, int clear__, size_t alignment__, size_t n__)
* and alignment
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_align__(3), __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_envmemalignzn(int status__, int clear__, size_t alignment__, size_t n__, va_list ap__)
{
if (!alignment__ || (alignment__ & (alignment__ - 1UL))) {
@@ -199,7 +199,7 @@ libsimple_envmemalignzn(int status__, int clear__, size_t alignment__, size_t n_
* and alignment
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_align__(3), __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_enmemalignzn(int status__, int clear__, size_t alignment__, size_t n__, ... /*, (size_t)0 */)
{
va_list ap__;
@@ -228,7 +228,7 @@ libsimple_enmemalignzn(int status__, int clear__, size_t alignment__, size_t n__
* and alignment
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_align__(2), __alloc_size__(3), __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_ememalignz(int clear__, size_t alignment__, size_t n__)
{
return libsimple_enmemalignz(libsimple_default_failure_exit, clear__, alignment__, n__);
@@ -260,7 +260,7 @@ libsimple_ememalignz(int clear__, size_t alignment__, size_t n__)
* and alignment
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_align__(2), __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_evmemalignzn(int clear__, size_t alignment__, size_t n__, va_list ap__)
{
return libsimple_envmemalignzn(libsimple_default_failure_exit, clear__, alignment__, n__, ap__);
@@ -292,7 +292,7 @@ libsimple_evmemalignzn(int clear__, size_t alignment__, size_t n__, va_list ap__
* and alignment
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_align__(2), __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_ememalignzn(int clear__, size_t alignment__, size_t n__, ... /*, (size_t)0 */)
{
va_list ap__;
diff --git a/libsimple/strn.h b/libsimple/strn.h
index 8d10fff..a333ecd 100644
--- a/libsimple/strn.h
+++ b/libsimple/strn.h
@@ -366,7 +366,7 @@ char *libsimple_strrncasestr(const char *, const char *, size_t);
* 0 otherwise
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__pure__, __warn_unused_result__)))
-static inline int
+inline int
libsimple_strncmpnul(const char *a__, const char *b__, size_t n__)
{
return (!a__ || !b__) ? !b__ - !a__ : strncmp(a__, b__, n__);
@@ -389,7 +389,7 @@ libsimple_strncmpnul(const char *a__, const char *b__, size_t n__)
* 0 otherwise
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__pure__, __warn_unused_result__)))
-static inline int
+inline int
libsimple_strncasecmpnul(const char *a__, const char *b__, size_t n__)
{
return (!a__ || !b__) ? !b__ - !a__ : strncasecmp(a__, b__, n__);
@@ -410,7 +410,7 @@ libsimple_strncasecmpnul(const char *a__, const char *b__, size_t n__)
* @return 1 if the strings are equal, 0 otherwise
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__pure__, __nonnull__, __warn_unused_result__)))
-static inline int
+inline int
libsimple_strneq(const char *a__, const char *b__, size_t n__)
{
return !strncmp(a__, b__, n__);
@@ -431,7 +431,7 @@ libsimple_strneq(const char *a__, const char *b__, size_t n__)
* @return 1 if the strings are equal, 0 otherwise
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__pure__, __warn_unused_result__)))
-static inline int
+inline int
libsimple_strneqnul(const char *a__, const char *b__, size_t n__)
{
return !strncmpnul(a__, b__, n__);
@@ -452,7 +452,7 @@ libsimple_strneqnul(const char *a__, const char *b__, size_t n__)
* @return 1 if the strings are equal, 0 otherwise
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__pure__, __nonnull__, __warn_unused_result__)))
-static inline int
+inline int
libsimple_strncaseeq(const char *a__, const char *b__, size_t n__)
{
return !strncasecmp(a__, b__, n__);
@@ -473,7 +473,7 @@ libsimple_strncaseeq(const char *a__, const char *b__, size_t n__)
* @return 1 if the strings are equal, 0 otherwise
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__pure__, __warn_unused_result__)))
-static inline int
+inline int
libsimple_strncaseeqnul(const char *a__, const char *b__, size_t n__)
{
return !libsimple_strncasecmpnul(a__, b__, n__);
@@ -528,7 +528,7 @@ size_t libsimple_strncaseeqlen(const char *, const char *, size_t);
* in common in their ends
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__pure__, __nonnull__, __warn_unused_result__)))
-static inline size_t
+inline size_t
libsimple_strrneqlen(const char *a__, const char *b__, size_t n__)
{
return libsimple_memreqlen(a__, strnlen(a__, n__), b__, strnlen(b__, n__));
@@ -549,7 +549,7 @@ libsimple_strrneqlen(const char *a__, const char *b__, size_t n__)
* in common in their ends
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__pure__, __nonnull__, __warn_unused_result__)))
-static inline size_t
+inline size_t
libsimple_strrncaseeqlen(const char *a__, const char *b__, size_t n__)
{
return libsimple_memrcaseeqlen(a__, strnlen(a__, n__), b__, strnlen(b__, n__));
@@ -569,7 +569,7 @@ libsimple_strrncaseeqlen(const char *a__, const char *b__, size_t n__)
* @return `d`
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__nonnull__)))
-static inline char *
+inline char *
libsimple_strnmove(char *d__, const char *s__, size_t n__)
{
size_t len__ = strnlen(s__, n__);
@@ -590,7 +590,7 @@ libsimple_strnmove(char *d__, const char *s__, size_t n__)
* @return `&d[strnlen(s, n)]`
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__nonnull__)))
-static inline char *
+inline char *
libsimple_stpnmove(char *d__, const char *s__, size_t n__)
{
size_t len__ = strnlen(s__, n__);
@@ -611,7 +611,7 @@ libsimple_stpnmove(char *d__, const char *s__, size_t n__)
* @return `s`
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__nonnull__)))
-static inline char *
+inline char *
libsimple_strnset(char *s__, int c___, size_t n__)
{
char c__ = (char)c___, *r__ = s__;
@@ -632,7 +632,7 @@ libsimple_strnset(char *s__, int c___, size_t n__)
* @return `&s[strnlen(s, n)]`
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__nonnull__)))
-static inline char *
+inline char *
libsimple_stpnset(char *s__, int c___, size_t n__)
{
char c__ = (char)c___;
@@ -657,7 +657,7 @@ libsimple_stpnset(char *s__, int c___, size_t n__)
* found in `s`, `NULL` otherwise
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__nonnull__)))
-static inline char *
+inline char *
libsimple_strnccpy(char *restrict d__, const char *restrict s__, int c___, size_t n__)
{
char c__ = (char)c___, *end__ = &d__[n__];
@@ -707,7 +707,7 @@ char *libsimple_strncmove(char *, const char *, int, size_t);
* @return `strnchr(s, '\0', n)`
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__nonnull__, __returns_nonnull__)))
-static inline char *
+inline char *
libsimple_strnreplace(char *s__, int old___, int new___, size_t n__)
{
char old__ = (char)old___, new__ = (char)new___;
@@ -775,7 +775,7 @@ char *libsimple_stpntoupper(char *, const char *, size_t);
* @return `d`
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__nonnull__, __returns_nonnull__)))
-static inline char *
+inline char *
libsimple_strntolower(char *d__, const char *s__, size_t n__)
{
libsimple_stpntolower(d__, s__, n__);
@@ -800,7 +800,7 @@ libsimple_strntolower(char *d__, const char *s__, size_t n__)
* @return `d`
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__nonnull__, __returns_nonnull__)))
-static inline char *
+inline char *
libsimple_strntoupper(char *d__, const char *s__, size_t n__)
{
libsimple_stpntoupper(d__, s__, n__);
@@ -824,7 +824,7 @@ libsimple_strntoupper(char *d__, const char *s__, size_t n__)
* @return 1 if good, 0 on encoding error
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__pure__, __nonnull__, __warn_unused_result__)))
-static inline int
+inline int
libsimple_strnisutf8(const char *string__, size_t n__, int allow_modified_nul__)
{
return libsimple_memisutf8(string__, strnlen(string__, n__), allow_modified_nul__);
diff --git a/libsimple/valloc.h b/libsimple/valloc.h
index 55e8fd5..023425e 100644
--- a/libsimple/valloc.h
+++ b/libsimple/valloc.h
@@ -18,7 +18,7 @@
* @throws ENOMEM Could not allocated enough memory
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __warn_unused_result__)))
-static inline void *
+inline void *
libsimple_vvallocn(size_t n__, va_list ap__)
{
return libsimple_vvalloczn(0, n__, ap__);
@@ -39,7 +39,7 @@ libsimple_vvallocn(size_t n__, va_list ap__)
* @throws ENOMEM Could not allocated enough memory
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_size__(1), __warn_unused_result__)))
-static inline void *
+inline void *
libsimple_valloc(size_t n__)
{
return libsimple_vallocz(0, n__);
@@ -66,7 +66,7 @@ libsimple_valloc(size_t n__)
* @throws ENOMEM Could not allocated enough memory
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __warn_unused_result__)))
-static inline void *
+inline void *
libsimple_vallocn(size_t n__, ... /*, (size_t)0 */)
{
va_list ap__;
@@ -94,7 +94,7 @@ libsimple_vallocn(size_t n__, ... /*, (size_t)0 */)
* and with page size alignment
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_size__(2), __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_envalloc(int status__, size_t n__)
{
return libsimple_envallocz(status__, 0, n__);
@@ -124,7 +124,7 @@ libsimple_envalloc(int status__, size_t n__)
* and with page size alignment
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_envvallocn(int status__, size_t n__, va_list ap__)
{
return libsimple_envvalloczn(status__, 0, n__, ap__);
@@ -154,7 +154,7 @@ libsimple_envvallocn(int status__, size_t n__, va_list ap__)
* and with page size alignment
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_envallocn(int status__, size_t n__, ... /*, (size_t)0 */)
{
va_list ap__;
@@ -181,7 +181,7 @@ libsimple_envallocn(int status__, size_t n__, ... /*, (size_t)0 */)
* and with page size alignment
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __alloc_size__(1), __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_evalloc(size_t n__)
{
return libsimple_envalloc(libsimple_default_failure_exit, n__);
@@ -210,7 +210,7 @@ libsimple_evalloc(size_t n__)
* and with page size alignment
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_evvallocn(size_t n__, va_list ap__)
{
return libsimple_envvallocn(libsimple_default_failure_exit, n__, ap__);
@@ -239,7 +239,7 @@ libsimple_evvallocn(size_t n__, va_list ap__)
* and with page size alignment
*/
LIBSIMPLE_GCC_ONLY__(__attribute__((__malloc__, __warn_unused_result__, __returns_nonnull__)))
-static inline void *
+inline void *
libsimple_evallocn(size_t n__, ... /*, (size_t)0 */)
{
va_list ap__;
diff --git a/mallocn.c b/mallocn.c
new file mode 100644
index 0000000..168ccfa
--- /dev/null
+++ b/mallocn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_mallocn(size_t, ...);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/mallocz.c b/mallocz.c
new file mode 100644
index 0000000..814c0fc
--- /dev/null
+++ b/mallocz.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_mallocz(int, size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/malloczn.c b/malloczn.c
new file mode 100644
index 0000000..47e2711
--- /dev/null
+++ b/malloczn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_malloczn(int, size_t, ...);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/memalign.c b/memalign.c
new file mode 100644
index 0000000..38a3bda
--- /dev/null
+++ b/memalign.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_memalign(size_t, size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/memalignn.c b/memalignn.c
new file mode 100644
index 0000000..14d1051
--- /dev/null
+++ b/memalignn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_memalignn(size_t, size_t, ...);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/memalignz.c b/memalignz.c
new file mode 100644
index 0000000..979f640
--- /dev/null
+++ b/memalignz.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_memalignz(int, size_t, size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/memalignzn.c b/memalignzn.c
new file mode 100644
index 0000000..42f3448
--- /dev/null
+++ b/memalignzn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_memalignzn(int, size_t, size_t, ...);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/stpnmove.c b/stpnmove.c
new file mode 100644
index 0000000..e3fd9d3
--- /dev/null
+++ b/stpnmove.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline char *libsimple_stpnmove(char *, const char *, size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/stpnset.c b/stpnset.c
new file mode 100644
index 0000000..42a810d
--- /dev/null
+++ b/stpnset.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline char *libsimple_stpnset(char *, int, size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/strncasecmpnul.c b/strncasecmpnul.c
new file mode 100644
index 0000000..f4a208c
--- /dev/null
+++ b/strncasecmpnul.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline int libsimple_strncasecmpnul(const char *, const char *, size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/strncaseeq.c b/strncaseeq.c
new file mode 100644
index 0000000..bd60472
--- /dev/null
+++ b/strncaseeq.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline int libsimple_strncaseeq(const char *, const char *, size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/strncaseeqnul.c b/strncaseeqnul.c
new file mode 100644
index 0000000..5330732
--- /dev/null
+++ b/strncaseeqnul.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline int libsimple_strncaseeqnul(const char *, const char *, size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/strnccpy.c b/strnccpy.c
new file mode 100644
index 0000000..fe8063e
--- /dev/null
+++ b/strnccpy.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline char *libsimple_strnccpy(char *restrict, const char *restrict, int, size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/strncmpnul.c b/strncmpnul.c
new file mode 100644
index 0000000..05751a1
--- /dev/null
+++ b/strncmpnul.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline int libsimple_strncmpnul(const char *, const char *, size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/strneq.c b/strneq.c
new file mode 100644
index 0000000..0432176
--- /dev/null
+++ b/strneq.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline int libsimple_strneq(const char *, const char *, size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/strneqnul.c b/strneqnul.c
new file mode 100644
index 0000000..191c2d4
--- /dev/null
+++ b/strneqnul.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline int libsimple_strneqnul(const char *, const char *, size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/strnisutf8.c b/strnisutf8.c
new file mode 100644
index 0000000..c62817c
--- /dev/null
+++ b/strnisutf8.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline int libsimple_strnisutf8(const char *, size_t, int);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/strnmove.c b/strnmove.c
new file mode 100644
index 0000000..bc94911
--- /dev/null
+++ b/strnmove.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline char *libsimple_strnmove(char *, const char *, size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/strnreplace.c b/strnreplace.c
new file mode 100644
index 0000000..9e735fb
--- /dev/null
+++ b/strnreplace.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline char *libsimple_strnreplace(char *, int, int, size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/strnset.c b/strnset.c
new file mode 100644
index 0000000..000e770
--- /dev/null
+++ b/strnset.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline char *libsimple_strnset(char *, int, size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/strntolower.c b/strntolower.c
new file mode 100644
index 0000000..f88aac5
--- /dev/null
+++ b/strntolower.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline char *libsimple_strntolower(char *, const char *, size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/strntoupper.c b/strntoupper.c
new file mode 100644
index 0000000..58d8a0c
--- /dev/null
+++ b/strntoupper.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline char *libsimple_strntoupper(char *, const char *, size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/strrncaseeqlen.c b/strrncaseeqlen.c
new file mode 100644
index 0000000..82b1db3
--- /dev/null
+++ b/strrncaseeqlen.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline size_t libsimple_strrncaseeqlen(const char *, const char *, size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/strrneqlen.c b/strrneqlen.c
new file mode 100644
index 0000000..913b359
--- /dev/null
+++ b/strrneqlen.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline size_t libsimple_strrneqlen(const char *, const char *, size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/valigned_allocn.c b/valigned_allocn.c
new file mode 100644
index 0000000..8f4faf3
--- /dev/null
+++ b/valigned_allocn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_valigned_allocn(size_t, size_t, va_list);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/valigned_reallocfn.c b/valigned_reallocfn.c
new file mode 100644
index 0000000..fcafcd6
--- /dev/null
+++ b/valigned_reallocfn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_valigned_reallocfn(void *, size_t, size_t, va_list); /* TODO test (aligned_reallocfn) */
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/valloc.c b/valloc.c
new file mode 100644
index 0000000..5566b1c
--- /dev/null
+++ b/valloc.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_valloc(size_t);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/vallocn.c b/vallocn.c
new file mode 100644
index 0000000..5ea6723
--- /dev/null
+++ b/vallocn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_vallocn(size_t, ...);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/vcallocn.c b/vcallocn.c
new file mode 100644
index 0000000..c590cf6
--- /dev/null
+++ b/vcallocn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_vcallocn(size_t, va_list);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/vmallocn.c b/vmallocn.c
new file mode 100644
index 0000000..e9f97f1
--- /dev/null
+++ b/vmallocn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_vmallocn(size_t, va_list);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/vmemalignn.c b/vmemalignn.c
new file mode 100644
index 0000000..40abfb6
--- /dev/null
+++ b/vmemalignn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_vmemalignn(size_t, size_t, va_list);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/vmemalignzn.c b/vmemalignzn.c
new file mode 100644
index 0000000..a0983e7
--- /dev/null
+++ b/vmemalignzn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_vmemalignzn(int, size_t, size_t, va_list);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif
diff --git a/vvallocn.c b/vvallocn.c
new file mode 100644
index 0000000..67b473a
--- /dev/null
+++ b/vvallocn.c
@@ -0,0 +1,18 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+#ifndef TEST
+
+
+extern inline void *libsimple_vvallocn(size_t, va_list);
+
+
+#else
+#include "test.h"
+
+int
+main(void)
+{
+ return 0;
+}
+
+#endif