mirror of
https://github.com/python/cpython.git
synced 2025-08-02 08:02:56 +00:00
Issue #25923: Added more const qualifiers to signatures of static and private functions.
This commit is contained in:
parent
2d06e84455
commit
ef1585eb9a
60 changed files with 210 additions and 191 deletions
|
@ -876,7 +876,7 @@ math_1_to_int(PyObject *arg, double (*func) (double), int can_overflow)
|
|||
}
|
||||
|
||||
static PyObject *
|
||||
math_2(PyObject *args, double (*func) (double, double), char *funcname)
|
||||
math_2(PyObject *args, double (*func) (double, double), const char *funcname)
|
||||
{
|
||||
PyObject *ox, *oy;
|
||||
double x, y, r;
|
||||
|
@ -1673,7 +1673,7 @@ PyDoc_STRVAR(math_modf_doc,
|
|||
in that int is larger than PY_SSIZE_T_MAX. */
|
||||
|
||||
static PyObject*
|
||||
loghelper(PyObject* arg, double (*func)(double), char *funcname)
|
||||
loghelper(PyObject* arg, double (*func)(double), const char *funcname)
|
||||
{
|
||||
/* If it is int, do it ourselves. */
|
||||
if (PyLong_Check(arg)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue