|
|
@ -30,8 +30,7 @@ let remove_pointer_to_typ typ =
|
|
|
|
let classname_of_type typ =
|
|
|
|
let classname_of_type typ =
|
|
|
|
match typ with
|
|
|
|
match typ with
|
|
|
|
| Typ.Tvar (Typename.TN_csu (_, name) )
|
|
|
|
| Typ.Tvar (Typename.TN_csu (_, name) )
|
|
|
|
| Typ.Tstruct { Typ.struct_name = Some name }
|
|
|
|
| Typ.Tstruct { struct_name = Some name } -> Mangled.to_string name
|
|
|
|
| Typ.Tvar (Typename.TN_typedef name) -> Mangled.to_string name
|
|
|
|
|
|
|
|
| Typ.Tfun _ -> CFrontend_config.objc_object
|
|
|
|
| Typ.Tfun _ -> CFrontend_config.objc_object
|
|
|
|
| _ ->
|
|
|
|
| _ ->
|
|
|
|
Printing.log_out
|
|
|
|
Printing.log_out
|
|
|
@ -42,8 +41,6 @@ let mk_classname n ck = Typename.TN_csu (Csu.Class ck, Mangled.from_string n)
|
|
|
|
|
|
|
|
|
|
|
|
let mk_structname n = Typename.TN_csu (Csu.Struct, Mangled.from_string n)
|
|
|
|
let mk_structname n = Typename.TN_csu (Csu.Struct, Mangled.from_string n)
|
|
|
|
|
|
|
|
|
|
|
|
let mk_enumname n = Typename.TN_enum (Mangled.from_string n)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let is_class typ =
|
|
|
|
let is_class typ =
|
|
|
|
match typ with
|
|
|
|
match typ with
|
|
|
|
| Typ.Tptr (Typ.Tstruct { Typ.struct_name = Some name }, _)
|
|
|
|
| Typ.Tptr (Typ.Tstruct { Typ.struct_name = Some name }, _)
|
|
|
|