[Python-checkins] CVS: python/dist/src/Tools/bgen/bgen macsupport.py,1.19,1.20

Jack Jansen python-dev@python.org
Tue, 12 Dec 2000 14:21:41 -0800


Update of /cvsroot/python/python/dist/src/Tools/bgen/bgen
In directory slayer.i.sourceforge.net:/tmp/cvs-serv12844

Modified Files:
	macsupport.py 
Log Message:
Various new standard types.


Index: macsupport.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/bgen/bgen/macsupport.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -r1.19 -r1.20
*** macsupport.py	2000/07/15 22:29:30	1.19
--- macsupport.py	2000/12/12 22:21:39	1.20
***************
*** 13,17 ****
  Boolean = Type("Boolean", "b")
  SignedByte = Type("SignedByte", "b")
- ScriptCode = Type("ScriptCode", "h")
  Size = Type("Size", "l")
  Style = Type("Style", "b")
--- 13,16 ----
***************
*** 19,22 ****
--- 18,30 ----
  CharParameter = Type("CharParameter", "h")
  TextEncoding = Type("TextEncoding", "l")
+ ByteCount = Type("ByteCount", "l")
+ Duration = Type("Duration", "l")
+ ByteOffset = Type("ByteOffset", "l")
+ OptionBits = Type("OptionBits", "l")
+ ItemCount = Type("ItemCount", "l")
+ PBVersion = Type("PBVersion", "l")
+ ScriptCode = Type("ScriptCode", "h")
+ LangCode = Type("LangCode", "h")
+ RegionCode = Type("RegionCode", "h")
  
  UInt8 = Type("UInt8", "b")
***************
*** 26,33 ****
--- 34,46 ----
  UInt32 = Type("UInt32", "l")
  SInt32 = Type("SInt32", "l")
+ Float32 = Type("Float32", "f")
+ 
+ wide = OpaqueByValueType("wide", "PyMac_Buildwide", "PyMac_Getwide")
+ wide_ptr = OpaqueType("wide", "PyMac_Buildwide", "PyMac_Getwide")
  
  # Pascal strings
  ConstStr255Param = OpaqueArrayType("Str255", "PyMac_BuildStr255", "PyMac_GetStr255")
  Str255 = OpaqueArrayType("Str255", "PyMac_BuildStr255", "PyMac_GetStr255")
+ StringPtr = OpaqueByValueType("StringPtr", "PyMac_BuildStr255", "BUG")
  
  # File System Specifications
***************
*** 40,43 ****
--- 53,57 ----
  OSType = OSTypeType("OSType")
  ResType = OSTypeType("ResType")
+ FourCharCode = OSTypeType("FourCharCode")
  
  # Version numbers
***************
*** 57,60 ****
--- 71,75 ----
  DialogRef = DialogPtr
  ExistingWindowPtr = OpaqueByValueType("WindowPtr", "WinObj_WhichWindow", "BUG")
+ # XXX This is incorrect: it returns a Window, not a Dialog!
  ExistingDialogPtr = OpaqueByValueType("DialogPtr", "WinObj_WhichWindow", "BUG")