diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2020-10-13 22:17:14 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2020-10-13 22:21:21 (GMT) |
commit | 601b8149bf81231a09e2977dbdbfe8e8e568c1f4 (patch) | |
tree | 9cf7c0e3b6398b4ad24880b3dcd26ef9b013a7fe /plugins/itanium/component.c | |
parent | 362ff8ddd7fac8a10c7cccae303d2ce5ea6dd7f2 (diff) |
Defined proper Python bindings for class/enum types.
Diffstat (limited to 'plugins/itanium/component.c')
-rw-r--r-- | plugins/itanium/component.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/itanium/component.c b/plugins/itanium/component.c index f035e36..3791c4c 100644 --- a/plugins/itanium/component.c +++ b/plugins/itanium/component.c @@ -1415,14 +1415,14 @@ GDataType *itd_translate_component_to_type(const itanium_component *comp, Routin { case ICT_NAME: name = itd_translate_component(comp, NULL); - result = g_class_enum_type_new(CET_STRUCT, name); + result = g_class_enum_type_new(CEK_STRUCT, name); break; case ICT_STD_UNSCOPED_NAME: result = itd_translate_component_to_type(comp->unary, rtype); if (result != NULL) { - ns = g_class_enum_type_new(CET_NAMESPACE, strdup("std")); + ns = g_class_enum_type_new(CEK_NAMESPACE, strdup("std")); itd_prepend_namespace_to_type(result, ns); } break; @@ -1434,7 +1434,7 @@ GDataType *itd_translate_component_to_type(const itanium_component *comp, Routin name = itd_translate_component(comp->binary.left, NULL); name = itd_translate_component(comp->binary.right, name); - result = g_class_enum_type_new(CET_CLASS, name); + result = g_class_enum_type_new(CEK_CLASS, name); } @@ -1515,7 +1515,7 @@ GDataType *itd_translate_component_to_type(const itanium_component *comp, Routin name = itd_translate_component(comp->binary.left, NULL); name = itd_translate_component(comp->binary.right, name); - result = g_class_enum_type_new(CET_CLASS, name); + result = g_class_enum_type_new(CEK_CLASS, name); } @@ -1544,7 +1544,7 @@ GDataType *itd_translate_component_to_type(const itanium_component *comp, Routin name = itd_translate_component(comp->binary.left, NULL); name = itd_translate_component(comp->binary.right, name); - result = g_class_enum_type_new(CET_CLASS, name); + result = g_class_enum_type_new(CEK_CLASS, name); } @@ -1582,7 +1582,7 @@ GDataType *itd_translate_component_to_type(const itanium_component *comp, Routin case ICT_OPERATOR_NAME: name = itd_translate_component(comp, NULL); - result = g_class_enum_type_new(CET_STRUCT, name); + result = g_class_enum_type_new(CEK_STRUCT, name); break; case ICT_SPECIAL_NAME_VTABLE: @@ -1594,7 +1594,7 @@ GDataType *itd_translate_component_to_type(const itanium_component *comp, Routin else { - result = g_class_enum_type_new(CET_VIRTUAL_TABLE, NULL); + result = g_class_enum_type_new(CEK_VIRTUAL_TABLE, NULL); itd_prepend_namespace_to_type(result, ns); } @@ -1609,7 +1609,7 @@ GDataType *itd_translate_component_to_type(const itanium_component *comp, Routin else { - result = g_class_enum_type_new(CET_VIRTUAL_STRUCT, NULL); + result = g_class_enum_type_new(CEK_VIRTUAL_STRUCT, NULL); itd_prepend_namespace_to_type(result, ns); } |