mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Patches from Jack for new Apple headers
This commit is contained in:
parent
a705da7aa0
commit
557f446618
3 changed files with 36 additions and 6 deletions
|
|
@ -15,6 +15,9 @@ SignedByte = Type("SignedByte", "b")
|
|||
ScriptCode = Type("ScriptCode", "h")
|
||||
Size = Type("Size", "l")
|
||||
Style = Type("Style", "b")
|
||||
StyleParameter = Type("Style", "h")
|
||||
CharParameter = Type("CharParameter", "h")
|
||||
TextEncoding = Type("TextEncoding", "l")
|
||||
|
||||
UInt8 = Type("UInt8", "b")
|
||||
SInt8 = Type("SInt8", "b")
|
||||
|
|
@ -75,6 +78,7 @@ class OSErrType(Type):
|
|||
Output("if (%s != noErr) return PyMac_Error(%s);", name, name)
|
||||
self.used = 1
|
||||
OSErr = OSErrType("OSErr", 'h')
|
||||
OSStatus = OSErrType("OSStatus", 'l')
|
||||
|
||||
|
||||
# Various buffer types
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue