mirror of
https://github.com/python/cpython.git
synced 2025-07-19 01:05:26 +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
|
@ -6986,7 +6986,7 @@ PyUnicode_AsASCIIString(PyObject *unicode)
|
|||
# define WC_ERR_INVALID_CHARS 0x0080
|
||||
#endif
|
||||
|
||||
static char*
|
||||
static const char*
|
||||
code_page_name(UINT code_page, PyObject **obj)
|
||||
{
|
||||
*obj = NULL;
|
||||
|
@ -7094,7 +7094,7 @@ decode_code_page_errors(UINT code_page,
|
|||
PyObject *errorHandler = NULL;
|
||||
PyObject *exc = NULL;
|
||||
PyObject *encoding_obj = NULL;
|
||||
char *encoding;
|
||||
const char *encoding;
|
||||
DWORD err;
|
||||
int ret = -1;
|
||||
|
||||
|
@ -7438,7 +7438,7 @@ encode_code_page_errors(UINT code_page, PyObject **outbytes,
|
|||
PyObject *errorHandler = NULL;
|
||||
PyObject *exc = NULL;
|
||||
PyObject *encoding_obj = NULL;
|
||||
char *encoding;
|
||||
const char *encoding;
|
||||
Py_ssize_t newpos, newoutsize;
|
||||
PyObject *rep;
|
||||
int ret = -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue