diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2023-05-22 20:56:32 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2023-05-22 20:56:32 (GMT) |
commit | e1a2823b5d831349467d309ce42d56055ec9c04f (patch) | |
tree | bc4dd464d10cd379622ceb361398895d59849409 /plugins/pychrysalide/analysis/scan | |
parent | 15fb909bdd8ca0f37dd71da7427ea6bc6bb71cbb (diff) |
Rely on GObject-introspection implementation for some registrations.
Diffstat (limited to 'plugins/pychrysalide/analysis/scan')
-rw-r--r-- | plugins/pychrysalide/analysis/scan/context.c | 2 | ||||
-rw-r--r-- | plugins/pychrysalide/analysis/scan/expr.c | 2 | ||||
-rw-r--r-- | plugins/pychrysalide/analysis/scan/func.c | 2 | ||||
-rw-r--r-- | plugins/pychrysalide/analysis/scan/item.c | 2 | ||||
-rw-r--r-- | plugins/pychrysalide/analysis/scan/options.c | 4 | ||||
-rw-r--r-- | plugins/pychrysalide/analysis/scan/patterns/backend.c | 2 | ||||
-rw-r--r-- | plugins/pychrysalide/analysis/scan/patterns/backends/acism.c | 2 | ||||
-rw-r--r-- | plugins/pychrysalide/analysis/scan/patterns/backends/bitap.c | 2 | ||||
-rw-r--r-- | plugins/pychrysalide/analysis/scan/scanner.c | 2 | ||||
-rw-r--r-- | plugins/pychrysalide/analysis/scan/space.c | 2 |
10 files changed, 11 insertions, 11 deletions
diff --git a/plugins/pychrysalide/analysis/scan/context.c b/plugins/pychrysalide/analysis/scan/context.c index 1b418ea..524ec46 100644 --- a/plugins/pychrysalide/analysis/scan/context.c +++ b/plugins/pychrysalide/analysis/scan/context.c @@ -211,7 +211,7 @@ bool ensure_python_scan_context_is_registered(void) dict = PyModule_GetDict(module); - if (!register_class_for_pygobject(dict, G_TYPE_SCAN_CONTEXT, type, &PyGObject_Type)) + if (!register_class_for_pygobject(dict, G_TYPE_SCAN_CONTEXT, type)) return false; } diff --git a/plugins/pychrysalide/analysis/scan/expr.c b/plugins/pychrysalide/analysis/scan/expr.c index 14d536f..d1b5145 100644 --- a/plugins/pychrysalide/analysis/scan/expr.c +++ b/plugins/pychrysalide/analysis/scan/expr.c @@ -291,7 +291,7 @@ bool ensure_python_scan_expression_is_registered(void) if (!ensure_python_comparable_item_is_registered()) return false; - if (!register_class_for_pygobject(dict, G_TYPE_SCAN_EXPRESSION, type, &PyGObject_Type)) + if (!register_class_for_pygobject(dict, G_TYPE_SCAN_EXPRESSION, type)) return false; if (!define_expression_value_type_constants(type)) diff --git a/plugins/pychrysalide/analysis/scan/func.c b/plugins/pychrysalide/analysis/scan/func.c index 5dd846f..0bff6e8 100644 --- a/plugins/pychrysalide/analysis/scan/func.c +++ b/plugins/pychrysalide/analysis/scan/func.c @@ -158,7 +158,7 @@ bool ensure_python_scan_function_is_registered(void) if (!ensure_python_registered_item_is_registered()) return false; - if (!register_class_for_pygobject(dict, G_TYPE_SCAN_FUNCTION, type, &PyGObject_Type)) + if (!register_class_for_pygobject(dict, G_TYPE_SCAN_FUNCTION, type)) return false; } diff --git a/plugins/pychrysalide/analysis/scan/item.c b/plugins/pychrysalide/analysis/scan/item.c index 9e9d4d3..aae5b73 100644 --- a/plugins/pychrysalide/analysis/scan/item.c +++ b/plugins/pychrysalide/analysis/scan/item.c @@ -150,7 +150,7 @@ bool ensure_python_registered_item_is_registered(void) dict = PyModule_GetDict(module); - if (!register_class_for_pygobject(dict, G_TYPE_REGISTERED_ITEM, type, &PyGObject_Type)) + if (!register_class_for_pygobject(dict, G_TYPE_REGISTERED_ITEM, type)) return false; } diff --git a/plugins/pychrysalide/analysis/scan/options.c b/plugins/pychrysalide/analysis/scan/options.c index ddced33..30c3f18 100644 --- a/plugins/pychrysalide/analysis/scan/options.c +++ b/plugins/pychrysalide/analysis/scan/options.c @@ -278,7 +278,7 @@ PyTypeObject *get_python_scan_options_type(void) * * * Paramètres : - * * * -* Description : Prend en charge l'objet 'pychrysalide...scan.ScanOptions'. * +* Description : Prend en charge l'objet 'pychrysalide...scan.ScanOptions'. * * * * Retour : Bilan de l'opération. * * * @@ -300,7 +300,7 @@ bool ensure_python_scan_options_is_registered(void) dict = PyModule_GetDict(module); - if (!register_class_for_pygobject(dict, G_TYPE_SCAN_OPTIONS, type, &PyGObject_Type)) + if (!register_class_for_pygobject(dict, G_TYPE_SCAN_OPTIONS, type)) return false; } diff --git a/plugins/pychrysalide/analysis/scan/patterns/backend.c b/plugins/pychrysalide/analysis/scan/patterns/backend.c index 6d668f4..03db143 100644 --- a/plugins/pychrysalide/analysis/scan/patterns/backend.c +++ b/plugins/pychrysalide/analysis/scan/patterns/backend.c @@ -147,7 +147,7 @@ bool ensure_python_engine_backend_is_registered(void) dict = PyModule_GetDict(module); - if (!register_class_for_pygobject(dict, G_TYPE_ENGINE_BACKEND, type, &PyGObject_Type)) + if (!register_class_for_pygobject(dict, G_TYPE_ENGINE_BACKEND, type)) return false; } diff --git a/plugins/pychrysalide/analysis/scan/patterns/backends/acism.c b/plugins/pychrysalide/analysis/scan/patterns/backends/acism.c index 63e653a..fe89507 100644 --- a/plugins/pychrysalide/analysis/scan/patterns/backends/acism.c +++ b/plugins/pychrysalide/analysis/scan/patterns/backends/acism.c @@ -159,7 +159,7 @@ bool ensure_python_acism_backend_is_registered(void) if (!ensure_python_engine_backend_is_registered()) return false; - if (!register_class_for_pygobject(dict, G_TYPE_ACISM_BACKEND, type, &PyGObject_Type)) + if (!register_class_for_pygobject(dict, G_TYPE_ACISM_BACKEND, type)) return false; } diff --git a/plugins/pychrysalide/analysis/scan/patterns/backends/bitap.c b/plugins/pychrysalide/analysis/scan/patterns/backends/bitap.c index f961bf7..5ceade8 100644 --- a/plugins/pychrysalide/analysis/scan/patterns/backends/bitap.c +++ b/plugins/pychrysalide/analysis/scan/patterns/backends/bitap.c @@ -159,7 +159,7 @@ bool ensure_python_bitap_backend_is_registered(void) if (!ensure_python_engine_backend_is_registered()) return false; - if (!register_class_for_pygobject(dict, G_TYPE_BITAP_BACKEND, type, &PyGObject_Type)) + if (!register_class_for_pygobject(dict, G_TYPE_BITAP_BACKEND, type)) return false; } diff --git a/plugins/pychrysalide/analysis/scan/scanner.c b/plugins/pychrysalide/analysis/scan/scanner.c index 62e32b1..bf5a5f5 100644 --- a/plugins/pychrysalide/analysis/scan/scanner.c +++ b/plugins/pychrysalide/analysis/scan/scanner.c @@ -259,7 +259,7 @@ bool ensure_python_content_scanner_is_registered(void) dict = PyModule_GetDict(module); - if (!register_class_for_pygobject(dict, G_TYPE_CONTENT_SCANNER, type, &PyGObject_Type)) + if (!register_class_for_pygobject(dict, G_TYPE_CONTENT_SCANNER, type)) return false; } diff --git a/plugins/pychrysalide/analysis/scan/space.c b/plugins/pychrysalide/analysis/scan/space.c index 9f29829..7d85fca 100644 --- a/plugins/pychrysalide/analysis/scan/space.c +++ b/plugins/pychrysalide/analysis/scan/space.c @@ -242,7 +242,7 @@ bool ensure_python_scan_namespace_is_registered(void) dict = PyModule_GetDict(module); - if (!register_class_for_pygobject(dict, G_TYPE_SCAN_NAMESPACE, type, &PyGObject_Type)) + if (!register_class_for_pygobject(dict, G_TYPE_SCAN_NAMESPACE, type)) return false; } |