diff options
Diffstat (limited to 'toc.c')
-rw-r--r-- | toc.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -45,6 +45,13 @@ static void fprint_char_literal(FILE *f, char c) { } +static inline bool type_is_builtin(Type *t, BuiltinType b) { + return t->kind == TYPE_BUILTIN && t->builtin == b; +} + +static inline bool type_is_slicechar(Type *t) { + return t->kind == TYPE_SLICE && type_is_builtin(t->slice, BUILTIN_CHAR); +} /* utilities */ #include "allocator.c" @@ -57,6 +64,7 @@ static void fprint_char_literal(FILE *f, char c) { #include "copy.c" #include "binfile.c" + #include "identifiers.c" #include "tokenizer.c" #include "parse.c" |