Remove global PtrMap<Type *, GenTypesData *> and store on the TypeNamed directly

This commit is contained in:
gingerBill
2025-09-10 20:45:26 +01:00
parent d3602ca634
commit 0476d33a6c
4 changed files with 19 additions and 21 deletions

View File

@@ -206,13 +206,18 @@ struct TypeProc {
bool optional_ok;
};
struct TypeNamed {
String name;
Type * base;
Entity *type_name; /* Entity_TypeName */
BlockingMutex gen_types_data_mutex;
GenTypesData *gen_types_data;
};
#define TYPE_KINDS \
TYPE_KIND(Basic, BasicType) \
TYPE_KIND(Named, struct { \
String name; \
Type * base; \
Entity *type_name; /* Entity_TypeName */ \
}) \
TYPE_KIND(Named, TypeNamed) \
TYPE_KIND(Generic, struct { \
i64 id; \
String name; \