diff options
Diffstat (limited to 'src/analyzer.h')
-rw-r--r-- | src/analyzer.h | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/src/analyzer.h b/src/analyzer.h index f44cbac..5e28903 100644 --- a/src/analyzer.h +++ b/src/analyzer.h @@ -10,22 +10,10 @@ enum { TYPE_UNSET = 0, TYPE_CHECKING = 1, - /* Signed integers */ - TYPE_I8, - TYPE_I16, - TYPE_I32, - TYPE_I64, - TYPE_INT, - TYPE_INT_UNTYPED, - - /* Unsigned integers */ - TYPE_U8, - TYPE_U16, - TYPE_U32, - TYPE_U64, - TYPE_UINT, + TYPE_NUM, /* Floating point numbers */ + TYPE_F16, TYPE_F32, TYPE_F64, @@ -52,6 +40,7 @@ struct type { idx_t_ paramcnt; }; -void analyzeast(struct ast, struct lexemes); +struct type *analyzeast(struct ast, struct lexemes) + __attribute__((returns_nonnull)); #endif /* !ORYX_ANALYZER_H */ |