Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
77772c0e
Kaydet (Commit)
77772c0e
authored
May 13, 2015
tarafından
Zachary Ware
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #20172: Update clinicizations to current clinic.
üst
14ef1a12
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
132 additions
and
111 deletions
+132
-111
_winapi.c
Modules/_winapi.c
+62
-31
_winapi.c.h
Modules/clinic/_winapi.c.h
+0
-0
msvcrtmodule.c.h
PC/clinic/msvcrtmodule.c.h
+15
-33
winreg.c.h
PC/clinic/winreg.c.h
+0
-0
winsound.c.h
PC/clinic/winsound.c.h
+4
-7
msvcrtmodule.c
PC/msvcrtmodule.c
+7
-6
winreg.c
PC/winreg.c
+42
-32
winsound.c
PC/winsound.c
+2
-2
No files found.
Modules/_winapi.c
Dosyayı görüntüle @
77772c0e
...
@@ -391,8 +391,9 @@ _winapi.ConnectNamedPipe
...
@@ -391,8 +391,9 @@ _winapi.ConnectNamedPipe
[clinic start generated code]*/
[clinic start generated code]*/
static
PyObject
*
static
PyObject
*
_winapi_ConnectNamedPipe_impl
(
PyModuleDef
*
module
,
HANDLE
handle
,
int
use_overlapped
)
_winapi_ConnectNamedPipe_impl
(
PyModuleDef
*
module
,
HANDLE
handle
,
/*[clinic end generated code: output=d9a64e59c27e10f6 input=edc83da007ebf3be]*/
int
use_overlapped
)
/*[clinic end generated code: output=fed3b165d1bca95a input=edc83da007ebf3be]*/
{
{
BOOL
success
;
BOOL
success
;
OverlappedObject
*
overlapped
=
NULL
;
OverlappedObject
*
overlapped
=
NULL
;
...
@@ -442,8 +443,12 @@ _winapi.CreateFile -> HANDLE
...
@@ -442,8 +443,12 @@ _winapi.CreateFile -> HANDLE
[clinic start generated code]*/
[clinic start generated code]*/
static
HANDLE
static
HANDLE
_winapi_CreateFile_impl
(
PyModuleDef
*
module
,
LPCTSTR
file_name
,
DWORD
desired_access
,
DWORD
share_mode
,
LPSECURITY_ATTRIBUTES
security_attributes
,
DWORD
creation_disposition
,
DWORD
flags_and_attributes
,
HANDLE
template_file
)
_winapi_CreateFile_impl
(
PyModuleDef
*
module
,
LPCTSTR
file_name
,
/*[clinic end generated code: output=f8649129a4959288 input=6423c3e40372dbd5]*/
DWORD
desired_access
,
DWORD
share_mode
,
LPSECURITY_ATTRIBUTES
security_attributes
,
DWORD
creation_disposition
,
DWORD
flags_and_attributes
,
HANDLE
template_file
)
/*[clinic end generated code: output=c6e1d78f8affd10c input=6423c3e40372dbd5]*/
{
{
HANDLE
handle
;
HANDLE
handle
;
...
@@ -469,8 +474,9 @@ _winapi.CreateJunction
...
@@ -469,8 +474,9 @@ _winapi.CreateJunction
[clinic start generated code]*/
[clinic start generated code]*/
static
PyObject
*
static
PyObject
*
_winapi_CreateJunction_impl
(
PyModuleDef
*
module
,
LPWSTR
src_path
,
LPWSTR
dst_path
)
_winapi_CreateJunction_impl
(
PyModuleDef
*
module
,
LPWSTR
src_path
,
/*[clinic end generated code: output=df22af7be7045584 input=8cd1f9964b6e3d36]*/
LPWSTR
dst_path
)
/*[clinic end generated code: output=eccae9364e46f6da input=8cd1f9964b6e3d36]*/
{
{
/* Privilege adjustment */
/* Privilege adjustment */
HANDLE
token
=
NULL
;
HANDLE
token
=
NULL
;
...
@@ -611,8 +617,12 @@ _winapi.CreateNamedPipe -> HANDLE
...
@@ -611,8 +617,12 @@ _winapi.CreateNamedPipe -> HANDLE
[clinic start generated code]*/
[clinic start generated code]*/
static
HANDLE
static
HANDLE
_winapi_CreateNamedPipe_impl
(
PyModuleDef
*
module
,
LPCTSTR
name
,
DWORD
open_mode
,
DWORD
pipe_mode
,
DWORD
max_instances
,
DWORD
out_buffer_size
,
DWORD
in_buffer_size
,
DWORD
default_timeout
,
LPSECURITY_ATTRIBUTES
security_attributes
)
_winapi_CreateNamedPipe_impl
(
PyModuleDef
*
module
,
LPCTSTR
name
,
/*[clinic end generated code: output=711e231639c25c24 input=5a73530b84d8bc37]*/
DWORD
open_mode
,
DWORD
pipe_mode
,
DWORD
max_instances
,
DWORD
out_buffer_size
,
DWORD
in_buffer_size
,
DWORD
default_timeout
,
LPSECURITY_ATTRIBUTES
security_attributes
)
/*[clinic end generated code: output=44ca2a06a219b523 input=5a73530b84d8bc37]*/
{
{
HANDLE
handle
;
HANDLE
handle
;
...
@@ -643,8 +653,9 @@ Returns a 2-tuple of handles, to the read and write ends of the pipe.
...
@@ -643,8 +653,9 @@ Returns a 2-tuple of handles, to the read and write ends of the pipe.
[clinic start generated code]*/
[clinic start generated code]*/
static
PyObject
*
static
PyObject
*
_winapi_CreatePipe_impl
(
PyModuleDef
*
module
,
PyObject
*
pipe_attrs
,
DWORD
size
)
_winapi_CreatePipe_impl
(
PyModuleDef
*
module
,
PyObject
*
pipe_attrs
,
/*[clinic end generated code: output=ed09baf1d43086df input=c4f2cfa56ef68d90]*/
DWORD
size
)
/*[clinic end generated code: output=fef99f3b4222bc78 input=c4f2cfa56ef68d90]*/
{
{
HANDLE
read_pipe
;
HANDLE
read_pipe
;
HANDLE
write_pipe
;
HANDLE
write_pipe
;
...
@@ -783,8 +794,8 @@ getenvironment(PyObject* environment)
...
@@ -783,8 +794,8 @@ getenvironment(PyObject* environment)
/*[clinic input]
/*[clinic input]
_winapi.CreateProcess
_winapi.CreateProcess
application_name: Py_UNICODE(
nullable=True
)
application_name: Py_UNICODE(
accept={str, NoneType}
)
command_line: Py_UNICODE(
nullable=True
)
command_line: Py_UNICODE(
accept={str, NoneType}
)
proc_attrs: object
proc_attrs: object
Ignored internally, can be None.
Ignored internally, can be None.
thread_attrs: object
thread_attrs: object
...
@@ -792,7 +803,7 @@ _winapi.CreateProcess
...
@@ -792,7 +803,7 @@ _winapi.CreateProcess
inherit_handles: BOOL
inherit_handles: BOOL
creation_flags: DWORD
creation_flags: DWORD
env_mapping: object
env_mapping: object
current_directory: Py_UNICODE(
nullable=True
)
current_directory: Py_UNICODE(
accept={str, NoneType}
)
startup_info: object
startup_info: object
/
/
...
@@ -803,8 +814,13 @@ process ID, and thread ID.
...
@@ -803,8 +814,13 @@ process ID, and thread ID.
[clinic start generated code]*/
[clinic start generated code]*/
static
PyObject
*
static
PyObject
*
_winapi_CreateProcess_impl
(
PyModuleDef
*
module
,
Py_UNICODE
*
application_name
,
Py_UNICODE
*
command_line
,
PyObject
*
proc_attrs
,
PyObject
*
thread_attrs
,
BOOL
inherit_handles
,
DWORD
creation_flags
,
PyObject
*
env_mapping
,
Py_UNICODE
*
current_directory
,
PyObject
*
startup_info
)
_winapi_CreateProcess_impl
(
PyModuleDef
*
module
,
Py_UNICODE
*
application_name
,
/*[clinic end generated code: output=c279c1271b4c45cf input=6667ea0bc7036472]*/
Py_UNICODE
*
command_line
,
PyObject
*
proc_attrs
,
PyObject
*
thread_attrs
,
BOOL
inherit_handles
,
DWORD
creation_flags
,
PyObject
*
env_mapping
,
Py_UNICODE
*
current_directory
,
PyObject
*
startup_info
)
/*[clinic end generated code: output=874bb350ff9ed4ef input=4a43b05038d639bb]*/
{
{
BOOL
result
;
BOOL
result
;
PROCESS_INFORMATION
pi
;
PROCESS_INFORMATION
pi
;
...
@@ -884,8 +900,13 @@ through both handles.
...
@@ -884,8 +900,13 @@ through both handles.
[clinic start generated code]*/
[clinic start generated code]*/
static
HANDLE
static
HANDLE
_winapi_DuplicateHandle_impl
(
PyModuleDef
*
module
,
HANDLE
source_process_handle
,
HANDLE
source_handle
,
HANDLE
target_process_handle
,
DWORD
desired_access
,
BOOL
inherit_handle
,
DWORD
options
)
_winapi_DuplicateHandle_impl
(
PyModuleDef
*
module
,
/*[clinic end generated code: output=24a7836ca4d94aba input=b933e3f2356a8c12]*/
HANDLE
source_process_handle
,
HANDLE
source_handle
,
HANDLE
target_process_handle
,
DWORD
desired_access
,
BOOL
inherit_handle
,
DWORD
options
)
/*[clinic end generated code: output=0799515b68b5237b input=b933e3f2356a8c12]*/
{
{
HANDLE
target_handle
;
HANDLE
target_handle
;
BOOL
result
;
BOOL
result
;
...
@@ -1074,8 +1095,9 @@ _winapi.OpenProcess -> HANDLE
...
@@ -1074,8 +1095,9 @@ _winapi.OpenProcess -> HANDLE
[clinic start generated code]*/
[clinic start generated code]*/
static
HANDLE
static
HANDLE
_winapi_OpenProcess_impl
(
PyModuleDef
*
module
,
DWORD
desired_access
,
BOOL
inherit_handle
,
DWORD
process_id
)
_winapi_OpenProcess_impl
(
PyModuleDef
*
module
,
DWORD
desired_access
,
/*[clinic end generated code: output=2a7be5336f16f63c input=ec98c4cf4ea2ec36]*/
BOOL
inherit_handle
,
DWORD
process_id
)
/*[clinic end generated code: output=6bc52eda82a3d226 input=ec98c4cf4ea2ec36]*/
{
{
HANDLE
handle
;
HANDLE
handle
;
...
@@ -1145,8 +1167,9 @@ _winapi.ReadFile
...
@@ -1145,8 +1167,9 @@ _winapi.ReadFile
[clinic start generated code]*/
[clinic start generated code]*/
static
PyObject
*
static
PyObject
*
_winapi_ReadFile_impl
(
PyModuleDef
*
module
,
HANDLE
handle
,
int
size
,
int
use_overlapped
)
_winapi_ReadFile_impl
(
PyModuleDef
*
module
,
HANDLE
handle
,
int
size
,
/*[clinic end generated code: output=5a087be0ff44479a input=8dd810194e86ac7d]*/
int
use_overlapped
)
/*[clinic end generated code: output=d7695db4db97b135 input=8dd810194e86ac7d]*/
{
{
DWORD
nread
;
DWORD
nread
;
PyObject
*
buf
;
PyObject
*
buf
;
...
@@ -1206,8 +1229,11 @@ _winapi.SetNamedPipeHandleState
...
@@ -1206,8 +1229,11 @@ _winapi.SetNamedPipeHandleState
[clinic start generated code]*/
[clinic start generated code]*/
static
PyObject
*
static
PyObject
*
_winapi_SetNamedPipeHandleState_impl
(
PyModuleDef
*
module
,
HANDLE
named_pipe
,
PyObject
*
mode
,
PyObject
*
max_collection_count
,
PyObject
*
collect_data_timeout
)
_winapi_SetNamedPipeHandleState_impl
(
PyModuleDef
*
module
,
HANDLE
named_pipe
,
/*[clinic end generated code: output=327efd18ff0c30ec input=9142d72163d0faa6]*/
PyObject
*
mode
,
PyObject
*
max_collection_count
,
PyObject
*
collect_data_timeout
)
/*[clinic end generated code: output=25aa3c28dee223ce input=9142d72163d0faa6]*/
{
{
PyObject
*
oArgs
[
3
]
=
{
mode
,
max_collection_count
,
collect_data_timeout
};
PyObject
*
oArgs
[
3
]
=
{
mode
,
max_collection_count
,
collect_data_timeout
};
DWORD
dwArgs
[
3
],
*
pArgs
[
3
]
=
{
NULL
,
NULL
,
NULL
};
DWORD
dwArgs
[
3
],
*
pArgs
[
3
]
=
{
NULL
,
NULL
,
NULL
};
...
@@ -1242,8 +1268,9 @@ Terminate the specified process and all of its threads.
...
@@ -1242,8 +1268,9 @@ Terminate the specified process and all of its threads.
[clinic start generated code]*/
[clinic start generated code]*/
static
PyObject
*
static
PyObject
*
_winapi_TerminateProcess_impl
(
PyModuleDef
*
module
,
HANDLE
handle
,
UINT
exit_code
)
_winapi_TerminateProcess_impl
(
PyModuleDef
*
module
,
HANDLE
handle
,
/*[clinic end generated code: output=1559f0f6500c2283 input=d6bc0aa1ee3bb4df]*/
UINT
exit_code
)
/*[clinic end generated code: output=937c1bb6219aca8b input=d6bc0aa1ee3bb4df]*/
{
{
BOOL
result
;
BOOL
result
;
...
@@ -1289,8 +1316,10 @@ _winapi.WaitForMultipleObjects
...
@@ -1289,8 +1316,10 @@ _winapi.WaitForMultipleObjects
[clinic start generated code]*/
[clinic start generated code]*/
static
PyObject
*
static
PyObject
*
_winapi_WaitForMultipleObjects_impl
(
PyModuleDef
*
module
,
PyObject
*
handle_seq
,
BOOL
wait_flag
,
DWORD
milliseconds
)
_winapi_WaitForMultipleObjects_impl
(
PyModuleDef
*
module
,
/*[clinic end generated code: output=e3efee6b505dd48e input=36f76ca057cd28a0]*/
PyObject
*
handle_seq
,
BOOL
wait_flag
,
DWORD
milliseconds
)
/*[clinic end generated code: output=acb440728d06d130 input=36f76ca057cd28a0]*/
{
{
DWORD
result
;
DWORD
result
;
HANDLE
handles
[
MAXIMUM_WAIT_OBJECTS
];
HANDLE
handles
[
MAXIMUM_WAIT_OBJECTS
];
...
@@ -1364,8 +1393,9 @@ in milliseconds.
...
@@ -1364,8 +1393,9 @@ in milliseconds.
[clinic start generated code]*/
[clinic start generated code]*/
static
long
static
long
_winapi_WaitForSingleObject_impl
(
PyModuleDef
*
module
,
HANDLE
handle
,
DWORD
milliseconds
)
_winapi_WaitForSingleObject_impl
(
PyModuleDef
*
module
,
HANDLE
handle
,
/*[clinic end generated code: output=0c75bcc6eec6b973 input=443d1ab076edc7b1]*/
DWORD
milliseconds
)
/*[clinic end generated code: output=34ae40c269749c48 input=443d1ab076edc7b1]*/
{
{
DWORD
result
;
DWORD
result
;
...
@@ -1390,8 +1420,9 @@ _winapi.WriteFile
...
@@ -1390,8 +1420,9 @@ _winapi.WriteFile
[clinic start generated code]*/
[clinic start generated code]*/
static
PyObject
*
static
PyObject
*
_winapi_WriteFile_impl
(
PyModuleDef
*
module
,
HANDLE
handle
,
PyObject
*
buffer
,
int
use_overlapped
)
_winapi_WriteFile_impl
(
PyModuleDef
*
module
,
HANDLE
handle
,
PyObject
*
buffer
,
/*[clinic end generated code: output=37bd88e293079b2c input=51846a5af52053fd]*/
int
use_overlapped
)
/*[clinic end generated code: output=65e70ea41f4d2a1d input=51846a5af52053fd]*/
{
{
Py_buffer
_buf
,
*
buf
;
Py_buffer
_buf
,
*
buf
;
DWORD
len
,
written
;
DWORD
len
,
written
;
...
...
Modules/clinic/_winapi.c.h
Dosyayı görüntüle @
77772c0e
This diff is collapsed.
Click to expand it.
PC/clinic/msvcrtmodule.c.h
Dosyayı görüntüle @
77772c0e
...
@@ -50,8 +50,7 @@ msvcrt_locking(PyModuleDef *module, PyObject *args)
...
@@ -50,8 +50,7 @@ msvcrt_locking(PyModuleDef *module, PyObject *args)
int
mode
;
int
mode
;
long
nbytes
;
long
nbytes
;
if
(
!
PyArg_ParseTuple
(
args
,
if
(
!
PyArg_ParseTuple
(
args
,
"iil:locking"
,
"iil:locking"
,
&
fd
,
&
mode
,
&
nbytes
))
&
fd
,
&
mode
,
&
nbytes
))
goto
exit
;
goto
exit
;
return_value
=
msvcrt_locking_impl
(
module
,
fd
,
mode
,
nbytes
);
return_value
=
msvcrt_locking_impl
(
module
,
fd
,
mode
,
nbytes
);
...
@@ -85,8 +84,7 @@ msvcrt_setmode(PyModuleDef *module, PyObject *args)
...
@@ -85,8 +84,7 @@ msvcrt_setmode(PyModuleDef *module, PyObject *args)
int
flags
;
int
flags
;
long
_return_value
;
long
_return_value
;
if
(
!
PyArg_ParseTuple
(
args
,
if
(
!
PyArg_ParseTuple
(
args
,
"ii:setmode"
,
"ii:setmode"
,
&
fd
,
&
flags
))
&
fd
,
&
flags
))
goto
exit
;
goto
exit
;
_return_value
=
msvcrt_setmode_impl
(
module
,
fd
,
flags
);
_return_value
=
msvcrt_setmode_impl
(
module
,
fd
,
flags
);
...
@@ -112,7 +110,8 @@ PyDoc_STRVAR(msvcrt_open_osfhandle__doc__,
...
@@ -112,7 +110,8 @@ PyDoc_STRVAR(msvcrt_open_osfhandle__doc__,
{"open_osfhandle", (PyCFunction)msvcrt_open_osfhandle, METH_VARARGS, msvcrt_open_osfhandle__doc__},
{"open_osfhandle", (PyCFunction)msvcrt_open_osfhandle, METH_VARARGS, msvcrt_open_osfhandle__doc__},
static
long
static
long
msvcrt_open_osfhandle_impl
(
PyModuleDef
*
module
,
Py_intptr_t
handle
,
int
flags
);
msvcrt_open_osfhandle_impl
(
PyModuleDef
*
module
,
Py_intptr_t
handle
,
int
flags
);
static
PyObject
*
static
PyObject
*
msvcrt_open_osfhandle
(
PyModuleDef
*
module
,
PyObject
*
args
)
msvcrt_open_osfhandle
(
PyModuleDef
*
module
,
PyObject
*
args
)
...
@@ -122,8 +121,7 @@ msvcrt_open_osfhandle(PyModuleDef *module, PyObject *args)
...
@@ -122,8 +121,7 @@ msvcrt_open_osfhandle(PyModuleDef *module, PyObject *args)
int
flags
;
int
flags
;
long
_return_value
;
long
_return_value
;
if
(
!
PyArg_ParseTuple
(
args
,
if
(
!
PyArg_ParseTuple
(
args
,
""
_Py_PARSE_INTPTR
"i:open_osfhandle"
,
""
_Py_PARSE_INTPTR
"i:open_osfhandle"
,
&
handle
,
&
flags
))
&
handle
,
&
flags
))
goto
exit
;
goto
exit
;
_return_value
=
msvcrt_open_osfhandle_impl
(
module
,
handle
,
flags
);
_return_value
=
msvcrt_open_osfhandle_impl
(
module
,
handle
,
flags
);
...
@@ -156,9 +154,7 @@ msvcrt_get_osfhandle(PyModuleDef *module, PyObject *arg)
...
@@ -156,9 +154,7 @@ msvcrt_get_osfhandle(PyModuleDef *module, PyObject *arg)
int
fd
;
int
fd
;
Py_intptr_t
_return_value
;
Py_intptr_t
_return_value
;
if
(
!
PyArg_Parse
(
arg
,
if
(
!
PyArg_Parse
(
arg
,
"i:get_osfhandle"
,
&
fd
))
"i:get_osfhandle"
,
&
fd
))
goto
exit
;
goto
exit
;
_return_value
=
msvcrt_get_osfhandle_impl
(
module
,
fd
);
_return_value
=
msvcrt_get_osfhandle_impl
(
module
,
fd
);
if
((
_return_value
==
-
1
)
&&
PyErr_Occurred
())
if
((
_return_value
==
-
1
)
&&
PyErr_Occurred
())
...
@@ -324,9 +320,7 @@ msvcrt_putch(PyModuleDef *module, PyObject *arg)
...
@@ -324,9 +320,7 @@ msvcrt_putch(PyModuleDef *module, PyObject *arg)
PyObject
*
return_value
=
NULL
;
PyObject
*
return_value
=
NULL
;
char
char_value
;
char
char_value
;
if
(
!
PyArg_Parse
(
arg
,
if
(
!
PyArg_Parse
(
arg
,
"c:putch"
,
&
char_value
))
"c:putch"
,
&
char_value
))
goto
exit
;
goto
exit
;
return_value
=
msvcrt_putch_impl
(
module
,
char_value
);
return_value
=
msvcrt_putch_impl
(
module
,
char_value
);
...
@@ -354,9 +348,7 @@ msvcrt_putwch(PyModuleDef *module, PyObject *arg)
...
@@ -354,9 +348,7 @@ msvcrt_putwch(PyModuleDef *module, PyObject *arg)
PyObject
*
return_value
=
NULL
;
PyObject
*
return_value
=
NULL
;
int
unicode_char
;
int
unicode_char
;
if
(
!
PyArg_Parse
(
arg
,
if
(
!
PyArg_Parse
(
arg
,
"C:putwch"
,
&
unicode_char
))
"C:putwch"
,
&
unicode_char
))
goto
exit
;
goto
exit
;
return_value
=
msvcrt_putwch_impl
(
module
,
unicode_char
);
return_value
=
msvcrt_putwch_impl
(
module
,
unicode_char
);
...
@@ -388,9 +380,7 @@ msvcrt_ungetch(PyModuleDef *module, PyObject *arg)
...
@@ -388,9 +380,7 @@ msvcrt_ungetch(PyModuleDef *module, PyObject *arg)
PyObject
*
return_value
=
NULL
;
PyObject
*
return_value
=
NULL
;
char
char_value
;
char
char_value
;
if
(
!
PyArg_Parse
(
arg
,
if
(
!
PyArg_Parse
(
arg
,
"c:ungetch"
,
&
char_value
))
"c:ungetch"
,
&
char_value
))
goto
exit
;
goto
exit
;
return_value
=
msvcrt_ungetch_impl
(
module
,
char_value
);
return_value
=
msvcrt_ungetch_impl
(
module
,
char_value
);
...
@@ -418,9 +408,7 @@ msvcrt_ungetwch(PyModuleDef *module, PyObject *arg)
...
@@ -418,9 +408,7 @@ msvcrt_ungetwch(PyModuleDef *module, PyObject *arg)
PyObject
*
return_value
=
NULL
;
PyObject
*
return_value
=
NULL
;
int
unicode_char
;
int
unicode_char
;
if
(
!
PyArg_Parse
(
arg
,
if
(
!
PyArg_Parse
(
arg
,
"C:ungetwch"
,
&
unicode_char
))
"C:ungetwch"
,
&
unicode_char
))
goto
exit
;
goto
exit
;
return_value
=
msvcrt_ungetwch_impl
(
module
,
unicode_char
);
return_value
=
msvcrt_ungetwch_impl
(
module
,
unicode_char
);
...
@@ -454,8 +442,7 @@ msvcrt_CrtSetReportFile(PyModuleDef *module, PyObject *args)
...
@@ -454,8 +442,7 @@ msvcrt_CrtSetReportFile(PyModuleDef *module, PyObject *args)
int
file
;
int
file
;
long
_return_value
;
long
_return_value
;
if
(
!
PyArg_ParseTuple
(
args
,
if
(
!
PyArg_ParseTuple
(
args
,
"ii:CrtSetReportFile"
,
"ii:CrtSetReportFile"
,
&
type
,
&
file
))
&
type
,
&
file
))
goto
exit
;
goto
exit
;
_return_value
=
msvcrt_CrtSetReportFile_impl
(
module
,
type
,
file
);
_return_value
=
msvcrt_CrtSetReportFile_impl
(
module
,
type
,
file
);
...
@@ -493,8 +480,7 @@ msvcrt_CrtSetReportMode(PyModuleDef *module, PyObject *args)
...
@@ -493,8 +480,7 @@ msvcrt_CrtSetReportMode(PyModuleDef *module, PyObject *args)
int
mode
;
int
mode
;
long
_return_value
;
long
_return_value
;
if
(
!
PyArg_ParseTuple
(
args
,
if
(
!
PyArg_ParseTuple
(
args
,
"ii:CrtSetReportMode"
,
"ii:CrtSetReportMode"
,
&
type
,
&
mode
))
&
type
,
&
mode
))
goto
exit
;
goto
exit
;
_return_value
=
msvcrt_CrtSetReportMode_impl
(
module
,
type
,
mode
);
_return_value
=
msvcrt_CrtSetReportMode_impl
(
module
,
type
,
mode
);
...
@@ -531,9 +517,7 @@ msvcrt_set_error_mode(PyModuleDef *module, PyObject *arg)
...
@@ -531,9 +517,7 @@ msvcrt_set_error_mode(PyModuleDef *module, PyObject *arg)
int
mode
;
int
mode
;
long
_return_value
;
long
_return_value
;
if
(
!
PyArg_Parse
(
arg
,
if
(
!
PyArg_Parse
(
arg
,
"i:set_error_mode"
,
&
mode
))
"i:set_error_mode"
,
&
mode
))
goto
exit
;
goto
exit
;
_return_value
=
msvcrt_set_error_mode_impl
(
module
,
mode
);
_return_value
=
msvcrt_set_error_mode_impl
(
module
,
mode
);
if
((
_return_value
==
-
1
)
&&
PyErr_Occurred
())
if
((
_return_value
==
-
1
)
&&
PyErr_Occurred
())
...
@@ -564,9 +548,7 @@ msvcrt_SetErrorMode(PyModuleDef *module, PyObject *arg)
...
@@ -564,9 +548,7 @@ msvcrt_SetErrorMode(PyModuleDef *module, PyObject *arg)
PyObject
*
return_value
=
NULL
;
PyObject
*
return_value
=
NULL
;
unsigned
int
mode
;
unsigned
int
mode
;
if
(
!
PyArg_Parse
(
arg
,
if
(
!
PyArg_Parse
(
arg
,
"I:SetErrorMode"
,
&
mode
))
"I:SetErrorMode"
,
&
mode
))
goto
exit
;
goto
exit
;
return_value
=
msvcrt_SetErrorMode_impl
(
module
,
mode
);
return_value
=
msvcrt_SetErrorMode_impl
(
module
,
mode
);
...
@@ -601,4 +583,4 @@ exit:
...
@@ -601,4 +583,4 @@ exit:
#ifndef MSVCRT_SET_ERROR_MODE_METHODDEF
#ifndef MSVCRT_SET_ERROR_MODE_METHODDEF
#define MSVCRT_SET_ERROR_MODE_METHODDEF
#define MSVCRT_SET_ERROR_MODE_METHODDEF
#endif
/* !defined(MSVCRT_SET_ERROR_MODE_METHODDEF) */
#endif
/* !defined(MSVCRT_SET_ERROR_MODE_METHODDEF) */
/*[clinic end generated code: output=
41dfb6ca722afa4f
input=a9049054013a1b77]*/
/*[clinic end generated code: output=
72468bb32006a11b
input=a9049054013a1b77]*/
PC/clinic/winreg.c.h
Dosyayı görüntüle @
77772c0e
This diff is collapsed.
Click to expand it.
PC/clinic/winsound.c.h
Dosyayı görüntüle @
77772c0e
...
@@ -26,8 +26,7 @@ winsound_PlaySound(PyModuleDef *module, PyObject *args)
...
@@ -26,8 +26,7 @@ winsound_PlaySound(PyModuleDef *module, PyObject *args)
Py_UNICODE
*
sound
;
Py_UNICODE
*
sound
;
int
flags
;
int
flags
;
if
(
!
PyArg_ParseTuple
(
args
,
if
(
!
PyArg_ParseTuple
(
args
,
"Zi:PlaySound"
,
"Zi:PlaySound"
,
&
sound
,
&
flags
))
&
sound
,
&
flags
))
goto
exit
;
goto
exit
;
return_value
=
winsound_PlaySound_impl
(
module
,
sound
,
flags
);
return_value
=
winsound_PlaySound_impl
(
module
,
sound
,
flags
);
...
@@ -61,8 +60,7 @@ winsound_Beep(PyModuleDef *module, PyObject *args)
...
@@ -61,8 +60,7 @@ winsound_Beep(PyModuleDef *module, PyObject *args)
int
frequency
;
int
frequency
;
int
duration
;
int
duration
;
if
(
!
PyArg_ParseTuple
(
args
,
if
(
!
PyArg_ParseTuple
(
args
,
"ii:Beep"
,
"ii:Beep"
,
&
frequency
,
&
duration
))
&
frequency
,
&
duration
))
goto
exit
;
goto
exit
;
return_value
=
winsound_Beep_impl
(
module
,
frequency
,
duration
);
return_value
=
winsound_Beep_impl
(
module
,
frequency
,
duration
);
...
@@ -91,8 +89,7 @@ winsound_MessageBeep(PyModuleDef *module, PyObject *args)
...
@@ -91,8 +89,7 @@ winsound_MessageBeep(PyModuleDef *module, PyObject *args)
PyObject
*
return_value
=
NULL
;
PyObject
*
return_value
=
NULL
;
int
x
=
MB_OK
;
int
x
=
MB_OK
;
if
(
!
PyArg_ParseTuple
(
args
,
if
(
!
PyArg_ParseTuple
(
args
,
"|i:MessageBeep"
,
"|i:MessageBeep"
,
&
x
))
&
x
))
goto
exit
;
goto
exit
;
return_value
=
winsound_MessageBeep_impl
(
module
,
x
);
return_value
=
winsound_MessageBeep_impl
(
module
,
x
);
...
@@ -100,4 +97,4 @@ winsound_MessageBeep(PyModuleDef *module, PyObject *args)
...
@@ -100,4 +97,4 @@ winsound_MessageBeep(PyModuleDef *module, PyObject *args)
exit:
exit:
return
return_value
;
return
return_value
;
}
}
/*[clinic end generated code: output=
89c85ed36c3af2fd
input=a9049054013a1b77]*/
/*[clinic end generated code: output=
c5b018ac9dc1f500
input=a9049054013a1b77]*/
PC/msvcrtmodule.c
Dosyayı görüntüle @
77772c0e
...
@@ -160,8 +160,9 @@ to os.fdopen() to create a file object.
...
@@ -160,8 +160,9 @@ to os.fdopen() to create a file object.
[clinic start generated code]*/
[clinic start generated code]*/
static
long
static
long
msvcrt_open_osfhandle_impl
(
PyModuleDef
*
module
,
Py_intptr_t
handle
,
int
flags
)
msvcrt_open_osfhandle_impl
(
PyModuleDef
*
module
,
Py_intptr_t
handle
,
/*[clinic end generated code: output=8cda35b8e4ea4178 input=4d8516ed32db8f65]*/
int
flags
)
/*[clinic end generated code: output=86bce32582c49c06 input=4d8516ed32db8f65]*/
{
{
int
fd
;
int
fd
;
...
@@ -320,7 +321,7 @@ msvcrt_putch_impl(PyModuleDef *module, char char_value)
...
@@ -320,7 +321,7 @@ msvcrt_putch_impl(PyModuleDef *module, char char_value)
/*[clinic input]
/*[clinic input]
msvcrt.putwch
msvcrt.putwch
unicode_char: int(
types='str'
)
unicode_char: int(
accept={str}
)
/
/
Wide char variant of putch(), accepting a Unicode value.
Wide char variant of putch(), accepting a Unicode value.
...
@@ -328,7 +329,7 @@ Wide char variant of putch(), accepting a Unicode value.
...
@@ -328,7 +329,7 @@ Wide char variant of putch(), accepting a Unicode value.
static
PyObject
*
static
PyObject
*
msvcrt_putwch_impl
(
PyModuleDef
*
module
,
int
unicode_char
)
msvcrt_putwch_impl
(
PyModuleDef
*
module
,
int
unicode_char
)
/*[clinic end generated code: output=c216a73694ca73dd input=
74377c932af728a4
]*/
/*[clinic end generated code: output=c216a73694ca73dd input=
996ccd0bbcbac4c3
]*/
{
{
_putwch
(
unicode_char
);
_putwch
(
unicode_char
);
Py_RETURN_NONE
;
Py_RETURN_NONE
;
...
@@ -362,7 +363,7 @@ msvcrt_ungetch_impl(PyModuleDef *module, char char_value)
...
@@ -362,7 +363,7 @@ msvcrt_ungetch_impl(PyModuleDef *module, char char_value)
/*[clinic input]
/*[clinic input]
msvcrt.ungetwch
msvcrt.ungetwch
unicode_char: int(
types='str'
)
unicode_char: int(
accept={str}
)
/
/
Wide char variant of ungetch(), accepting a Unicode value.
Wide char variant of ungetch(), accepting a Unicode value.
...
@@ -370,7 +371,7 @@ Wide char variant of ungetch(), accepting a Unicode value.
...
@@ -370,7 +371,7 @@ Wide char variant of ungetch(), accepting a Unicode value.
static
PyObject
*
static
PyObject
*
msvcrt_ungetwch_impl
(
PyModuleDef
*
module
,
int
unicode_char
)
msvcrt_ungetwch_impl
(
PyModuleDef
*
module
,
int
unicode_char
)
/*[clinic end generated code: output=1ee7674710322bd1 input=
6bcd16276e035902
]*/
/*[clinic end generated code: output=1ee7674710322bd1 input=
83ec0492be04d564
]*/
{
{
if
(
_ungetwch
(
unicode_char
)
==
WEOF
)
if
(
_ungetwch
(
unicode_char
)
==
WEOF
)
return
PyErr_SetFromErrno
(
PyExc_IOError
);
return
PyErr_SetFromErrno
(
PyExc_IOError
);
...
...
PC/winreg.c
Dosyayı görüntüle @
77772c0e
...
@@ -319,8 +319,9 @@ winreg.HKEYType.__exit__
...
@@ -319,8 +319,9 @@ winreg.HKEYType.__exit__
[clinic start generated code]*/
[clinic start generated code]*/
static
PyObject
*
static
PyObject
*
winreg_HKEYType___exit___impl
(
PyHKEYObject
*
self
,
PyObject
*
exc_type
,
PyObject
*
exc_value
,
PyObject
*
traceback
)
winreg_HKEYType___exit___impl
(
PyHKEYObject
*
self
,
PyObject
*
exc_type
,
/*[clinic end generated code: output=51adcc1522e9c847 input=fb32489ee92403c7]*/
PyObject
*
exc_value
,
PyObject
*
traceback
)
/*[clinic end generated code: output=923ebe7389e6a263 input=fb32489ee92403c7]*/
{
{
if
(
!
PyHKEY_Close
((
PyObject
*
)
self
))
if
(
!
PyHKEY_Close
((
PyObject
*
)
self
))
return
NULL
;
return
NULL
;
...
@@ -784,7 +785,7 @@ winreg_CloseKey(PyModuleDef *module, PyObject *hkey)
...
@@ -784,7 +785,7 @@ winreg_CloseKey(PyModuleDef *module, PyObject *hkey)
/*[clinic input]
/*[clinic input]
winreg.ConnectRegistry -> HKEY
winreg.ConnectRegistry -> HKEY
computer_name: Py_UNICODE(
nullable=True
)
computer_name: Py_UNICODE(
accept={str, NoneType}
)
The name of the remote computer, of the form r"\\computername". If
The name of the remote computer, of the form r"\\computername". If
None, the local computer is used.
None, the local computer is used.
key: HKEY
key: HKEY
...
@@ -798,8 +799,9 @@ If the function fails, an OSError exception is raised.
...
@@ -798,8 +799,9 @@ If the function fails, an OSError exception is raised.
[clinic start generated code]*/
[clinic start generated code]*/
static
HKEY
static
HKEY
winreg_ConnectRegistry_impl
(
PyModuleDef
*
module
,
Py_UNICODE
*
computer_name
,
HKEY
key
)
winreg_ConnectRegistry_impl
(
PyModuleDef
*
module
,
Py_UNICODE
*
computer_name
,
/*[clinic end generated code: output=bce735a41d767290 input=dcea2c433af51576]*/
HKEY
key
)
/*[clinic end generated code: output=5c52f6f7ba6e7b46 input=9a056558ce318433]*/
{
{
HKEY
retKey
;
HKEY
retKey
;
long
rc
;
long
rc
;
...
@@ -818,7 +820,7 @@ winreg.CreateKey -> HKEY
...
@@ -818,7 +820,7 @@ winreg.CreateKey -> HKEY
key: HKEY
key: HKEY
An already open key, or one of the predefined HKEY_* constants.
An already open key, or one of the predefined HKEY_* constants.
sub_key: Py_UNICODE(
nullable=True
)
sub_key: Py_UNICODE(
accept={str, NoneType}
)
The name of the key this method opens or creates.
The name of the key this method opens or creates.
/
/
...
@@ -835,7 +837,7 @@ If the function fails, an OSError exception is raised.
...
@@ -835,7 +837,7 @@ If the function fails, an OSError exception is raised.
static
HKEY
static
HKEY
winreg_CreateKey_impl
(
PyModuleDef
*
module
,
HKEY
key
,
Py_UNICODE
*
sub_key
)
winreg_CreateKey_impl
(
PyModuleDef
*
module
,
HKEY
key
,
Py_UNICODE
*
sub_key
)
/*[clinic end generated code: output=cd6843f30a73fc0e input=
8014b171a5682fe7
]*/
/*[clinic end generated code: output=cd6843f30a73fc0e input=
3cdd1622488acea2
]*/
{
{
HKEY
retKey
;
HKEY
retKey
;
long
rc
;
long
rc
;
...
@@ -853,7 +855,7 @@ winreg.CreateKeyEx -> HKEY
...
@@ -853,7 +855,7 @@ winreg.CreateKeyEx -> HKEY
key: HKEY
key: HKEY
An already open key, or one of the predefined HKEY_* constants.
An already open key, or one of the predefined HKEY_* constants.
sub_key: Py_UNICODE(
nullable=True
)
sub_key: Py_UNICODE(
accept={str, NoneType}
)
The name of the key this method opens or creates.
The name of the key this method opens or creates.
reserved: int = 0
reserved: int = 0
A reserved integer, and must be zero. Default is zero.
A reserved integer, and must be zero. Default is zero.
...
@@ -873,8 +875,9 @@ If the function fails, an OSError exception is raised.
...
@@ -873,8 +875,9 @@ If the function fails, an OSError exception is raised.
[clinic start generated code]*/
[clinic start generated code]*/
static
HKEY
static
HKEY
winreg_CreateKeyEx_impl
(
PyModuleDef
*
module
,
HKEY
key
,
Py_UNICODE
*
sub_key
,
int
reserved
,
REGSAM
access
)
winreg_CreateKeyEx_impl
(
PyModuleDef
*
module
,
HKEY
key
,
Py_UNICODE
*
sub_key
,
/*[clinic end generated code: output=543d176b19183749 input=4322acd5c7f2e787]*/
int
reserved
,
REGSAM
access
)
/*[clinic end generated code: output=db835d5be84e72b2 input=42c2b03f98406b66]*/
{
{
HKEY
retKey
;
HKEY
retKey
;
long
rc
;
long
rc
;
...
@@ -942,8 +945,9 @@ On unsupported Windows versions, NotImplementedError is raised.
...
@@ -942,8 +945,9 @@ On unsupported Windows versions, NotImplementedError is raised.
[clinic start generated code]*/
[clinic start generated code]*/
static
PyObject
*
static
PyObject
*
winreg_DeleteKeyEx_impl
(
PyModuleDef
*
module
,
HKEY
key
,
Py_UNICODE
*
sub_key
,
REGSAM
access
,
int
reserved
)
winreg_DeleteKeyEx_impl
(
PyModuleDef
*
module
,
HKEY
key
,
Py_UNICODE
*
sub_key
,
/*[clinic end generated code: output=8b8a20684a59a902 input=711d9d89e7ecbed7]*/
REGSAM
access
,
int
reserved
)
/*[clinic end generated code: output=0362a0ac6502379f input=711d9d89e7ecbed7]*/
{
{
HMODULE
hMod
;
HMODULE
hMod
;
typedef
LONG
(
WINAPI
*
RDKEFunc
)(
HKEY
,
const
wchar_t
*
,
REGSAM
,
int
);
typedef
LONG
(
WINAPI
*
RDKEFunc
)(
HKEY
,
const
wchar_t
*
,
REGSAM
,
int
);
...
@@ -975,7 +979,7 @@ winreg.DeleteValue
...
@@ -975,7 +979,7 @@ winreg.DeleteValue
key: HKEY
key: HKEY
An already open key, or any one of the predefined HKEY_* constants.
An already open key, or any one of the predefined HKEY_* constants.
value: Py_UNICODE(
nullable=True
)
value: Py_UNICODE(
accept={str, NoneType}
)
A string that identifies the value to remove.
A string that identifies the value to remove.
/
/
...
@@ -984,7 +988,7 @@ Removes a named value from a registry key.
...
@@ -984,7 +988,7 @@ Removes a named value from a registry key.
static
PyObject
*
static
PyObject
*
winreg_DeleteValue_impl
(
PyModuleDef
*
module
,
HKEY
key
,
Py_UNICODE
*
value
)
winreg_DeleteValue_impl
(
PyModuleDef
*
module
,
HKEY
key
,
Py_UNICODE
*
value
)
/*[clinic end generated code: output=308550b8cdcfd8e1 input=
417a5c1005cbbddc
]*/
/*[clinic end generated code: output=308550b8cdcfd8e1 input=
a78d3407a4197b21
]*/
{
{
long
rc
;
long
rc
;
Py_BEGIN_ALLOW_THREADS
Py_BEGIN_ALLOW_THREADS
...
@@ -1244,8 +1248,9 @@ tree.
...
@@ -1244,8 +1248,9 @@ tree.
[clinic start generated code]*/
[clinic start generated code]*/
static
PyObject
*
static
PyObject
*
winreg_LoadKey_impl
(
PyModuleDef
*
module
,
HKEY
key
,
Py_UNICODE
*
sub_key
,
Py_UNICODE
*
file_name
)
winreg_LoadKey_impl
(
PyModuleDef
*
module
,
HKEY
key
,
Py_UNICODE
*
sub_key
,
/*[clinic end generated code: output=53b22607f8e73d34 input=e3b5b45ade311582]*/
Py_UNICODE
*
file_name
)
/*[clinic end generated code: output=b8b700e39c695b90 input=e3b5b45ade311582]*/
{
{
long
rc
;
long
rc
;
...
@@ -1262,7 +1267,7 @@ winreg.OpenKey -> HKEY
...
@@ -1262,7 +1267,7 @@ winreg.OpenKey -> HKEY
key: HKEY
key: HKEY
An already open key, or any one of the predefined HKEY_* constants.
An already open key, or any one of the predefined HKEY_* constants.
sub_key: Py_UNICODE(
nullable=True
)
sub_key: Py_UNICODE(
accept={str, NoneType}
)
A string that identifies the sub_key to open.
A string that identifies the sub_key to open.
reserved: int = 0
reserved: int = 0
A reserved integer that must be zero. Default is zero.
A reserved integer that must be zero. Default is zero.
...
@@ -1277,8 +1282,9 @@ If the function fails, an OSError exception is raised.
...
@@ -1277,8 +1282,9 @@ If the function fails, an OSError exception is raised.
[clinic start generated code]*/
[clinic start generated code]*/
static
HKEY
static
HKEY
winreg_OpenKey_impl
(
PyModuleDef
*
module
,
HKEY
key
,
Py_UNICODE
*
sub_key
,
int
reserved
,
REGSAM
access
)
winreg_OpenKey_impl
(
PyModuleDef
*
module
,
HKEY
key
,
Py_UNICODE
*
sub_key
,
/*[clinic end generated code: output=8bf50881521469c6 input=dc84a4af4af4d387]*/
int
reserved
,
REGSAM
access
)
/*[clinic end generated code: output=79818ea356490a55 input=098505ac36a9ae28]*/
{
{
HKEY
retKey
;
HKEY
retKey
;
long
rc
;
long
rc
;
...
@@ -1303,8 +1309,9 @@ If the function fails, an OSError exception is raised.
...
@@ -1303,8 +1309,9 @@ If the function fails, an OSError exception is raised.
[clinic start generated code]*/
[clinic start generated code]*/
static
HKEY
static
HKEY
winreg_OpenKeyEx_impl
(
PyModuleDef
*
module
,
HKEY
key
,
Py_UNICODE
*
sub_key
,
int
reserved
,
REGSAM
access
)
winreg_OpenKeyEx_impl
(
PyModuleDef
*
module
,
HKEY
key
,
Py_UNICODE
*
sub_key
,
/*[clinic end generated code: output=f6f7cd4befb9585b input=c6c4972af8622959]*/
int
reserved
,
REGSAM
access
)
/*[clinic end generated code: output=2dd9f29e84ea2dbc input=c6c4972af8622959]*/
{
{
return
winreg_OpenKey_impl
(
module
,
key
,
sub_key
,
reserved
,
access
);
return
winreg_OpenKey_impl
(
module
,
key
,
sub_key
,
reserved
,
access
);
}
}
...
@@ -1355,7 +1362,7 @@ winreg.QueryValue
...
@@ -1355,7 +1362,7 @@ winreg.QueryValue
key: HKEY
key: HKEY
An already open key, or any one of the predefined HKEY_* constants.
An already open key, or any one of the predefined HKEY_* constants.
sub_key: Py_UNICODE(
nullable=True
)
sub_key: Py_UNICODE(
accept={str, NoneType}
)
A string that holds the name of the subkey with which the value
A string that holds the name of the subkey with which the value
is associated. If this parameter is None or empty, the function
is associated. If this parameter is None or empty, the function
retrieves the value set by the SetValue() method for the key
retrieves the value set by the SetValue() method for the key
...
@@ -1373,7 +1380,7 @@ completeness.
...
@@ -1373,7 +1380,7 @@ completeness.
static
PyObject
*
static
PyObject
*
winreg_QueryValue_impl
(
PyModuleDef
*
module
,
HKEY
key
,
Py_UNICODE
*
sub_key
)
winreg_QueryValue_impl
(
PyModuleDef
*
module
,
HKEY
key
,
Py_UNICODE
*
sub_key
)
/*[clinic end generated code: output=f91cb6f623c3b65a input=
e6ec57bb8d39aaa
6]*/
/*[clinic end generated code: output=f91cb6f623c3b65a input=
41cafbbf423b21d
6]*/
{
{
long
rc
;
long
rc
;
PyObject
*
retStr
;
PyObject
*
retStr
;
...
@@ -1426,7 +1433,7 @@ winreg.QueryValueEx
...
@@ -1426,7 +1433,7 @@ winreg.QueryValueEx
key: HKEY
key: HKEY
An already open key, or any one of the predefined HKEY_* constants.
An already open key, or any one of the predefined HKEY_* constants.
name: Py_UNICODE(
nullable=True
)
name: Py_UNICODE(
accept={str, NoneType}
)
A string indicating the value to query.
A string indicating the value to query.
/
/
...
@@ -1440,7 +1447,7 @@ The return value is a tuple of the value and the type_id.
...
@@ -1440,7 +1447,7 @@ The return value is a tuple of the value and the type_id.
static
PyObject
*
static
PyObject
*
winreg_QueryValueEx_impl
(
PyModuleDef
*
module
,
HKEY
key
,
Py_UNICODE
*
name
)
winreg_QueryValueEx_impl
(
PyModuleDef
*
module
,
HKEY
key
,
Py_UNICODE
*
name
)
/*[clinic end generated code: output=a4b07f7807194f23 input=
4403ae868b44e563
]*/
/*[clinic end generated code: output=a4b07f7807194f23 input=
cf366cada4836891
]*/
{
{
long
rc
;
long
rc
;
BYTE
*
retBuf
,
*
tmp
;
BYTE
*
retBuf
,
*
tmp
;
...
@@ -1535,12 +1542,12 @@ winreg.SetValue
...
@@ -1535,12 +1542,12 @@ winreg.SetValue
key: HKEY
key: HKEY
An already open key, or any one of the predefined HKEY_* constants.
An already open key, or any one of the predefined HKEY_* constants.
sub_key: Py_UNICODE(
nullable=True
)
sub_key: Py_UNICODE(
accept={str, NoneType}
)
A string that names the subkey with which the value is associated.
A string that names the subkey with which the value is associated.
type: DWORD
type: DWORD
An integer that specifies the type of the data. Currently this must
An integer that specifies the type of the data. Currently this must
be REG_SZ, meaning only strings are supported.
be REG_SZ, meaning only strings are supported.
value: Py_UNICODE(
length
=True)
value: Py_UNICODE(
zeroes
=True)
A string that specifies the new value.
A string that specifies the new value.
/
/
...
@@ -1558,8 +1565,10 @@ KEY_SET_VALUE access.
...
@@ -1558,8 +1565,10 @@ KEY_SET_VALUE access.
[clinic start generated code]*/
[clinic start generated code]*/
static
PyObject
*
static
PyObject
*
winreg_SetValue_impl
(
PyModuleDef
*
module
,
HKEY
key
,
Py_UNICODE
*
sub_key
,
DWORD
type
,
Py_UNICODE
*
value
,
Py_ssize_clean_t
value_length
)
winreg_SetValue_impl
(
PyModuleDef
*
module
,
HKEY
key
,
Py_UNICODE
*
sub_key
,
/*[clinic end generated code: output=807274a1c01961b5 input=83ad2fae2ffbb941]*/
DWORD
type
,
Py_UNICODE
*
value
,
Py_ssize_clean_t
value_length
)
/*[clinic end generated code: output=3c9c7c2769e8f953 input=2cd2adab79339c53]*/
{
{
long
rc
;
long
rc
;
...
@@ -1582,7 +1591,7 @@ winreg.SetValueEx
...
@@ -1582,7 +1591,7 @@ winreg.SetValueEx
key: HKEY
key: HKEY
An already open key, or any one of the predefined HKEY_* constants.
An already open key, or any one of the predefined HKEY_* constants.
value_name: Py_UNICODE(
nullable=True
)
value_name: Py_UNICODE(
accept={str, NoneType}
)
A string containing the name of the value to set, or None.
A string containing the name of the value to set, or None.
reserved: object
reserved: object
Can be anything - zero is always passed to the API.
Can be anything - zero is always passed to the API.
...
@@ -1620,8 +1629,9 @@ the configuration registry to help the registry perform efficiently.
...
@@ -1620,8 +1629,9 @@ the configuration registry to help the registry perform efficiently.
[clinic start generated code]*/
[clinic start generated code]*/
static
PyObject
*
static
PyObject
*
winreg_SetValueEx_impl
(
PyModuleDef
*
module
,
HKEY
key
,
Py_UNICODE
*
value_name
,
PyObject
*
reserved
,
DWORD
type
,
PyObject
*
value
)
winreg_SetValueEx_impl
(
PyModuleDef
*
module
,
HKEY
key
,
Py_UNICODE
*
value_name
,
/*[clinic end generated code: output=a53ac3aecef9b977 input=8fe45d7ac381cf96]*/
PyObject
*
reserved
,
DWORD
type
,
PyObject
*
value
)
/*[clinic end generated code: output=ea092a935c361582 input=e73dec535ebeea7d]*/
{
{
BYTE
*
data
;
BYTE
*
data
;
DWORD
len
;
DWORD
len
;
...
...
PC/winsound.c
Dosyayı görüntüle @
77772c0e
...
@@ -64,7 +64,7 @@ module winsound
...
@@ -64,7 +64,7 @@ module winsound
/*[clinic input]
/*[clinic input]
winsound.PlaySound
winsound.PlaySound
sound: Py_UNICODE(
nullable=True
)
sound: Py_UNICODE(
accept={str, NoneType}
)
The sound to play; a filename, data, or None.
The sound to play; a filename, data, or None.
flags: int
flags: int
Flag values, ored together. See module documentation.
Flag values, ored together. See module documentation.
...
@@ -75,7 +75,7 @@ A wrapper around the Windows PlaySound API.
...
@@ -75,7 +75,7 @@ A wrapper around the Windows PlaySound API.
static
PyObject
*
static
PyObject
*
winsound_PlaySound_impl
(
PyModuleDef
*
module
,
Py_UNICODE
*
sound
,
int
flags
)
winsound_PlaySound_impl
(
PyModuleDef
*
module
,
Py_UNICODE
*
sound
,
int
flags
)
/*[clinic end generated code: output=614273784bf59e5c input=
c86fab5d8e86f31d
]*/
/*[clinic end generated code: output=614273784bf59e5c input=
3411b1b7c1f36d93
]*/
{
{
int
ok
;
int
ok
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment