Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit afb3e71

Browse files
bpo-35489: Use "const Py_UNICODE *" for the Py_UNICODE converter in AC. (GH-11150)
1 parent 7b36016 commit afb3e71

9 files changed

Lines changed: 110 additions & 98 deletions

File tree

Modules/_winapi.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -995,13 +995,14 @@ process ID, and thread ID.
995995
[clinic start generated code]*/
996996

997997
static PyObject *
998-
_winapi_CreateProcess_impl(PyObject *module, Py_UNICODE *application_name,
998+
_winapi_CreateProcess_impl(PyObject *module,
999+
const Py_UNICODE *application_name,
9991000
PyObject *command_line, PyObject *proc_attrs,
10001001
PyObject *thread_attrs, BOOL inherit_handles,
10011002
DWORD creation_flags, PyObject *env_mapping,
1002-
Py_UNICODE *current_directory,
1003+
const Py_UNICODE *current_directory,
10031004
PyObject *startup_info)
1004-
/*[clinic end generated code: output=2ecaab46a05e3123 input=42ac293eaea03fc4]*/
1005+
/*[clinic end generated code: output=9b2423a609230132 input=42ac293eaea03fc4]*/
10051006
{
10061007
PyObject *ret = NULL;
10071008
BOOL result;

Modules/arraymodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1712,9 +1712,9 @@ some other type.
17121712
[clinic start generated code]*/
17131713

17141714
static PyObject *
1715-
array_array_fromunicode_impl(arrayobject *self, Py_UNICODE *ustr,
1715+
array_array_fromunicode_impl(arrayobject *self, const Py_UNICODE *ustr,
17161716
Py_ssize_clean_t ustr_length)
1717-
/*[clinic end generated code: output=ebb72fc16975e06d input=150f00566ffbca6e]*/
1717+
/*[clinic end generated code: output=cf2f662908e2befc input=150f00566ffbca6e]*/
17181718
{
17191719
char typecode;
17201720

Modules/clinic/_winapi.c.h

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/clinic/arraymodule.c.h

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/clinic/posixmodule.c.h

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/posixmodule.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4215,8 +4215,8 @@ Execute the command in a subshell.
42154215
[clinic start generated code]*/
42164216

42174217
static long
4218-
os_system_impl(PyObject *module, Py_UNICODE *command)
4219-
/*[clinic end generated code: output=96c4dffee36dfb48 input=303f5ce97df606b0]*/
4218+
os_system_impl(PyObject *module, const Py_UNICODE *command)
4219+
/*[clinic end generated code: output=5b7c3599c068ca42 input=303f5ce97df606b0]*/
42204220
{
42214221
long result;
42224222
Py_BEGIN_ALLOW_THREADS
@@ -11224,8 +11224,9 @@ the underlying Win32 ShellExecute function doesn't work if it is.
1122411224
[clinic start generated code]*/
1122511225

1122611226
static PyObject *
11227-
os_startfile_impl(PyObject *module, path_t *filepath, Py_UNICODE *operation)
11228-
/*[clinic end generated code: output=912ceba79acfa1c9 input=63950bf2986380d0]*/
11227+
os_startfile_impl(PyObject *module, path_t *filepath,
11228+
const Py_UNICODE *operation)
11229+
/*[clinic end generated code: output=66dc311c94d50797 input=63950bf2986380d0]*/
1122911230
{
1123011231
HINSTANCE rc;
1123111232

0 commit comments

Comments
 (0)