diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2020-01-03 22:51:31 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2020-01-03 22:51:31 (GMT) |
commit | 8255d60ac64a851c2e7ca37d63aa1ba37d35b704 (patch) | |
tree | 06f1855dd7ead9da2acc0c595e3710faf503628f /plugins/pychrysalide/format | |
parent | 90b8f66eb8ae62d951dfbd333fb338e38874c9fe (diff) |
Used a Python enumeration for verbosity levels.
Diffstat (limited to 'plugins/pychrysalide/format')
-rw-r--r-- | plugins/pychrysalide/format/constants.c | 6 | ||||
-rw-r--r-- | plugins/pychrysalide/format/symbol.c | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/plugins/pychrysalide/format/constants.c b/plugins/pychrysalide/format/constants.c index ea2aedc..1561032 100644 --- a/plugins/pychrysalide/format/constants.c +++ b/plugins/pychrysalide/format/constants.c @@ -66,7 +66,8 @@ bool define_binary_symbol_constants(PyTypeObject *type) goto exit; } - result = attach_constants_group(type, false, "SymbolType", values, "Available values for symbol types."); + result = attach_constants_group_to_type(type, false, "SymbolType", values, + "Available values for symbol types."); values = PyDict_New(); @@ -81,7 +82,8 @@ bool define_binary_symbol_constants(PyTypeObject *type) goto exit; } - result = attach_constants_group(type, false, "SymbolStatus", values, "Status of a symbol visibility."); + result = attach_constants_group_to_type(type, false, "SymbolStatus", values, + "Status of a symbol visibility."); exit: diff --git a/plugins/pychrysalide/format/symbol.c b/plugins/pychrysalide/format/symbol.c index 873510d..66e4dfc 100644 --- a/plugins/pychrysalide/format/symbol.c +++ b/plugins/pychrysalide/format/symbol.c @@ -439,7 +439,7 @@ static PyObject *py_binary_symbol_get_stype(PyObject *self, void *closure) symbol = G_BIN_SYMBOL(pygobject_get(self)); type = g_binary_symbol_get_stype(symbol); - result = cast_with_constants_group(get_python_binary_symbol_type(), "SymbolType", type); + result = cast_with_constants_group_from_type(get_python_binary_symbol_type(), "SymbolType", type); return result; @@ -508,7 +508,7 @@ static PyObject *py_binary_symbol_get_status(PyObject *self, void *closure) symbol = G_BIN_SYMBOL(pygobject_get(self)); status = g_binary_symbol_get_status(symbol); - result = cast_with_constants_group(get_python_binary_symbol_type(), "SymbolStatus", status); + result = cast_with_constants_group_from_type(get_python_binary_symbol_type(), "SymbolStatus", status); return result; |