Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
2b72417d
Commit
2b72417d
authored
Apr 10, 1996
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replaced various dummy updateRegions by real arguments
parent
fcdf4378
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
43 additions
and
21 deletions
+43
-21
Mac/Modules/ctl/Ctlmodule.c
Mac/Modules/ctl/Ctlmodule.c
+9
-4
Mac/Modules/ctl/ctlgen.py
Mac/Modules/ctl/ctlgen.py
+1
-1
Mac/Modules/ctl/ctlsupport.py
Mac/Modules/ctl/ctlsupport.py
+1
-1
Mac/Modules/dlg/Dlgmodule.c
Mac/Modules/dlg/Dlgmodule.c
+8
-3
Mac/Modules/dlg/dlggen.py
Mac/Modules/dlg/dlggen.py
+1
-1
Mac/Modules/dlg/dlgsupport.py
Mac/Modules/dlg/dlgsupport.py
+1
-1
Mac/Modules/evt/Evtmodule.c
Mac/Modules/evt/Evtmodule.c
+3
-0
Mac/Modules/evt/evtgen.py
Mac/Modules/evt/evtgen.py
+1
-1
Mac/Modules/evt/evtsupport.py
Mac/Modules/evt/evtsupport.py
+3
-1
Mac/Modules/fm/Fmgen.py
Mac/Modules/fm/Fmgen.py
+1
-1
Mac/Modules/list/Listmodule.c
Mac/Modules/list/Listmodule.c
+8
-3
Mac/Modules/list/listgen.py
Mac/Modules/list/listgen.py
+1
-1
Mac/Modules/list/listsupport.py
Mac/Modules/list/listsupport.py
+1
-2
Mac/Modules/menu/Menumodule.c
Mac/Modules/menu/Menumodule.c
+3
-0
Mac/Modules/menu/menugen.py
Mac/Modules/menu/menugen.py
+1
-1
No files found.
Mac/Modules/ctl/Ctlmodule.c
View file @
2b72417d
...
...
@@ -40,6 +40,9 @@ extern int GrafObj_Convert(PyObject *, GrafPtr *);
extern
PyObject
*
BMObj_New
(
BitMapPtr
);
extern
int
BMObj_Convert
(
PyObject
*
,
BitMapPtr
*
);
extern
PyObject
*
PMObj_New
(
PixMapHandle
);
extern
int
PMObj_Convert
(
PyObject
*
,
PixMapHandle
*
);
extern
PyObject
*
WinObj_WhichWindow
(
WindowPtr
);
#include <Controls.h>
...
...
@@ -624,11 +627,13 @@ static PyObject *Ctl_UpdateControls(_self, _args)
{
PyObject
*
_res
=
NULL
;
WindowPtr
theWindow
;
if
(
!
PyArg_ParseTuple
(
_args
,
"O&"
,
WinObj_Convert
,
&
theWindow
))
RgnHandle
updateRegion
;
if
(
!
PyArg_ParseTuple
(
_args
,
"O&O&"
,
WinObj_Convert
,
&
theWindow
,
ResObj_Convert
,
&
updateRegion
))
return
NULL
;
UpdateControls
(
theWindow
,
theWindow
->
visRg
n
);
updateRegio
n
);
Py_INCREF
(
Py_None
);
_res
=
Py_None
;
return
_res
;
...
...
@@ -666,7 +671,7 @@ static PyMethodDef Ctl_methods[] = {
{
"DrawControls"
,
(
PyCFunction
)
Ctl_DrawControls
,
1
,
"(WindowPtr theWindow) -> None"
},
{
"UpdateControls"
,
(
PyCFunction
)
Ctl_UpdateControls
,
1
,
"(WindowPtr theWindow) -> None"
},
"(WindowPtr theWindow
, RgnHandle updateRegion
) -> None"
},
{
"FindControl"
,
(
PyCFunction
)
Ctl_FindControl
,
1
,
"(Point thePoint, WindowPtr theWindow) -> (ControlPartCode _rv, ControlHandle theControl)"
},
{
NULL
,
NULL
,
0
}
...
...
Mac/Modules/ctl/ctlgen.py
View file @
2b72417d
# Generated from '
Sap:CodeWarrior7
:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Controls.h'
# Generated from '
flap:CW8 Gold
:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Controls.h'
f
=
Function
(
ControlRef
,
'NewControl'
,
(
WindowRef
,
'theWindow'
,
InMode
),
...
...
Mac/Modules/ctl/ctlsupport.py
View file @
2b72417d
...
...
@@ -28,7 +28,7 @@ ControlHandle = OpaqueByValueType(OBJECTTYPE, OBJECTPREFIX)
ControlRef
=
ControlHandle
ExistingControlHandle
=
OpaqueByValueType
(
OBJECTTYPE
,
"CtlObj_WhichControl"
,
"BUG"
)
RgnHandle
=
FakeType
(
"theWindow->visRgn"
)
# XXX
RgnHandle
=
OpaqueByValueType
(
"RgnHandle"
,
"ResObj"
)
ControlPartCode
=
Type
(
"ControlPartCode"
,
"h"
)
DragConstraint
=
Type
(
"DragConstraint"
,
"h"
)
...
...
Mac/Modules/dlg/Dlgmodule.c
View file @
2b72417d
...
...
@@ -40,6 +40,9 @@ extern int GrafObj_Convert(PyObject *, GrafPtr *);
extern
PyObject
*
BMObj_New
(
BitMapPtr
);
extern
int
BMObj_Convert
(
PyObject
*
,
BitMapPtr
*
);
extern
PyObject
*
PMObj_New
(
PixMapHandle
);
extern
int
PMObj_Convert
(
PyObject
*
,
PixMapHandle
*
);
extern
PyObject
*
WinObj_WhichWindow
(
WindowPtr
);
#include <Dialogs.h>
...
...
@@ -173,10 +176,12 @@ static PyObject *DlgObj_UpdateDialog(_self, _args)
PyObject
*
_args
;
{
PyObject
*
_res
=
NULL
;
if
(
!
PyArg_ParseTuple
(
_args
,
""
))
RgnHandle
updateRgn
;
if
(
!
PyArg_ParseTuple
(
_args
,
"O&"
,
ResObj_Convert
,
&
updateRgn
))
return
NULL
;
UpdateDialog
(
_self
->
ob_itself
,
_self
->
ob_itself
->
vis
Rgn
);
update
Rgn
);
Py_INCREF
(
Py_None
);
_res
=
Py_None
;
return
_res
;
...
...
@@ -481,7 +486,7 @@ static PyMethodDef DlgObj_methods[] = {
{
"DrawDialog"
,
(
PyCFunction
)
DlgObj_DrawDialog
,
1
,
"() -> None"
},
{
"UpdateDialog"
,
(
PyCFunction
)
DlgObj_UpdateDialog
,
1
,
"() -> None"
},
"(
RgnHandle updateRgn
) -> None"
},
{
"GetDialogItem"
,
(
PyCFunction
)
DlgObj_GetDialogItem
,
1
,
"(short itemNo) -> (short itemType, Handle item, Rect box)"
},
{
"SetDialogItem"
,
(
PyCFunction
)
DlgObj_SetDialogItem
,
1
,
...
...
Mac/Modules/dlg/dlggen.py
View file @
2b72417d
# Generated from '
Sap:CodeWarrior7
:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Dialogs.h'
# Generated from '
flap:CW8 Gold
:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Dialogs.h'
f
=
Function
(
DialogRef
,
'NewDialog'
,
(
NullStorage
,
'wStorage'
,
InMode
),
...
...
Mac/Modules/dlg/dlgsupport.py
View file @
2b72417d
...
...
@@ -21,7 +21,7 @@ ModalFilterProcPtr = InputOnlyType("PyObject*", "O")
ModalFilterProcPtr
.
passInput
=
lambda
name
:
"NewModalFilterProc(Dlg_PassFilterProc(%s))"
%
name
ModalFilterUPP
=
ModalFilterProcPtr
RgnHandle
=
FakeType
(
"_self->ob_itself->visRgn"
)
# XXX
RgnHandle
=
OpaqueByValueType
(
"RgnHandle"
,
"ResObj"
)
DITLMethod
=
Type
(
"DITLMethod"
,
"h"
)
...
...
Mac/Modules/evt/Evtmodule.c
View file @
2b72417d
...
...
@@ -40,6 +40,9 @@ extern int GrafObj_Convert(PyObject *, GrafPtr *);
extern
PyObject
*
BMObj_New
(
BitMapPtr
);
extern
int
BMObj_Convert
(
PyObject
*
,
BitMapPtr
*
);
extern
PyObject
*
PMObj_New
(
PixMapHandle
);
extern
int
PMObj_Convert
(
PyObject
*
,
PixMapHandle
*
);
extern
PyObject
*
WinObj_WhichWindow
(
WindowPtr
);
#include <Events.h>
...
...
Mac/Modules/evt/evtgen.py
View file @
2b72417d
# Generated from '
Sap:CodeWarrior7
:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Events.h'
# Generated from '
flap:CW8 Gold
:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Events.h'
f
=
Function
(
UInt32
,
'GetCaretTime'
,
)
...
...
Mac/Modules/evt/evtsupport.py
View file @
2b72417d
...
...
@@ -24,7 +24,9 @@ from macsupport import *
#WindowPeek = OpaqueByValueType("WindowPeek", OBJECTPREFIX)
RgnHandle
=
FakeType
(
"(RgnHandle)0"
)
# XXX
RgnHandle
=
FakeType
(
"(RgnHandle)0"
)
# XXXX Should be next, but this will break a lot of code...
# RgnHandle = OpaqueByValueType("RgnHandle", "OptResObj")
KeyMap
=
ArrayOutputBufferType
(
"KeyMap"
)
MacOSEventKind
=
Type
(
"MacOSEventKind"
,
"h"
)
# Old-style
...
...
Mac/Modules/fm/Fmgen.py
View file @
2b72417d
# Generated from 'flap:C
odeWarrior
:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Fonts.h'
# Generated from 'flap:C
W8 Gold
:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Fonts.h'
f
=
Function
(
void
,
'InitFonts'
,
)
...
...
Mac/Modules/list/Listmodule.c
View file @
2b72417d
...
...
@@ -40,6 +40,9 @@ extern int GrafObj_Convert(PyObject *, GrafPtr *);
extern
PyObject
*
BMObj_New
(
BitMapPtr
);
extern
int
BMObj_Convert
(
PyObject
*
,
BitMapPtr
*
);
extern
PyObject
*
PMObj_New
(
PixMapHandle
);
extern
int
PMObj_Convert
(
PyObject
*
,
PixMapHandle
*
);
extern
PyObject
*
WinObj_WhichWindow
(
WindowPtr
);
#include <Lists.h>
...
...
@@ -299,9 +302,11 @@ static PyObject *ListObj_LUpdate(_self, _args)
PyObject
*
_args
;
{
PyObject
*
_res
=
NULL
;
if
(
!
PyArg_ParseTuple
(
_args
,
""
))
RgnHandle
theRgn
;
if
(
!
PyArg_ParseTuple
(
_args
,
"O&"
,
ResObj_Convert
,
&
theRgn
))
return
NULL
;
LUpdate
(
(
*
_self
->
ob_itself
)
->
port
->
vis
Rgn
,
LUpdate
(
the
Rgn
,
_self
->
ob_itself
);
Py_INCREF
(
Py_None
);
_res
=
Py_None
;
...
...
@@ -528,7 +533,7 @@ static PyMethodDef ListObj_methods[] = {
{
"LAutoScroll"
,
(
PyCFunction
)
ListObj_LAutoScroll
,
1
,
"() -> None"
},
{
"LUpdate"
,
(
PyCFunction
)
ListObj_LUpdate
,
1
,
"() -> None"
},
"(
RgnHandle theRgn
) -> None"
},
{
"LActivate"
,
(
PyCFunction
)
ListObj_LActivate
,
1
,
"(Boolean act) -> None"
},
{
"LCellSize"
,
(
PyCFunction
)
ListObj_LCellSize
,
1
,
...
...
Mac/Modules/list/listgen.py
View file @
2b72417d
# Generated from '
Sap:CodeWarrior7
:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Lists.h'
# Generated from '
flap:CW8 Gold
:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Lists.h'
f
=
Function
(
ListRef
,
'LNew'
,
(
Rect_ptr
,
'rView'
,
InMode
),
...
...
Mac/Modules/list/listsupport.py
View file @
2b72417d
...
...
@@ -26,8 +26,7 @@ Cell = Point
VarOutBufferShortsize
=
VarHeapOutputBufferType
(
'char'
,
'short'
,
's'
)
# (buf, &len)
InBufferShortsize
=
VarInputBufferType
(
'char'
,
'short'
,
's'
)
# (buf, len)
# For LUpdate, we alsways update the complete visible region.
RgnHandle
=
FakeType
(
"(*_self->ob_itself)->port->visRgn"
)
RgnHandle
=
OpaqueByValueType
(
"RgnHandle"
,
"ResObj"
)
includestuff
=
includestuff
+
"""
...
...
Mac/Modules/menu/Menumodule.c
View file @
2b72417d
...
...
@@ -40,6 +40,9 @@ extern int GrafObj_Convert(PyObject *, GrafPtr *);
extern
PyObject
*
BMObj_New
(
BitMapPtr
);
extern
int
BMObj_Convert
(
PyObject
*
,
BitMapPtr
*
);
extern
PyObject
*
PMObj_New
(
PixMapHandle
);
extern
int
PMObj_Convert
(
PyObject
*
,
PixMapHandle
*
);
extern
PyObject
*
WinObj_WhichWindow
(
WindowPtr
);
#include <Devices.h>
/* Defines OpenDeskAcc in universal headers */
...
...
Mac/Modules/menu/menugen.py
View file @
2b72417d
# Generated from '
Sap:CodeWarrior7
:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Menus.h'
# Generated from '
flap:CW8 Gold
:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Menus.h'
f
=
Function
(
short
,
'GetMBarHeight'
,
)
...
...
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