summaryrefslogtreecommitdiff
path: root/plugins/dexbnf
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-10-13 22:17:14 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-10-13 22:21:21 (GMT)
commit601b8149bf81231a09e2977dbdbfe8e8e568c1f4 (patch)
tree9cf7c0e3b6398b4ad24880b3dcd26ef9b013a7fe /plugins/dexbnf
parent362ff8ddd7fac8a10c7cccae303d2ce5ea6dd7f2 (diff)
Defined proper Python bindings for class/enum types.
Diffstat (limited to 'plugins/dexbnf')
-rw-r--r--plugins/dexbnf/shorty.c2
-rw-r--r--plugins/dexbnf/type.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/dexbnf/shorty.c b/plugins/dexbnf/shorty.c
index 434aa3b..2dbd019 100644
--- a/plugins/dexbnf/shorty.c
+++ b/plugins/dexbnf/shorty.c
@@ -213,7 +213,7 @@ static GDataType *dsd_shorty_field_type(input_buffer *buffer, char ahead)
break;
case 'L':
- result = g_class_enum_type_new(CET_CLASS, NULL);
+ result = g_class_enum_type_new(CEK_CLASS, NULL);
break;
default:
diff --git a/plugins/dexbnf/type.c b/plugins/dexbnf/type.c
index 5a0d82c..db838c1 100644
--- a/plugins/dexbnf/type.c
+++ b/plugins/dexbnf/type.c
@@ -88,7 +88,7 @@ static GDataType *dtd_full_class_name(input_buffer *buffer)
}
else
- result = g_class_enum_type_new(CET_CLASS, name);
+ result = g_class_enum_type_new(CEK_CLASS, name);
/* Eventuels autres étages précédents */
@@ -114,7 +114,7 @@ static GDataType *dtd_full_class_name(input_buffer *buffer)
ns = result;
- result = g_class_enum_type_new(CET_CLASS, name);
+ result = g_class_enum_type_new(CEK_CLASS, name);
g_data_type_set_namespace(result, ns, strdup("."));