Skip to content

gh-105156: Argument Clinic avoids Py_UNICODE type #105161

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions Modules/_winapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1058,14 +1058,13 @@ process ID, and thread ID.
[clinic start generated code]*/

static PyObject *
_winapi_CreateProcess_impl(PyObject *module,
const Py_UNICODE *application_name,
_winapi_CreateProcess_impl(PyObject *module, const wchar_t *application_name,
PyObject *command_line, PyObject *proc_attrs,
PyObject *thread_attrs, BOOL inherit_handles,
DWORD creation_flags, PyObject *env_mapping,
const Py_UNICODE *current_directory,
const wchar_t *current_directory,
PyObject *startup_info)
/*[clinic end generated code: output=9b2423a609230132 input=42ac293eaea03fc4]*/
/*[clinic end generated code: output=a25c8e49ea1d6427 input=42ac293eaea03fc4]*/
{
PyObject *ret = NULL;
BOOL result;
Expand Down
11 changes: 5 additions & 6 deletions Modules/clinic/_winapi.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions Modules/clinic/overlapped.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions Modules/clinic/posixmodule.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Modules/overlapped.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,8 @@ EventAttributes must be None.
static PyObject *
_overlapped_CreateEvent_impl(PyObject *module, PyObject *EventAttributes,
BOOL ManualReset, BOOL InitialState,
const Py_UNICODE *Name)
/*[clinic end generated code: output=8e04f0916c17b13d input=dbc36ae14375ba24]*/
const wchar_t *Name)
/*[clinic end generated code: output=b17ddc5fd506972d input=dbc36ae14375ba24]*/
{
HANDLE Event;

Expand Down Expand Up @@ -1600,8 +1600,8 @@ Connect to the pipe for asynchronous I/O (overlapped).

static PyObject *
_overlapped_Overlapped_ConnectPipe_impl(OverlappedObject *self,
const Py_UNICODE *Address)
/*[clinic end generated code: output=3cc9661667d459d4 input=167c06a274efcefc]*/
const wchar_t *Address)
/*[clinic end generated code: output=67cbd8e4d3a57855 input=167c06a274efcefc]*/
{
HANDLE PipeHandle;

Expand Down
8 changes: 4 additions & 4 deletions Modules/posixmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -5650,8 +5650,8 @@ Execute the command in a subshell.
[clinic start generated code]*/

static long
os_system_impl(PyObject *module, const Py_UNICODE *command)
/*[clinic end generated code: output=5b7c3599c068ca42 input=303f5ce97df606b0]*/
os_system_impl(PyObject *module, const wchar_t *command)
/*[clinic end generated code: output=dd528cbd5943a679 input=303f5ce97df606b0]*/
{
long result;

Expand Down Expand Up @@ -13571,9 +13571,9 @@ the underlying Win32 ShellExecute function doesn't work if it is.

static PyObject *
os_startfile_impl(PyObject *module, path_t *filepath,
const Py_UNICODE *operation, const Py_UNICODE *arguments,
const wchar_t *operation, const wchar_t *arguments,
path_t *cwd, int show_cmd)
/*[clinic end generated code: output=3baa4f9795841880 input=8248997b80669622]*/
/*[clinic end generated code: output=1c6f2f3340e31ffa input=8248997b80669622]*/
{
HINSTANCE rc;

Expand Down
Loading