mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-20 05:20:28 +00:00
Remove global PtrMap<Type *, GenTypesData *> and store on the TypeNamed directly
This commit is contained in:
@@ -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; \
|
||||
|
||||
Reference in New Issue
Block a user