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
f34a8bce
Commit
f34a8bce
authored
Aug 22, 2002
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved CoreFoundation type support to bgen/macsupport.
parent
286e838f
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
75 additions
and
70 deletions
+75
-70
Mac/Modules/app/appsupport.py
Mac/Modules/app/appsupport.py
+0
-2
Mac/Modules/ibcarbon/IBCarbonsupport.py
Mac/Modules/ibcarbon/IBCarbonsupport.py
+0
-1
Mac/Modules/menu/menusupport.py
Mac/Modules/menu/menusupport.py
+0
-1
Mac/Modules/mlte/_Mltemodule.c
Mac/Modules/mlte/_Mltemodule.c
+64
-64
Mac/Modules/mlte/mltesupport.py
Mac/Modules/mlte/mltesupport.py
+0
-1
Mac/Modules/win/winsupport.py
Mac/Modules/win/winsupport.py
+0
-1
Tools/bgen/bgen/macsupport.py
Tools/bgen/bgen/macsupport.py
+11
-0
No files found.
Mac/Modules/app/appsupport.py
View file @
f34a8bce
...
...
@@ -69,8 +69,6 @@ ThemeDragSoundKind = OSTypeType("ThemeDragSoundKind")
ThemeBackgroundKind
=
Type
(
"ThemeBackgroundKind"
,
"l"
)
ThemeMetric
=
Type
(
"ThemeMetric"
,
"l"
)
RGBColor
=
OpaqueType
(
"RGBColor"
,
"QdRGB"
)
CFStringRef
=
OpaqueByValueType
(
"CFStringRef"
,
"CFStringRefObj"
)
CFMutableStringRef
=
OpaqueByValueType
(
"CFMutableStringRef"
,
"CFMutableStringRefObj"
)
TruncCode
=
Type
(
"TruncCode"
,
"h"
)
...
...
Mac/Modules/ibcarbon/IBCarbonsupport.py
View file @
f34a8bce
...
...
@@ -2,7 +2,6 @@
from
macsupport
import
*
CFStringRef
=
OpaqueByValueType
(
'CFStringRef'
,
'CFStringRefObj'
)
IBNibRef
=
OpaqueByValueType
(
'IBNibRef'
,
'IBNibRefObj'
)
#CFBundleRef = OpaqueByValueType('CFBundleRef')
...
...
Mac/Modules/menu/menusupport.py
View file @
f34a8bce
...
...
@@ -36,7 +36,6 @@ MenuItemAttributes = Type("MenuItemAttributes", "l")
unsigned_char
=
Type
(
'unsigned char'
,
'b'
)
FMFontFamily
=
Type
(
"FMFontFamily"
,
"h"
)
FMFontStyle
=
Type
(
"FMFontStyle"
,
"h"
)
CFStringRef
=
OpaqueByValueType
(
"CFStringRef"
,
"CFStringRefObj"
)
UniChar
=
Type
(
"UniChar"
,
"h"
)
includestuff
=
includestuff
+
"""
...
...
Mac/Modules/mlte/_Mltemodule.c
View file @
f34a8bce
This diff is collapsed.
Click to expand it.
Mac/Modules/mlte/mltesupport.py
View file @
f34a8bce
...
...
@@ -125,7 +125,6 @@ OptRgnHandle = OpaqueByValueType("RgnHandle", "OptResObj")
GWorldPtr
=
OpaqueByValueType
(
"GWorldPtr"
,
"GWorldObj"
)
OptGWorldPtr
=
OpaqueByValueType
(
"GWorldPtr"
,
"OptGWorldObj"
)
MlteInBuffer
=
VarInputBufferType
(
'void *'
,
'ByteCount'
,
'l'
)
CFStringRef
=
OpaqueByValueType
(
"CFStringRef"
,
"CFStringRefObj"
)
OptFSSpecPtr
=
OpaqueByValueType
(
"FSSpec *"
,
"OptFSSpecPtr"
)
OptRectPtr
=
OpaqueByValueType
(
"Rect *"
,
"OptRectPtr"
)
...
...
Mac/Modules/win/winsupport.py
View file @
f34a8bce
...
...
@@ -51,7 +51,6 @@ ScrollWindowOptions = Type("ScrollWindowOptions", "l")
WindowPartCode
=
Type
(
"WindowPartCode"
,
"h"
)
WindowDefPartCode
=
Type
(
"WindowDefPartCode"
,
"h"
)
WindowModality
=
Type
(
"WindowModality"
,
"l"
)
CFStringRef
=
OpaqueByValueType
(
"CFStringRef"
,
"CFStringRefObj"
)
GDHandle
=
OpaqueByValueType
(
"GDHandle"
,
"ResObj"
)
WindowConstrainOptions
=
Type
(
"WindowConstrainOptions"
,
"l"
)
...
...
Tools/bgen/bgen/macsupport.py
View file @
f34a8bce
...
...
@@ -90,6 +90,17 @@ Point_ptr = OpaqueType("Point", "PyMac_BuildPoint", "PyMac_GetPoint")
EventRecord
=
OpaqueType
(
"EventRecord"
,
"PyMac_BuildEventRecord"
,
"PyMac_GetEventRecord"
)
EventRecord_ptr
=
EventRecord
# CoreFoundation datatypes
CFTypeRef
=
OpaqueByValueType
(
"CFTypeRef"
,
"CFTypeRefObj"
)
CFStringRef
=
OpaqueByValueType
(
"CFStringRef"
,
"CFStringRefObj"
)
CFMutableStringRef
=
OpaqueByValueType
(
"CFMutableStringRef"
,
"CFMutableStringRefObj"
)
CFArrayRef
=
OpaqueByValueType
(
"CFArrayRef"
,
"CFArrayRefObj"
)
CFMutableArrayRef
=
OpaqueByValueType
(
"CFMutableArrayRef"
,
"CFMutableArrayRefObj"
)
CFDictionaryRef
=
OpaqueByValueType
(
"CFDictionaryRef"
,
"CFDictionaryRefObj"
)
CFMutableDictionaryRef
=
OpaqueByValueType
(
"CFMutableDictionaryRef"
,
"CFMutableDictionaryRefObj"
)
CFURLRef
=
OpaqueByValueType
(
"CFURLRef"
,
"CFURLRefObj"
)
OptionalCFURLRef
=
OpaqueByValueType
(
"CFURLRef"
,
"OptionalCFURLRefObj"
)
# OSErr is special because it is turned into an exception
# (Could do this with less code using a variant of mkvalue("O&")?)
class
OSErrType
(
Type
):
...
...
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