[Python-checkins] CVS: python/dist/src/Tools/bgen/bgen macsupport.py,1.16,1.17
Guido van Rossum
python-dev@python.org
Mon, 24 Apr 2000 10:56:03 -0400 (EDT)
Update of /projects/cvsroot/python/dist/src/Tools/bgen/bgen
In directory eric:/projects/python/develop/guido/src/Tools/bgen/bgen
Modified Files:
macsupport.py
Log Message:
Jack Jansen: A few new types needed by new API calls.
Index: macsupport.py
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Tools/bgen/bgen/macsupport.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** macsupport.py 2000/01/20 20:49:28 1.16
--- macsupport.py 2000/04/24 14:56:00 1.17
***************
*** 16,20 ****
Size = Type("Size", "l")
Style = Type("Style", "b")
! StyleParameter = Type("Style", "h")
CharParameter = Type("CharParameter", "h")
TextEncoding = Type("TextEncoding", "l")
--- 16,20 ----
Size = Type("Size", "l")
Style = Type("Style", "b")
! StyleParameter = Type("StyleParameter", "h")
CharParameter = Type("CharParameter", "h")
TextEncoding = Type("TextEncoding", "l")
***************
*** 32,36 ****
# File System Specifications
! FSSpec = FSSpec_ptr = OpaqueType("FSSpec", "PyMac_BuildFSSpec", "PyMac_GetFSSpec")
# OSType and ResType: 4-byte character strings
--- 32,37 ----
# File System Specifications
! FSSpec_ptr = OpaqueType("FSSpec", "PyMac_BuildFSSpec", "PyMac_GetFSSpec")
! FSSpec = OpaqueByValueType("FSSpec", "PyMac_BuildFSSpec", "PyMac_GetFSSpec")
# OSType and ResType: 4-byte character strings
***************
*** 86,89 ****
--- 87,91 ----
InBuffer = VarInputBufferType('char', 'long', 'l') # (buf, len)
+ OptionalInBuffer = OptionalVarInputBufferType('char', 'long', 'l') # (buf, len)
InOutBuffer = HeapInputOutputBufferType('char', 'long', 'l') # (inbuf, outbuf, len)
***************
*** 152,158 ****
# errorCheck method.
class OSErrMixIn:
! "Mix-in class to treat OSErr return values special"
def makereturnvar(self):
! if self.returntype is OSErr:
return Variable(self.returntype, "_err", ErrorMode)
else:
--- 154,160 ----
# errorCheck method.
class OSErrMixIn:
! "Mix-in class to treat OSErr/OSStatus return values special"
def makereturnvar(self):
! if self.returntype.__class__ == OSErrType:
return Variable(self.returntype, "_err", ErrorMode)
else: