diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-12-25 20:01:53 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-12-25 20:01:53 +0200 |
commit | 5c633fc25fc6f9beee3ccb9ebc06633d1c9a1bc3 (patch) | |
tree | 451f469d7131b79436a1a1017463cd8d7c1ddded /Modules/_tkinter.c | |
parent | d1ba93f9a6a441ac31c5fd1890ce730b9e6d330d (diff) | |
download | cpython-5c633fc25fc6f9beee3ccb9ebc06633d1c9a1bc3.tar.gz |
Issue #25923: Added more const qualifiers to signatures of static and private functions.
Diffstat (limited to 'Modules/_tkinter.c')
-rw-r--r-- | Modules/_tkinter.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index 41ad5f91f7..768df81c1e 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -841,7 +841,7 @@ PyTclObject_dealloc(PyTclObject *self) Py_DECREF(tp); } -static char* +static const char * PyTclObject_TclString(PyObject *self) { return Tcl_GetString(((PyTclObject*)self)->value); @@ -1726,7 +1726,7 @@ static int varname_converter(PyObject *in, void *_out) { char *s; - char **out = (char**)_out; + const char **out = (const char**)_out; if (PyBytes_Check(in)) { if (PyBytes_Size(in) > INT_MAX) { PyErr_SetString(PyExc_OverflowError, "bytes object is too long"); @@ -1846,7 +1846,7 @@ var_invoke(EventFunc func, PyObject *selfptr, PyObject *args, int flags) static PyObject * SetVar(PyObject *self, PyObject *args, int flags) { - char *name1, *name2; + const char *name1, *name2; PyObject *newValue; PyObject *res = NULL; Tcl_Obj *newval, *ok; @@ -1915,7 +1915,7 @@ Tkapp_GlobalSetVar(PyObject *self, PyObject *args) static PyObject * GetVar(PyObject *self, PyObject *args, int flags) { - char *name1, *name2=NULL; + const char *name1, *name2=NULL; PyObject *res = NULL; Tcl_Obj *tres; |