aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/ek/ast.h3
-rw-r--r--include/ek/vec.h2
2 files changed, 3 insertions, 2 deletions
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)