summaryrefslogtreecommitdiffstats
path: root/Tools/bgen
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-06-27 21:58:40 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-06-27 21:58:40 (GMT)
commit4f0f1584fb87aff70786fa479ed8ba1b7342dab8 (patch)
treeb142d9b783af3e47ea758a6ca6e25084f8b9889a /Tools/bgen
parenta43e70396ec4ca378f24f5fe5a8febe261cc9844 (diff)
downloadcpython-4f0f1584fb87aff70786fa479ed8ba1b7342dab8.zip
cpython-4f0f1584fb87aff70786fa479ed8ba1b7342dab8.tar.gz
cpython-4f0f1584fb87aff70786fa479ed8ba1b7342dab8.tar.bz2
Added a couple more types that Apple has taken a fancy to.
Diffstat (limited to 'Tools/bgen')
-rw-r--r--Tools/bgen/bgen/macsupport.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Tools/bgen/bgen/macsupport.py b/Tools/bgen/bgen/macsupport.py
index 4e0ab0e..50b2eaa 100644
--- a/Tools/bgen/bgen/macsupport.py
+++ b/Tools/bgen/bgen/macsupport.py
@@ -41,7 +41,8 @@ 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")
+StringPtr = OpaqueByValueType("StringPtr", "PyMac_BuildStr255", "PyMac_GetStr255")
+ConstStringPtr = StringPtr
# File System Specifications
FSSpec_ptr = OpaqueType("FSSpec", "PyMac_BuildFSSpec", "PyMac_GetFSSpec")
@@ -100,6 +101,7 @@ OSStatus = OSErrType("OSStatus", 'l')
# Various buffer types
InBuffer = VarInputBufferType('char', 'long', 'l') # (buf, len)
+UcharInBuffer = VarInputBufferType('unsigned char', 'long', 'l') # (buf, len)
OptionalInBuffer = OptionalVarInputBufferType('char', 'long', 'l') # (buf, len)
InOutBuffer = HeapInputOutputBufferType('char', 'long', 'l') # (inbuf, outbuf, len)