From d286ffec59abd21ee10fc5628dfef52f714c811f Mon Sep 17 00:00:00 2001 From: Kimplul Date: Mon, 15 Apr 2024 01:35:12 +0300 Subject: format --- include/ek/ast.h | 3 ++- include/ek/vec.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/ek/ast.h b/include/ek/ast.h index 9770e91..5156b1d 100644 --- a/include/ek/ast.h +++ b/include/ek/ast.h @@ -372,7 +372,8 @@ static inline bool is_primitive(struct type *t) #define gen_str_type1(k, s, t, a, loc) gen_ast(k, a, NULL, NULL, NULL, t, s, -1, \ loc) #define gen_str_type(k, s, t, loc) gen_str_type1(k, s, t, NULL, loc) -#define gen_type(k, a, type, loc) gen_ast(k, a, NULL, NULL, NULL, type, NULL, -1, \ +#define gen_type(k, a, type, loc) gen_ast(k, a, NULL, NULL, NULL, type, NULL, \ + -1, \ loc) #define gen_str2(k, s, a, b, loc) gen_ast(k, a, b, NULL, NULL, NULL, s, -1, loc) #define gen_str1(k, s, a, loc) gen_str2(k, s, a, NULL, loc) diff --git a/include/ek/vec.h b/include/ek/vec.h index 981f511..765f2da 100644 --- a/include/ek/vec.h +++ b/include/ek/vec.h @@ -24,7 +24,7 @@ typedef int (*vec_comp_t)(const void *, const void *); void vec_sort(struct vec *v, vec_comp_t comp); #define foreach_vec(iter, v) \ - for (size_t iter = 0, __n = vec_len(&v); iter < __n; ++iter) + for (size_t iter = 0; iter < vec_len(&v); ++iter) #define vect_at(type, v, i) \ *(type *)vec_at(&v, i) -- cgit v1.3