summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/parse.c b/parse.c
index dd3a4b7..b066708 100644
--- a/parse.c
+++ b/parse.c
@@ -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) {