mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
bpo-32241: Add the const qualifire to declarations of umodifiable strings. (#4748)
This commit is contained in:
parent
5ce0a2a100
commit
4ae06c5337
15 changed files with 59 additions and 56 deletions
|
@ -168,7 +168,7 @@ Py_SetPath(const wchar_t *path)
|
|||
|
||||
|
||||
void
|
||||
Py_SetPythonHome(wchar_t *home)
|
||||
Py_SetPythonHome(const wchar_t *home)
|
||||
{
|
||||
if (home == NULL) {
|
||||
return;
|
||||
|
@ -189,7 +189,7 @@ Py_SetPythonHome(wchar_t *home)
|
|||
|
||||
|
||||
void
|
||||
Py_SetProgramName(wchar_t *program_name)
|
||||
Py_SetProgramName(const wchar_t *program_name)
|
||||
{
|
||||
if (program_name == NULL || program_name[0] == L'\0') {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue