mirror of
https://github.com/python/cpython.git
synced 2025-08-19 00:00:48 +00:00
Whitespace normalization, via reindent.py.
This commit is contained in:
parent
e6ddc8b20b
commit
182b5aca27
453 changed files with 31318 additions and 31452 deletions
|
@ -8,7 +8,7 @@ f = Function(ExistingControlHandle, 'FindControlUnderMouse',
|
|||
functions.append(f)
|
||||
|
||||
f = Function(ControlHandle, 'as_Control',
|
||||
(Handle, 'h', InMode))
|
||||
(Handle, 'h', InMode))
|
||||
functions.append(f)
|
||||
|
||||
f = Method(Handle, 'as_Resource', (ControlHandle, 'ctl', InMode))
|
||||
|
@ -18,16 +18,16 @@ f = Method(void, 'GetControlRect', (ControlHandle, 'ctl', InMode), (Rect, 'rect'
|
|||
methods.append(f)
|
||||
|
||||
DisposeControl_body = """
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
if ( _self->ob_itself ) {
|
||||
SetControlReference(_self->ob_itself, (long)0); /* Make it forget about us */
|
||||
DisposeControl(_self->ob_itself);
|
||||
_self->ob_itself = NULL;
|
||||
}
|
||||
Py_INCREF(Py_None);
|
||||
_res = Py_None;
|
||||
return _res;
|
||||
if (!PyArg_ParseTuple(_args, ""))
|
||||
return NULL;
|
||||
if ( _self->ob_itself ) {
|
||||
SetControlReference(_self->ob_itself, (long)0); /* Make it forget about us */
|
||||
DisposeControl(_self->ob_itself);
|
||||
_self->ob_itself = NULL;
|
||||
}
|
||||
Py_INCREF(Py_None);
|
||||
_res = Py_None;
|
||||
return _res;
|
||||
"""
|
||||
|
||||
f = ManualGenerator("DisposeControl", DisposeControl_body)
|
||||
|
@ -39,7 +39,7 @@ methods.append(f)
|
|||
# parameter; these should however be managed by us (we're creating them
|
||||
# after all), so set the type to ControlRef.
|
||||
for f in functions:
|
||||
if f.name.startswith("Create"):
|
||||
v = f.argumentList[-1]
|
||||
if v.type == ExistingControlHandle:
|
||||
v.type = ControlRef
|
||||
if f.name.startswith("Create"):
|
||||
v = f.argumentList[-1]
|
||||
if v.type == ExistingControlHandle:
|
||||
v.type = ControlRef
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue