diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-01-19 17:43:09 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-01-19 17:43:09 +0100 |
commit | 32526b3c1846025f0e655f41efd4e5428da16b6c (patch) | |
tree | e9f3ea5e0daaada049e905b5f1b38b4a45511f3d /src/if_py_both.h | |
parent | d383c92ec1d14ffd5c3802f0ffd763e91d547fa8 (diff) |
patch 8.1.0779: argument for message functions is inconsistentv8.1.0779
Problem: Argument for message functions is inconsistent.
Solution: Make first argument to msg() "char *".
Diffstat (limited to 'src/if_py_both.h')
-rw-r--r-- | src/if_py_both.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/if_py_both.h b/src/if_py_both.h index 85141e11a0..233489ecc6 100644 --- a/src/if_py_both.h +++ b/src/if_py_both.h @@ -410,12 +410,6 @@ writer(writefn fn, char_u *str, PyInt n) } static int -msg_wrapper(char *text) -{ - return msg((char_u *)text); -} - - static int write_output(OutputObject *self, PyObject *string) { Py_ssize_t len = 0; @@ -427,7 +421,7 @@ write_output(OutputObject *self, PyObject *string) Py_BEGIN_ALLOW_THREADS Python_Lock_Vim(); - writer((writefn)(error ? emsg : msg_wrapper), (char_u *)str, len); + writer((writefn)(error ? emsg : msg), (char_u *)str, len); Python_Release_Vim(); Py_END_ALLOW_THREADS PyMem_Free(str); |