aboutsummaryrefslogtreecommitdiff
path: root/dynstr.c
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavier.delcampo@orain.io>2020-06-12 10:27:12 +0200
committerXavier Del Campo Romero <xavier.delcampo@orain.io>2020-06-12 10:27:12 +0200
commit2b01e38ca2448364b6470e471ebfedf5793638af (patch)
tree67373e04d6bd47b5e50a1756c0a7a4ae30ea1d3d /dynstr.c
parent357d4f2c0fc52ae7e5967f542161d59d09830e27 (diff)
downloaddynstr-2b01e38ca2448364b6470e471ebfedf5793638af.tar.gz
Various minor changes
- Removed trailing ';' from convenience macros. - Convenience macros did not really need the ## __VA_ARGS__ extension. Simply grouping all parameters into '...', while decreasing readability, solves the portability issue. - Added C99 check to dynstr.c.
Diffstat (limited to 'dynstr.c')
-rw-r--r--dynstr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dynstr.c b/dynstr.c
index f816155..847b75f 100644
--- a/dynstr.c
+++ b/dynstr.c
@@ -21,6 +21,10 @@
#include <stdarg.h>
#include <stddef.h>
+#if __STDC_VERSION__ < 199901L
+#error C99 support is mandatory for dynstr
+#endif /* __STDC_VERSION < 199901L */
+
void dynstr_init(struct dynstr *const d)
{
memset(d, 0, sizeof *d);