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
7830ab8f
Commit
7830ab8f
authored
Nov 15, 1995
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added definitions for GrafPort object and Fixed type.
parent
e7bea57d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
Tools/bgen/bgen/macsupport.py
Tools/bgen/bgen/macsupport.py
+8
-0
No files found.
Tools/bgen/bgen/macsupport.py
View file @
7830ab8f
...
...
@@ -52,6 +52,9 @@ ExistingDialogPtr = OpaqueByValueType("DialogPtr", "WinObj_WhichWindow", "BUG")
# NULL pointer passed in as optional storage -- not present in Python version
NullStorage
=
FakeType
(
"(void *)0"
)
# More standard datatypes
Fixed
=
OpaqueByValueType
(
"Fixed"
,
"PyMac_BuildFixed"
,
"PyMac_GetFixed"
)
# Quickdraw data types
Rect
=
Rect_ptr
=
OpaqueType
(
"Rect"
,
"PyMac_BuildRect"
,
"PyMac_GetRect"
)
Point
=
OpaqueByValueType
(
"Point"
,
"PyMac_BuildPoint"
,
"PyMac_GetPoint"
)
...
...
@@ -99,6 +102,8 @@ extern int ResObj_Convert(PyObject *, Handle *);
extern PyObject *WinObj_New(WindowPtr);
extern int WinObj_Convert(PyObject *, WindowPtr *);
extern PyTypeObject Window_Type;
#define WinObj_Check(x) ((x)->ob_type == &Window_Type)
extern PyObject *DlgObj_New(DialogPtr);
extern int DlgObj_Convert(PyObject *, DialogPtr *);
...
...
@@ -111,6 +116,9 @@ extern int MenuObj_Convert(PyObject *, MenuHandle *);
extern PyObject *CtlObj_New(ControlHandle);
extern int CtlObj_Convert(PyObject *, ControlHandle *);
extern PyObject *GrafObj_New(GrafPtr);
extern int GrafObj_Convert(PyObject *, GrafPtr *);
extern PyObject *WinObj_WhichWindow(WindowPtr);
"""
...
...
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