diff options
Diffstat (limited to 'parse.c')
-rw-r--r-- | parse.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -146,14 +146,18 @@ static bool type_builtin_is_float(BuiltinType b) { } } -static bool type_builtin_is_numerical(BuiltinType b) { +static inline bool type_builtin_is_numerical(BuiltinType b) { return type_builtin_is_int(b) || type_builtin_is_float(b); } -static bool type_is_int(Type *t) { +static inline bool type_is_int(Type *t) { return t->kind == TYPE_BUILTIN && type_builtin_is_int(t->builtin); } +static inline bool type_is_float(Type *t) { + return t->kind == TYPE_BUILTIN && type_builtin_is_float(t->builtin); +} + /* returns -1 on failure */ static int kw_to_builtin_type(Keyword kw) { switch (kw) { |