diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-11-18 22:24:55 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-11-18 22:24:55 (GMT) |
commit | 7c1f85b8197cb02634d06d200f68ce65e9eca717 (patch) | |
tree | a70ed11f36e39b9643ad2977935b10f62cd57852 | |
parent | ea090774bf3b5849422de9af8c294b3e9d00105b (diff) |
Removed useless casts in the Python bindings code.
-rw-r--r-- | plugins/pychrysalide/core/logs.c | 6 | ||||
-rw-r--r-- | plugins/pychrysalide/glibext/buffercache.c | 2 | ||||
-rw-r--r-- | plugins/pychrysalide/glibext/loadedpanel.c | 2 | ||||
-rw-r--r-- | plugins/pychrysalide/gui/editem.c | 8 | ||||
-rw-r--r-- | plugins/pychrysalide/gui/panels/panel.c | 2 |
5 files changed, 10 insertions, 10 deletions
diff --git a/plugins/pychrysalide/core/logs.c b/plugins/pychrysalide/core/logs.c index c0caddb..7b595c1 100644 --- a/plugins/pychrysalide/core/logs.c +++ b/plugins/pychrysalide/core/logs.c @@ -171,17 +171,17 @@ PyTypeObject *get_python_logs_type(void) { static PyMethodDef py_logs_methods[] = { { - "get_verbosity", (PyCFunction)py_logs_get_verbosity, + "get_verbosity", py_logs_get_verbosity, METH_NOARGS | METH_STATIC, "get_verbosity(, /)\n--\n\nGet the log verbosity." }, { - "set_verbosity", (PyCFunction)py_logs_set_verbosity, + "set_verbosity", py_logs_set_verbosity, METH_VARARGS | METH_STATIC, "set_verbosity(, /)\n--\n\nSet the log verbosity." }, { - "log_message", (PyCFunction)py_logs_log_message, + "log_message", py_logs_log_message, METH_VARARGS | METH_STATIC, "log_message(type, msg, /)\n--\n\nDisplay a message in the log window, if any." }, diff --git a/plugins/pychrysalide/glibext/buffercache.c b/plugins/pychrysalide/glibext/buffercache.c index b01b68c..8818f5e 100644 --- a/plugins/pychrysalide/glibext/buffercache.c +++ b/plugins/pychrysalide/glibext/buffercache.c @@ -104,7 +104,7 @@ PyTypeObject *get_python_buffer_cache_type(void) static PyMethodDef py_buffer_cache_methods[] = { #if 0 { - "find_line_by_addr", (PyCFunction)py_buffer_cache_find_line_by_addr, + "find_line_by_addr", py_buffer_cache_find_line_by_addr, METH_VARARGS, "find_line_by_addr($self, addr, /)\n--\n\nFind a buffer line with a given address." }, diff --git a/plugins/pychrysalide/glibext/loadedpanel.c b/plugins/pychrysalide/glibext/loadedpanel.c index 44f7ce6..4dfb5c2 100644 --- a/plugins/pychrysalide/glibext/loadedpanel.c +++ b/plugins/pychrysalide/glibext/loadedpanel.c @@ -186,7 +186,7 @@ PyTypeObject *get_python_loaded_panel_type(void) { static PyMethodDef py_loaded_panel_methods[] = { { - "scroll_to_cursor", (PyCFunction)py_loaded_panel_scroll_to_cursor, + "scroll_to_cursor", py_loaded_panel_scroll_to_cursor, METH_VARARGS, "scroll_to_cursor($self, cursor, tweak, move, /)\n--\n\nEnsure a given address is displayed in the view panel." }, diff --git a/plugins/pychrysalide/gui/editem.c b/plugins/pychrysalide/gui/editem.c index 68a0829..c60d678 100644 --- a/plugins/pychrysalide/gui/editem.c +++ b/plugins/pychrysalide/gui/editem.c @@ -298,22 +298,22 @@ PyTypeObject *get_python_editor_item_type(void) { static PyMethodDef py_editor_item_methods[] = { { - "change_content", (PyCFunction)py_editor_item_change_content, + "change_content", py_editor_item_change_content, METH_VARARGS, "change_content($self, /)\n--\n\nCalled by Chrysalide on each content change, if the item is registered." }, { - "change_view", (PyCFunction)py_editor_item_change_view, + "change_view", py_editor_item_change_view, METH_VARARGS, "change_view($self, /)\n--\n\nCalled by Chrysalide on each view change, if the item is registered." }, { - "update_view", (PyCFunction)py_editor_item_update_view, + "update_view", py_editor_item_update_view, METH_VARARGS, "update_view($self, /)\n--\n\nCalled by Chrysalide on each view content change, if the item is registered." }, { - "register", (PyCFunction)py_editor_item_register, + "register", py_editor_item_register, METH_NOARGS, "register($self, /)\n--\n\nregister($self, /)\n--\n\nRegister the item as editor item." }, diff --git a/plugins/pychrysalide/gui/panels/panel.c b/plugins/pychrysalide/gui/panels/panel.c index 6613fac..1721780 100644 --- a/plugins/pychrysalide/gui/panels/panel.c +++ b/plugins/pychrysalide/gui/panels/panel.c @@ -148,7 +148,7 @@ PyTypeObject *get_python_panel_item_type(void) { static PyMethodDef py_panel_item_methods[] = { { - "dock", (PyCFunction)py_panel_item_dock, + "dock", py_panel_item_dock, METH_NOARGS, "dock($self, /)\n--\n\nDisplay the panel item in the right place." }, |