harec

[hare] Hare compiler, written in C11 for POSIX OSs
Log | Files | Refs | README | LICENSE

commit e7de13d7e365d5b7266f3e80b114a539266d76d2
parent 658c7a4d9ada2f40fef246f91e9609e189c17da6
Author: Sebastian <sebastian@sebsite.pw>
Date:   Tue, 17 Jan 2023 01:05:34 -0500

util: remove semicolons from macros

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Minclude/util.h | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/util.h b/include/util.h @@ -15,9 +15,9 @@ uint32_t fnv1a_s(uint32_t hash, const char *str); void *xcalloc(size_t n, size_t s); void *xrealloc(void *p, size_t s); -#define malloc(a) (void *)sizeof(struct { static_assert(0, "Use xcalloc instead"); int _; }); -#define calloc(a, b) (void *)sizeof(struct { static_assert(0, "Use xcalloc instead"); int _; }); -#define realloc(a, b) (void *)sizeof(struct { static_assert(0, "Use xrealloc instead"); int _; }); +#define malloc(a) (void *)sizeof(struct { static_assert(0, "Use xcalloc instead"); int _; }) +#define calloc(a, b) (void *)sizeof(struct { static_assert(0, "Use xcalloc instead"); int _; }) +#define realloc(a, b) (void *)sizeof(struct { static_assert(0, "Use xrealloc instead"); int _; }) struct pathspec { const char *var;