diff options
| author | Xavier Del Campo Romero <xavier.delcampo@orain.io> | 2020-06-12 10:27:12 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavier.delcampo@orain.io> | 2020-06-12 10:27:12 +0200 |
| commit | 2b01e38ca2448364b6470e471ebfedf5793638af (patch) | |
| tree | 67373e04d6bd47b5e50a1756c0a7a4ae30ea1d3d /dynstr.c | |
| parent | 357d4f2c0fc52ae7e5967f542161d59d09830e27 (diff) | |
| download | dynstr-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |
