fixed topological sorting

This commit is contained in:
Lorenzo Torres 2025-12-04 22:24:21 +01:00
parent 597efe5791
commit eed0f40516
3 changed files with 48 additions and 22 deletions

2
sema.h
View file

@ -21,13 +21,13 @@ typedef struct _type {
type_tag tag;
usize size;
usize alignment;
char *name;
union {
u8 integer;
u8 flt; // float
struct {
bool is_const;
bool is_volatile;
u16 alignment;
struct _type *child;
} ptr;
struct {