mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-07-14 21:41:25 -07:00
make meta & eval type system a bit richer to express plain text vs. code text vs. path text
This commit is contained in:
+4
-12
@@ -455,18 +455,10 @@ e_type_key_cons_base(Type *type)
|
||||
{
|
||||
E_TypeKey direct_type = e_type_key_cons_base(type->direct);
|
||||
E_TypeFlags flags = 0;
|
||||
if(type->flags & TypeFlag_IsExternal)
|
||||
{
|
||||
flags |= E_TypeFlag_External;
|
||||
}
|
||||
if(type->flags & TypeFlag_IsCode)
|
||||
{
|
||||
flags |= E_TypeFlag_IsCode;
|
||||
}
|
||||
if(type->flags & TypeFlag_IsPath)
|
||||
{
|
||||
flags |= E_TypeFlag_IsPath;
|
||||
}
|
||||
if(type->flags & TypeFlag_IsExternal) { flags |= E_TypeFlag_External; }
|
||||
if(type->flags & TypeFlag_IsPlainText){ flags |= E_TypeFlag_IsPlainText; }
|
||||
if(type->flags & TypeFlag_IsCodeText) { flags |= E_TypeFlag_IsCodeText; }
|
||||
if(type->flags & TypeFlag_IsPathText) { flags |= E_TypeFlag_IsPathText; }
|
||||
result = e_type_key_cons_ptr(arch_from_context(), direct_type, flags);
|
||||
}break;
|
||||
case TypeKind_Array:
|
||||
|
||||
@@ -66,11 +66,12 @@ E_MemberKind;
|
||||
typedef U32 E_TypeFlags;
|
||||
enum
|
||||
{
|
||||
E_TypeFlag_Const = (1<<0),
|
||||
E_TypeFlag_Volatile = (1<<1),
|
||||
E_TypeFlag_External = (1<<2),
|
||||
E_TypeFlag_IsCode = (1<<3),
|
||||
E_TypeFlag_IsPath = (1<<4),
|
||||
E_TypeFlag_Const = (1<<0),
|
||||
E_TypeFlag_Volatile = (1<<1),
|
||||
E_TypeFlag_External = (1<<2),
|
||||
E_TypeFlag_IsPlainText= (1<<3),
|
||||
E_TypeFlag_IsCodeText = (1<<4),
|
||||
E_TypeFlag_IsPathText = (1<<5),
|
||||
};
|
||||
|
||||
typedef struct E_Member E_Member;
|
||||
|
||||
Reference in New Issue
Block a user