Merged changes made on r22b2-branch between r22b2 and r22b2-mac (the

changes from start of branch upto r22b2 were already merged, of course).
This commit is contained in:
Jack Jansen 2001-11-30 14:16:36 +00:00
parent 69b83b113f
commit b3be216b41
53 changed files with 1815 additions and 300 deletions

View file

@ -524,6 +524,7 @@ _expectations = {
test_cl test_cl
test_commands test_commands
test_crypt test_crypt
test_curses
test_dbm test_dbm
test_dl test_dl
test_fcntl test_fcntl

View file

@ -313,6 +313,7 @@ PyNumber_Or
PyNumber_Check PyNumber_Check
PyObject_AsWriteBuffer PyObject_AsWriteBuffer
PyObject_AsReadBuffer PyObject_AsReadBuffer
PyObject_CheckReadBuffer
PyObject_AsCharBuffer PyObject_AsCharBuffer
PyObject_DelItem PyObject_DelItem
PyObject_SetItem PyObject_SetItem
@ -1152,6 +1153,7 @@ __vt__18GUSIContextFactory # GUSIContextFactory::__vt
__vt__11GUSIContext # GUSIContext::__vt __vt__11GUSIContext # GUSIContext::__vt
sError__11GUSIContext # GUSIContext::sError sError__11GUSIContext # GUSIContext::sError
sHasThreading__11GUSIContext # GUSIContext::sHasThreading sHasThreading__11GUSIContext # GUSIContext::sHasThreading
sCreatingCurrentContext__11GUSIContext # GUSIContext::sCreatingCurrentContext
sCurrentContext__11GUSIContext # GUSIContext::sCurrentContext sCurrentContext__11GUSIContext # GUSIContext::sCurrentContext
sContexts__11GUSIContext # GUSIContext::sContexts sContexts__11GUSIContext # GUSIContext::sContexts
sInstance__11GUSIProcess # GUSIProcess::sInstance sInstance__11GUSIProcess # GUSIProcess::sInstance
@ -1186,9 +1188,10 @@ CreateContext__18GUSIContextFactoryFUl # GUSIContextFactory::CreateContext(unsi
CreateContext__18GUSIContextFactoryFPFPv_PvPvlUlPPvPUl # GUSIContextFactory::CreateContext(void* (*)(void*),void*,long,unsigned long,void**,unsigned long*) CreateContext__18GUSIContextFactoryFPFPv_PvPvlUlPPvPUl # GUSIContextFactory::CreateContext(void* (*)(void*),void*,long,unsigned long,void**,unsigned long*)
__dt__18GUSIContextFactoryFv # GUSIContextFactory::~GUSIContextFactory() __dt__18GUSIContextFactoryFv # GUSIContextFactory::~GUSIContextFactory()
__ct__18GUSIContextFactoryFv # GUSIContextFactory::GUSIContextFactory() __ct__18GUSIContextFactoryFv # GUSIContextFactory::GUSIContextFactory()
__dt__Q23std68auto_ptr<18GUSIContextFactory,Q23std29_Single<18GUSIContextFactory>>Fv # std::auto_ptr<GUSIContextFactory, std::_Single<GUSIContextFactory>>::~auto_ptr() DeleteInstance__18GUSIContextFactoryFv # GUSIContextFactory::DeleteInstance()
SetInstance__18GUSIContextFactoryFP18GUSIContextFactory # GUSIContextFactory::SetInstance(GUSIContextFactory*) SetInstance__18GUSIContextFactoryFP18GUSIContextFactory # GUSIContextFactory::SetInstance(GUSIContextFactory*)
Instance__18GUSIContextFactoryFv # GUSIContextFactory::Instance() Instance__18GUSIContextFactoryFv # GUSIContextFactory::Instance()
GUSISetupContextFactory
GUSINewThread GUSINewThread
Wakeup__11GUSIProcessFv # GUSIProcess::Wakeup() Wakeup__11GUSIProcessFv # GUSIProcess::Wakeup()
Wakeup__11GUSIContextFv # GUSIContext::Wakeup() Wakeup__11GUSIContextFv # GUSIContext::Wakeup()
@ -1237,6 +1240,9 @@ __dt__19GUSIDescriptorTableFv # GUSIDescriptorTable::~GUSIDescriptorTable()
CloseAllDescriptors__19GUSIDescriptorTableFv # GUSIDescriptorTable::CloseAllDescriptors() CloseAllDescriptors__19GUSIDescriptorTableFv # GUSIDescriptorTable::CloseAllDescriptors()
SetInstance__19GUSIDescriptorTableFP19GUSIDescriptorTable # GUSIDescriptorTable::SetInstance(GUSIDescriptorTable*) SetInstance__19GUSIDescriptorTableFP19GUSIDescriptorTable # GUSIDescriptorTable::SetInstance(GUSIDescriptorTable*)
Instance__19GUSIDescriptorTableFv # GUSIDescriptorTable::Instance() Instance__19GUSIDescriptorTableFv # GUSIDescriptorTable::Instance()
GUSISetupDescriptorTable
__ct__10GUSIDeviceFv # GUSIDevice::GUSIDevice()
__ct__14GUSINullDeviceFv # GUSINullDevice::GUSINullDevice()
Instance__14GUSINullDeviceFv # GUSINullDevice::Instance() Instance__14GUSINullDeviceFv # GUSINullDevice::Instance()
GUSIDefaultSetupConsole GUSIDefaultSetupConsole
GUSISetupConsole GUSISetupConsole
@ -1366,6 +1372,7 @@ __ct__12GUSIFileSpecFRC6FSSpecb # GUSIFileSpec::GUSIFileSpec(const FSSpec&,bool
__ct__12GUSIFileSpecFRC12GUSIFileSpec # GUSIFileSpec::GUSIFileSpec(const GUSIFileSpec&) __ct__12GUSIFileSpecFRC12GUSIFileSpec # GUSIFileSpec::GUSIFileSpec(const GUSIFileSpec&)
CScratch__12GUSIFileSpecFb # GUSIFileSpec::CScratch(bool) CScratch__12GUSIFileSpecFb # GUSIFileSpec::CScratch(bool)
ReadHex__FPCciPc # ReadHex(const char*,int,char*) ReadHex__FPCciPc # ReadHex(const char*,int,char*)
GUSIFSXGetVolInfo__FP31GUSIIOPBWrapper<12XVolumeParam> # GUSIFSXGetVolInfo(GUSIIOPBWrapper<XVolumeParam>*)
GUSIFSMoveRename GUSIFSMoveRename
GUSIFSCatMove GUSIFSCatMove
GUSIFSCatMove__FPC6FSSpecl # GUSIFSCatMove(const FSSpec*,long) GUSIFSCatMove__FPC6FSSpecl # GUSIFSCatMove(const FSSpec*,long)
@ -1593,66 +1600,6 @@ open__14GUSINullDeviceFv # GUSINullDevice::open()
open__14GUSINullDeviceFR13GUSIFileTokeni # GUSINullDevice::open(GUSIFileToken&,int) open__14GUSINullDeviceFR13GUSIFileTokeni # GUSINullDevice::open(GUSIFileToken&,int)
Want__14GUSINullDeviceFR13GUSIFileToken # GUSINullDevice::Want(GUSIFileToken&) Want__14GUSINullDeviceFR13GUSIFileToken # GUSINullDevice::Want(GUSIFileToken&)
GUSIwithNullSockets GUSIwithNullSockets
__vt__13GUSIScatterer # GUSIScatterer::__vt
__vt__20GUSIOTDatagramSocket # GUSIOTDatagramSocket::__vt
__vt__18GUSIOTStreamSocket # GUSIOTStreamSocket::__vt
__vt__12GUSIOTSocket # GUSIOTSocket::__vt
__vt__14GUSIOTStrategy # GUSIOTStrategy::__vt
__vt__21GUSIOTDatagramFactory # GUSIOTDatagramFactory::__vt
__vt__13GUSIOTFactory # GUSIOTFactory::__vt
__vt__19GUSIOTStreamFactory # GUSIOTStreamFactory::__vt
sOK__13GUSIOTFactory # GUSIOTFactory::sOK
__dt__19GUSIOTStreamFactoryFv # GUSIOTStreamFactory::~GUSIOTStreamFactory()
__dt__13GUSIOTFactoryFv # GUSIOTFactory::~GUSIOTFactory()
__dt__21GUSIOTDatagramFactoryFv # GUSIOTDatagramFactory::~GUSIOTDatagramFactory()
select__20GUSIOTDatagramSocketFPbPbPb # GUSIOTDatagramSocket::select(bool*,bool*,bool*)
__dt__Q23std80auto_ptr<24GUSIOTAddr<9TUnitData,5>,Q23std35_Single<24GUSIOTAddr<9TUnitData,5>>>Fv # std::auto_ptr<GUSIOTAddr<TUnitData, 5>, std::_Single<GUSIOTAddr<TUnitData, 5>>>::~auto_ptr()
sendto__20GUSIOTDatagramSocketFRC12GUSIGathereriPCvUi # GUSIOTDatagramSocket::sendto(const GUSIGatherer&,int,const void*,unsigned int)
__dt__13GUSIScattererFv # GUSIScatterer::~GUSIScatterer()
recvfrom__20GUSIOTDatagramSocketFRC13GUSIScattereriPvPUi # GUSIOTDatagramSocket::recvfrom(const GUSIScatterer&,int,void*,unsigned int*)
connect__20GUSIOTDatagramSocketFPvUi # GUSIOTDatagramSocket::connect(void*,unsigned int)
getpeername__20GUSIOTDatagramSocketFPvPUi # GUSIOTDatagramSocket::getpeername(void*,unsigned int*)
BindIfUnbound__20GUSIOTDatagramSocketFv # GUSIOTDatagramSocket::BindIfUnbound()
__dt__20GUSIOTDatagramSocketFv # GUSIOTDatagramSocket::~GUSIOTDatagramSocket()
Clone__20GUSIOTDatagramSocketFv # GUSIOTDatagramSocket::Clone()
__ct__20GUSIOTDatagramSocketFP14GUSIOTStrategy # GUSIOTDatagramSocket::GUSIOTDatagramSocket(GUSIOTStrategy*)
shutdown__18GUSIOTStreamSocketFi # GUSIOTStreamSocket::shutdown(int)
select__18GUSIOTStreamSocketFPbPbPb # GUSIOTStreamSocket::select(bool*,bool*,bool*)
sendto__18GUSIOTStreamSocketFRC12GUSIGathereriPCvUi # GUSIOTStreamSocket::sendto(const GUSIGatherer&,int,const void*,unsigned int)
__dt__Q210GUSISocket17AddContextInScopeFv # GUSISocket::AddContextInScope::~AddContextInScope()
recvfrom__18GUSIOTStreamSocketFRC13GUSIScattereriPvPUi # GUSIOTStreamSocket::recvfrom(const GUSIScatterer&,int,void*,unsigned int*)
connect__18GUSIOTStreamSocketFPvUi # GUSIOTStreamSocket::connect(void*,unsigned int)
accept__18GUSIOTStreamSocketFPvPUi # GUSIOTStreamSocket::accept(void*,unsigned int*)
getpeername__18GUSIOTStreamSocketFPvPUi # GUSIOTStreamSocket::getpeername(void*,unsigned int*)
listen__18GUSIOTStreamSocketFi # GUSIOTStreamSocket::listen(int)
MopupEvents__18GUSIOTStreamSocketFv # GUSIOTStreamSocket::MopupEvents()
Close__18GUSIOTStreamSocketFUl # GUSIOTStreamSocket::Close(unsigned long)
__dt__18GUSIOTStreamSocketFv # GUSIOTStreamSocket::~GUSIOTStreamSocket()
close__18GUSIOTStreamSocketFv # GUSIOTStreamSocket::close()
Clone__18GUSIOTStreamSocketFv # GUSIOTStreamSocket::Clone()
__ct__18GUSIOTStreamSocketFP14GUSIOTStrategy # GUSIOTStreamSocket::GUSIOTStreamSocket(GUSIOTStrategy*)
Supports__12GUSIOTSocketFQ210GUSISocket12ConfigOption # GUSIOTSocket::Supports(GUSISocket::ConfigOption)
setsockopt__12GUSIOTSocketFiiPvUi # GUSIOTSocket::setsockopt(int,int,void*,unsigned int)
getsockopt__12GUSIOTSocketFiiPvPUi # GUSIOTSocket::getsockopt(int,int,void*,unsigned int*)
ioctl__12GUSIOTSocketFUiPc # GUSIOTSocket::ioctl(unsigned int,char*)
fcntl__12GUSIOTSocketFiPc # GUSIOTSocket::fcntl(int,char*)
shutdown__12GUSIOTSocketFi # GUSIOTSocket::shutdown(int)
getsockname__12GUSIOTSocketFPvPUi # GUSIOTSocket::getsockname(void*,unsigned int*)
Unbind__12GUSIOTSocketFv # GUSIOTSocket::Unbind()
BindToAddress__12GUSIOTSocketFP20GUSIOTAddr<5TBind,1> # GUSIOTSocket::BindToAddress(GUSIOTAddr<TBind, 1>*)
bind__12GUSIOTSocketFPvUi # GUSIOTSocket::bind(void*,unsigned int)
__dt__12GUSIOTSocketFv # GUSIOTSocket::~GUSIOTSocket()
close__12GUSIOTSocketFv # GUSIOTSocket::close()
__ct__12GUSIOTSocketFP14GUSIOTStrategy # GUSIOTSocket::GUSIOTSocket(GUSIOTStrategy*)
__dt__Q212GUSIOTSocket4LockFv # GUSIOTSocket::Lock::~Lock()
MopupEvents__12GUSIOTSocketFv # GUSIOTSocket::MopupEvents()
CopyAddress__14GUSIOTStrategyFRC7TNetbufR7TNetbuf # GUSIOTStrategy::CopyAddress(const TNetbuf&,TNetbuf&)
__dt__14GUSIOTStrategyFv # GUSIOTStrategy::~GUSIOTStrategy()
CreateConfiguration__14GUSIOTStrategyFv # GUSIOTStrategy::CreateConfiguration()
socket__21GUSIOTDatagramFactoryFiii # GUSIOTDatagramFactory::socket(int,int,int)
socket__19GUSIOTStreamFactoryFiii # GUSIOTStreamFactory::socket(int,int,int)
Initialize__13GUSIOTFactoryFv # GUSIOTFactory::Initialize()
GUSIOTNotify
__vt__15GUSIOTUdpSocket # GUSIOTUdpSocket::__vt __vt__15GUSIOTUdpSocket # GUSIOTUdpSocket::__vt
__vt__17GUSIOTUdpStrategy # GUSIOTUdpStrategy::__vt __vt__17GUSIOTUdpStrategy # GUSIOTUdpStrategy::__vt
__vt__15GUSIOTTcpSocket # GUSIOTTcpSocket::__vt __vt__15GUSIOTTcpSocket # GUSIOTTcpSocket::__vt
@ -1660,6 +1607,7 @@ __vt__17GUSIOTTcpStrategy # GUSIOTTcpStrategy::__vt
__vt__18GUSIOTInetStrategy # GUSIOTInetStrategy::__vt __vt__18GUSIOTInetStrategy # GUSIOTInetStrategy::__vt
__vt__16GUSIOTUdpFactory # GUSIOTUdpFactory::__vt __vt__16GUSIOTUdpFactory # GUSIOTUdpFactory::__vt
__vt__16GUSIOTTcpFactory # GUSIOTTcpFactory::__vt __vt__16GUSIOTTcpFactory # GUSIOTTcpFactory::__vt
__vt__13GUSIOTFactory # GUSIOTFactory::__vt
sInstance__16GUSIOTUdpFactory # GUSIOTUdpFactory::sInstance sInstance__16GUSIOTUdpFactory # GUSIOTUdpFactory::sInstance
sInstance__16GUSIOTTcpFactory # GUSIOTTcpFactory::sInstance sInstance__16GUSIOTTcpFactory # GUSIOTTcpFactory::sInstance
__dt__16GUSIOTTcpFactoryFv # GUSIOTTcpFactory::~GUSIOTTcpFactory() __dt__16GUSIOTTcpFactoryFv # GUSIOTTcpFactory::~GUSIOTTcpFactory()
@ -1688,10 +1636,13 @@ UnpackAddress__18GUSIOTInetStrategyFRC7TNetbufPvPUi # GUSIOTInetStrategy::Unpac
PackAddress__18GUSIOTInetStrategyFPCvUiR7TNetbufb # GUSIOTInetStrategy::PackAddress(const void*,unsigned int,TNetbuf&,bool) PackAddress__18GUSIOTInetStrategyFPCvUiR7TNetbufb # GUSIOTInetStrategy::PackAddress(const void*,unsigned int,TNetbuf&,bool)
socket__16GUSIOTUdpFactoryFiii # GUSIOTUdpFactory::socket(int,int,int) socket__16GUSIOTUdpFactoryFiii # GUSIOTUdpFactory::socket(int,int,int)
Strategy__16GUSIOTUdpFactoryFiii # GUSIOTUdpFactory::Strategy(int,int,int) Strategy__16GUSIOTUdpFactoryFiii # GUSIOTUdpFactory::Strategy(int,int,int)
__dt__21GUSIOTDatagramFactoryFv # GUSIOTDatagramFactory::~GUSIOTDatagramFactory()
Instance__16GUSIOTUdpFactoryFv # GUSIOTUdpFactory::Instance() Instance__16GUSIOTUdpFactoryFv # GUSIOTUdpFactory::Instance()
socket__16GUSIOTTcpFactoryFiii # GUSIOTTcpFactory::socket(int,int,int) socket__16GUSIOTTcpFactoryFiii # GUSIOTTcpFactory::socket(int,int,int)
__dt__18GUSIOTInetStrategyFv # GUSIOTInetStrategy::~GUSIOTInetStrategy() __dt__18GUSIOTInetStrategyFv # GUSIOTInetStrategy::~GUSIOTInetStrategy()
Strategy__16GUSIOTTcpFactoryFiii # GUSIOTTcpFactory::Strategy(int,int,int) Strategy__16GUSIOTTcpFactoryFiii # GUSIOTTcpFactory::Strategy(int,int,int)
__dt__13GUSIOTFactoryFv # GUSIOTFactory::~GUSIOTFactory()
__dt__19GUSIOTStreamFactoryFv # GUSIOTStreamFactory::~GUSIOTStreamFactory()
Instance__16GUSIOTTcpFactoryFv # GUSIOTTcpFactory::Instance() Instance__16GUSIOTTcpFactoryFv # GUSIOTTcpFactory::Instance()
__vt__11GUSIOTNetDB # GUSIOTNetDB::__vt __vt__11GUSIOTNetDB # GUSIOTNetDB::__vt
__dt__11GUSIOTNetDBFv # GUSIOTNetDB::~GUSIOTNetDB() __dt__11GUSIOTNetDBFv # GUSIOTNetDB::~GUSIOTNetDB()
@ -1720,8 +1671,9 @@ socketpair__15GUSIPipeFactoryFiiiPP10GUSISocket # GUSIPipeFactory::socketpair(i
socket__15GUSIPipeFactoryFiii # GUSIPipeFactory::socket(int,int,int) socket__15GUSIPipeFactoryFiii # GUSIPipeFactory::socket(int,int,int)
GUSIwithLocalSockets GUSIwithLocalSockets
__vt__12GUSIGatherer # GUSIGatherer::__vt __vt__12GUSIGatherer # GUSIGatherer::__vt
__vt__13GUSIScatterer # GUSIScatterer::__vt
get__40GUSISpecificData<Q23std2tm,&.GUSIKillTM>FP17GUSISpecificTable # GUSISpecificData<std::tm, &.GUSIKillTM>::get(GUSISpecificTable*) get__40GUSISpecificData<Q23std2tm,&.GUSIKillTM>FP17GUSISpecificTable # GUSISpecificData<std::tm, &.GUSIKillTM>::get(GUSISpecificTable*)
faccess__FPCcPUiPv # faccess(const char*,unsigned int*,void*) faccess
fsetfileinfo fsetfileinfo
fgetfileinfo fgetfileinfo
getservent getservent
@ -1804,6 +1756,7 @@ dup
fcntl fcntl
__dt__12GUSIGathererFv # GUSIGatherer::~GUSIGatherer() __dt__12GUSIGathererFv # GUSIGatherer::~GUSIGatherer()
write write
__dt__13GUSIScattererFv # GUSIScatterer::~GUSIScatterer()
read read
close close
fsync fsync
@ -1833,10 +1786,10 @@ listen__13GUSIPPCSocketFi # GUSIPPCSocket::listen(int)
connect__13GUSIPPCSocketFPvUi # GUSIPPCSocket::connect(void*,unsigned int) connect__13GUSIPPCSocketFPvUi # GUSIPPCSocket::connect(void*,unsigned int)
bind__13GUSIPPCSocketFPvUi # GUSIPPCSocket::bind(void*,unsigned int) bind__13GUSIPPCSocketFPvUi # GUSIPPCSocket::bind(void*,unsigned int)
__ct__13GUSIPPCSocketFv # GUSIPPCSocket::GUSIPPCSocket() __ct__13GUSIPPCSocketFv # GUSIPPCSocket::GUSIPPCSocket()
GUSIPPCDone__FP16PPCParamBlockRec # GUSIPPCDone(PPCParamBlockRec*) GUSIPPCDone
GUSIPPCListenDone__FP16PPCParamBlockRec # GUSIPPCListenDone(PPCParamBlockRec*) GUSIPPCListenDone
GUSIPPCRecvDone__FP16PPCParamBlockRec # GUSIPPCRecvDone(PPCParamBlockRec*) GUSIPPCRecvDone
GUSIPPCSendDone__FP16PPCParamBlockRec # GUSIPPCSendDone(PPCParamBlockRec*) GUSIPPCSendDone
SetupListener__13GUSIPPCSocketFRQ213GUSIPPCSocket8Listener # GUSIPPCSocket::SetupListener(GUSIPPCSocket::Listener&) SetupListener__13GUSIPPCSocketFRQ213GUSIPPCSocket8Listener # GUSIPPCSocket::SetupListener(GUSIPPCSocket::Listener&)
socket__14GUSIPPCFactoryFiii # GUSIPPCFactory::socket(int,int,int) socket__14GUSIPPCFactoryFiii # GUSIPPCFactory::socket(int,int,int)
GUSIwithPPCSockets GUSIwithPPCSockets
@ -2003,6 +1956,61 @@ GetBlocked__14GUSISigContextCFv # GUSISigContext::GetBlocked() const
CantBlock__14GUSISigContextFv # GUSISigContext::CantBlock() CantBlock__14GUSISigContextFv # GUSISigContext::CantBlock()
__dt__14GUSISigContextFv # GUSISigContext::~GUSISigContext() __dt__14GUSISigContextFv # GUSISigContext::~GUSISigContext()
__ct__14GUSISigContextFPC14GUSISigContext # GUSISigContext::GUSISigContext(const GUSISigContext*) __ct__14GUSISigContextFPC14GUSISigContext # GUSISigContext::GUSISigContext(const GUSISigContext*)
__vt__20GUSIOTDatagramSocket # GUSIOTDatagramSocket::__vt
__vt__18GUSIOTStreamSocket # GUSIOTStreamSocket::__vt
__vt__12GUSIOTSocket # GUSIOTSocket::__vt
__vt__14GUSIOTStrategy # GUSIOTStrategy::__vt
__vt__21GUSIOTDatagramFactory # GUSIOTDatagramFactory::__vt
__vt__19GUSIOTStreamFactory # GUSIOTStreamFactory::__vt
sOK__13GUSIOTFactory # GUSIOTFactory::sOK
select__20GUSIOTDatagramSocketFPbPbPb # GUSIOTDatagramSocket::select(bool*,bool*,bool*)
__dt__Q23std80auto_ptr<24GUSIOTAddr<9TUnitData,5>,Q23std35_Single<24GUSIOTAddr<9TUnitData,5>>>Fv # std::auto_ptr<GUSIOTAddr<TUnitData, 5>, std::_Single<GUSIOTAddr<TUnitData, 5>>>::~auto_ptr()
sendto__20GUSIOTDatagramSocketFRC12GUSIGathereriPCvUi # GUSIOTDatagramSocket::sendto(const GUSIGatherer&,int,const void*,unsigned int)
recvfrom__20GUSIOTDatagramSocketFRC13GUSIScattereriPvPUi # GUSIOTDatagramSocket::recvfrom(const GUSIScatterer&,int,void*,unsigned int*)
connect__20GUSIOTDatagramSocketFPvUi # GUSIOTDatagramSocket::connect(void*,unsigned int)
getpeername__20GUSIOTDatagramSocketFPvPUi # GUSIOTDatagramSocket::getpeername(void*,unsigned int*)
BindIfUnbound__20GUSIOTDatagramSocketFv # GUSIOTDatagramSocket::BindIfUnbound()
__dt__20GUSIOTDatagramSocketFv # GUSIOTDatagramSocket::~GUSIOTDatagramSocket()
Clone__20GUSIOTDatagramSocketFv # GUSIOTDatagramSocket::Clone()
__ct__20GUSIOTDatagramSocketFP14GUSIOTStrategy # GUSIOTDatagramSocket::GUSIOTDatagramSocket(GUSIOTStrategy*)
shutdown__18GUSIOTStreamSocketFi # GUSIOTStreamSocket::shutdown(int)
select__18GUSIOTStreamSocketFPbPbPb # GUSIOTStreamSocket::select(bool*,bool*,bool*)
sendto__18GUSIOTStreamSocketFRC12GUSIGathereriPCvUi # GUSIOTStreamSocket::sendto(const GUSIGatherer&,int,const void*,unsigned int)
__dt__Q210GUSISocket17AddContextInScopeFv # GUSISocket::AddContextInScope::~AddContextInScope()
recvfrom__18GUSIOTStreamSocketFRC13GUSIScattereriPvPUi # GUSIOTStreamSocket::recvfrom(const GUSIScatterer&,int,void*,unsigned int*)
connect__18GUSIOTStreamSocketFPvUi # GUSIOTStreamSocket::connect(void*,unsigned int)
accept__18GUSIOTStreamSocketFPvPUi # GUSIOTStreamSocket::accept(void*,unsigned int*)
getpeername__18GUSIOTStreamSocketFPvPUi # GUSIOTStreamSocket::getpeername(void*,unsigned int*)
listen__18GUSIOTStreamSocketFi # GUSIOTStreamSocket::listen(int)
MopupEvents__18GUSIOTStreamSocketFv # GUSIOTStreamSocket::MopupEvents()
Close__18GUSIOTStreamSocketFUl # GUSIOTStreamSocket::Close(unsigned long)
__dt__18GUSIOTStreamSocketFv # GUSIOTStreamSocket::~GUSIOTStreamSocket()
close__18GUSIOTStreamSocketFv # GUSIOTStreamSocket::close()
Clone__18GUSIOTStreamSocketFv # GUSIOTStreamSocket::Clone()
__ct__18GUSIOTStreamSocketFP14GUSIOTStrategy # GUSIOTStreamSocket::GUSIOTStreamSocket(GUSIOTStrategy*)
Supports__12GUSIOTSocketFQ210GUSISocket12ConfigOption # GUSIOTSocket::Supports(GUSISocket::ConfigOption)
setsockopt__12GUSIOTSocketFiiPvUi # GUSIOTSocket::setsockopt(int,int,void*,unsigned int)
getsockopt__12GUSIOTSocketFiiPvPUi # GUSIOTSocket::getsockopt(int,int,void*,unsigned int*)
pre_select__12GUSIOTSocketFbbb # GUSIOTSocket::pre_select(bool,bool,bool)
ioctl__12GUSIOTSocketFUiPc # GUSIOTSocket::ioctl(unsigned int,char*)
fcntl__12GUSIOTSocketFiPc # GUSIOTSocket::fcntl(int,char*)
shutdown__12GUSIOTSocketFi # GUSIOTSocket::shutdown(int)
getsockname__12GUSIOTSocketFPvPUi # GUSIOTSocket::getsockname(void*,unsigned int*)
Unbind__12GUSIOTSocketFv # GUSIOTSocket::Unbind()
BindToAddress__12GUSIOTSocketFP20GUSIOTAddr<5TBind,1> # GUSIOTSocket::BindToAddress(GUSIOTAddr<TBind, 1>*)
bind__12GUSIOTSocketFPvUi # GUSIOTSocket::bind(void*,unsigned int)
__dt__12GUSIOTSocketFv # GUSIOTSocket::~GUSIOTSocket()
close__12GUSIOTSocketFv # GUSIOTSocket::close()
__ct__12GUSIOTSocketFP14GUSIOTStrategy # GUSIOTSocket::GUSIOTSocket(GUSIOTStrategy*)
__dt__Q212GUSIOTSocket4LockFv # GUSIOTSocket::Lock::~Lock()
MopupEvents__12GUSIOTSocketFv # GUSIOTSocket::MopupEvents()
CopyAddress__14GUSIOTStrategyFRC7TNetbufR7TNetbuf # GUSIOTStrategy::CopyAddress(const TNetbuf&,TNetbuf&)
__dt__14GUSIOTStrategyFv # GUSIOTStrategy::~GUSIOTStrategy()
CreateConfiguration__14GUSIOTStrategyFv # GUSIOTStrategy::CreateConfiguration()
socket__21GUSIOTDatagramFactoryFiii # GUSIOTDatagramFactory::socket(int,int,int)
socket__19GUSIOTStreamFactoryFiii # GUSIOTStreamFactory::socket(int,int,int)
Initialize__13GUSIOTFactoryFv # GUSIOTFactory::Initialize()
GUSIOTNotify
atan atan
atan2 atan2
memmove memmove
@ -2106,6 +2114,7 @@ set_new_handler__3stdFPFv_v # std::set_new_handler(void (*)(void))
__throw_bad_alloc__3stdFv # std::__throw_bad_alloc() __throw_bad_alloc__3stdFv # std::__throw_bad_alloc()
__dt__Q23std9bad_allocFv # std::bad_alloc::~bad_alloc() __dt__Q23std9bad_allocFv # std::bad_alloc::~bad_alloc()
qd qd
exit
__console_exit __console_exit
__stdio_exit __stdio_exit
__aborting __aborting

Binary file not shown.

View file

@ -313,6 +313,7 @@ PyNumber_Or
PyNumber_Check PyNumber_Check
PyObject_AsWriteBuffer PyObject_AsWriteBuffer
PyObject_AsReadBuffer PyObject_AsReadBuffer
PyObject_CheckReadBuffer
PyObject_AsCharBuffer PyObject_AsCharBuffer
PyObject_DelItem PyObject_DelItem
PyObject_SetItem PyObject_SetItem
@ -1077,7 +1078,6 @@ PyStructSequence_New
GUSISetupConsoleStdio GUSISetupConsoleStdio
GUSIStdioFlush GUSIStdioFlush
GUSIStdioClose GUSIStdioClose
_fdopen
__close_console __close_console
__close_file __close_file
__position_file __position_file
@ -1146,6 +1146,7 @@ __vt__18GUSIContextFactory # GUSIContextFactory::__vt
__vt__11GUSIContext # GUSIContext::__vt __vt__11GUSIContext # GUSIContext::__vt
sError__11GUSIContext # GUSIContext::sError sError__11GUSIContext # GUSIContext::sError
sHasThreading__11GUSIContext # GUSIContext::sHasThreading sHasThreading__11GUSIContext # GUSIContext::sHasThreading
sCreatingCurrentContext__11GUSIContext # GUSIContext::sCreatingCurrentContext
sCurrentContext__11GUSIContext # GUSIContext::sCurrentContext sCurrentContext__11GUSIContext # GUSIContext::sCurrentContext
sContexts__11GUSIContext # GUSIContext::sContexts sContexts__11GUSIContext # GUSIContext::sContexts
sInstance__11GUSIProcess # GUSIProcess::sInstance sInstance__11GUSIProcess # GUSIProcess::sInstance
@ -1154,9 +1155,9 @@ MakeInstance__22GUSIThreadManagerProxyFv # GUSIThreadManagerProxy::MakeInstance
__dt__22GUSIThreadManagerProxyFv # GUSIThreadManagerProxy::~GUSIThreadManagerProxy() __dt__22GUSIThreadManagerProxyFv # GUSIThreadManagerProxy::~GUSIThreadManagerProxy()
__dt__Q23std76auto_ptr<22GUSIThreadManagerProxy,Q23std33_Single<22GUSIThreadManagerProxy>>Fv # std::auto_ptr<GUSIThreadManagerProxy, std::_Single<GUSIThreadManagerProxy>>::~auto_ptr() __dt__Q23std76auto_ptr<22GUSIThreadManagerProxy,Q23std33_Single<22GUSIThreadManagerProxy>>Fv # std::auto_ptr<GUSIThreadManagerProxy, std::_Single<GUSIThreadManagerProxy>>::~auto_ptr()
Instance__22GUSIThreadManagerProxyFv # GUSIThreadManagerProxy::Instance() Instance__22GUSIThreadManagerProxyFv # GUSIThreadManagerProxy::Instance()
SetThreadTerminator__22GUSIThreadManagerProxyFUlPFUlPv_vPv # GUSIThreadManagerProxy::SetThreadTerminator(unsigned long,void (*)(unsigned long, void*),void*) SetThreadTerminator__22GUSIThreadManagerProxyFUlP30OpaqueThreadTerminationProcPtrPv # GUSIThreadManagerProxy::SetThreadTerminator(unsigned long,OpaqueThreadTerminationProcPtr*,void*)
SetThreadSwitcher__22GUSIThreadManagerProxyFUlPFUlPv_vPvUc # GUSIThreadManagerProxy::SetThreadSwitcher(unsigned long,void (*)(unsigned long, void*),void*,unsigned char) SetThreadSwitcher__22GUSIThreadManagerProxyFUlP25OpaqueThreadSwitchProcPtrPvUc # GUSIThreadManagerProxy::SetThreadSwitcher(unsigned long,OpaqueThreadSwitchProcPtr*,void*,unsigned char)
NewThread__22GUSIThreadManagerProxyFUlPFPv_PvPvlUlPPvPUl # GUSIThreadManagerProxy::NewThread(unsigned long,void* (*)(void*),void*,long,unsigned long,void**,unsigned long*) NewThread__22GUSIThreadManagerProxyFUlP24OpaqueThreadEntryProcPtrPvlUlPPvPUl # GUSIThreadManagerProxy::NewThread(unsigned long,OpaqueThreadEntryProcPtr*,void*,long,unsigned long,void**,unsigned long*)
GUSIControl__FP7IOParam # GUSIControl(IOParam*) GUSIControl__FP7IOParam # GUSIControl(IOParam*)
GUSIFinishIO__FP7IOParam # GUSIFinishIO(IOParam*) GUSIFinishIO__FP7IOParam # GUSIFinishIO(IOParam*)
GUSIStartIO__FP7IOParam # GUSIStartIO(IOParam*) GUSIStartIO__FP7IOParam # GUSIStartIO(IOParam*)
@ -1171,18 +1172,19 @@ Done__11GUSIContextFb # GUSIContext::Done(bool)
Terminate__11GUSIContextFv # GUSIContext::Terminate() Terminate__11GUSIContextFv # GUSIContext::Terminate()
SwitchOut__11GUSIContextFv # GUSIContext::SwitchOut() SwitchOut__11GUSIContextFv # GUSIContext::SwitchOut()
SwitchIn__11GUSIContextFv # GUSIContext::SwitchIn() SwitchIn__11GUSIContextFv # GUSIContext::SwitchIn()
SetTerminator__11GUSIContextFPFUlPv_vPv # GUSIContext::SetTerminator(void (*)(unsigned long, void*),void*) SetTerminator__11GUSIContextFP30OpaqueThreadTerminationProcPtrPv # GUSIContext::SetTerminator(OpaqueThreadTerminationProcPtr*,void*)
GUSISetThreadTerminator GUSISetThreadTerminator
SetSwitchOut__11GUSIContextFPFUlPv_vPv # GUSIContext::SetSwitchOut(void (*)(unsigned long, void*),void*) SetSwitchOut__11GUSIContextFP25OpaqueThreadSwitchProcPtrPv # GUSIContext::SetSwitchOut(OpaqueThreadSwitchProcPtr*,void*)
SetSwitchIn__11GUSIContextFPFUlPv_vPv # GUSIContext::SetSwitchIn(void (*)(unsigned long, void*),void*) SetSwitchIn__11GUSIContextFP25OpaqueThreadSwitchProcPtrPv # GUSIContext::SetSwitchIn(OpaqueThreadSwitchProcPtr*,void*)
GUSISetThreadSwitcher GUSISetThreadSwitcher
CreateContext__18GUSIContextFactoryFUl # GUSIContextFactory::CreateContext(unsigned long) CreateContext__18GUSIContextFactoryFUl # GUSIContextFactory::CreateContext(unsigned long)
CreateContext__18GUSIContextFactoryFPFPv_PvPvlUlPPvPUl # GUSIContextFactory::CreateContext(void* (*)(void*),void*,long,unsigned long,void**,unsigned long*) CreateContext__18GUSIContextFactoryFP24OpaqueThreadEntryProcPtrPvlUlPPvPUl # GUSIContextFactory::CreateContext(OpaqueThreadEntryProcPtr*,void*,long,unsigned long,void**,unsigned long*)
__dt__18GUSIContextFactoryFv # GUSIContextFactory::~GUSIContextFactory() __dt__18GUSIContextFactoryFv # GUSIContextFactory::~GUSIContextFactory()
__ct__18GUSIContextFactoryFv # GUSIContextFactory::GUSIContextFactory() __ct__18GUSIContextFactoryFv # GUSIContextFactory::GUSIContextFactory()
__dt__Q23std68auto_ptr<18GUSIContextFactory,Q23std29_Single<18GUSIContextFactory>>Fv # std::auto_ptr<GUSIContextFactory, std::_Single<GUSIContextFactory>>::~auto_ptr() DeleteInstance__18GUSIContextFactoryFv # GUSIContextFactory::DeleteInstance()
SetInstance__18GUSIContextFactoryFP18GUSIContextFactory # GUSIContextFactory::SetInstance(GUSIContextFactory*) SetInstance__18GUSIContextFactoryFP18GUSIContextFactory # GUSIContextFactory::SetInstance(GUSIContextFactory*)
Instance__18GUSIContextFactoryFv # GUSIContextFactory::Instance() Instance__18GUSIContextFactoryFv # GUSIContextFactory::Instance()
GUSISetupContextFactory
GUSINewThread GUSINewThread
Wakeup__11GUSIProcessFv # GUSIProcess::Wakeup() Wakeup__11GUSIProcessFv # GUSIProcess::Wakeup()
Wakeup__11GUSIContextFv # GUSIContext::Wakeup() Wakeup__11GUSIContextFv # GUSIContext::Wakeup()
@ -1190,7 +1192,7 @@ Liquidate__11GUSIContextFv # GUSIContext::Liquidate()
LiquidateAll__Q211GUSIContext5QueueFv # GUSIContext::Queue::LiquidateAll() LiquidateAll__Q211GUSIContext5QueueFv # GUSIContext::Queue::LiquidateAll()
__dt__11GUSIContextFv # GUSIContext::~GUSIContext() __dt__11GUSIContextFv # GUSIContext::~GUSIContext()
Lookup__11GUSIContextFUl # GUSIContext::Lookup(unsigned long) Lookup__11GUSIContextFUl # GUSIContext::Lookup(unsigned long)
__ct__11GUSIContextFPFPv_PvPvlUlPPvPUl # GUSIContext::GUSIContext(void* (*)(void*),void*,long,unsigned long,void**,unsigned long*) __ct__11GUSIContextFP24OpaqueThreadEntryProcPtrPvlUlPPvPUl # GUSIContext::GUSIContext(OpaqueThreadEntryProcPtr*,void*,long,unsigned long,void**,unsigned long*)
__ct__11GUSIContextFUl # GUSIContext::GUSIContext(unsigned long) __ct__11GUSIContextFUl # GUSIContext::GUSIContext(unsigned long)
FinishSetup__11GUSIContextFv # GUSIContext::FinishSetup() FinishSetup__11GUSIContextFv # GUSIContext::FinishSetup()
GUSIThreadTerminator GUSIThreadTerminator
@ -1231,6 +1233,9 @@ __dt__19GUSIDescriptorTableFv # GUSIDescriptorTable::~GUSIDescriptorTable()
CloseAllDescriptors__19GUSIDescriptorTableFv # GUSIDescriptorTable::CloseAllDescriptors() CloseAllDescriptors__19GUSIDescriptorTableFv # GUSIDescriptorTable::CloseAllDescriptors()
SetInstance__19GUSIDescriptorTableFP19GUSIDescriptorTable # GUSIDescriptorTable::SetInstance(GUSIDescriptorTable*) SetInstance__19GUSIDescriptorTableFP19GUSIDescriptorTable # GUSIDescriptorTable::SetInstance(GUSIDescriptorTable*)
Instance__19GUSIDescriptorTableFv # GUSIDescriptorTable::Instance() Instance__19GUSIDescriptorTableFv # GUSIDescriptorTable::Instance()
GUSISetupDescriptorTable
__ct__10GUSIDeviceFv # GUSIDevice::GUSIDevice()
__ct__14GUSINullDeviceFv # GUSINullDevice::GUSINullDevice()
Instance__14GUSINullDeviceFv # GUSINullDevice::Instance() Instance__14GUSINullDeviceFv # GUSINullDevice::Instance()
GUSIDefaultSetupConsole GUSIDefaultSetupConsole
GUSISetupConsole GUSISetupConsole
@ -1360,6 +1365,7 @@ __ct__12GUSIFileSpecFRC6FSSpecb # GUSIFileSpec::GUSIFileSpec(const FSSpec&,bool
__ct__12GUSIFileSpecFRC12GUSIFileSpec # GUSIFileSpec::GUSIFileSpec(const GUSIFileSpec&) __ct__12GUSIFileSpecFRC12GUSIFileSpec # GUSIFileSpec::GUSIFileSpec(const GUSIFileSpec&)
CScratch__12GUSIFileSpecFb # GUSIFileSpec::CScratch(bool) CScratch__12GUSIFileSpecFb # GUSIFileSpec::CScratch(bool)
ReadHex__FPCciPc # ReadHex(const char*,int,char*) ReadHex__FPCciPc # ReadHex(const char*,int,char*)
GUSIFSXGetVolInfo__FP31GUSIIOPBWrapper<12XVolumeParam> # GUSIFSXGetVolInfo(GUSIIOPBWrapper<XVolumeParam>*)
GUSIFSMoveRename GUSIFSMoveRename
GUSIFSCatMove GUSIFSCatMove
GUSIFSCatMove__FPC6FSSpecl # GUSIFSCatMove(const FSSpec*,long) GUSIFSCatMove__FPC6FSSpecl # GUSIFSCatMove(const FSSpec*,long)
@ -1521,7 +1527,7 @@ GUSIwithLocalSockets
__vt__12GUSIGatherer # GUSIGatherer::__vt __vt__12GUSIGatherer # GUSIGatherer::__vt
__vt__13GUSIScatterer # GUSIScatterer::__vt __vt__13GUSIScatterer # GUSIScatterer::__vt
get__40GUSISpecificData<Q23std2tm,&.GUSIKillTM>FP17GUSISpecificTable # GUSISpecificData<std::tm, &.GUSIKillTM>::get(GUSISpecificTable*) get__40GUSISpecificData<Q23std2tm,&.GUSIKillTM>FP17GUSISpecificTable # GUSISpecificData<std::tm, &.GUSIKillTM>::get(GUSISpecificTable*)
faccess__FPCcPUiPv # faccess(const char*,unsigned int*,void*) faccess
fsetfileinfo fsetfileinfo
fgetfileinfo fgetfileinfo
getservent getservent
@ -1811,6 +1817,7 @@ __ct__18GUSIOTStreamSocketFP14GUSIOTStrategy # GUSIOTStreamSocket::GUSIOTStream
Supports__12GUSIOTSocketFQ210GUSISocket12ConfigOption # GUSIOTSocket::Supports(GUSISocket::ConfigOption) Supports__12GUSIOTSocketFQ210GUSISocket12ConfigOption # GUSIOTSocket::Supports(GUSISocket::ConfigOption)
setsockopt__12GUSIOTSocketFiiPvUi # GUSIOTSocket::setsockopt(int,int,void*,unsigned int) setsockopt__12GUSIOTSocketFiiPvUi # GUSIOTSocket::setsockopt(int,int,void*,unsigned int)
getsockopt__12GUSIOTSocketFiiPvPUi # GUSIOTSocket::getsockopt(int,int,void*,unsigned int*) getsockopt__12GUSIOTSocketFiiPvPUi # GUSIOTSocket::getsockopt(int,int,void*,unsigned int*)
pre_select__12GUSIOTSocketFbbb # GUSIOTSocket::pre_select(bool,bool,bool)
ioctl__12GUSIOTSocketFUiPc # GUSIOTSocket::ioctl(unsigned int,char*) ioctl__12GUSIOTSocketFUiPc # GUSIOTSocket::ioctl(unsigned int,char*)
fcntl__12GUSIOTSocketFiPc # GUSIOTSocket::fcntl(int,char*) fcntl__12GUSIOTSocketFiPc # GUSIOTSocket::fcntl(int,char*)
shutdown__12GUSIOTSocketFi # GUSIOTSocket::shutdown(int) shutdown__12GUSIOTSocketFi # GUSIOTSocket::shutdown(int)
@ -2223,6 +2230,7 @@ _umask
_ftype _ftype
_fcreator _fcreator
_chmod _chmod
_fdopen
__gettype __gettype
__getcreator __getcreator
__ctopstring __ctopstring

Binary file not shown.

Binary file not shown.

View file

@ -6,6 +6,7 @@
*.hqx *.hqx
*.idb *.idb
*.pyc *.pyc
*.pyo
*.slb *.slb
*.xMAP *.xMAP
*.xSYM *.xSYM
@ -16,4 +17,3 @@
@* @*
CVS CVS
[(]*[)] [(]*[)]
*.pyo

View file

@ -223,6 +223,12 @@
(':Mac:Build:_Win.mcp.xml', None) (':Mac:Build:_Win.mcp.xml', None)
(':Mac:Build:_dummy_tkinter.mcp', None) (':Mac:Build:_dummy_tkinter.mcp', None)
(':Mac:Build:_dummy_tkinter.mcp.exp', None) (':Mac:Build:_dummy_tkinter.mcp.exp', None)
(':Mac:Build:_hotshot.carbon.mcp', None)
(':Mac:Build:_hotshot.carbon.mcp.exp', None)
(':Mac:Build:_hotshot.carbon.mcp.xml', None)
(':Mac:Build:_hotshot.mcp', None)
(':Mac:Build:_hotshot.mcp.exp', None)
(':Mac:Build:_hotshot.mcp.xml', None)
(':Mac:Build:_symtable.carbon.mcp', None) (':Mac:Build:_symtable.carbon.mcp', None)
(':Mac:Build:_symtable.carbon.mcp.exp', None) (':Mac:Build:_symtable.carbon.mcp.exp', None)
(':Mac:Build:_symtable.carbon.mcp.xml', None) (':Mac:Build:_symtable.carbon.mcp.xml', None)
@ -423,6 +429,7 @@
(':Modules:_codecsmodule.c', None) (':Modules:_codecsmodule.c', None)
(':Modules:_curses_panel.c', None) (':Modules:_curses_panel.c', None)
(':Modules:_cursesmodule.c', None) (':Modules:_cursesmodule.c', None)
(':Modules:_hotshot.c', None)
(':Modules:_localemodule.c', None) (':Modules:_localemodule.c', None)
(':Modules:_sre.c', None) (':Modules:_sre.c', None)
(':Modules:_testcapimodule.c', None) (':Modules:_testcapimodule.c', None)
@ -589,10 +596,7 @@
(':readmefiles', None) (':readmefiles', None)
(':setup.py', None) (':setup.py', None)
(':site-packages', None) (':site-packages', None)
(':Mac:Build:_hotshot.mcp.xml', None) (':Mac:Build:hfsplus.carbon.mcp.xml', None)
(':Mac:Build:_hotshot.mcp.exp', None) (':Mac:Build:hfsplus.carbon.mcp.exp', None)
(':Mac:Build:_hotshot.mcp', None) (':Mac:Build:hfsplus.carbon.mcp', None)
(':Mac:Build:_hotshot.carbon.mcp.xml', None) (':Mac:mwerks:mwerks_shlib_config.h', '')
(':Mac:Build:_hotshot.carbon.mcp.exp', None)
(':Mac:Build:_hotshot.carbon.mcp', None)
(':Modules:_hotshot.c', None)

View file

@ -1 +1 @@
#define BUILD 111 #define BUILD 116

View file

@ -18,6 +18,10 @@ def mkproject(outputfile, modulename, settings, force=0, templatename=None):
dictcopy['mac_exportname'] = os.path.split(outputfile)[1] + '.exp' dictcopy['mac_exportname'] = os.path.split(outputfile)[1] + '.exp'
if not dictcopy.has_key('mac_outputdir'): if not dictcopy.has_key('mac_outputdir'):
dictcopy['mac_outputdir'] = ':lib:' dictcopy['mac_outputdir'] = ':lib:'
if not dictcopy.has_key('stdlibraryflags'):
dictcopy['stdlibraryflags'] = 'Debug'
if not dictcopy.has_key('libraryflags'):
dictcopy['libraryflags'] = 'Debug'
if not dictcopy.has_key('mac_dllname'): if not dictcopy.has_key('mac_dllname'):
dictcopy['mac_dllname'] = modulename + '.ppc.slb' dictcopy['mac_dllname'] = modulename + '.ppc.slb'
if not dictcopy.has_key('mac_targetname'): if not dictcopy.has_key('mac_targetname'):

View file

@ -3,5 +3,5 @@
<PATH>%(libraries)s</PATH> <PATH>%(libraries)s</PATH>
<PATHFORMAT>MacOS</PATHFORMAT> <PATHFORMAT>MacOS</PATHFORMAT>
<FILEKIND>Library</FILEKIND> <FILEKIND>Library</FILEKIND>
<FILEFLAGS>Debug</FILEFLAGS> <FILEFLAGS>%(libraryflags)s</FILEFLAGS>
</FILE> </FILE>

View file

@ -101,7 +101,7 @@
<SETTING><NAME>SystemSearchPaths</NAME> <SETTING><NAME>SystemSearchPaths</NAME>
<SETTING> <SETTING>
<SETTING><NAME>SearchPath</NAME> <SETTING><NAME>SearchPath</NAME>
<SETTING><NAME>Path</NAME><VALUE>%(sysprefix)s:GUSI2Carbon:include:</VALUE></SETTING> <SETTING><NAME>Path</NAME><VALUE>%(sysprefix)s:GUSI2:include:</VALUE></SETTING>
<SETTING><NAME>PathFormat</NAME><VALUE>MacOS</VALUE></SETTING> <SETTING><NAME>PathFormat</NAME><VALUE>MacOS</VALUE></SETTING>
<SETTING><NAME>PathRoot</NAME><VALUE>%(mac_sysprefixtype)s</VALUE></SETTING> <SETTING><NAME>PathRoot</NAME><VALUE>%(mac_sysprefixtype)s</VALUE></SETTING>
</SETTING> </SETTING>
@ -975,19 +975,12 @@
<FILEKIND>Library</FILEKIND> <FILEKIND>Library</FILEKIND>
<FILEFLAGS></FILEFLAGS> <FILEFLAGS></FILEFLAGS>
</FILE> </FILE>
<FILE>
<PATHTYPE>Name</PATHTYPE>
<PATH>MSL C.Carbon.Lib</PATH>
<PATHFORMAT>MacOS</PATHFORMAT>
<FILEKIND>Library</FILEKIND>
<FILEFLAGS></FILEFLAGS>
</FILE>
<FILE> <FILE>
<PATHTYPE>Name</PATHTYPE> <PATHTYPE>Name</PATHTYPE>
<PATH>CarbonLib</PATH> <PATH>CarbonLib</PATH>
<PATHFORMAT>MacOS</PATHFORMAT> <PATHFORMAT>MacOS</PATHFORMAT>
<FILEKIND>Library</FILEKIND> <FILEKIND>Library</FILEKIND>
<FILEFLAGS></FILEFLAGS> <FILEFLAGS>%(stdlibraryflags)s</FILEFLAGS>
</FILE> </FILE>
</FILELIST> </FILELIST>
<LINKORDER> <LINKORDER>
@ -1013,11 +1006,6 @@
<PATH>PythonCoreCarbon</PATH> <PATH>PythonCoreCarbon</PATH>
<PATHFORMAT>MacOS</PATHFORMAT> <PATHFORMAT>MacOS</PATHFORMAT>
</FILEREF> </FILEREF>
<FILEREF>
<PATHTYPE>Name</PATHTYPE>
<PATH>MSL C.Carbon.Lib</PATH>
<PATHFORMAT>MacOS</PATHFORMAT>
</FILEREF>
</LINKORDER> </LINKORDER>
</TARGET> </TARGET>
</TARGETLIST> </TARGETLIST>
@ -1050,12 +1038,6 @@
<PATH>PythonCoreCarbon</PATH> <PATH>PythonCoreCarbon</PATH>
<PATHFORMAT>MacOS</PATHFORMAT> <PATHFORMAT>MacOS</PATHFORMAT>
</FILEREF> </FILEREF>
<FILEREF>
<TARGETNAME>%(mac_targetname)s</TARGETNAME>
<PATHTYPE>Name</PATHTYPE>
<PATH>MSL C.Carbon.Lib</PATH>
<PATHFORMAT>MacOS</PATHFORMAT>
</FILEREF>
<FILEREF> <FILEREF>
<TARGETNAME>%(mac_targetname)s</TARGETNAME> <TARGETNAME>%(mac_targetname)s</TARGETNAME>
<PATHTYPE>Name</PATHTYPE> <PATHTYPE>Name</PATHTYPE>

View file

@ -3,5 +3,5 @@
<PATH>%(libraries)s</PATH> <PATH>%(libraries)s</PATH>
<PATHFORMAT>MacOS</PATHFORMAT> <PATHFORMAT>MacOS</PATHFORMAT>
<FILEKIND>Library</FILEKIND> <FILEKIND>Library</FILEKIND>
<FILEFLAGS>Debug</FILEFLAGS> <FILEFLAGS>%(libraryflags)s</FILEFLAGS>
</FILE> </FILE>

View file

@ -710,13 +710,6 @@
<FILEKIND>Library</FILEKIND> <FILEKIND>Library</FILEKIND>
<FILEFLAGS>Debug</FILEFLAGS> <FILEFLAGS>Debug</FILEFLAGS>
</FILE> </FILE>
<FILE>
<PATHTYPE>Name</PATHTYPE>
<PATH>MSL C.PPC.Lib</PATH>
<PATHFORMAT>MacOS</PATHFORMAT>
<FILEKIND>Library</FILEKIND>
<FILEFLAGS>Debug</FILEFLAGS>
</FILE>
<FILE> <FILE>
<PATHTYPE>Name</PATHTYPE> <PATHTYPE>Name</PATHTYPE>
<PATH>MathLib</PATH> <PATH>MathLib</PATH>
@ -729,7 +722,7 @@
<PATH>InterfaceLib</PATH> <PATH>InterfaceLib</PATH>
<PATHFORMAT>MacOS</PATHFORMAT> <PATHFORMAT>MacOS</PATHFORMAT>
<FILEKIND>Library</FILEKIND> <FILEKIND>Library</FILEKIND>
<FILEFLAGS>Debug</FILEFLAGS> <FILEFLAGS>%(stdlibraryflags)s</FILEFLAGS>
</FILE> </FILE>
</FILELIST> </FILELIST>
<LINKORDER> <LINKORDER>
@ -750,11 +743,6 @@
<PATH>PythonCore</PATH> <PATH>PythonCore</PATH>
<PATHFORMAT>MacOS</PATHFORMAT> <PATHFORMAT>MacOS</PATHFORMAT>
</FILEREF> </FILEREF>
<FILEREF>
<PATHTYPE>Name</PATHTYPE>
<PATH>MSL C.PPC.Lib</PATH>
<PATHFORMAT>MacOS</PATHFORMAT>
</FILEREF>
<FILEREF> <FILEREF>
<PATHTYPE>Name</PATHTYPE> <PATHTYPE>Name</PATHTYPE>
<PATH>MathLib</PATH> <PATH>MathLib</PATH>
@ -797,12 +785,6 @@
<PATH>PythonCore</PATH> <PATH>PythonCore</PATH>
<PATHFORMAT>MacOS</PATHFORMAT> <PATHFORMAT>MacOS</PATHFORMAT>
</FILEREF> </FILEREF>
<FILEREF>
<TARGETNAME>%(mac_targetname)s</TARGETNAME>
<PATHTYPE>Name</PATHTYPE>
<PATH>MSL C.PPC.Lib</PATH>
<PATHFORMAT>MacOS</PATHFORMAT>
</FILEREF>
<FILEREF> <FILEREF>
<TARGETNAME>%(mac_targetname)s</TARGETNAME> <TARGETNAME>%(mac_targetname)s</TARGETNAME>
<PATHTYPE>Name</PATHTYPE> <PATHTYPE>Name</PATHTYPE>

View file

@ -5,12 +5,8 @@
#ifdef _WIN32
#include "pywintoolbox.h"
#else
#include "macglue.h" #include "macglue.h"
#include "pymactoolbox.h" #include "pymactoolbox.h"
#endif
/* Macro to test whether a weak-loaded CFM function exists */ /* Macro to test whether a weak-loaded CFM function exists */
#define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\ #define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\
@ -784,7 +780,7 @@ static PyObject *AEDesc_getattr(AEDescObject *self, char *name)
#define AEDesc_hash NULL #define AEDesc_hash NULL
PyTypeObject AEDesc_Type = { PyTypeObject AEDesc_Type = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"AEDesc", /*tp_name*/ "AEDesc", /*tp_name*/
sizeof(AEDescObject), /*tp_basicsize*/ sizeof(AEDescObject), /*tp_basicsize*/

View file

@ -5,12 +5,8 @@
#ifdef _WIN32
#include "pywintoolbox.h"
#else
#include "macglue.h" #include "macglue.h"
#include "pymactoolbox.h" #include "pymactoolbox.h"
#endif
/* Macro to test whether a weak-loaded CFM function exists */ /* Macro to test whether a weak-loaded CFM function exists */
#define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\ #define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\

View file

@ -5,12 +5,8 @@
#ifdef _WIN32
#include "pywintoolbox.h"
#else
#include "macglue.h" #include "macglue.h"
#include "pymactoolbox.h" #include "pymactoolbox.h"
#endif
/* Macro to test whether a weak-loaded CFM function exists */ /* Macro to test whether a weak-loaded CFM function exists */
#define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\ #define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\
@ -170,7 +166,9 @@ static PyObject *CFTypeRefObj_CFGetTypeID(CFTypeRefObject *_self, PyObject *_arg
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFTypeID _rv; CFTypeID _rv;
#ifndef CFGetTypeID
PyMac_PRECHECK(CFGetTypeID); PyMac_PRECHECK(CFGetTypeID);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = CFGetTypeID(_self->ob_itself); _rv = CFGetTypeID(_self->ob_itself);
@ -183,7 +181,9 @@ static PyObject *CFTypeRefObj_CFRetain(CFTypeRefObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFTypeRef _rv; CFTypeRef _rv;
#ifndef CFRetain
PyMac_PRECHECK(CFRetain); PyMac_PRECHECK(CFRetain);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = CFRetain(_self->ob_itself); _rv = CFRetain(_self->ob_itself);
@ -195,7 +195,9 @@ static PyObject *CFTypeRefObj_CFRetain(CFTypeRefObject *_self, PyObject *_args)
static PyObject *CFTypeRefObj_CFRelease(CFTypeRefObject *_self, PyObject *_args) static PyObject *CFTypeRefObj_CFRelease(CFTypeRefObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
#ifndef CFRelease
PyMac_PRECHECK(CFRelease); PyMac_PRECHECK(CFRelease);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
CFRelease(_self->ob_itself); CFRelease(_self->ob_itself);
@ -208,7 +210,9 @@ static PyObject *CFTypeRefObj_CFGetRetainCount(CFTypeRefObject *_self, PyObject
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFIndex _rv; CFIndex _rv;
#ifndef CFGetRetainCount
PyMac_PRECHECK(CFGetRetainCount); PyMac_PRECHECK(CFGetRetainCount);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = CFGetRetainCount(_self->ob_itself); _rv = CFGetRetainCount(_self->ob_itself);
@ -222,7 +226,9 @@ static PyObject *CFTypeRefObj_CFEqual(CFTypeRefObject *_self, PyObject *_args)
PyObject *_res = NULL; PyObject *_res = NULL;
Boolean _rv; Boolean _rv;
CFTypeRef cf2; CFTypeRef cf2;
#ifndef CFEqual
PyMac_PRECHECK(CFEqual); PyMac_PRECHECK(CFEqual);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
CFTypeRefObj_Convert, &cf2)) CFTypeRefObj_Convert, &cf2))
return NULL; return NULL;
@ -237,7 +243,9 @@ static PyObject *CFTypeRefObj_CFHash(CFTypeRefObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFHashCode _rv; CFHashCode _rv;
#ifndef CFHash
PyMac_PRECHECK(CFHash); PyMac_PRECHECK(CFHash);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = CFHash(_self->ob_itself); _rv = CFHash(_self->ob_itself);
@ -250,7 +258,9 @@ static PyObject *CFTypeRefObj_CFCopyDescription(CFTypeRefObject *_self, PyObject
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFStringRef _rv; CFStringRef _rv;
#ifndef CFCopyDescription
PyMac_PRECHECK(CFCopyDescription); PyMac_PRECHECK(CFCopyDescription);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = CFCopyDescription(_self->ob_itself); _rv = CFCopyDescription(_self->ob_itself);
@ -262,7 +272,9 @@ static PyObject *CFTypeRefObj_CFCopyDescription(CFTypeRefObject *_self, PyObject
static PyObject *CFTypeRefObj_CFShow(CFTypeRefObject *_self, PyObject *_args) static PyObject *CFTypeRefObj_CFShow(CFTypeRefObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
#ifndef CFShow
PyMac_PRECHECK(CFShow); PyMac_PRECHECK(CFShow);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
CFShow(_self->ob_itself); CFShow(_self->ob_itself);
@ -322,7 +334,7 @@ static int CFTypeRefObj_hash(CFTypeRefObject *self)
} }
PyTypeObject CFTypeRef_Type = { PyTypeObject CFTypeRef_Type = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"CFTypeRef", /*tp_name*/ "CFTypeRef", /*tp_name*/
sizeof(CFTypeRefObject), /*tp_basicsize*/ sizeof(CFTypeRefObject), /*tp_basicsize*/
@ -406,7 +418,9 @@ static PyObject *CFArrayRefObj_CFArrayGetCount(CFArrayRefObject *_self, PyObject
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFIndex _rv; CFIndex _rv;
#ifndef CFArrayGetCount
PyMac_PRECHECK(CFArrayGetCount); PyMac_PRECHECK(CFArrayGetCount);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = CFArrayGetCount(_self->ob_itself); _rv = CFArrayGetCount(_self->ob_itself);
@ -472,7 +486,7 @@ static int CFArrayRefObj_hash(CFArrayRefObject *self)
} }
PyTypeObject CFArrayRef_Type = { PyTypeObject CFArrayRef_Type = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"CFArrayRef", /*tp_name*/ "CFArrayRef", /*tp_name*/
sizeof(CFArrayRefObject), /*tp_basicsize*/ sizeof(CFArrayRefObject), /*tp_basicsize*/
@ -543,7 +557,9 @@ static PyObject *CFMutableArrayRefObj_CFArrayRemoveValueAtIndex(CFMutableArrayRe
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFIndex idx; CFIndex idx;
#ifndef CFArrayRemoveValueAtIndex
PyMac_PRECHECK(CFArrayRemoveValueAtIndex); PyMac_PRECHECK(CFArrayRemoveValueAtIndex);
#endif
if (!PyArg_ParseTuple(_args, "l", if (!PyArg_ParseTuple(_args, "l",
&idx)) &idx))
return NULL; return NULL;
@ -557,7 +573,9 @@ static PyObject *CFMutableArrayRefObj_CFArrayRemoveValueAtIndex(CFMutableArrayRe
static PyObject *CFMutableArrayRefObj_CFArrayRemoveAllValues(CFMutableArrayRefObject *_self, PyObject *_args) static PyObject *CFMutableArrayRefObj_CFArrayRemoveAllValues(CFMutableArrayRefObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
#ifndef CFArrayRemoveAllValues
PyMac_PRECHECK(CFArrayRemoveAllValues); PyMac_PRECHECK(CFArrayRemoveAllValues);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
CFArrayRemoveAllValues(_self->ob_itself); CFArrayRemoveAllValues(_self->ob_itself);
@ -571,7 +589,9 @@ static PyObject *CFMutableArrayRefObj_CFArrayExchangeValuesAtIndices(CFMutableAr
PyObject *_res = NULL; PyObject *_res = NULL;
CFIndex idx1; CFIndex idx1;
CFIndex idx2; CFIndex idx2;
#ifndef CFArrayExchangeValuesAtIndices
PyMac_PRECHECK(CFArrayExchangeValuesAtIndices); PyMac_PRECHECK(CFArrayExchangeValuesAtIndices);
#endif
if (!PyArg_ParseTuple(_args, "ll", if (!PyArg_ParseTuple(_args, "ll",
&idx1, &idx1,
&idx2)) &idx2))
@ -625,7 +645,7 @@ static int CFMutableArrayRefObj_hash(CFMutableArrayRefObject *self)
} }
PyTypeObject CFMutableArrayRef_Type = { PyTypeObject CFMutableArrayRef_Type = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"CFMutableArrayRef", /*tp_name*/ "CFMutableArrayRef", /*tp_name*/
sizeof(CFMutableArrayRefObject), /*tp_basicsize*/ sizeof(CFMutableArrayRefObject), /*tp_basicsize*/
@ -709,7 +729,9 @@ static PyObject *CFDictionaryRefObj_CFDictionaryGetCount(CFDictionaryRefObject *
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFIndex _rv; CFIndex _rv;
#ifndef CFDictionaryGetCount
PyMac_PRECHECK(CFDictionaryGetCount); PyMac_PRECHECK(CFDictionaryGetCount);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = CFDictionaryGetCount(_self->ob_itself); _rv = CFDictionaryGetCount(_self->ob_itself);
@ -757,7 +779,7 @@ static int CFDictionaryRefObj_hash(CFDictionaryRefObject *self)
} }
PyTypeObject CFDictionaryRef_Type = { PyTypeObject CFDictionaryRef_Type = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"CFDictionaryRef", /*tp_name*/ "CFDictionaryRef", /*tp_name*/
sizeof(CFDictionaryRefObject), /*tp_basicsize*/ sizeof(CFDictionaryRefObject), /*tp_basicsize*/
@ -827,7 +849,9 @@ static void CFMutableDictionaryRefObj_dealloc(CFMutableDictionaryRefObject *self
static PyObject *CFMutableDictionaryRefObj_CFDictionaryRemoveAllValues(CFMutableDictionaryRefObject *_self, PyObject *_args) static PyObject *CFMutableDictionaryRefObj_CFDictionaryRemoveAllValues(CFMutableDictionaryRefObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
#ifndef CFDictionaryRemoveAllValues
PyMac_PRECHECK(CFDictionaryRemoveAllValues); PyMac_PRECHECK(CFDictionaryRemoveAllValues);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
CFDictionaryRemoveAllValues(_self->ob_itself); CFDictionaryRemoveAllValues(_self->ob_itself);
@ -873,7 +897,7 @@ static int CFMutableDictionaryRefObj_hash(CFMutableDictionaryRefObject *self)
} }
PyTypeObject CFMutableDictionaryRef_Type = { PyTypeObject CFMutableDictionaryRef_Type = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"CFMutableDictionaryRef", /*tp_name*/ "CFMutableDictionaryRef", /*tp_name*/
sizeof(CFMutableDictionaryRefObject), /*tp_basicsize*/ sizeof(CFMutableDictionaryRefObject), /*tp_basicsize*/
@ -957,7 +981,9 @@ static PyObject *CFDataRefObj_CFDataGetLength(CFDataRefObject *_self, PyObject *
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFIndex _rv; CFIndex _rv;
#ifndef CFDataGetLength
PyMac_PRECHECK(CFDataGetLength); PyMac_PRECHECK(CFDataGetLength);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = CFDataGetLength(_self->ob_itself); _rv = CFDataGetLength(_self->ob_itself);
@ -1023,7 +1049,7 @@ static int CFDataRefObj_hash(CFDataRefObject *self)
} }
PyTypeObject CFDataRef_Type = { PyTypeObject CFDataRef_Type = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"CFDataRef", /*tp_name*/ "CFDataRef", /*tp_name*/
sizeof(CFDataRefObject), /*tp_basicsize*/ sizeof(CFDataRefObject), /*tp_basicsize*/
@ -1094,7 +1120,9 @@ static PyObject *CFMutableDataRefObj_CFDataSetLength(CFMutableDataRefObject *_se
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFIndex length; CFIndex length;
#ifndef CFDataSetLength
PyMac_PRECHECK(CFDataSetLength); PyMac_PRECHECK(CFDataSetLength);
#endif
if (!PyArg_ParseTuple(_args, "l", if (!PyArg_ParseTuple(_args, "l",
&length)) &length))
return NULL; return NULL;
@ -1109,7 +1137,9 @@ static PyObject *CFMutableDataRefObj_CFDataIncreaseLength(CFMutableDataRefObject
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFIndex extraLength; CFIndex extraLength;
#ifndef CFDataIncreaseLength
PyMac_PRECHECK(CFDataIncreaseLength); PyMac_PRECHECK(CFDataIncreaseLength);
#endif
if (!PyArg_ParseTuple(_args, "l", if (!PyArg_ParseTuple(_args, "l",
&extraLength)) &extraLength))
return NULL; return NULL;
@ -1126,7 +1156,9 @@ static PyObject *CFMutableDataRefObj_CFDataAppendBytes(CFMutableDataRefObject *_
unsigned char *bytes__in__; unsigned char *bytes__in__;
long bytes__len__; long bytes__len__;
int bytes__in_len__; int bytes__in_len__;
#ifndef CFDataAppendBytes
PyMac_PRECHECK(CFDataAppendBytes); PyMac_PRECHECK(CFDataAppendBytes);
#endif
if (!PyArg_ParseTuple(_args, "s#", if (!PyArg_ParseTuple(_args, "s#",
&bytes__in__, &bytes__in_len__)) &bytes__in__, &bytes__in_len__))
return NULL; return NULL;
@ -1145,7 +1177,9 @@ static PyObject *CFMutableDataRefObj_CFDataReplaceBytes(CFMutableDataRefObject *
unsigned char *newBytes__in__; unsigned char *newBytes__in__;
long newBytes__len__; long newBytes__len__;
int newBytes__in_len__; int newBytes__in_len__;
#ifndef CFDataReplaceBytes
PyMac_PRECHECK(CFDataReplaceBytes); PyMac_PRECHECK(CFDataReplaceBytes);
#endif
if (!PyArg_ParseTuple(_args, "O&s#", if (!PyArg_ParseTuple(_args, "O&s#",
CFRange_Convert, &range, CFRange_Convert, &range,
&newBytes__in__, &newBytes__in_len__)) &newBytes__in__, &newBytes__in_len__))
@ -1163,7 +1197,9 @@ static PyObject *CFMutableDataRefObj_CFDataDeleteBytes(CFMutableDataRefObject *_
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFRange range; CFRange range;
#ifndef CFDataDeleteBytes
PyMac_PRECHECK(CFDataDeleteBytes); PyMac_PRECHECK(CFDataDeleteBytes);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
CFRange_Convert, &range)) CFRange_Convert, &range))
return NULL; return NULL;
@ -1219,7 +1255,7 @@ static int CFMutableDataRefObj_hash(CFMutableDataRefObject *self)
} }
PyTypeObject CFMutableDataRef_Type = { PyTypeObject CFMutableDataRef_Type = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"CFMutableDataRef", /*tp_name*/ "CFMutableDataRef", /*tp_name*/
sizeof(CFMutableDataRefObject), /*tp_basicsize*/ sizeof(CFMutableDataRefObject), /*tp_basicsize*/
@ -1332,7 +1368,9 @@ static PyObject *CFStringRefObj_CFStringGetLength(CFStringRefObject *_self, PyOb
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFIndex _rv; CFIndex _rv;
#ifndef CFStringGetLength
PyMac_PRECHECK(CFStringGetLength); PyMac_PRECHECK(CFStringGetLength);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = CFStringGetLength(_self->ob_itself); _rv = CFStringGetLength(_self->ob_itself);
@ -1352,7 +1390,9 @@ static PyObject *CFStringRefObj_CFStringGetBytes(CFStringRefObject *_self, PyObj
UInt8 buffer; UInt8 buffer;
CFIndex maxBufLen; CFIndex maxBufLen;
CFIndex usedBufLen; CFIndex usedBufLen;
#ifndef CFStringGetBytes
PyMac_PRECHECK(CFStringGetBytes); PyMac_PRECHECK(CFStringGetBytes);
#endif
if (!PyArg_ParseTuple(_args, "O&lbll", if (!PyArg_ParseTuple(_args, "O&lbll",
CFRange_Convert, &range, CFRange_Convert, &range,
&encoding, &encoding,
@ -1398,7 +1438,9 @@ static PyObject *CFStringRefObj_CFStringGetSmallestEncoding(CFStringRefObject *_
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFStringEncoding _rv; CFStringEncoding _rv;
#ifndef CFStringGetSmallestEncoding
PyMac_PRECHECK(CFStringGetSmallestEncoding); PyMac_PRECHECK(CFStringGetSmallestEncoding);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = CFStringGetSmallestEncoding(_self->ob_itself); _rv = CFStringGetSmallestEncoding(_self->ob_itself);
@ -1411,7 +1453,9 @@ static PyObject *CFStringRefObj_CFStringGetFastestEncoding(CFStringRefObject *_s
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFStringEncoding _rv; CFStringEncoding _rv;
#ifndef CFStringGetFastestEncoding
PyMac_PRECHECK(CFStringGetFastestEncoding); PyMac_PRECHECK(CFStringGetFastestEncoding);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = CFStringGetFastestEncoding(_self->ob_itself); _rv = CFStringGetFastestEncoding(_self->ob_itself);
@ -1427,7 +1471,9 @@ static PyObject *CFStringRefObj_CFStringCompareWithOptions(CFStringRefObject *_s
CFStringRef string2; CFStringRef string2;
CFRange rangeToCompare; CFRange rangeToCompare;
CFOptionFlags compareOptions; CFOptionFlags compareOptions;
#ifndef CFStringCompareWithOptions
PyMac_PRECHECK(CFStringCompareWithOptions); PyMac_PRECHECK(CFStringCompareWithOptions);
#endif
if (!PyArg_ParseTuple(_args, "O&O&l", if (!PyArg_ParseTuple(_args, "O&O&l",
CFStringRefObj_Convert, &string2, CFStringRefObj_Convert, &string2,
CFRange_Convert, &rangeToCompare, CFRange_Convert, &rangeToCompare,
@ -1448,7 +1494,9 @@ static PyObject *CFStringRefObj_CFStringCompare(CFStringRefObject *_self, PyObje
CFComparisonResult _rv; CFComparisonResult _rv;
CFStringRef string2; CFStringRef string2;
CFOptionFlags compareOptions; CFOptionFlags compareOptions;
#ifndef CFStringCompare
PyMac_PRECHECK(CFStringCompare); PyMac_PRECHECK(CFStringCompare);
#endif
if (!PyArg_ParseTuple(_args, "O&l", if (!PyArg_ParseTuple(_args, "O&l",
CFStringRefObj_Convert, &string2, CFStringRefObj_Convert, &string2,
&compareOptions)) &compareOptions))
@ -1469,7 +1517,9 @@ static PyObject *CFStringRefObj_CFStringFindWithOptions(CFStringRefObject *_self
CFRange rangeToSearch; CFRange rangeToSearch;
CFOptionFlags searchOptions; CFOptionFlags searchOptions;
CFRange result; CFRange result;
#ifndef CFStringFindWithOptions
PyMac_PRECHECK(CFStringFindWithOptions); PyMac_PRECHECK(CFStringFindWithOptions);
#endif
if (!PyArg_ParseTuple(_args, "O&O&l", if (!PyArg_ParseTuple(_args, "O&O&l",
CFStringRefObj_Convert, &stringToFind, CFStringRefObj_Convert, &stringToFind,
CFRange_Convert, &rangeToSearch, CFRange_Convert, &rangeToSearch,
@ -1514,7 +1564,9 @@ static PyObject *CFStringRefObj_CFStringFind(CFStringRefObject *_self, PyObject
CFRange _rv; CFRange _rv;
CFStringRef stringToFind; CFStringRef stringToFind;
CFOptionFlags compareOptions; CFOptionFlags compareOptions;
#ifndef CFStringFind
PyMac_PRECHECK(CFStringFind); PyMac_PRECHECK(CFStringFind);
#endif
if (!PyArg_ParseTuple(_args, "O&l", if (!PyArg_ParseTuple(_args, "O&l",
CFStringRefObj_Convert, &stringToFind, CFStringRefObj_Convert, &stringToFind,
&compareOptions)) &compareOptions))
@ -1532,7 +1584,9 @@ static PyObject *CFStringRefObj_CFStringHasPrefix(CFStringRefObject *_self, PyOb
PyObject *_res = NULL; PyObject *_res = NULL;
Boolean _rv; Boolean _rv;
CFStringRef prefix; CFStringRef prefix;
#ifndef CFStringHasPrefix
PyMac_PRECHECK(CFStringHasPrefix); PyMac_PRECHECK(CFStringHasPrefix);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
CFStringRefObj_Convert, &prefix)) CFStringRefObj_Convert, &prefix))
return NULL; return NULL;
@ -1548,7 +1602,9 @@ static PyObject *CFStringRefObj_CFStringHasSuffix(CFStringRefObject *_self, PyOb
PyObject *_res = NULL; PyObject *_res = NULL;
Boolean _rv; Boolean _rv;
CFStringRef suffix; CFStringRef suffix;
#ifndef CFStringHasSuffix
PyMac_PRECHECK(CFStringHasSuffix); PyMac_PRECHECK(CFStringHasSuffix);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
CFStringRefObj_Convert, &suffix)) CFStringRefObj_Convert, &suffix))
return NULL; return NULL;
@ -1566,7 +1622,9 @@ static PyObject *CFStringRefObj_CFStringGetLineBounds(CFStringRefObject *_self,
CFIndex lineBeginIndex; CFIndex lineBeginIndex;
CFIndex lineEndIndex; CFIndex lineEndIndex;
CFIndex contentsEndIndex; CFIndex contentsEndIndex;
#ifndef CFStringGetLineBounds
PyMac_PRECHECK(CFStringGetLineBounds); PyMac_PRECHECK(CFStringGetLineBounds);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
CFRange_Convert, &range)) CFRange_Convert, &range))
return NULL; return NULL;
@ -1602,7 +1660,9 @@ static PyObject *CFStringRefObj_CFStringGetIntValue(CFStringRefObject *_self, Py
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
SInt32 _rv; SInt32 _rv;
#ifndef CFStringGetIntValue
PyMac_PRECHECK(CFStringGetIntValue); PyMac_PRECHECK(CFStringGetIntValue);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = CFStringGetIntValue(_self->ob_itself); _rv = CFStringGetIntValue(_self->ob_itself);
@ -1615,7 +1675,9 @@ static PyObject *CFStringRefObj_CFStringGetDoubleValue(CFStringRefObject *_self,
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
double _rv; double _rv;
#ifndef CFStringGetDoubleValue
PyMac_PRECHECK(CFStringGetDoubleValue); PyMac_PRECHECK(CFStringGetDoubleValue);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = CFStringGetDoubleValue(_self->ob_itself); _rv = CFStringGetDoubleValue(_self->ob_itself);
@ -1628,7 +1690,9 @@ static PyObject *CFStringRefObj_CFStringConvertIANACharSetNameToEncoding(CFStrin
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFStringEncoding _rv; CFStringEncoding _rv;
#ifndef CFStringConvertIANACharSetNameToEncoding
PyMac_PRECHECK(CFStringConvertIANACharSetNameToEncoding); PyMac_PRECHECK(CFStringConvertIANACharSetNameToEncoding);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = CFStringConvertIANACharSetNameToEncoding(_self->ob_itself); _rv = CFStringConvertIANACharSetNameToEncoding(_self->ob_itself);
@ -1640,7 +1704,9 @@ static PyObject *CFStringRefObj_CFStringConvertIANACharSetNameToEncoding(CFStrin
static PyObject *CFStringRefObj_CFShowStr(CFStringRefObject *_self, PyObject *_args) static PyObject *CFStringRefObj_CFShowStr(CFStringRefObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
#ifndef CFShowStr
PyMac_PRECHECK(CFShowStr); PyMac_PRECHECK(CFShowStr);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
CFShowStr(_self->ob_itself); CFShowStr(_self->ob_itself);
@ -1822,7 +1888,7 @@ static int CFStringRefObj_hash(CFStringRefObject *self)
} }
PyTypeObject CFStringRef_Type = { PyTypeObject CFStringRef_Type = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"CFStringRef", /*tp_name*/ "CFStringRef", /*tp_name*/
sizeof(CFStringRefObject), /*tp_basicsize*/ sizeof(CFStringRefObject), /*tp_basicsize*/
@ -1893,7 +1959,9 @@ static PyObject *CFMutableStringRefObj_CFStringAppend(CFMutableStringRefObject *
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFStringRef appendedString; CFStringRef appendedString;
#ifndef CFStringAppend
PyMac_PRECHECK(CFStringAppend); PyMac_PRECHECK(CFStringAppend);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
CFStringRefObj_Convert, &appendedString)) CFStringRefObj_Convert, &appendedString))
return NULL; return NULL;
@ -1909,7 +1977,9 @@ static PyObject *CFMutableStringRefObj_CFStringAppendPascalString(CFMutableStrin
PyObject *_res = NULL; PyObject *_res = NULL;
StringPtr pStr; StringPtr pStr;
CFStringEncoding encoding; CFStringEncoding encoding;
#ifndef CFStringAppendPascalString
PyMac_PRECHECK(CFStringAppendPascalString); PyMac_PRECHECK(CFStringAppendPascalString);
#endif
if (!PyArg_ParseTuple(_args, "O&l", if (!PyArg_ParseTuple(_args, "O&l",
PyMac_GetStr255, &pStr, PyMac_GetStr255, &pStr,
&encoding)) &encoding))
@ -1927,7 +1997,9 @@ static PyObject *CFMutableStringRefObj_CFStringAppendCString(CFMutableStringRefO
PyObject *_res = NULL; PyObject *_res = NULL;
char* cStr; char* cStr;
CFStringEncoding encoding; CFStringEncoding encoding;
#ifndef CFStringAppendCString
PyMac_PRECHECK(CFStringAppendCString); PyMac_PRECHECK(CFStringAppendCString);
#endif
if (!PyArg_ParseTuple(_args, "sl", if (!PyArg_ParseTuple(_args, "sl",
&cStr, &cStr,
&encoding)) &encoding))
@ -1945,7 +2017,9 @@ static PyObject *CFMutableStringRefObj_CFStringInsert(CFMutableStringRefObject *
PyObject *_res = NULL; PyObject *_res = NULL;
CFIndex idx; CFIndex idx;
CFStringRef insertedStr; CFStringRef insertedStr;
#ifndef CFStringInsert
PyMac_PRECHECK(CFStringInsert); PyMac_PRECHECK(CFStringInsert);
#endif
if (!PyArg_ParseTuple(_args, "lO&", if (!PyArg_ParseTuple(_args, "lO&",
&idx, &idx,
CFStringRefObj_Convert, &insertedStr)) CFStringRefObj_Convert, &insertedStr))
@ -1962,7 +2036,9 @@ static PyObject *CFMutableStringRefObj_CFStringDelete(CFMutableStringRefObject *
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFRange range; CFRange range;
#ifndef CFStringDelete
PyMac_PRECHECK(CFStringDelete); PyMac_PRECHECK(CFStringDelete);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
CFRange_Convert, &range)) CFRange_Convert, &range))
return NULL; return NULL;
@ -1978,7 +2054,9 @@ static PyObject *CFMutableStringRefObj_CFStringReplace(CFMutableStringRefObject
PyObject *_res = NULL; PyObject *_res = NULL;
CFRange range; CFRange range;
CFStringRef replacement; CFStringRef replacement;
#ifndef CFStringReplace
PyMac_PRECHECK(CFStringReplace); PyMac_PRECHECK(CFStringReplace);
#endif
if (!PyArg_ParseTuple(_args, "O&O&", if (!PyArg_ParseTuple(_args, "O&O&",
CFRange_Convert, &range, CFRange_Convert, &range,
CFStringRefObj_Convert, &replacement)) CFStringRefObj_Convert, &replacement))
@ -1995,7 +2073,9 @@ static PyObject *CFMutableStringRefObj_CFStringReplaceAll(CFMutableStringRefObje
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFStringRef replacement; CFStringRef replacement;
#ifndef CFStringReplaceAll
PyMac_PRECHECK(CFStringReplaceAll); PyMac_PRECHECK(CFStringReplaceAll);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
CFStringRefObj_Convert, &replacement)) CFStringRefObj_Convert, &replacement))
return NULL; return NULL;
@ -2012,7 +2092,9 @@ static PyObject *CFMutableStringRefObj_CFStringPad(CFMutableStringRefObject *_se
CFStringRef padString; CFStringRef padString;
CFIndex length; CFIndex length;
CFIndex indexIntoPad; CFIndex indexIntoPad;
#ifndef CFStringPad
PyMac_PRECHECK(CFStringPad); PyMac_PRECHECK(CFStringPad);
#endif
if (!PyArg_ParseTuple(_args, "O&ll", if (!PyArg_ParseTuple(_args, "O&ll",
CFStringRefObj_Convert, &padString, CFStringRefObj_Convert, &padString,
&length, &length,
@ -2031,7 +2113,9 @@ static PyObject *CFMutableStringRefObj_CFStringTrim(CFMutableStringRefObject *_s
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFStringRef trimString; CFStringRef trimString;
#ifndef CFStringTrim
PyMac_PRECHECK(CFStringTrim); PyMac_PRECHECK(CFStringTrim);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
CFStringRefObj_Convert, &trimString)) CFStringRefObj_Convert, &trimString))
return NULL; return NULL;
@ -2045,7 +2129,9 @@ static PyObject *CFMutableStringRefObj_CFStringTrim(CFMutableStringRefObject *_s
static PyObject *CFMutableStringRefObj_CFStringTrimWhitespace(CFMutableStringRefObject *_self, PyObject *_args) static PyObject *CFMutableStringRefObj_CFStringTrimWhitespace(CFMutableStringRefObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
#ifndef CFStringTrimWhitespace
PyMac_PRECHECK(CFStringTrimWhitespace); PyMac_PRECHECK(CFStringTrimWhitespace);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
CFStringTrimWhitespace(_self->ob_itself); CFStringTrimWhitespace(_self->ob_itself);
@ -2109,7 +2195,7 @@ static int CFMutableStringRefObj_hash(CFMutableStringRefObject *self)
} }
PyTypeObject CFMutableStringRef_Type = { PyTypeObject CFMutableStringRef_Type = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"CFMutableStringRef", /*tp_name*/ "CFMutableStringRef", /*tp_name*/
sizeof(CFMutableStringRefObject), /*tp_basicsize*/ sizeof(CFMutableStringRefObject), /*tp_basicsize*/
@ -2199,7 +2285,9 @@ static PyObject *CFURLRefObj_CFURLCopyAbsoluteURL(CFURLRefObject *_self, PyObjec
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFURLRef _rv; CFURLRef _rv;
#ifndef CFURLCopyAbsoluteURL
PyMac_PRECHECK(CFURLCopyAbsoluteURL); PyMac_PRECHECK(CFURLCopyAbsoluteURL);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = CFURLCopyAbsoluteURL(_self->ob_itself); _rv = CFURLCopyAbsoluteURL(_self->ob_itself);
@ -2212,7 +2300,9 @@ static PyObject *CFURLRefObj_CFURLGetString(CFURLRefObject *_self, PyObject *_ar
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFStringRef _rv; CFStringRef _rv;
#ifndef CFURLGetString
PyMac_PRECHECK(CFURLGetString); PyMac_PRECHECK(CFURLGetString);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = CFURLGetString(_self->ob_itself); _rv = CFURLGetString(_self->ob_itself);
@ -2225,7 +2315,9 @@ static PyObject *CFURLRefObj_CFURLGetBaseURL(CFURLRefObject *_self, PyObject *_a
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFURLRef _rv; CFURLRef _rv;
#ifndef CFURLGetBaseURL
PyMac_PRECHECK(CFURLGetBaseURL); PyMac_PRECHECK(CFURLGetBaseURL);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = CFURLGetBaseURL(_self->ob_itself); _rv = CFURLGetBaseURL(_self->ob_itself);
@ -2238,7 +2330,9 @@ static PyObject *CFURLRefObj_CFURLCanBeDecomposed(CFURLRefObject *_self, PyObjec
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
Boolean _rv; Boolean _rv;
#ifndef CFURLCanBeDecomposed
PyMac_PRECHECK(CFURLCanBeDecomposed); PyMac_PRECHECK(CFURLCanBeDecomposed);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = CFURLCanBeDecomposed(_self->ob_itself); _rv = CFURLCanBeDecomposed(_self->ob_itself);
@ -2251,7 +2345,9 @@ static PyObject *CFURLRefObj_CFURLCopyScheme(CFURLRefObject *_self, PyObject *_a
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFStringRef _rv; CFStringRef _rv;
#ifndef CFURLCopyScheme
PyMac_PRECHECK(CFURLCopyScheme); PyMac_PRECHECK(CFURLCopyScheme);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = CFURLCopyScheme(_self->ob_itself); _rv = CFURLCopyScheme(_self->ob_itself);
@ -2264,7 +2360,9 @@ static PyObject *CFURLRefObj_CFURLCopyNetLocation(CFURLRefObject *_self, PyObjec
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFStringRef _rv; CFStringRef _rv;
#ifndef CFURLCopyNetLocation
PyMac_PRECHECK(CFURLCopyNetLocation); PyMac_PRECHECK(CFURLCopyNetLocation);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = CFURLCopyNetLocation(_self->ob_itself); _rv = CFURLCopyNetLocation(_self->ob_itself);
@ -2277,7 +2375,9 @@ static PyObject *CFURLRefObj_CFURLCopyPath(CFURLRefObject *_self, PyObject *_arg
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFStringRef _rv; CFStringRef _rv;
#ifndef CFURLCopyPath
PyMac_PRECHECK(CFURLCopyPath); PyMac_PRECHECK(CFURLCopyPath);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = CFURLCopyPath(_self->ob_itself); _rv = CFURLCopyPath(_self->ob_itself);
@ -2290,7 +2390,9 @@ static PyObject *CFURLRefObj_CFURLHasDirectoryPath(CFURLRefObject *_self, PyObje
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
Boolean _rv; Boolean _rv;
#ifndef CFURLHasDirectoryPath
PyMac_PRECHECK(CFURLHasDirectoryPath); PyMac_PRECHECK(CFURLHasDirectoryPath);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = CFURLHasDirectoryPath(_self->ob_itself); _rv = CFURLHasDirectoryPath(_self->ob_itself);
@ -2303,7 +2405,9 @@ static PyObject *CFURLRefObj_CFURLCopyResourceSpecifier(CFURLRefObject *_self, P
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFStringRef _rv; CFStringRef _rv;
#ifndef CFURLCopyResourceSpecifier
PyMac_PRECHECK(CFURLCopyResourceSpecifier); PyMac_PRECHECK(CFURLCopyResourceSpecifier);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = CFURLCopyResourceSpecifier(_self->ob_itself); _rv = CFURLCopyResourceSpecifier(_self->ob_itself);
@ -2316,7 +2420,9 @@ static PyObject *CFURLRefObj_CFURLCopyHostName(CFURLRefObject *_self, PyObject *
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFStringRef _rv; CFStringRef _rv;
#ifndef CFURLCopyHostName
PyMac_PRECHECK(CFURLCopyHostName); PyMac_PRECHECK(CFURLCopyHostName);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = CFURLCopyHostName(_self->ob_itself); _rv = CFURLCopyHostName(_self->ob_itself);
@ -2329,7 +2435,9 @@ static PyObject *CFURLRefObj_CFURLGetPortNumber(CFURLRefObject *_self, PyObject
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
SInt32 _rv; SInt32 _rv;
#ifndef CFURLGetPortNumber
PyMac_PRECHECK(CFURLGetPortNumber); PyMac_PRECHECK(CFURLGetPortNumber);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = CFURLGetPortNumber(_self->ob_itself); _rv = CFURLGetPortNumber(_self->ob_itself);
@ -2342,7 +2450,9 @@ static PyObject *CFURLRefObj_CFURLCopyUserName(CFURLRefObject *_self, PyObject *
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFStringRef _rv; CFStringRef _rv;
#ifndef CFURLCopyUserName
PyMac_PRECHECK(CFURLCopyUserName); PyMac_PRECHECK(CFURLCopyUserName);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = CFURLCopyUserName(_self->ob_itself); _rv = CFURLCopyUserName(_self->ob_itself);
@ -2355,7 +2465,9 @@ static PyObject *CFURLRefObj_CFURLCopyPassword(CFURLRefObject *_self, PyObject *
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFStringRef _rv; CFStringRef _rv;
#ifndef CFURLCopyPassword
PyMac_PRECHECK(CFURLCopyPassword); PyMac_PRECHECK(CFURLCopyPassword);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = CFURLCopyPassword(_self->ob_itself); _rv = CFURLCopyPassword(_self->ob_itself);
@ -2369,7 +2481,9 @@ static PyObject *CFURLRefObj_CFURLCopyParameterString(CFURLRefObject *_self, PyO
PyObject *_res = NULL; PyObject *_res = NULL;
CFStringRef _rv; CFStringRef _rv;
CFStringRef charactersToLeaveEscaped; CFStringRef charactersToLeaveEscaped;
#ifndef CFURLCopyParameterString
PyMac_PRECHECK(CFURLCopyParameterString); PyMac_PRECHECK(CFURLCopyParameterString);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
CFStringRefObj_Convert, &charactersToLeaveEscaped)) CFStringRefObj_Convert, &charactersToLeaveEscaped))
return NULL; return NULL;
@ -2385,7 +2499,9 @@ static PyObject *CFURLRefObj_CFURLCopyQueryString(CFURLRefObject *_self, PyObjec
PyObject *_res = NULL; PyObject *_res = NULL;
CFStringRef _rv; CFStringRef _rv;
CFStringRef charactersToLeaveEscaped; CFStringRef charactersToLeaveEscaped;
#ifndef CFURLCopyQueryString
PyMac_PRECHECK(CFURLCopyQueryString); PyMac_PRECHECK(CFURLCopyQueryString);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
CFStringRefObj_Convert, &charactersToLeaveEscaped)) CFStringRefObj_Convert, &charactersToLeaveEscaped))
return NULL; return NULL;
@ -2401,7 +2517,9 @@ static PyObject *CFURLRefObj_CFURLCopyFragment(CFURLRefObject *_self, PyObject *
PyObject *_res = NULL; PyObject *_res = NULL;
CFStringRef _rv; CFStringRef _rv;
CFStringRef charactersToLeaveEscaped; CFStringRef charactersToLeaveEscaped;
#ifndef CFURLCopyFragment
PyMac_PRECHECK(CFURLCopyFragment); PyMac_PRECHECK(CFURLCopyFragment);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
CFStringRefObj_Convert, &charactersToLeaveEscaped)) CFStringRefObj_Convert, &charactersToLeaveEscaped))
return NULL; return NULL;
@ -2481,7 +2599,7 @@ static int CFURLRefObj_hash(CFURLRefObject *self)
} }
PyTypeObject CFURLRef_Type = { PyTypeObject CFURLRef_Type = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"CFURLRef", /*tp_name*/ "CFURLRef", /*tp_name*/
sizeof(CFURLRefObject), /*tp_basicsize*/ sizeof(CFURLRefObject), /*tp_basicsize*/
@ -2506,7 +2624,9 @@ static PyObject *CF_CFAllocatorGetTypeID(PyObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFTypeID _rv; CFTypeID _rv;
#ifndef CFAllocatorGetTypeID
PyMac_PRECHECK(CFAllocatorGetTypeID); PyMac_PRECHECK(CFAllocatorGetTypeID);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = CFAllocatorGetTypeID(); _rv = CFAllocatorGetTypeID();
@ -2521,7 +2641,9 @@ static PyObject *CF_CFAllocatorGetPreferredSizeForSize(PyObject *_self, PyObject
CFIndex _rv; CFIndex _rv;
CFIndex size; CFIndex size;
CFOptionFlags hint; CFOptionFlags hint;
#ifndef CFAllocatorGetPreferredSizeForSize
PyMac_PRECHECK(CFAllocatorGetPreferredSizeForSize); PyMac_PRECHECK(CFAllocatorGetPreferredSizeForSize);
#endif
if (!PyArg_ParseTuple(_args, "ll", if (!PyArg_ParseTuple(_args, "ll",
&size, &size,
&hint)) &hint))
@ -2539,7 +2661,9 @@ static PyObject *CF_CFCopyTypeIDDescription(PyObject *_self, PyObject *_args)
PyObject *_res = NULL; PyObject *_res = NULL;
CFStringRef _rv; CFStringRef _rv;
CFTypeID theType; CFTypeID theType;
#ifndef CFCopyTypeIDDescription
PyMac_PRECHECK(CFCopyTypeIDDescription); PyMac_PRECHECK(CFCopyTypeIDDescription);
#endif
if (!PyArg_ParseTuple(_args, "l", if (!PyArg_ParseTuple(_args, "l",
&theType)) &theType))
return NULL; return NULL;
@ -2553,7 +2677,9 @@ static PyObject *CF_CFArrayGetTypeID(PyObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFTypeID _rv; CFTypeID _rv;
#ifndef CFArrayGetTypeID
PyMac_PRECHECK(CFArrayGetTypeID); PyMac_PRECHECK(CFArrayGetTypeID);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = CFArrayGetTypeID(); _rv = CFArrayGetTypeID();
@ -2567,7 +2693,9 @@ static PyObject *CF_CFArrayCreateMutable(PyObject *_self, PyObject *_args)
PyObject *_res = NULL; PyObject *_res = NULL;
CFMutableArrayRef _rv; CFMutableArrayRef _rv;
CFIndex capacity; CFIndex capacity;
#ifndef CFArrayCreateMutable
PyMac_PRECHECK(CFArrayCreateMutable); PyMac_PRECHECK(CFArrayCreateMutable);
#endif
if (!PyArg_ParseTuple(_args, "l", if (!PyArg_ParseTuple(_args, "l",
&capacity)) &capacity))
return NULL; return NULL;
@ -2585,7 +2713,9 @@ static PyObject *CF_CFArrayCreateMutableCopy(PyObject *_self, PyObject *_args)
CFMutableArrayRef _rv; CFMutableArrayRef _rv;
CFIndex capacity; CFIndex capacity;
CFArrayRef srcArray; CFArrayRef srcArray;
#ifndef CFArrayCreateMutableCopy
PyMac_PRECHECK(CFArrayCreateMutableCopy); PyMac_PRECHECK(CFArrayCreateMutableCopy);
#endif
if (!PyArg_ParseTuple(_args, "lO&", if (!PyArg_ParseTuple(_args, "lO&",
&capacity, &capacity,
CFArrayRefObj_Convert, &srcArray)) CFArrayRefObj_Convert, &srcArray))
@ -2602,7 +2732,9 @@ static PyObject *CF_CFDataGetTypeID(PyObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFTypeID _rv; CFTypeID _rv;
#ifndef CFDataGetTypeID
PyMac_PRECHECK(CFDataGetTypeID); PyMac_PRECHECK(CFDataGetTypeID);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = CFDataGetTypeID(); _rv = CFDataGetTypeID();
@ -2618,7 +2750,9 @@ static PyObject *CF_CFDataCreate(PyObject *_self, PyObject *_args)
unsigned char *bytes__in__; unsigned char *bytes__in__;
long bytes__len__; long bytes__len__;
int bytes__in_len__; int bytes__in_len__;
#ifndef CFDataCreate
PyMac_PRECHECK(CFDataCreate); PyMac_PRECHECK(CFDataCreate);
#endif
if (!PyArg_ParseTuple(_args, "s#", if (!PyArg_ParseTuple(_args, "s#",
&bytes__in__, &bytes__in_len__)) &bytes__in__, &bytes__in_len__))
return NULL; return NULL;
@ -2637,7 +2771,9 @@ static PyObject *CF_CFDataCreateWithBytesNoCopy(PyObject *_self, PyObject *_args
unsigned char *bytes__in__; unsigned char *bytes__in__;
long bytes__len__; long bytes__len__;
int bytes__in_len__; int bytes__in_len__;
#ifndef CFDataCreateWithBytesNoCopy
PyMac_PRECHECK(CFDataCreateWithBytesNoCopy); PyMac_PRECHECK(CFDataCreateWithBytesNoCopy);
#endif
if (!PyArg_ParseTuple(_args, "s#", if (!PyArg_ParseTuple(_args, "s#",
&bytes__in__, &bytes__in_len__)) &bytes__in__, &bytes__in_len__))
return NULL; return NULL;
@ -2655,7 +2791,9 @@ static PyObject *CF_CFDataCreateMutable(PyObject *_self, PyObject *_args)
PyObject *_res = NULL; PyObject *_res = NULL;
CFMutableDataRef _rv; CFMutableDataRef _rv;
CFIndex capacity; CFIndex capacity;
#ifndef CFDataCreateMutable
PyMac_PRECHECK(CFDataCreateMutable); PyMac_PRECHECK(CFDataCreateMutable);
#endif
if (!PyArg_ParseTuple(_args, "l", if (!PyArg_ParseTuple(_args, "l",
&capacity)) &capacity))
return NULL; return NULL;
@ -2672,7 +2810,9 @@ static PyObject *CF_CFDataCreateMutableCopy(PyObject *_self, PyObject *_args)
CFMutableDataRef _rv; CFMutableDataRef _rv;
CFIndex capacity; CFIndex capacity;
CFDataRef data; CFDataRef data;
#ifndef CFDataCreateMutableCopy
PyMac_PRECHECK(CFDataCreateMutableCopy); PyMac_PRECHECK(CFDataCreateMutableCopy);
#endif
if (!PyArg_ParseTuple(_args, "lO&", if (!PyArg_ParseTuple(_args, "lO&",
&capacity, &capacity,
CFDataRefObj_Convert, &data)) CFDataRefObj_Convert, &data))
@ -2689,7 +2829,9 @@ static PyObject *CF_CFDictionaryGetTypeID(PyObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFTypeID _rv; CFTypeID _rv;
#ifndef CFDictionaryGetTypeID
PyMac_PRECHECK(CFDictionaryGetTypeID); PyMac_PRECHECK(CFDictionaryGetTypeID);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = CFDictionaryGetTypeID(); _rv = CFDictionaryGetTypeID();
@ -2703,7 +2845,9 @@ static PyObject *CF_CFDictionaryCreateMutable(PyObject *_self, PyObject *_args)
PyObject *_res = NULL; PyObject *_res = NULL;
CFMutableDictionaryRef _rv; CFMutableDictionaryRef _rv;
CFIndex capacity; CFIndex capacity;
#ifndef CFDictionaryCreateMutable
PyMac_PRECHECK(CFDictionaryCreateMutable); PyMac_PRECHECK(CFDictionaryCreateMutable);
#endif
if (!PyArg_ParseTuple(_args, "l", if (!PyArg_ParseTuple(_args, "l",
&capacity)) &capacity))
return NULL; return NULL;
@ -2722,7 +2866,9 @@ static PyObject *CF_CFDictionaryCreateMutableCopy(PyObject *_self, PyObject *_ar
CFMutableDictionaryRef _rv; CFMutableDictionaryRef _rv;
CFIndex capacity; CFIndex capacity;
CFDictionaryRef dict; CFDictionaryRef dict;
#ifndef CFDictionaryCreateMutableCopy
PyMac_PRECHECK(CFDictionaryCreateMutableCopy); PyMac_PRECHECK(CFDictionaryCreateMutableCopy);
#endif
if (!PyArg_ParseTuple(_args, "lO&", if (!PyArg_ParseTuple(_args, "lO&",
&capacity, &capacity,
CFDictionaryRefObj_Convert, &dict)) CFDictionaryRefObj_Convert, &dict))
@ -2739,7 +2885,9 @@ static PyObject *CF_CFStringGetTypeID(PyObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFTypeID _rv; CFTypeID _rv;
#ifndef CFStringGetTypeID
PyMac_PRECHECK(CFStringGetTypeID); PyMac_PRECHECK(CFStringGetTypeID);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = CFStringGetTypeID(); _rv = CFStringGetTypeID();
@ -2754,7 +2902,9 @@ static PyObject *CF_CFStringCreateWithPascalString(PyObject *_self, PyObject *_a
CFStringRef _rv; CFStringRef _rv;
StringPtr pStr; StringPtr pStr;
CFStringEncoding encoding; CFStringEncoding encoding;
#ifndef CFStringCreateWithPascalString
PyMac_PRECHECK(CFStringCreateWithPascalString); PyMac_PRECHECK(CFStringCreateWithPascalString);
#endif
if (!PyArg_ParseTuple(_args, "O&l", if (!PyArg_ParseTuple(_args, "O&l",
PyMac_GetStr255, &pStr, PyMac_GetStr255, &pStr,
&encoding)) &encoding))
@ -2773,7 +2923,9 @@ static PyObject *CF_CFStringCreateWithCString(PyObject *_self, PyObject *_args)
CFStringRef _rv; CFStringRef _rv;
char* cStr; char* cStr;
CFStringEncoding encoding; CFStringEncoding encoding;
#ifndef CFStringCreateWithCString
PyMac_PRECHECK(CFStringCreateWithCString); PyMac_PRECHECK(CFStringCreateWithCString);
#endif
if (!PyArg_ParseTuple(_args, "sl", if (!PyArg_ParseTuple(_args, "sl",
&cStr, &cStr,
&encoding)) &encoding))
@ -2792,7 +2944,9 @@ static PyObject *CF_CFStringCreateWithPascalStringNoCopy(PyObject *_self, PyObje
CFStringRef _rv; CFStringRef _rv;
StringPtr pStr; StringPtr pStr;
CFStringEncoding encoding; CFStringEncoding encoding;
#ifndef CFStringCreateWithPascalStringNoCopy
PyMac_PRECHECK(CFStringCreateWithPascalStringNoCopy); PyMac_PRECHECK(CFStringCreateWithPascalStringNoCopy);
#endif
if (!PyArg_ParseTuple(_args, "O&l", if (!PyArg_ParseTuple(_args, "O&l",
PyMac_GetStr255, &pStr, PyMac_GetStr255, &pStr,
&encoding)) &encoding))
@ -2812,7 +2966,9 @@ static PyObject *CF_CFStringCreateWithCStringNoCopy(PyObject *_self, PyObject *_
CFStringRef _rv; CFStringRef _rv;
char* cStr; char* cStr;
CFStringEncoding encoding; CFStringEncoding encoding;
#ifndef CFStringCreateWithCStringNoCopy
PyMac_PRECHECK(CFStringCreateWithCStringNoCopy); PyMac_PRECHECK(CFStringCreateWithCStringNoCopy);
#endif
if (!PyArg_ParseTuple(_args, "sl", if (!PyArg_ParseTuple(_args, "sl",
&cStr, &cStr,
&encoding)) &encoding))
@ -2831,7 +2987,9 @@ static PyObject *CF_CFStringCreateMutable(PyObject *_self, PyObject *_args)
PyObject *_res = NULL; PyObject *_res = NULL;
CFMutableStringRef _rv; CFMutableStringRef _rv;
CFIndex maxLength; CFIndex maxLength;
#ifndef CFStringCreateMutable
PyMac_PRECHECK(CFStringCreateMutable); PyMac_PRECHECK(CFStringCreateMutable);
#endif
if (!PyArg_ParseTuple(_args, "l", if (!PyArg_ParseTuple(_args, "l",
&maxLength)) &maxLength))
return NULL; return NULL;
@ -2848,7 +3006,9 @@ static PyObject *CF_CFStringCreateMutableCopy(PyObject *_self, PyObject *_args)
CFMutableStringRef _rv; CFMutableStringRef _rv;
CFIndex maxLength; CFIndex maxLength;
CFStringRef theString; CFStringRef theString;
#ifndef CFStringCreateMutableCopy
PyMac_PRECHECK(CFStringCreateMutableCopy); PyMac_PRECHECK(CFStringCreateMutableCopy);
#endif
if (!PyArg_ParseTuple(_args, "lO&", if (!PyArg_ParseTuple(_args, "lO&",
&maxLength, &maxLength,
CFStringRefObj_Convert, &theString)) CFStringRefObj_Convert, &theString))
@ -2870,7 +3030,9 @@ static PyObject *CF_CFStringCreateWithBytes(PyObject *_self, PyObject *_args)
int bytes__in_len__; int bytes__in_len__;
CFStringEncoding encoding; CFStringEncoding encoding;
Boolean isExternalRepresentation; Boolean isExternalRepresentation;
#ifndef CFStringCreateWithBytes
PyMac_PRECHECK(CFStringCreateWithBytes); PyMac_PRECHECK(CFStringCreateWithBytes);
#endif
if (!PyArg_ParseTuple(_args, "s#ll", if (!PyArg_ParseTuple(_args, "s#ll",
&bytes__in__, &bytes__in_len__, &bytes__in__, &bytes__in_len__,
&encoding, &encoding,
@ -2890,7 +3052,9 @@ static PyObject *CF_CFStringGetSystemEncoding(PyObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFStringEncoding _rv; CFStringEncoding _rv;
#ifndef CFStringGetSystemEncoding
PyMac_PRECHECK(CFStringGetSystemEncoding); PyMac_PRECHECK(CFStringGetSystemEncoding);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = CFStringGetSystemEncoding(); _rv = CFStringGetSystemEncoding();
@ -2905,7 +3069,9 @@ static PyObject *CF_CFStringGetMaximumSizeForEncoding(PyObject *_self, PyObject
CFIndex _rv; CFIndex _rv;
CFIndex length; CFIndex length;
CFStringEncoding encoding; CFStringEncoding encoding;
#ifndef CFStringGetMaximumSizeForEncoding
PyMac_PRECHECK(CFStringGetMaximumSizeForEncoding); PyMac_PRECHECK(CFStringGetMaximumSizeForEncoding);
#endif
if (!PyArg_ParseTuple(_args, "ll", if (!PyArg_ParseTuple(_args, "ll",
&length, &length,
&encoding)) &encoding))
@ -2922,7 +3088,9 @@ static PyObject *CF_CFStringIsEncodingAvailable(PyObject *_self, PyObject *_args
PyObject *_res = NULL; PyObject *_res = NULL;
Boolean _rv; Boolean _rv;
CFStringEncoding encoding; CFStringEncoding encoding;
#ifndef CFStringIsEncodingAvailable
PyMac_PRECHECK(CFStringIsEncodingAvailable); PyMac_PRECHECK(CFStringIsEncodingAvailable);
#endif
if (!PyArg_ParseTuple(_args, "l", if (!PyArg_ParseTuple(_args, "l",
&encoding)) &encoding))
return NULL; return NULL;
@ -2937,7 +3105,9 @@ static PyObject *CF_CFStringGetNameOfEncoding(PyObject *_self, PyObject *_args)
PyObject *_res = NULL; PyObject *_res = NULL;
CFStringRef _rv; CFStringRef _rv;
CFStringEncoding encoding; CFStringEncoding encoding;
#ifndef CFStringGetNameOfEncoding
PyMac_PRECHECK(CFStringGetNameOfEncoding); PyMac_PRECHECK(CFStringGetNameOfEncoding);
#endif
if (!PyArg_ParseTuple(_args, "l", if (!PyArg_ParseTuple(_args, "l",
&encoding)) &encoding))
return NULL; return NULL;
@ -2952,7 +3122,9 @@ static PyObject *CF_CFStringConvertEncodingToNSStringEncoding(PyObject *_self, P
PyObject *_res = NULL; PyObject *_res = NULL;
UInt32 _rv; UInt32 _rv;
CFStringEncoding encoding; CFStringEncoding encoding;
#ifndef CFStringConvertEncodingToNSStringEncoding
PyMac_PRECHECK(CFStringConvertEncodingToNSStringEncoding); PyMac_PRECHECK(CFStringConvertEncodingToNSStringEncoding);
#endif
if (!PyArg_ParseTuple(_args, "l", if (!PyArg_ParseTuple(_args, "l",
&encoding)) &encoding))
return NULL; return NULL;
@ -2967,7 +3139,9 @@ static PyObject *CF_CFStringConvertNSStringEncodingToEncoding(PyObject *_self, P
PyObject *_res = NULL; PyObject *_res = NULL;
CFStringEncoding _rv; CFStringEncoding _rv;
UInt32 encoding; UInt32 encoding;
#ifndef CFStringConvertNSStringEncodingToEncoding
PyMac_PRECHECK(CFStringConvertNSStringEncodingToEncoding); PyMac_PRECHECK(CFStringConvertNSStringEncodingToEncoding);
#endif
if (!PyArg_ParseTuple(_args, "l", if (!PyArg_ParseTuple(_args, "l",
&encoding)) &encoding))
return NULL; return NULL;
@ -2982,7 +3156,9 @@ static PyObject *CF_CFStringConvertEncodingToWindowsCodepage(PyObject *_self, Py
PyObject *_res = NULL; PyObject *_res = NULL;
UInt32 _rv; UInt32 _rv;
CFStringEncoding encoding; CFStringEncoding encoding;
#ifndef CFStringConvertEncodingToWindowsCodepage
PyMac_PRECHECK(CFStringConvertEncodingToWindowsCodepage); PyMac_PRECHECK(CFStringConvertEncodingToWindowsCodepage);
#endif
if (!PyArg_ParseTuple(_args, "l", if (!PyArg_ParseTuple(_args, "l",
&encoding)) &encoding))
return NULL; return NULL;
@ -2997,7 +3173,9 @@ static PyObject *CF_CFStringConvertWindowsCodepageToEncoding(PyObject *_self, Py
PyObject *_res = NULL; PyObject *_res = NULL;
CFStringEncoding _rv; CFStringEncoding _rv;
UInt32 codepage; UInt32 codepage;
#ifndef CFStringConvertWindowsCodepageToEncoding
PyMac_PRECHECK(CFStringConvertWindowsCodepageToEncoding); PyMac_PRECHECK(CFStringConvertWindowsCodepageToEncoding);
#endif
if (!PyArg_ParseTuple(_args, "l", if (!PyArg_ParseTuple(_args, "l",
&codepage)) &codepage))
return NULL; return NULL;
@ -3012,7 +3190,9 @@ static PyObject *CF_CFStringConvertEncodingToIANACharSetName(PyObject *_self, Py
PyObject *_res = NULL; PyObject *_res = NULL;
CFStringRef _rv; CFStringRef _rv;
CFStringEncoding encoding; CFStringEncoding encoding;
#ifndef CFStringConvertEncodingToIANACharSetName
PyMac_PRECHECK(CFStringConvertEncodingToIANACharSetName); PyMac_PRECHECK(CFStringConvertEncodingToIANACharSetName);
#endif
if (!PyArg_ParseTuple(_args, "l", if (!PyArg_ParseTuple(_args, "l",
&encoding)) &encoding))
return NULL; return NULL;
@ -3027,7 +3207,9 @@ static PyObject *CF___CFStringMakeConstantString(PyObject *_self, PyObject *_arg
PyObject *_res = NULL; PyObject *_res = NULL;
CFStringRef _rv; CFStringRef _rv;
char* cStr; char* cStr;
#ifndef __CFStringMakeConstantString
PyMac_PRECHECK(__CFStringMakeConstantString); PyMac_PRECHECK(__CFStringMakeConstantString);
#endif
if (!PyArg_ParseTuple(_args, "s", if (!PyArg_ParseTuple(_args, "s",
&cStr)) &cStr))
return NULL; return NULL;
@ -3041,7 +3223,9 @@ static PyObject *CF_CFURLGetTypeID(PyObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CFTypeID _rv; CFTypeID _rv;
#ifndef CFURLGetTypeID
PyMac_PRECHECK(CFURLGetTypeID); PyMac_PRECHECK(CFURLGetTypeID);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = CFURLGetTypeID(); _rv = CFURLGetTypeID();
@ -3059,7 +3243,9 @@ static PyObject *CF_CFURLCreateWithBytes(PyObject *_self, PyObject *_args)
int URLBytes__in_len__; int URLBytes__in_len__;
CFStringEncoding encoding; CFStringEncoding encoding;
CFURLRef baseURL; CFURLRef baseURL;
#ifndef CFURLCreateWithBytes
PyMac_PRECHECK(CFURLCreateWithBytes); PyMac_PRECHECK(CFURLCreateWithBytes);
#endif
if (!PyArg_ParseTuple(_args, "s#lO&", if (!PyArg_ParseTuple(_args, "s#lO&",
&URLBytes__in__, &URLBytes__in_len__, &URLBytes__in__, &URLBytes__in_len__,
&encoding, &encoding,

View file

@ -5,12 +5,8 @@
#ifdef _WIN32
#include "pywintoolbox.h"
#else
#include "macglue.h" #include "macglue.h"
#include "pymactoolbox.h" #include "pymactoolbox.h"
#endif
/* Macro to test whether a weak-loaded CFM function exists */ /* Macro to test whether a weak-loaded CFM function exists */
#define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\ #define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\
@ -291,7 +287,7 @@ static PyObject *CmpInstObj_getattr(ComponentInstanceObject *self, char *name)
#define CmpInstObj_hash NULL #define CmpInstObj_hash NULL
PyTypeObject ComponentInstance_Type = { PyTypeObject ComponentInstance_Type = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"ComponentInstance", /*tp_name*/ "ComponentInstance", /*tp_name*/
sizeof(ComponentInstanceObject), /*tp_basicsize*/ sizeof(ComponentInstanceObject), /*tp_basicsize*/
@ -618,7 +614,7 @@ static PyObject *CmpObj_getattr(ComponentObject *self, char *name)
#define CmpObj_hash NULL #define CmpObj_hash NULL
PyTypeObject Component_Type = { PyTypeObject Component_Type = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"Component", /*tp_name*/ "Component", /*tp_name*/
sizeof(ComponentObject), /*tp_basicsize*/ sizeof(ComponentObject), /*tp_basicsize*/

View file

@ -5,12 +5,8 @@
#ifdef _WIN32
#include "pywintoolbox.h"
#else
#include "macglue.h" #include "macglue.h"
#include "pymactoolbox.h" #include "pymactoolbox.h"
#endif
/* Macro to test whether a weak-loaded CFM function exists */ /* Macro to test whether a weak-loaded CFM function exists */
#define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\ #define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\
@ -144,6 +140,9 @@ static PyObject *CtlObj_HiliteControl(ControlObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
ControlPartCode hiliteState; ControlPartCode hiliteState;
#ifndef HiliteControl
PyMac_PRECHECK(HiliteControl);
#endif
if (!PyArg_ParseTuple(_args, "h", if (!PyArg_ParseTuple(_args, "h",
&hiliteState)) &hiliteState))
return NULL; return NULL;
@ -157,6 +156,9 @@ static PyObject *CtlObj_HiliteControl(ControlObject *_self, PyObject *_args)
static PyObject *CtlObj_ShowControl(ControlObject *_self, PyObject *_args) static PyObject *CtlObj_ShowControl(ControlObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
#ifndef ShowControl
PyMac_PRECHECK(ShowControl);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
ShowControl(_self->ob_itself); ShowControl(_self->ob_itself);
@ -168,6 +170,9 @@ static PyObject *CtlObj_ShowControl(ControlObject *_self, PyObject *_args)
static PyObject *CtlObj_HideControl(ControlObject *_self, PyObject *_args) static PyObject *CtlObj_HideControl(ControlObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
#ifndef HideControl
PyMac_PRECHECK(HideControl);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
HideControl(_self->ob_itself); HideControl(_self->ob_itself);
@ -180,6 +185,9 @@ static PyObject *CtlObj_IsControlActive(ControlObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
Boolean _rv; Boolean _rv;
#ifndef IsControlActive
PyMac_PRECHECK(IsControlActive);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = IsControlActive(_self->ob_itself); _rv = IsControlActive(_self->ob_itself);
@ -192,6 +200,9 @@ static PyObject *CtlObj_IsControlVisible(ControlObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
Boolean _rv; Boolean _rv;
#ifndef IsControlVisible
PyMac_PRECHECK(IsControlVisible);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = IsControlVisible(_self->ob_itself); _rv = IsControlVisible(_self->ob_itself);
@ -204,6 +215,9 @@ static PyObject *CtlObj_ActivateControl(ControlObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
OSErr _err; OSErr _err;
#ifndef ActivateControl
PyMac_PRECHECK(ActivateControl);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_err = ActivateControl(_self->ob_itself); _err = ActivateControl(_self->ob_itself);
@ -217,6 +231,9 @@ static PyObject *CtlObj_DeactivateControl(ControlObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
OSErr _err; OSErr _err;
#ifndef DeactivateControl
PyMac_PRECHECK(DeactivateControl);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_err = DeactivateControl(_self->ob_itself); _err = DeactivateControl(_self->ob_itself);
@ -232,6 +249,9 @@ static PyObject *CtlObj_SetControlVisibility(ControlObject *_self, PyObject *_ar
OSErr _err; OSErr _err;
Boolean inIsVisible; Boolean inIsVisible;
Boolean inDoDraw; Boolean inDoDraw;
#ifndef SetControlVisibility
PyMac_PRECHECK(SetControlVisibility);
#endif
if (!PyArg_ParseTuple(_args, "bb", if (!PyArg_ParseTuple(_args, "bb",
&inIsVisible, &inIsVisible,
&inDoDraw)) &inDoDraw))
@ -248,6 +268,9 @@ static PyObject *CtlObj_SetControlVisibility(ControlObject *_self, PyObject *_ar
static PyObject *CtlObj_Draw1Control(ControlObject *_self, PyObject *_args) static PyObject *CtlObj_Draw1Control(ControlObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
#ifndef Draw1Control
PyMac_PRECHECK(Draw1Control);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
Draw1Control(_self->ob_itself); Draw1Control(_self->ob_itself);
@ -262,6 +285,9 @@ static PyObject *CtlObj_GetBestControlRect(ControlObject *_self, PyObject *_args
OSErr _err; OSErr _err;
Rect outRect; Rect outRect;
SInt16 outBaseLineOffset; SInt16 outBaseLineOffset;
#ifndef GetBestControlRect
PyMac_PRECHECK(GetBestControlRect);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_err = GetBestControlRect(_self->ob_itself, _err = GetBestControlRect(_self->ob_itself,
@ -279,6 +305,9 @@ static PyObject *CtlObj_SetControlFontStyle(ControlObject *_self, PyObject *_arg
PyObject *_res = NULL; PyObject *_res = NULL;
OSErr _err; OSErr _err;
ControlFontStyleRec inStyle; ControlFontStyleRec inStyle;
#ifndef SetControlFontStyle
PyMac_PRECHECK(SetControlFontStyle);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
ControlFontStyle_Convert, &inStyle)) ControlFontStyle_Convert, &inStyle))
return NULL; return NULL;
@ -293,6 +322,9 @@ static PyObject *CtlObj_SetControlFontStyle(ControlObject *_self, PyObject *_arg
static PyObject *CtlObj_DrawControlInCurrentPort(ControlObject *_self, PyObject *_args) static PyObject *CtlObj_DrawControlInCurrentPort(ControlObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
#ifndef DrawControlInCurrentPort
PyMac_PRECHECK(DrawControlInCurrentPort);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
DrawControlInCurrentPort(_self->ob_itself); DrawControlInCurrentPort(_self->ob_itself);
@ -307,6 +339,9 @@ static PyObject *CtlObj_SetUpControlBackground(ControlObject *_self, PyObject *_
OSErr _err; OSErr _err;
SInt16 inDepth; SInt16 inDepth;
Boolean inIsColorDevice; Boolean inIsColorDevice;
#ifndef SetUpControlBackground
PyMac_PRECHECK(SetUpControlBackground);
#endif
if (!PyArg_ParseTuple(_args, "hb", if (!PyArg_ParseTuple(_args, "hb",
&inDepth, &inDepth,
&inIsColorDevice)) &inIsColorDevice))
@ -326,6 +361,9 @@ static PyObject *CtlObj_SetUpControlTextColor(ControlObject *_self, PyObject *_a
OSErr _err; OSErr _err;
SInt16 inDepth; SInt16 inDepth;
Boolean inIsColorDevice; Boolean inIsColorDevice;
#ifndef SetUpControlTextColor
PyMac_PRECHECK(SetUpControlTextColor);
#endif
if (!PyArg_ParseTuple(_args, "hb", if (!PyArg_ParseTuple(_args, "hb",
&inDepth, &inDepth,
&inIsColorDevice)) &inIsColorDevice))
@ -346,6 +384,9 @@ static PyObject *CtlObj_DragControl(ControlObject *_self, PyObject *_args)
Rect limitRect; Rect limitRect;
Rect slopRect; Rect slopRect;
DragConstraint axis; DragConstraint axis;
#ifndef DragControl
PyMac_PRECHECK(DragControl);
#endif
if (!PyArg_ParseTuple(_args, "O&O&O&H", if (!PyArg_ParseTuple(_args, "O&O&O&H",
PyMac_GetPoint, &startPoint, PyMac_GetPoint, &startPoint,
PyMac_GetRect, &limitRect, PyMac_GetRect, &limitRect,
@ -367,6 +408,9 @@ static PyObject *CtlObj_TestControl(ControlObject *_self, PyObject *_args)
PyObject *_res = NULL; PyObject *_res = NULL;
ControlPartCode _rv; ControlPartCode _rv;
Point testPoint; Point testPoint;
#ifndef TestControl
PyMac_PRECHECK(TestControl);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetPoint, &testPoint)) PyMac_GetPoint, &testPoint))
return NULL; return NULL;
@ -385,6 +429,9 @@ static PyObject *CtlObj_HandleControlContextualMenuClick(ControlObject *_self, P
OSStatus _err; OSStatus _err;
Point inWhere; Point inWhere;
Boolean menuDisplayed; Boolean menuDisplayed;
#ifndef HandleControlContextualMenuClick
PyMac_PRECHECK(HandleControlContextualMenuClick);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetPoint, &inWhere)) PyMac_GetPoint, &inWhere))
return NULL; return NULL;
@ -407,6 +454,9 @@ static PyObject *CtlObj_GetControlClickActivation(ControlObject *_self, PyObject
Point inWhere; Point inWhere;
EventModifiers inModifiers; EventModifiers inModifiers;
ClickActivationResult outResult; ClickActivationResult outResult;
#ifndef GetControlClickActivation
PyMac_PRECHECK(GetControlClickActivation);
#endif
if (!PyArg_ParseTuple(_args, "O&H", if (!PyArg_ParseTuple(_args, "O&H",
PyMac_GetPoint, &inWhere, PyMac_GetPoint, &inWhere,
&inModifiers)) &inModifiers))
@ -429,6 +479,9 @@ static PyObject *CtlObj_HandleControlKey(ControlObject *_self, PyObject *_args)
SInt16 inKeyCode; SInt16 inKeyCode;
SInt16 inCharCode; SInt16 inCharCode;
EventModifiers inModifiers; EventModifiers inModifiers;
#ifndef HandleControlKey
PyMac_PRECHECK(HandleControlKey);
#endif
if (!PyArg_ParseTuple(_args, "hhH", if (!PyArg_ParseTuple(_args, "hhH",
&inKeyCode, &inKeyCode,
&inCharCode, &inCharCode,
@ -452,6 +505,9 @@ static PyObject *CtlObj_HandleControlSetCursor(ControlObject *_self, PyObject *_
Point localPoint; Point localPoint;
EventModifiers modifiers; EventModifiers modifiers;
Boolean cursorWasSet; Boolean cursorWasSet;
#ifndef HandleControlSetCursor
PyMac_PRECHECK(HandleControlSetCursor);
#endif
if (!PyArg_ParseTuple(_args, "O&H", if (!PyArg_ParseTuple(_args, "O&H",
PyMac_GetPoint, &localPoint, PyMac_GetPoint, &localPoint,
&modifiers)) &modifiers))
@ -472,6 +528,9 @@ static PyObject *CtlObj_MoveControl(ControlObject *_self, PyObject *_args)
PyObject *_res = NULL; PyObject *_res = NULL;
SInt16 h; SInt16 h;
SInt16 v; SInt16 v;
#ifndef MoveControl
PyMac_PRECHECK(MoveControl);
#endif
if (!PyArg_ParseTuple(_args, "hh", if (!PyArg_ParseTuple(_args, "hh",
&h, &h,
&v)) &v))
@ -489,6 +548,9 @@ static PyObject *CtlObj_SizeControl(ControlObject *_self, PyObject *_args)
PyObject *_res = NULL; PyObject *_res = NULL;
SInt16 w; SInt16 w;
SInt16 h; SInt16 h;
#ifndef SizeControl
PyMac_PRECHECK(SizeControl);
#endif
if (!PyArg_ParseTuple(_args, "hh", if (!PyArg_ParseTuple(_args, "hh",
&w, &w,
&h)) &h))
@ -505,6 +567,9 @@ static PyObject *CtlObj_SetControlTitle(ControlObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
Str255 title; Str255 title;
#ifndef SetControlTitle
PyMac_PRECHECK(SetControlTitle);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetStr255, title)) PyMac_GetStr255, title))
return NULL; return NULL;
@ -519,6 +584,9 @@ static PyObject *CtlObj_GetControlTitle(ControlObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
Str255 title; Str255 title;
#ifndef GetControlTitle
PyMac_PRECHECK(GetControlTitle);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
GetControlTitle(_self->ob_itself, GetControlTitle(_self->ob_itself,
@ -532,6 +600,9 @@ static PyObject *CtlObj_GetControlValue(ControlObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
SInt16 _rv; SInt16 _rv;
#ifndef GetControlValue
PyMac_PRECHECK(GetControlValue);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = GetControlValue(_self->ob_itself); _rv = GetControlValue(_self->ob_itself);
@ -544,6 +615,9 @@ static PyObject *CtlObj_SetControlValue(ControlObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
SInt16 newValue; SInt16 newValue;
#ifndef SetControlValue
PyMac_PRECHECK(SetControlValue);
#endif
if (!PyArg_ParseTuple(_args, "h", if (!PyArg_ParseTuple(_args, "h",
&newValue)) &newValue))
return NULL; return NULL;
@ -558,6 +632,9 @@ static PyObject *CtlObj_GetControlMinimum(ControlObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
SInt16 _rv; SInt16 _rv;
#ifndef GetControlMinimum
PyMac_PRECHECK(GetControlMinimum);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = GetControlMinimum(_self->ob_itself); _rv = GetControlMinimum(_self->ob_itself);
@ -570,6 +647,9 @@ static PyObject *CtlObj_SetControlMinimum(ControlObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
SInt16 newMinimum; SInt16 newMinimum;
#ifndef SetControlMinimum
PyMac_PRECHECK(SetControlMinimum);
#endif
if (!PyArg_ParseTuple(_args, "h", if (!PyArg_ParseTuple(_args, "h",
&newMinimum)) &newMinimum))
return NULL; return NULL;
@ -584,6 +664,9 @@ static PyObject *CtlObj_GetControlMaximum(ControlObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
SInt16 _rv; SInt16 _rv;
#ifndef GetControlMaximum
PyMac_PRECHECK(GetControlMaximum);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = GetControlMaximum(_self->ob_itself); _rv = GetControlMaximum(_self->ob_itself);
@ -596,6 +679,9 @@ static PyObject *CtlObj_SetControlMaximum(ControlObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
SInt16 newMaximum; SInt16 newMaximum;
#ifndef SetControlMaximum
PyMac_PRECHECK(SetControlMaximum);
#endif
if (!PyArg_ParseTuple(_args, "h", if (!PyArg_ParseTuple(_args, "h",
&newMaximum)) &newMaximum))
return NULL; return NULL;
@ -610,6 +696,9 @@ static PyObject *CtlObj_GetControlViewSize(ControlObject *_self, PyObject *_args
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
SInt32 _rv; SInt32 _rv;
#ifndef GetControlViewSize
PyMac_PRECHECK(GetControlViewSize);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = GetControlViewSize(_self->ob_itself); _rv = GetControlViewSize(_self->ob_itself);
@ -622,6 +711,9 @@ static PyObject *CtlObj_SetControlViewSize(ControlObject *_self, PyObject *_args
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
SInt32 newViewSize; SInt32 newViewSize;
#ifndef SetControlViewSize
PyMac_PRECHECK(SetControlViewSize);
#endif
if (!PyArg_ParseTuple(_args, "l", if (!PyArg_ParseTuple(_args, "l",
&newViewSize)) &newViewSize))
return NULL; return NULL;
@ -636,6 +728,9 @@ static PyObject *CtlObj_GetControl32BitValue(ControlObject *_self, PyObject *_ar
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
SInt32 _rv; SInt32 _rv;
#ifndef GetControl32BitValue
PyMac_PRECHECK(GetControl32BitValue);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = GetControl32BitValue(_self->ob_itself); _rv = GetControl32BitValue(_self->ob_itself);
@ -648,6 +743,9 @@ static PyObject *CtlObj_SetControl32BitValue(ControlObject *_self, PyObject *_ar
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
SInt32 newValue; SInt32 newValue;
#ifndef SetControl32BitValue
PyMac_PRECHECK(SetControl32BitValue);
#endif
if (!PyArg_ParseTuple(_args, "l", if (!PyArg_ParseTuple(_args, "l",
&newValue)) &newValue))
return NULL; return NULL;
@ -662,6 +760,9 @@ static PyObject *CtlObj_GetControl32BitMaximum(ControlObject *_self, PyObject *_
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
SInt32 _rv; SInt32 _rv;
#ifndef GetControl32BitMaximum
PyMac_PRECHECK(GetControl32BitMaximum);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = GetControl32BitMaximum(_self->ob_itself); _rv = GetControl32BitMaximum(_self->ob_itself);
@ -674,6 +775,9 @@ static PyObject *CtlObj_SetControl32BitMaximum(ControlObject *_self, PyObject *_
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
SInt32 newMaximum; SInt32 newMaximum;
#ifndef SetControl32BitMaximum
PyMac_PRECHECK(SetControl32BitMaximum);
#endif
if (!PyArg_ParseTuple(_args, "l", if (!PyArg_ParseTuple(_args, "l",
&newMaximum)) &newMaximum))
return NULL; return NULL;
@ -688,6 +792,9 @@ static PyObject *CtlObj_GetControl32BitMinimum(ControlObject *_self, PyObject *_
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
SInt32 _rv; SInt32 _rv;
#ifndef GetControl32BitMinimum
PyMac_PRECHECK(GetControl32BitMinimum);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = GetControl32BitMinimum(_self->ob_itself); _rv = GetControl32BitMinimum(_self->ob_itself);
@ -700,6 +807,9 @@ static PyObject *CtlObj_SetControl32BitMinimum(ControlObject *_self, PyObject *_
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
SInt32 newMinimum; SInt32 newMinimum;
#ifndef SetControl32BitMinimum
PyMac_PRECHECK(SetControl32BitMinimum);
#endif
if (!PyArg_ParseTuple(_args, "l", if (!PyArg_ParseTuple(_args, "l",
&newMinimum)) &newMinimum))
return NULL; return NULL;
@ -714,6 +824,9 @@ static PyObject *CtlObj_IsValidControlHandle(ControlObject *_self, PyObject *_ar
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
Boolean _rv; Boolean _rv;
#ifndef IsValidControlHandle
PyMac_PRECHECK(IsValidControlHandle);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = IsValidControlHandle(_self->ob_itself); _rv = IsValidControlHandle(_self->ob_itself);
@ -729,6 +842,9 @@ static PyObject *CtlObj_SetControlID(ControlObject *_self, PyObject *_args)
PyObject *_res = NULL; PyObject *_res = NULL;
OSStatus _err; OSStatus _err;
ControlID inID; ControlID inID;
#ifndef SetControlID
PyMac_PRECHECK(SetControlID);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
PyControlID_Convert, &inID)) PyControlID_Convert, &inID))
return NULL; return NULL;
@ -748,6 +864,9 @@ static PyObject *CtlObj_GetControlID(ControlObject *_self, PyObject *_args)
PyObject *_res = NULL; PyObject *_res = NULL;
OSStatus _err; OSStatus _err;
ControlID outID; ControlID outID;
#ifndef GetControlID
PyMac_PRECHECK(GetControlID);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_err = GetControlID(_self->ob_itself, _err = GetControlID(_self->ob_itself,
@ -765,6 +884,9 @@ static PyObject *CtlObj_RemoveControlProperty(ControlObject *_self, PyObject *_a
OSStatus _err; OSStatus _err;
OSType propertyCreator; OSType propertyCreator;
OSType propertyTag; OSType propertyTag;
#ifndef RemoveControlProperty
PyMac_PRECHECK(RemoveControlProperty);
#endif
if (!PyArg_ParseTuple(_args, "O&O&", if (!PyArg_ParseTuple(_args, "O&O&",
PyMac_GetOSType, &propertyCreator, PyMac_GetOSType, &propertyCreator,
PyMac_GetOSType, &propertyTag)) PyMac_GetOSType, &propertyTag))
@ -787,6 +909,9 @@ static PyObject *CtlObj_GetControlPropertyAttributes(ControlObject *_self, PyObj
OSType propertyCreator; OSType propertyCreator;
OSType propertyTag; OSType propertyTag;
UInt32 attributes; UInt32 attributes;
#ifndef GetControlPropertyAttributes
PyMac_PRECHECK(GetControlPropertyAttributes);
#endif
if (!PyArg_ParseTuple(_args, "O&O&", if (!PyArg_ParseTuple(_args, "O&O&",
PyMac_GetOSType, &propertyCreator, PyMac_GetOSType, &propertyCreator,
PyMac_GetOSType, &propertyTag)) PyMac_GetOSType, &propertyTag))
@ -812,6 +937,9 @@ static PyObject *CtlObj_ChangeControlPropertyAttributes(ControlObject *_self, Py
OSType propertyTag; OSType propertyTag;
UInt32 attributesToSet; UInt32 attributesToSet;
UInt32 attributesToClear; UInt32 attributesToClear;
#ifndef ChangeControlPropertyAttributes
PyMac_PRECHECK(ChangeControlPropertyAttributes);
#endif
if (!PyArg_ParseTuple(_args, "O&O&ll", if (!PyArg_ParseTuple(_args, "O&O&ll",
PyMac_GetOSType, &propertyCreator, PyMac_GetOSType, &propertyCreator,
PyMac_GetOSType, &propertyTag, PyMac_GetOSType, &propertyTag,
@ -836,6 +964,9 @@ static PyObject *CtlObj_GetControlRegion(ControlObject *_self, PyObject *_args)
OSStatus _err; OSStatus _err;
ControlPartCode inPart; ControlPartCode inPart;
RgnHandle outRegion; RgnHandle outRegion;
#ifndef GetControlRegion
PyMac_PRECHECK(GetControlRegion);
#endif
if (!PyArg_ParseTuple(_args, "hO&", if (!PyArg_ParseTuple(_args, "hO&",
&inPart, &inPart,
ResObj_Convert, &outRegion)) ResObj_Convert, &outRegion))
@ -853,6 +984,9 @@ static PyObject *CtlObj_GetControlVariant(ControlObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
ControlVariant _rv; ControlVariant _rv;
#ifndef GetControlVariant
PyMac_PRECHECK(GetControlVariant);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = GetControlVariant(_self->ob_itself); _rv = GetControlVariant(_self->ob_itself);
@ -865,6 +999,9 @@ static PyObject *CtlObj_SetControlReference(ControlObject *_self, PyObject *_arg
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
SInt32 data; SInt32 data;
#ifndef SetControlReference
PyMac_PRECHECK(SetControlReference);
#endif
if (!PyArg_ParseTuple(_args, "l", if (!PyArg_ParseTuple(_args, "l",
&data)) &data))
return NULL; return NULL;
@ -879,6 +1016,9 @@ static PyObject *CtlObj_GetControlReference(ControlObject *_self, PyObject *_arg
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
SInt32 _rv; SInt32 _rv;
#ifndef GetControlReference
PyMac_PRECHECK(GetControlReference);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = GetControlReference(_self->ob_itself); _rv = GetControlReference(_self->ob_itself);
@ -894,6 +1034,9 @@ static PyObject *CtlObj_GetAuxiliaryControlRecord(ControlObject *_self, PyObject
PyObject *_res = NULL; PyObject *_res = NULL;
Boolean _rv; Boolean _rv;
AuxCtlHandle acHndl; AuxCtlHandle acHndl;
#ifndef GetAuxiliaryControlRecord
PyMac_PRECHECK(GetAuxiliaryControlRecord);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = GetAuxiliaryControlRecord(_self->ob_itself, _rv = GetAuxiliaryControlRecord(_self->ob_itself,
@ -911,6 +1054,9 @@ static PyObject *CtlObj_SetControlColor(ControlObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CCTabHandle newColorTable; CCTabHandle newColorTable;
#ifndef SetControlColor
PyMac_PRECHECK(SetControlColor);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &newColorTable)) ResObj_Convert, &newColorTable))
return NULL; return NULL;
@ -927,6 +1073,9 @@ static PyObject *CtlObj_EmbedControl(ControlObject *_self, PyObject *_args)
PyObject *_res = NULL; PyObject *_res = NULL;
OSErr _err; OSErr _err;
ControlHandle inContainer; ControlHandle inContainer;
#ifndef EmbedControl
PyMac_PRECHECK(EmbedControl);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
CtlObj_Convert, &inContainer)) CtlObj_Convert, &inContainer))
return NULL; return NULL;
@ -943,6 +1092,9 @@ static PyObject *CtlObj_AutoEmbedControl(ControlObject *_self, PyObject *_args)
PyObject *_res = NULL; PyObject *_res = NULL;
OSErr _err; OSErr _err;
WindowPtr inWindow; WindowPtr inWindow;
#ifndef AutoEmbedControl
PyMac_PRECHECK(AutoEmbedControl);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
WinObj_Convert, &inWindow)) WinObj_Convert, &inWindow))
return NULL; return NULL;
@ -959,6 +1111,9 @@ static PyObject *CtlObj_GetSuperControl(ControlObject *_self, PyObject *_args)
PyObject *_res = NULL; PyObject *_res = NULL;
OSErr _err; OSErr _err;
ControlHandle outParent; ControlHandle outParent;
#ifndef GetSuperControl
PyMac_PRECHECK(GetSuperControl);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_err = GetSuperControl(_self->ob_itself, _err = GetSuperControl(_self->ob_itself,
@ -974,6 +1129,9 @@ static PyObject *CtlObj_CountSubControls(ControlObject *_self, PyObject *_args)
PyObject *_res = NULL; PyObject *_res = NULL;
OSErr _err; OSErr _err;
UInt16 outNumChildren; UInt16 outNumChildren;
#ifndef CountSubControls
PyMac_PRECHECK(CountSubControls);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_err = CountSubControls(_self->ob_itself, _err = CountSubControls(_self->ob_itself,
@ -990,6 +1148,9 @@ static PyObject *CtlObj_GetIndexedSubControl(ControlObject *_self, PyObject *_ar
OSErr _err; OSErr _err;
UInt16 inIndex; UInt16 inIndex;
ControlHandle outSubControl; ControlHandle outSubControl;
#ifndef GetIndexedSubControl
PyMac_PRECHECK(GetIndexedSubControl);
#endif
if (!PyArg_ParseTuple(_args, "H", if (!PyArg_ParseTuple(_args, "H",
&inIndex)) &inIndex))
return NULL; return NULL;
@ -1007,6 +1168,9 @@ static PyObject *CtlObj_SetControlSupervisor(ControlObject *_self, PyObject *_ar
PyObject *_res = NULL; PyObject *_res = NULL;
OSErr _err; OSErr _err;
ControlHandle inBoss; ControlHandle inBoss;
#ifndef SetControlSupervisor
PyMac_PRECHECK(SetControlSupervisor);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
CtlObj_Convert, &inBoss)) CtlObj_Convert, &inBoss))
return NULL; return NULL;
@ -1023,6 +1187,9 @@ static PyObject *CtlObj_GetControlFeatures(ControlObject *_self, PyObject *_args
PyObject *_res = NULL; PyObject *_res = NULL;
OSErr _err; OSErr _err;
UInt32 outFeatures; UInt32 outFeatures;
#ifndef GetControlFeatures
PyMac_PRECHECK(GetControlFeatures);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_err = GetControlFeatures(_self->ob_itself, _err = GetControlFeatures(_self->ob_itself,
@ -1040,6 +1207,9 @@ static PyObject *CtlObj_GetControlDataSize(ControlObject *_self, PyObject *_args
ControlPartCode inPart; ControlPartCode inPart;
ResType inTagName; ResType inTagName;
Size outMaxSize; Size outMaxSize;
#ifndef GetControlDataSize
PyMac_PRECHECK(GetControlDataSize);
#endif
if (!PyArg_ParseTuple(_args, "hO&", if (!PyArg_ParseTuple(_args, "hO&",
&inPart, &inPart,
PyMac_GetOSType, &inTagName)) PyMac_GetOSType, &inTagName))
@ -1063,6 +1233,9 @@ static PyObject *CtlObj_HandleControlDragTracking(ControlObject *_self, PyObject
DragTrackingMessage inMessage; DragTrackingMessage inMessage;
DragReference inDrag; DragReference inDrag;
Boolean outLikesDrag; Boolean outLikesDrag;
#ifndef HandleControlDragTracking
PyMac_PRECHECK(HandleControlDragTracking);
#endif
if (!PyArg_ParseTuple(_args, "hO&", if (!PyArg_ParseTuple(_args, "hO&",
&inMessage, &inMessage,
DragObj_Convert, &inDrag)) DragObj_Convert, &inDrag))
@ -1085,6 +1258,9 @@ static PyObject *CtlObj_HandleControlDragReceive(ControlObject *_self, PyObject
PyObject *_res = NULL; PyObject *_res = NULL;
OSStatus _err; OSStatus _err;
DragReference inDrag; DragReference inDrag;
#ifndef HandleControlDragReceive
PyMac_PRECHECK(HandleControlDragReceive);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
DragObj_Convert, &inDrag)) DragObj_Convert, &inDrag))
return NULL; return NULL;
@ -1104,6 +1280,9 @@ static PyObject *CtlObj_SetControlDragTrackingEnabled(ControlObject *_self, PyOb
PyObject *_res = NULL; PyObject *_res = NULL;
OSStatus _err; OSStatus _err;
Boolean tracks; Boolean tracks;
#ifndef SetControlDragTrackingEnabled
PyMac_PRECHECK(SetControlDragTrackingEnabled);
#endif
if (!PyArg_ParseTuple(_args, "b", if (!PyArg_ParseTuple(_args, "b",
&tracks)) &tracks))
return NULL; return NULL;
@ -1123,6 +1302,9 @@ static PyObject *CtlObj_IsControlDragTrackingEnabled(ControlObject *_self, PyObj
PyObject *_res = NULL; PyObject *_res = NULL;
OSStatus _err; OSStatus _err;
Boolean tracks; Boolean tracks;
#ifndef IsControlDragTrackingEnabled
PyMac_PRECHECK(IsControlDragTrackingEnabled);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_err = IsControlDragTrackingEnabled(_self->ob_itself, _err = IsControlDragTrackingEnabled(_self->ob_itself,
@ -1140,6 +1322,9 @@ static PyObject *CtlObj_GetControlBounds(ControlObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
Rect bounds; Rect bounds;
#ifndef GetControlBounds
PyMac_PRECHECK(GetControlBounds);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
GetControlBounds(_self->ob_itself, GetControlBounds(_self->ob_itself,
@ -1156,6 +1341,9 @@ static PyObject *CtlObj_IsControlHilited(ControlObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
Boolean _rv; Boolean _rv;
#ifndef IsControlHilited
PyMac_PRECHECK(IsControlHilited);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = IsControlHilited(_self->ob_itself); _rv = IsControlHilited(_self->ob_itself);
@ -1171,6 +1359,9 @@ static PyObject *CtlObj_GetControlHilite(ControlObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
UInt16 _rv; UInt16 _rv;
#ifndef GetControlHilite
PyMac_PRECHECK(GetControlHilite);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = GetControlHilite(_self->ob_itself); _rv = GetControlHilite(_self->ob_itself);
@ -1186,6 +1377,9 @@ static PyObject *CtlObj_GetControlOwner(ControlObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
WindowPtr _rv; WindowPtr _rv;
#ifndef GetControlOwner
PyMac_PRECHECK(GetControlOwner);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = GetControlOwner(_self->ob_itself); _rv = GetControlOwner(_self->ob_itself);
@ -1201,6 +1395,9 @@ static PyObject *CtlObj_GetControlDataHandle(ControlObject *_self, PyObject *_ar
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
Handle _rv; Handle _rv;
#ifndef GetControlDataHandle
PyMac_PRECHECK(GetControlDataHandle);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = GetControlDataHandle(_self->ob_itself); _rv = GetControlDataHandle(_self->ob_itself);
@ -1216,6 +1413,9 @@ static PyObject *CtlObj_GetControlPopupMenuHandle(ControlObject *_self, PyObject
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
MenuHandle _rv; MenuHandle _rv;
#ifndef GetControlPopupMenuHandle
PyMac_PRECHECK(GetControlPopupMenuHandle);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = GetControlPopupMenuHandle(_self->ob_itself); _rv = GetControlPopupMenuHandle(_self->ob_itself);
@ -1231,6 +1431,9 @@ static PyObject *CtlObj_GetControlPopupMenuID(ControlObject *_self, PyObject *_a
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
short _rv; short _rv;
#ifndef GetControlPopupMenuID
PyMac_PRECHECK(GetControlPopupMenuID);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = GetControlPopupMenuID(_self->ob_itself); _rv = GetControlPopupMenuID(_self->ob_itself);
@ -1246,6 +1449,9 @@ static PyObject *CtlObj_SetControlDataHandle(ControlObject *_self, PyObject *_ar
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
Handle dataHandle; Handle dataHandle;
#ifndef SetControlDataHandle
PyMac_PRECHECK(SetControlDataHandle);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &dataHandle)) ResObj_Convert, &dataHandle))
return NULL; return NULL;
@ -1263,6 +1469,9 @@ static PyObject *CtlObj_SetControlBounds(ControlObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
Rect bounds; Rect bounds;
#ifndef SetControlBounds
PyMac_PRECHECK(SetControlBounds);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetRect, &bounds)) PyMac_GetRect, &bounds))
return NULL; return NULL;
@ -1280,6 +1489,9 @@ static PyObject *CtlObj_SetControlPopupMenuHandle(ControlObject *_self, PyObject
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
MenuHandle popupMenu; MenuHandle popupMenu;
#ifndef SetControlPopupMenuHandle
PyMac_PRECHECK(SetControlPopupMenuHandle);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
MenuObj_Convert, &popupMenu)) MenuObj_Convert, &popupMenu))
return NULL; return NULL;
@ -1297,6 +1509,9 @@ static PyObject *CtlObj_SetControlPopupMenuID(ControlObject *_self, PyObject *_a
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
short menuID; short menuID;
#ifndef SetControlPopupMenuID
PyMac_PRECHECK(SetControlPopupMenuID);
#endif
if (!PyArg_ParseTuple(_args, "h", if (!PyArg_ParseTuple(_args, "h",
&menuID)) &menuID))
return NULL; return NULL;
@ -1313,6 +1528,9 @@ static PyObject *CtlObj_GetBevelButtonMenuValue(ControlObject *_self, PyObject *
PyObject *_res = NULL; PyObject *_res = NULL;
OSErr _err; OSErr _err;
SInt16 outValue; SInt16 outValue;
#ifndef GetBevelButtonMenuValue
PyMac_PRECHECK(GetBevelButtonMenuValue);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_err = GetBevelButtonMenuValue(_self->ob_itself, _err = GetBevelButtonMenuValue(_self->ob_itself,
@ -1328,6 +1546,9 @@ static PyObject *CtlObj_SetBevelButtonMenuValue(ControlObject *_self, PyObject *
PyObject *_res = NULL; PyObject *_res = NULL;
OSErr _err; OSErr _err;
SInt16 inValue; SInt16 inValue;
#ifndef SetBevelButtonMenuValue
PyMac_PRECHECK(SetBevelButtonMenuValue);
#endif
if (!PyArg_ParseTuple(_args, "h", if (!PyArg_ParseTuple(_args, "h",
&inValue)) &inValue))
return NULL; return NULL;
@ -1344,6 +1565,9 @@ static PyObject *CtlObj_GetBevelButtonMenuHandle(ControlObject *_self, PyObject
PyObject *_res = NULL; PyObject *_res = NULL;
OSErr _err; OSErr _err;
MenuHandle outHandle; MenuHandle outHandle;
#ifndef GetBevelButtonMenuHandle
PyMac_PRECHECK(GetBevelButtonMenuHandle);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_err = GetBevelButtonMenuHandle(_self->ob_itself, _err = GetBevelButtonMenuHandle(_self->ob_itself,
@ -1359,6 +1583,9 @@ static PyObject *CtlObj_SetBevelButtonTransform(ControlObject *_self, PyObject *
PyObject *_res = NULL; PyObject *_res = NULL;
OSErr _err; OSErr _err;
IconTransformType transform; IconTransformType transform;
#ifndef SetBevelButtonTransform
PyMac_PRECHECK(SetBevelButtonTransform);
#endif
if (!PyArg_ParseTuple(_args, "h", if (!PyArg_ParseTuple(_args, "h",
&transform)) &transform))
return NULL; return NULL;
@ -1375,6 +1602,9 @@ static PyObject *CtlObj_SetDisclosureTriangleLastValue(ControlObject *_self, PyO
PyObject *_res = NULL; PyObject *_res = NULL;
OSErr _err; OSErr _err;
SInt16 inValue; SInt16 inValue;
#ifndef SetDisclosureTriangleLastValue
PyMac_PRECHECK(SetDisclosureTriangleLastValue);
#endif
if (!PyArg_ParseTuple(_args, "h", if (!PyArg_ParseTuple(_args, "h",
&inValue)) &inValue))
return NULL; return NULL;
@ -1391,6 +1621,9 @@ static PyObject *CtlObj_GetTabContentRect(ControlObject *_self, PyObject *_args)
PyObject *_res = NULL; PyObject *_res = NULL;
OSErr _err; OSErr _err;
Rect outContentRect; Rect outContentRect;
#ifndef GetTabContentRect
PyMac_PRECHECK(GetTabContentRect);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_err = GetTabContentRect(_self->ob_itself, _err = GetTabContentRect(_self->ob_itself,
@ -1407,6 +1640,9 @@ static PyObject *CtlObj_SetTabEnabled(ControlObject *_self, PyObject *_args)
OSErr _err; OSErr _err;
SInt16 inTabToHilite; SInt16 inTabToHilite;
Boolean inEnabled; Boolean inEnabled;
#ifndef SetTabEnabled
PyMac_PRECHECK(SetTabEnabled);
#endif
if (!PyArg_ParseTuple(_args, "hb", if (!PyArg_ParseTuple(_args, "hb",
&inTabToHilite, &inTabToHilite,
&inEnabled)) &inEnabled))
@ -1425,6 +1661,9 @@ static PyObject *CtlObj_SetImageWellTransform(ControlObject *_self, PyObject *_a
PyObject *_res = NULL; PyObject *_res = NULL;
OSErr _err; OSErr _err;
IconTransformType inTransform; IconTransformType inTransform;
#ifndef SetImageWellTransform
PyMac_PRECHECK(SetImageWellTransform);
#endif
if (!PyArg_ParseTuple(_args, "h", if (!PyArg_ParseTuple(_args, "h",
&inTransform)) &inTransform))
return NULL; return NULL;
@ -1440,6 +1679,9 @@ static PyObject *CtlObj_as_Resource(ControlObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
Handle _rv; Handle _rv;
#ifndef as_Resource
PyMac_PRECHECK(as_Resource);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = as_Resource(_self->ob_itself); _rv = as_Resource(_self->ob_itself);
@ -1452,6 +1694,9 @@ static PyObject *CtlObj_GetControlRect(ControlObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
Rect rect; Rect rect;
#ifndef GetControlRect
PyMac_PRECHECK(GetControlRect);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
GetControlRect(_self->ob_itself, GetControlRect(_self->ob_itself,
@ -2066,7 +2311,7 @@ static long CtlObj_hash(ControlObject *self)
} }
PyTypeObject Control_Type = { PyTypeObject Control_Type = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"Control", /*tp_name*/ "Control", /*tp_name*/
sizeof(ControlObject), /*tp_basicsize*/ sizeof(ControlObject), /*tp_basicsize*/
@ -2100,6 +2345,9 @@ static PyObject *Ctl_NewControl(PyObject *_self, PyObject *_args)
SInt16 maximumValue; SInt16 maximumValue;
SInt16 procID; SInt16 procID;
SInt32 controlReference; SInt32 controlReference;
#ifndef NewControl
PyMac_PRECHECK(NewControl);
#endif
if (!PyArg_ParseTuple(_args, "O&O&O&bhhhhl", if (!PyArg_ParseTuple(_args, "O&O&O&bhhhhl",
WinObj_Convert, &owningWindow, WinObj_Convert, &owningWindow,
PyMac_GetRect, &boundsRect, PyMac_GetRect, &boundsRect,
@ -2131,6 +2379,9 @@ static PyObject *Ctl_GetNewControl(PyObject *_self, PyObject *_args)
ControlHandle _rv; ControlHandle _rv;
SInt16 resourceID; SInt16 resourceID;
WindowPtr owningWindow; WindowPtr owningWindow;
#ifndef GetNewControl
PyMac_PRECHECK(GetNewControl);
#endif
if (!PyArg_ParseTuple(_args, "hO&", if (!PyArg_ParseTuple(_args, "hO&",
&resourceID, &resourceID,
WinObj_Convert, &owningWindow)) WinObj_Convert, &owningWindow))
@ -2146,6 +2397,9 @@ static PyObject *Ctl_DrawControls(PyObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
WindowPtr theWindow; WindowPtr theWindow;
#ifndef DrawControls
PyMac_PRECHECK(DrawControls);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
WinObj_Convert, &theWindow)) WinObj_Convert, &theWindow))
return NULL; return NULL;
@ -2160,6 +2414,9 @@ static PyObject *Ctl_UpdateControls(PyObject *_self, PyObject *_args)
PyObject *_res = NULL; PyObject *_res = NULL;
WindowPtr theWindow; WindowPtr theWindow;
RgnHandle updateRegion; RgnHandle updateRegion;
#ifndef UpdateControls
PyMac_PRECHECK(UpdateControls);
#endif
if (!PyArg_ParseTuple(_args, "O&O&", if (!PyArg_ParseTuple(_args, "O&O&",
WinObj_Convert, &theWindow, WinObj_Convert, &theWindow,
ResObj_Convert, &updateRegion)) ResObj_Convert, &updateRegion))
@ -2178,6 +2435,9 @@ static PyObject *Ctl_FindControl(PyObject *_self, PyObject *_args)
Point testPoint; Point testPoint;
WindowPtr theWindow; WindowPtr theWindow;
ControlHandle theControl; ControlHandle theControl;
#ifndef FindControl
PyMac_PRECHECK(FindControl);
#endif
if (!PyArg_ParseTuple(_args, "O&O&", if (!PyArg_ParseTuple(_args, "O&O&",
PyMac_GetPoint, &testPoint, PyMac_GetPoint, &testPoint,
WinObj_Convert, &theWindow)) WinObj_Convert, &theWindow))
@ -2198,6 +2458,9 @@ static PyObject *Ctl_FindControlUnderMouse(PyObject *_self, PyObject *_args)
Point inWhere; Point inWhere;
WindowPtr inWindow; WindowPtr inWindow;
SInt16 outPart; SInt16 outPart;
#ifndef FindControlUnderMouse
PyMac_PRECHECK(FindControlUnderMouse);
#endif
if (!PyArg_ParseTuple(_args, "O&O&", if (!PyArg_ParseTuple(_args, "O&O&",
PyMac_GetPoint, &inWhere, PyMac_GetPoint, &inWhere,
WinObj_Convert, &inWindow)) WinObj_Convert, &inWindow))
@ -2215,6 +2478,9 @@ static PyObject *Ctl_IdleControls(PyObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
WindowPtr inWindow; WindowPtr inWindow;
#ifndef IdleControls
PyMac_PRECHECK(IdleControls);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
WinObj_Convert, &inWindow)) WinObj_Convert, &inWindow))
return NULL; return NULL;
@ -2233,6 +2499,9 @@ static PyObject *Ctl_GetControlByID(PyObject *_self, PyObject *_args)
WindowPtr inWindow; WindowPtr inWindow;
ControlID inID; ControlID inID;
ControlHandle outControl; ControlHandle outControl;
#ifndef GetControlByID
PyMac_PRECHECK(GetControlByID);
#endif
if (!PyArg_ParseTuple(_args, "O&O&", if (!PyArg_ParseTuple(_args, "O&O&",
WinObj_Convert, &inWindow, WinObj_Convert, &inWindow,
PyControlID_Convert, &inID)) PyControlID_Convert, &inID))
@ -2253,6 +2522,9 @@ static PyObject *Ctl_DumpControlHierarchy(PyObject *_self, PyObject *_args)
OSErr _err; OSErr _err;
WindowPtr inWindow; WindowPtr inWindow;
FSSpec inDumpFile; FSSpec inDumpFile;
#ifndef DumpControlHierarchy
PyMac_PRECHECK(DumpControlHierarchy);
#endif
if (!PyArg_ParseTuple(_args, "O&O&", if (!PyArg_ParseTuple(_args, "O&O&",
WinObj_Convert, &inWindow, WinObj_Convert, &inWindow,
PyMac_GetFSSpec, &inDumpFile)) PyMac_GetFSSpec, &inDumpFile))
@ -2271,6 +2543,9 @@ static PyObject *Ctl_CreateRootControl(PyObject *_self, PyObject *_args)
OSErr _err; OSErr _err;
WindowPtr inWindow; WindowPtr inWindow;
ControlHandle outControl; ControlHandle outControl;
#ifndef CreateRootControl
PyMac_PRECHECK(CreateRootControl);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
WinObj_Convert, &inWindow)) WinObj_Convert, &inWindow))
return NULL; return NULL;
@ -2288,6 +2563,9 @@ static PyObject *Ctl_GetRootControl(PyObject *_self, PyObject *_args)
OSErr _err; OSErr _err;
WindowPtr inWindow; WindowPtr inWindow;
ControlHandle outControl; ControlHandle outControl;
#ifndef GetRootControl
PyMac_PRECHECK(GetRootControl);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
WinObj_Convert, &inWindow)) WinObj_Convert, &inWindow))
return NULL; return NULL;
@ -2305,6 +2583,9 @@ static PyObject *Ctl_GetKeyboardFocus(PyObject *_self, PyObject *_args)
OSErr _err; OSErr _err;
WindowPtr inWindow; WindowPtr inWindow;
ControlHandle outControl; ControlHandle outControl;
#ifndef GetKeyboardFocus
PyMac_PRECHECK(GetKeyboardFocus);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
WinObj_Convert, &inWindow)) WinObj_Convert, &inWindow))
return NULL; return NULL;
@ -2323,6 +2604,9 @@ static PyObject *Ctl_SetKeyboardFocus(PyObject *_self, PyObject *_args)
WindowPtr inWindow; WindowPtr inWindow;
ControlHandle inControl; ControlHandle inControl;
ControlFocusPart inPart; ControlFocusPart inPart;
#ifndef SetKeyboardFocus
PyMac_PRECHECK(SetKeyboardFocus);
#endif
if (!PyArg_ParseTuple(_args, "O&O&h", if (!PyArg_ParseTuple(_args, "O&O&h",
WinObj_Convert, &inWindow, WinObj_Convert, &inWindow,
CtlObj_Convert, &inControl, CtlObj_Convert, &inControl,
@ -2342,6 +2626,9 @@ static PyObject *Ctl_AdvanceKeyboardFocus(PyObject *_self, PyObject *_args)
PyObject *_res = NULL; PyObject *_res = NULL;
OSErr _err; OSErr _err;
WindowPtr inWindow; WindowPtr inWindow;
#ifndef AdvanceKeyboardFocus
PyMac_PRECHECK(AdvanceKeyboardFocus);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
WinObj_Convert, &inWindow)) WinObj_Convert, &inWindow))
return NULL; return NULL;
@ -2357,6 +2644,9 @@ static PyObject *Ctl_ReverseKeyboardFocus(PyObject *_self, PyObject *_args)
PyObject *_res = NULL; PyObject *_res = NULL;
OSErr _err; OSErr _err;
WindowPtr inWindow; WindowPtr inWindow;
#ifndef ReverseKeyboardFocus
PyMac_PRECHECK(ReverseKeyboardFocus);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
WinObj_Convert, &inWindow)) WinObj_Convert, &inWindow))
return NULL; return NULL;
@ -2372,6 +2662,9 @@ static PyObject *Ctl_ClearKeyboardFocus(PyObject *_self, PyObject *_args)
PyObject *_res = NULL; PyObject *_res = NULL;
OSErr _err; OSErr _err;
WindowPtr inWindow; WindowPtr inWindow;
#ifndef ClearKeyboardFocus
PyMac_PRECHECK(ClearKeyboardFocus);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
WinObj_Convert, &inWindow)) WinObj_Convert, &inWindow))
return NULL; return NULL;
@ -2390,6 +2683,9 @@ static PyObject *Ctl_SetAutomaticControlDragTrackingEnabledForWindow(PyObject *_
OSStatus _err; OSStatus _err;
WindowPtr theWindow; WindowPtr theWindow;
Boolean tracks; Boolean tracks;
#ifndef SetAutomaticControlDragTrackingEnabledForWindow
PyMac_PRECHECK(SetAutomaticControlDragTrackingEnabledForWindow);
#endif
if (!PyArg_ParseTuple(_args, "O&b", if (!PyArg_ParseTuple(_args, "O&b",
WinObj_Convert, &theWindow, WinObj_Convert, &theWindow,
&tracks)) &tracks))
@ -2411,6 +2707,9 @@ static PyObject *Ctl_IsAutomaticControlDragTrackingEnabledForWindow(PyObject *_s
OSStatus _err; OSStatus _err;
WindowPtr theWindow; WindowPtr theWindow;
Boolean tracks; Boolean tracks;
#ifndef IsAutomaticControlDragTrackingEnabledForWindow
PyMac_PRECHECK(IsAutomaticControlDragTrackingEnabledForWindow);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
WinObj_Convert, &theWindow)) WinObj_Convert, &theWindow))
return NULL; return NULL;
@ -2428,6 +2727,9 @@ static PyObject *Ctl_as_Control(PyObject *_self, PyObject *_args)
PyObject *_res = NULL; PyObject *_res = NULL;
ControlHandle _rv; ControlHandle _rv;
Handle h; Handle h;
#ifndef as_Control
PyMac_PRECHECK(as_Control);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &h)) ResObj_Convert, &h))
return NULL; return NULL;

View file

@ -336,8 +336,8 @@ object = MyObjectDefinition(OBJECTNAME, OBJECTPREFIX, OBJECTTYPE)
module.addobject(object) module.addobject(object)
# Create the generator classes used to populate the lists # Create the generator classes used to populate the lists
Function = OSErrFunctionGenerator Function = OSErrWeakLinkFunctionGenerator
Method = OSErrMethodGenerator Method = OSErrWeakLinkMethodGenerator
# Create and populate the lists # Create and populate the lists
functions = [] functions = []

View file

@ -5,12 +5,8 @@
#ifdef _WIN32
#include "pywintoolbox.h"
#else
#include "macglue.h" #include "macglue.h"
#include "pymactoolbox.h" #include "pymactoolbox.h"
#endif
/* Macro to test whether a weak-loaded CFM function exists */ /* Macro to test whether a weak-loaded CFM function exists */
#define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\ #define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\
@ -185,6 +181,9 @@ static void DlgObj_dealloc(DialogObject *self)
static PyObject *DlgObj_DrawDialog(DialogObject *_self, PyObject *_args) static PyObject *DlgObj_DrawDialog(DialogObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
#ifndef DrawDialog
PyMac_PRECHECK(DrawDialog);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
DrawDialog(_self->ob_itself); DrawDialog(_self->ob_itself);
@ -197,6 +196,9 @@ static PyObject *DlgObj_UpdateDialog(DialogObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
RgnHandle updateRgn; RgnHandle updateRgn;
#ifndef UpdateDialog
PyMac_PRECHECK(UpdateDialog);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &updateRgn)) ResObj_Convert, &updateRgn))
return NULL; return NULL;
@ -211,6 +213,9 @@ static PyObject *DlgObj_HideDialogItem(DialogObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
DialogItemIndex itemNo; DialogItemIndex itemNo;
#ifndef HideDialogItem
PyMac_PRECHECK(HideDialogItem);
#endif
if (!PyArg_ParseTuple(_args, "h", if (!PyArg_ParseTuple(_args, "h",
&itemNo)) &itemNo))
return NULL; return NULL;
@ -225,6 +230,9 @@ static PyObject *DlgObj_ShowDialogItem(DialogObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
DialogItemIndex itemNo; DialogItemIndex itemNo;
#ifndef ShowDialogItem
PyMac_PRECHECK(ShowDialogItem);
#endif
if (!PyArg_ParseTuple(_args, "h", if (!PyArg_ParseTuple(_args, "h",
&itemNo)) &itemNo))
return NULL; return NULL;
@ -240,6 +248,9 @@ static PyObject *DlgObj_FindDialogItem(DialogObject *_self, PyObject *_args)
PyObject *_res = NULL; PyObject *_res = NULL;
DialogItemIndexZeroBased _rv; DialogItemIndexZeroBased _rv;
Point thePt; Point thePt;
#ifndef FindDialogItem
PyMac_PRECHECK(FindDialogItem);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetPoint, &thePt)) PyMac_GetPoint, &thePt))
return NULL; return NULL;
@ -253,6 +264,9 @@ static PyObject *DlgObj_FindDialogItem(DialogObject *_self, PyObject *_args)
static PyObject *DlgObj_DialogCut(DialogObject *_self, PyObject *_args) static PyObject *DlgObj_DialogCut(DialogObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
#ifndef DialogCut
PyMac_PRECHECK(DialogCut);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
DialogCut(_self->ob_itself); DialogCut(_self->ob_itself);
@ -264,6 +278,9 @@ static PyObject *DlgObj_DialogCut(DialogObject *_self, PyObject *_args)
static PyObject *DlgObj_DialogPaste(DialogObject *_self, PyObject *_args) static PyObject *DlgObj_DialogPaste(DialogObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
#ifndef DialogPaste
PyMac_PRECHECK(DialogPaste);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
DialogPaste(_self->ob_itself); DialogPaste(_self->ob_itself);
@ -275,6 +292,9 @@ static PyObject *DlgObj_DialogPaste(DialogObject *_self, PyObject *_args)
static PyObject *DlgObj_DialogCopy(DialogObject *_self, PyObject *_args) static PyObject *DlgObj_DialogCopy(DialogObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
#ifndef DialogCopy
PyMac_PRECHECK(DialogCopy);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
DialogCopy(_self->ob_itself); DialogCopy(_self->ob_itself);
@ -286,6 +306,9 @@ static PyObject *DlgObj_DialogCopy(DialogObject *_self, PyObject *_args)
static PyObject *DlgObj_DialogDelete(DialogObject *_self, PyObject *_args) static PyObject *DlgObj_DialogDelete(DialogObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
#ifndef DialogDelete
PyMac_PRECHECK(DialogDelete);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
DialogDelete(_self->ob_itself); DialogDelete(_self->ob_itself);
@ -301,6 +324,9 @@ static PyObject *DlgObj_GetDialogItem(DialogObject *_self, PyObject *_args)
DialogItemType itemType; DialogItemType itemType;
Handle item; Handle item;
Rect box; Rect box;
#ifndef GetDialogItem
PyMac_PRECHECK(GetDialogItem);
#endif
if (!PyArg_ParseTuple(_args, "h", if (!PyArg_ParseTuple(_args, "h",
&itemNo)) &itemNo))
return NULL; return NULL;
@ -323,6 +349,9 @@ static PyObject *DlgObj_SetDialogItem(DialogObject *_self, PyObject *_args)
DialogItemType itemType; DialogItemType itemType;
Handle item; Handle item;
Rect box; Rect box;
#ifndef SetDialogItem
PyMac_PRECHECK(SetDialogItem);
#endif
if (!PyArg_ParseTuple(_args, "hhO&O&", if (!PyArg_ParseTuple(_args, "hhO&O&",
&itemNo, &itemNo,
&itemType, &itemType,
@ -345,6 +374,9 @@ static PyObject *DlgObj_SelectDialogItemText(DialogObject *_self, PyObject *_arg
DialogItemIndex itemNo; DialogItemIndex itemNo;
SInt16 strtSel; SInt16 strtSel;
SInt16 endSel; SInt16 endSel;
#ifndef SelectDialogItemText
PyMac_PRECHECK(SelectDialogItemText);
#endif
if (!PyArg_ParseTuple(_args, "hhh", if (!PyArg_ParseTuple(_args, "hhh",
&itemNo, &itemNo,
&strtSel, &strtSel,
@ -364,6 +396,9 @@ static PyObject *DlgObj_AppendDITL(DialogObject *_self, PyObject *_args)
PyObject *_res = NULL; PyObject *_res = NULL;
Handle theHandle; Handle theHandle;
DITLMethod method; DITLMethod method;
#ifndef AppendDITL
PyMac_PRECHECK(AppendDITL);
#endif
if (!PyArg_ParseTuple(_args, "O&h", if (!PyArg_ParseTuple(_args, "O&h",
ResObj_Convert, &theHandle, ResObj_Convert, &theHandle,
&method)) &method))
@ -380,6 +415,9 @@ static PyObject *DlgObj_CountDITL(DialogObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
DialogItemIndex _rv; DialogItemIndex _rv;
#ifndef CountDITL
PyMac_PRECHECK(CountDITL);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = CountDITL(_self->ob_itself); _rv = CountDITL(_self->ob_itself);
@ -392,6 +430,9 @@ static PyObject *DlgObj_ShortenDITL(DialogObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
DialogItemIndex numberItems; DialogItemIndex numberItems;
#ifndef ShortenDITL
PyMac_PRECHECK(ShortenDITL);
#endif
if (!PyArg_ParseTuple(_args, "h", if (!PyArg_ParseTuple(_args, "h",
&numberItems)) &numberItems))
return NULL; return NULL;
@ -412,6 +453,9 @@ static PyObject *DlgObj_InsertDialogItem(DialogObject *_self, PyObject *_args)
DialogItemType itemType; DialogItemType itemType;
Handle itemHandle; Handle itemHandle;
Rect box; Rect box;
#ifndef InsertDialogItem
PyMac_PRECHECK(InsertDialogItem);
#endif
if (!PyArg_ParseTuple(_args, "hhO&O&", if (!PyArg_ParseTuple(_args, "hhO&O&",
&afterItem, &afterItem,
&itemType, &itemType,
@ -439,6 +483,9 @@ static PyObject *DlgObj_RemoveDialogItems(DialogObject *_self, PyObject *_args)
DialogItemIndex itemNo; DialogItemIndex itemNo;
DialogItemIndex amountToRemove; DialogItemIndex amountToRemove;
Boolean disposeItemData; Boolean disposeItemData;
#ifndef RemoveDialogItems
PyMac_PRECHECK(RemoveDialogItems);
#endif
if (!PyArg_ParseTuple(_args, "hhb", if (!PyArg_ParseTuple(_args, "hhb",
&itemNo, &itemNo,
&amountToRemove, &amountToRemove,
@ -461,6 +508,9 @@ static PyObject *DlgObj_StdFilterProc(DialogObject *_self, PyObject *_args)
Boolean _rv; Boolean _rv;
EventRecord event; EventRecord event;
DialogItemIndex itemHit; DialogItemIndex itemHit;
#ifndef StdFilterProc
PyMac_PRECHECK(StdFilterProc);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = StdFilterProc(_self->ob_itself, _rv = StdFilterProc(_self->ob_itself,
@ -478,6 +528,9 @@ static PyObject *DlgObj_SetDialogDefaultItem(DialogObject *_self, PyObject *_arg
PyObject *_res = NULL; PyObject *_res = NULL;
OSErr _err; OSErr _err;
DialogItemIndex newItem; DialogItemIndex newItem;
#ifndef SetDialogDefaultItem
PyMac_PRECHECK(SetDialogDefaultItem);
#endif
if (!PyArg_ParseTuple(_args, "h", if (!PyArg_ParseTuple(_args, "h",
&newItem)) &newItem))
return NULL; return NULL;
@ -494,6 +547,9 @@ static PyObject *DlgObj_SetDialogCancelItem(DialogObject *_self, PyObject *_args
PyObject *_res = NULL; PyObject *_res = NULL;
OSErr _err; OSErr _err;
DialogItemIndex newItem; DialogItemIndex newItem;
#ifndef SetDialogCancelItem
PyMac_PRECHECK(SetDialogCancelItem);
#endif
if (!PyArg_ParseTuple(_args, "h", if (!PyArg_ParseTuple(_args, "h",
&newItem)) &newItem))
return NULL; return NULL;
@ -510,6 +566,9 @@ static PyObject *DlgObj_SetDialogTracksCursor(DialogObject *_self, PyObject *_ar
PyObject *_res = NULL; PyObject *_res = NULL;
OSErr _err; OSErr _err;
Boolean tracks; Boolean tracks;
#ifndef SetDialogTracksCursor
PyMac_PRECHECK(SetDialogTracksCursor);
#endif
if (!PyArg_ParseTuple(_args, "b", if (!PyArg_ParseTuple(_args, "b",
&tracks)) &tracks))
return NULL; return NULL;
@ -525,6 +584,9 @@ static PyObject *DlgObj_AutoSizeDialog(DialogObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
OSErr _err; OSErr _err;
#ifndef AutoSizeDialog
PyMac_PRECHECK(AutoSizeDialog);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_err = AutoSizeDialog(_self->ob_itself); _err = AutoSizeDialog(_self->ob_itself);
@ -540,6 +602,9 @@ static PyObject *DlgObj_GetDialogItemAsControl(DialogObject *_self, PyObject *_a
OSErr _err; OSErr _err;
SInt16 inItemNo; SInt16 inItemNo;
ControlHandle outControl; ControlHandle outControl;
#ifndef GetDialogItemAsControl
PyMac_PRECHECK(GetDialogItemAsControl);
#endif
if (!PyArg_ParseTuple(_args, "h", if (!PyArg_ParseTuple(_args, "h",
&inItemNo)) &inItemNo))
return NULL; return NULL;
@ -559,6 +624,9 @@ static PyObject *DlgObj_MoveDialogItem(DialogObject *_self, PyObject *_args)
SInt16 inItemNo; SInt16 inItemNo;
SInt16 inHoriz; SInt16 inHoriz;
SInt16 inVert; SInt16 inVert;
#ifndef MoveDialogItem
PyMac_PRECHECK(MoveDialogItem);
#endif
if (!PyArg_ParseTuple(_args, "hhh", if (!PyArg_ParseTuple(_args, "hhh",
&inItemNo, &inItemNo,
&inHoriz, &inHoriz,
@ -581,6 +649,9 @@ static PyObject *DlgObj_SizeDialogItem(DialogObject *_self, PyObject *_args)
SInt16 inItemNo; SInt16 inItemNo;
SInt16 inWidth; SInt16 inWidth;
SInt16 inHeight; SInt16 inHeight;
#ifndef SizeDialogItem
PyMac_PRECHECK(SizeDialogItem);
#endif
if (!PyArg_ParseTuple(_args, "hhh", if (!PyArg_ParseTuple(_args, "hhh",
&inItemNo, &inItemNo,
&inWidth, &inWidth,
@ -602,6 +673,9 @@ static PyObject *DlgObj_AppendDialogItemList(DialogObject *_self, PyObject *_arg
OSErr _err; OSErr _err;
SInt16 ditlID; SInt16 ditlID;
DITLMethod method; DITLMethod method;
#ifndef AppendDialogItemList
PyMac_PRECHECK(AppendDialogItemList);
#endif
if (!PyArg_ParseTuple(_args, "hh", if (!PyArg_ParseTuple(_args, "hh",
&ditlID, &ditlID,
&method)) &method))
@ -621,6 +695,9 @@ static PyObject *DlgObj_SetDialogTimeout(DialogObject *_self, PyObject *_args)
OSStatus _err; OSStatus _err;
SInt16 inButtonToPress; SInt16 inButtonToPress;
UInt32 inSecondsToWait; UInt32 inSecondsToWait;
#ifndef SetDialogTimeout
PyMac_PRECHECK(SetDialogTimeout);
#endif
if (!PyArg_ParseTuple(_args, "hl", if (!PyArg_ParseTuple(_args, "hl",
&inButtonToPress, &inButtonToPress,
&inSecondsToWait)) &inSecondsToWait))
@ -641,6 +718,9 @@ static PyObject *DlgObj_GetDialogTimeout(DialogObject *_self, PyObject *_args)
SInt16 outButtonToPress; SInt16 outButtonToPress;
UInt32 outSecondsToWait; UInt32 outSecondsToWait;
UInt32 outSecondsRemaining; UInt32 outSecondsRemaining;
#ifndef GetDialogTimeout
PyMac_PRECHECK(GetDialogTimeout);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_err = GetDialogTimeout(_self->ob_itself, _err = GetDialogTimeout(_self->ob_itself,
@ -660,6 +740,9 @@ static PyObject *DlgObj_SetModalDialogEventMask(DialogObject *_self, PyObject *_
PyObject *_res = NULL; PyObject *_res = NULL;
OSStatus _err; OSStatus _err;
EventMask inMask; EventMask inMask;
#ifndef SetModalDialogEventMask
PyMac_PRECHECK(SetModalDialogEventMask);
#endif
if (!PyArg_ParseTuple(_args, "H", if (!PyArg_ParseTuple(_args, "H",
&inMask)) &inMask))
return NULL; return NULL;
@ -676,6 +759,9 @@ static PyObject *DlgObj_GetModalDialogEventMask(DialogObject *_self, PyObject *_
PyObject *_res = NULL; PyObject *_res = NULL;
OSStatus _err; OSStatus _err;
EventMask outMask; EventMask outMask;
#ifndef GetModalDialogEventMask
PyMac_PRECHECK(GetModalDialogEventMask);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_err = GetModalDialogEventMask(_self->ob_itself, _err = GetModalDialogEventMask(_self->ob_itself,
@ -690,6 +776,9 @@ static PyObject *DlgObj_GetDialogWindow(DialogObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
WindowPtr _rv; WindowPtr _rv;
#ifndef GetDialogWindow
PyMac_PRECHECK(GetDialogWindow);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = GetDialogWindow(_self->ob_itself); _rv = GetDialogWindow(_self->ob_itself);
@ -702,6 +791,9 @@ static PyObject *DlgObj_GetDialogTextEditHandle(DialogObject *_self, PyObject *_
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
TEHandle _rv; TEHandle _rv;
#ifndef GetDialogTextEditHandle
PyMac_PRECHECK(GetDialogTextEditHandle);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = GetDialogTextEditHandle(_self->ob_itself); _rv = GetDialogTextEditHandle(_self->ob_itself);
@ -714,6 +806,9 @@ static PyObject *DlgObj_GetDialogDefaultItem(DialogObject *_self, PyObject *_arg
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
SInt16 _rv; SInt16 _rv;
#ifndef GetDialogDefaultItem
PyMac_PRECHECK(GetDialogDefaultItem);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = GetDialogDefaultItem(_self->ob_itself); _rv = GetDialogDefaultItem(_self->ob_itself);
@ -726,6 +821,9 @@ static PyObject *DlgObj_GetDialogCancelItem(DialogObject *_self, PyObject *_args
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
SInt16 _rv; SInt16 _rv;
#ifndef GetDialogCancelItem
PyMac_PRECHECK(GetDialogCancelItem);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = GetDialogCancelItem(_self->ob_itself); _rv = GetDialogCancelItem(_self->ob_itself);
@ -738,6 +836,9 @@ static PyObject *DlgObj_GetDialogKeyboardFocusItem(DialogObject *_self, PyObject
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
SInt16 _rv; SInt16 _rv;
#ifndef GetDialogKeyboardFocusItem
PyMac_PRECHECK(GetDialogKeyboardFocusItem);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = GetDialogKeyboardFocusItem(_self->ob_itself); _rv = GetDialogKeyboardFocusItem(_self->ob_itself);
@ -749,6 +850,9 @@ static PyObject *DlgObj_GetDialogKeyboardFocusItem(DialogObject *_self, PyObject
static PyObject *DlgObj_SetPortDialogPort(DialogObject *_self, PyObject *_args) static PyObject *DlgObj_SetPortDialogPort(DialogObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
#ifndef SetPortDialogPort
PyMac_PRECHECK(SetPortDialogPort);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
SetPortDialogPort(_self->ob_itself); SetPortDialogPort(_self->ob_itself);
@ -761,6 +865,9 @@ static PyObject *DlgObj_GetDialogPort(DialogObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
CGrafPtr _rv; CGrafPtr _rv;
#ifndef GetDialogPort
PyMac_PRECHECK(GetDialogPort);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = GetDialogPort(_self->ob_itself); _rv = GetDialogPort(_self->ob_itself);
@ -769,6 +876,23 @@ static PyObject *DlgObj_GetDialogPort(DialogObject *_self, PyObject *_args)
return _res; return _res;
} }
#if !TARGET_API_MAC_CARBON
static PyObject *DlgObj_SetGrafPortOfDialog(DialogObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
#ifndef SetGrafPortOfDialog
PyMac_PRECHECK(SetGrafPortOfDialog);
#endif
if (!PyArg_ParseTuple(_args, ""))
return NULL;
SetGrafPortOfDialog(_self->ob_itself);
Py_INCREF(Py_None);
_res = Py_None;
return _res;
}
#endif
static PyMethodDef DlgObj_methods[] = { static PyMethodDef DlgObj_methods[] = {
{"DrawDialog", (PyCFunction)DlgObj_DrawDialog, 1, {"DrawDialog", (PyCFunction)DlgObj_DrawDialog, 1,
"() -> None"}, "() -> None"},
@ -851,6 +975,10 @@ static PyMethodDef DlgObj_methods[] = {
{"GetDialogPort", (PyCFunction)DlgObj_GetDialogPort, 1, {"GetDialogPort", (PyCFunction)DlgObj_GetDialogPort, 1,
"() -> (CGrafPtr _rv)"}, "() -> (CGrafPtr _rv)"},
#if !TARGET_API_MAC_CARBON
{"SetGrafPortOfDialog", (PyCFunction)DlgObj_SetGrafPortOfDialog, 1,
"() -> None"},
#endif
{NULL, NULL, 0} {NULL, NULL, 0}
}; };
@ -878,7 +1006,7 @@ static int DlgObj_hash(DialogObject *self)
} }
PyTypeObject Dialog_Type = { PyTypeObject Dialog_Type = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"Dialog", /*tp_name*/ "Dialog", /*tp_name*/
sizeof(DialogObject), /*tp_basicsize*/ sizeof(DialogObject), /*tp_basicsize*/
@ -911,6 +1039,9 @@ static PyObject *Dlg_NewDialog(PyObject *_self, PyObject *_args)
Boolean goAwayFlag; Boolean goAwayFlag;
SInt32 refCon; SInt32 refCon;
Handle items; Handle items;
#ifndef NewDialog
PyMac_PRECHECK(NewDialog);
#endif
if (!PyArg_ParseTuple(_args, "O&O&bhO&blO&", if (!PyArg_ParseTuple(_args, "O&O&bhO&blO&",
PyMac_GetRect, &boundsRect, PyMac_GetRect, &boundsRect,
PyMac_GetStr255, title, PyMac_GetStr255, title,
@ -941,6 +1072,9 @@ static PyObject *Dlg_GetNewDialog(PyObject *_self, PyObject *_args)
DialogPtr _rv; DialogPtr _rv;
SInt16 dialogID; SInt16 dialogID;
WindowPtr behind; WindowPtr behind;
#ifndef GetNewDialog
PyMac_PRECHECK(GetNewDialog);
#endif
if (!PyArg_ParseTuple(_args, "hO&", if (!PyArg_ParseTuple(_args, "hO&",
&dialogID, &dialogID,
WinObj_Convert, &behind)) WinObj_Convert, &behind))
@ -965,6 +1099,9 @@ static PyObject *Dlg_NewColorDialog(PyObject *_self, PyObject *_args)
Boolean goAwayFlag; Boolean goAwayFlag;
SInt32 refCon; SInt32 refCon;
Handle items; Handle items;
#ifndef NewColorDialog
PyMac_PRECHECK(NewColorDialog);
#endif
if (!PyArg_ParseTuple(_args, "O&O&bhO&blO&", if (!PyArg_ParseTuple(_args, "O&O&bhO&blO&",
PyMac_GetRect, &boundsRect, PyMac_GetRect, &boundsRect,
PyMac_GetStr255, title, PyMac_GetStr255, title,
@ -994,6 +1131,9 @@ static PyObject *Dlg_ModalDialog(PyObject *_self, PyObject *_args)
PyObject *_res = NULL; PyObject *_res = NULL;
PyObject* modalFilter; PyObject* modalFilter;
DialogItemIndex itemHit; DialogItemIndex itemHit;
#ifndef ModalDialog
PyMac_PRECHECK(ModalDialog);
#endif
if (!PyArg_ParseTuple(_args, "O", if (!PyArg_ParseTuple(_args, "O",
&modalFilter)) &modalFilter))
return NULL; return NULL;
@ -1009,6 +1149,9 @@ static PyObject *Dlg_IsDialogEvent(PyObject *_self, PyObject *_args)
PyObject *_res = NULL; PyObject *_res = NULL;
Boolean _rv; Boolean _rv;
EventRecord theEvent; EventRecord theEvent;
#ifndef IsDialogEvent
PyMac_PRECHECK(IsDialogEvent);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetEventRecord, &theEvent)) PyMac_GetEventRecord, &theEvent))
return NULL; return NULL;
@ -1025,6 +1168,9 @@ static PyObject *Dlg_DialogSelect(PyObject *_self, PyObject *_args)
EventRecord theEvent; EventRecord theEvent;
DialogPtr theDialog; DialogPtr theDialog;
DialogItemIndex itemHit; DialogItemIndex itemHit;
#ifndef DialogSelect
PyMac_PRECHECK(DialogSelect);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetEventRecord, &theEvent)) PyMac_GetEventRecord, &theEvent))
return NULL; return NULL;
@ -1044,6 +1190,9 @@ static PyObject *Dlg_Alert(PyObject *_self, PyObject *_args)
DialogItemIndex _rv; DialogItemIndex _rv;
SInt16 alertID; SInt16 alertID;
PyObject* modalFilter; PyObject* modalFilter;
#ifndef Alert
PyMac_PRECHECK(Alert);
#endif
if (!PyArg_ParseTuple(_args, "hO", if (!PyArg_ParseTuple(_args, "hO",
&alertID, &alertID,
&modalFilter)) &modalFilter))
@ -1061,6 +1210,9 @@ static PyObject *Dlg_StopAlert(PyObject *_self, PyObject *_args)
DialogItemIndex _rv; DialogItemIndex _rv;
SInt16 alertID; SInt16 alertID;
PyObject* modalFilter; PyObject* modalFilter;
#ifndef StopAlert
PyMac_PRECHECK(StopAlert);
#endif
if (!PyArg_ParseTuple(_args, "hO", if (!PyArg_ParseTuple(_args, "hO",
&alertID, &alertID,
&modalFilter)) &modalFilter))
@ -1078,6 +1230,9 @@ static PyObject *Dlg_NoteAlert(PyObject *_self, PyObject *_args)
DialogItemIndex _rv; DialogItemIndex _rv;
SInt16 alertID; SInt16 alertID;
PyObject* modalFilter; PyObject* modalFilter;
#ifndef NoteAlert
PyMac_PRECHECK(NoteAlert);
#endif
if (!PyArg_ParseTuple(_args, "hO", if (!PyArg_ParseTuple(_args, "hO",
&alertID, &alertID,
&modalFilter)) &modalFilter))
@ -1095,6 +1250,9 @@ static PyObject *Dlg_CautionAlert(PyObject *_self, PyObject *_args)
DialogItemIndex _rv; DialogItemIndex _rv;
SInt16 alertID; SInt16 alertID;
PyObject* modalFilter; PyObject* modalFilter;
#ifndef CautionAlert
PyMac_PRECHECK(CautionAlert);
#endif
if (!PyArg_ParseTuple(_args, "hO", if (!PyArg_ParseTuple(_args, "hO",
&alertID, &alertID,
&modalFilter)) &modalFilter))
@ -1113,6 +1271,9 @@ static PyObject *Dlg_ParamText(PyObject *_self, PyObject *_args)
Str255 param1; Str255 param1;
Str255 param2; Str255 param2;
Str255 param3; Str255 param3;
#ifndef ParamText
PyMac_PRECHECK(ParamText);
#endif
if (!PyArg_ParseTuple(_args, "O&O&O&O&", if (!PyArg_ParseTuple(_args, "O&O&O&O&",
PyMac_GetStr255, param0, PyMac_GetStr255, param0,
PyMac_GetStr255, param1, PyMac_GetStr255, param1,
@ -1133,6 +1294,9 @@ static PyObject *Dlg_GetDialogItemText(PyObject *_self, PyObject *_args)
PyObject *_res = NULL; PyObject *_res = NULL;
Handle item; Handle item;
Str255 text; Str255 text;
#ifndef GetDialogItemText
PyMac_PRECHECK(GetDialogItemText);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
ResObj_Convert, &item)) ResObj_Convert, &item))
return NULL; return NULL;
@ -1148,6 +1312,9 @@ static PyObject *Dlg_SetDialogItemText(PyObject *_self, PyObject *_args)
PyObject *_res = NULL; PyObject *_res = NULL;
Handle item; Handle item;
Str255 text; Str255 text;
#ifndef SetDialogItemText
PyMac_PRECHECK(SetDialogItemText);
#endif
if (!PyArg_ParseTuple(_args, "O&O&", if (!PyArg_ParseTuple(_args, "O&O&",
ResObj_Convert, &item, ResObj_Convert, &item,
PyMac_GetStr255, text)) PyMac_GetStr255, text))
@ -1163,6 +1330,9 @@ static PyObject *Dlg_GetAlertStage(PyObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
SInt16 _rv; SInt16 _rv;
#ifndef GetAlertStage
PyMac_PRECHECK(GetAlertStage);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = GetAlertStage(); _rv = GetAlertStage();
@ -1175,6 +1345,9 @@ static PyObject *Dlg_SetDialogFont(PyObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
SInt16 fontNum; SInt16 fontNum;
#ifndef SetDialogFont
PyMac_PRECHECK(SetDialogFont);
#endif
if (!PyArg_ParseTuple(_args, "h", if (!PyArg_ParseTuple(_args, "h",
&fontNum)) &fontNum))
return NULL; return NULL;
@ -1187,6 +1360,9 @@ static PyObject *Dlg_SetDialogFont(PyObject *_self, PyObject *_args)
static PyObject *Dlg_ResetAlertStage(PyObject *_self, PyObject *_args) static PyObject *Dlg_ResetAlertStage(PyObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
#ifndef ResetAlertStage
PyMac_PRECHECK(ResetAlertStage);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
ResetAlertStage(); ResetAlertStage();
@ -1204,6 +1380,9 @@ static PyObject *Dlg_GetParamText(PyObject *_self, PyObject *_args)
Str255 param1; Str255 param1;
Str255 param2; Str255 param2;
Str255 param3; Str255 param3;
#ifndef GetParamText
PyMac_PRECHECK(GetParamText);
#endif
if (!PyArg_ParseTuple(_args, "O&O&O&O&", if (!PyArg_ParseTuple(_args, "O&O&O&O&",
PyMac_GetStr255, param0, PyMac_GetStr255, param0,
PyMac_GetStr255, param1, PyMac_GetStr255, param1,
@ -1233,6 +1412,9 @@ static PyObject *Dlg_NewFeaturesDialog(PyObject *_self, PyObject *_args)
SInt32 inRefCon; SInt32 inRefCon;
Handle inItemListHandle; Handle inItemListHandle;
UInt32 inFlags; UInt32 inFlags;
#ifndef NewFeaturesDialog
PyMac_PRECHECK(NewFeaturesDialog);
#endif
if (!PyArg_ParseTuple(_args, "O&O&bhO&blO&l", if (!PyArg_ParseTuple(_args, "O&O&bhO&blO&l",
PyMac_GetRect, &inBoundsRect, PyMac_GetRect, &inBoundsRect,
PyMac_GetStr255, inTitle, PyMac_GetStr255, inTitle,
@ -1264,6 +1446,9 @@ static PyObject *Dlg_GetDialogFromWindow(PyObject *_self, PyObject *_args)
PyObject *_res = NULL; PyObject *_res = NULL;
DialogPtr _rv; DialogPtr _rv;
WindowPtr window; WindowPtr window;
#ifndef GetDialogFromWindow
PyMac_PRECHECK(GetDialogFromWindow);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
WinObj_Convert, &window)) WinObj_Convert, &window))
return NULL; return NULL;

View file

@ -245,8 +245,8 @@ object = MyObjectDefinition('Dialog', 'DlgObj', 'DialogPtr')
module.addobject(object) module.addobject(object)
# Create the generator classes used to populate the lists # Create the generator classes used to populate the lists
Function = OSErrFunctionGenerator Function = OSErrWeakLinkFunctionGenerator
Method = OSErrMethodGenerator Method = OSErrWeakLinkMethodGenerator
# Create and populate the lists # Create and populate the lists
functions = [] functions = []

View file

@ -5,12 +5,8 @@
#ifdef _WIN32
#include "pywintoolbox.h"
#else
#include "macglue.h" #include "macglue.h"
#include "pymactoolbox.h" #include "pymactoolbox.h"
#endif
/* Macro to test whether a weak-loaded CFM function exists */ /* Macro to test whether a weak-loaded CFM function exists */
#define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\ #define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\
@ -675,7 +671,7 @@ static PyObject *DragObj_getattr(DragObjObject *self, char *name)
#define DragObj_hash NULL #define DragObj_hash NULL
PyTypeObject DragObj_Type = { PyTypeObject DragObj_Type = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"DragObj", /*tp_name*/ "DragObj", /*tp_name*/
sizeof(DragObjObject), /*tp_basicsize*/ sizeof(DragObjObject), /*tp_basicsize*/

View file

@ -5,12 +5,8 @@
#ifdef _WIN32
#include "pywintoolbox.h"
#else
#include "macglue.h" #include "macglue.h"
#include "pymactoolbox.h" #include "pymactoolbox.h"
#endif
/* Macro to test whether a weak-loaded CFM function exists */ /* Macro to test whether a weak-loaded CFM function exists */
#define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\ #define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\

View file

@ -5,12 +5,8 @@
#ifdef _WIN32
#include "pywintoolbox.h"
#else
#include "macglue.h" #include "macglue.h"
#include "pymactoolbox.h" #include "pymactoolbox.h"
#endif
/* Macro to test whether a weak-loaded CFM function exists */ /* Macro to test whether a weak-loaded CFM function exists */
#define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\ #define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\

View file

@ -5,12 +5,8 @@
#ifdef _WIN32
#include "pywintoolbox.h"
#else
#include "macglue.h" #include "macglue.h"
#include "pymactoolbox.h" #include "pymactoolbox.h"
#endif
/* Macro to test whether a weak-loaded CFM function exists */ /* Macro to test whether a weak-loaded CFM function exists */
#define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\ #define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\

View file

@ -5,12 +5,8 @@
#ifdef _WIN32
#include "pywintoolbox.h"
#else
#include "macglue.h" #include "macglue.h"
#include "pymactoolbox.h" #include "pymactoolbox.h"
#endif
/* Macro to test whether a weak-loaded CFM function exists */ /* Macro to test whether a weak-loaded CFM function exists */
#define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\ #define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\

View file

@ -647,7 +647,7 @@ ListObj_setattr(ListObject *self, char *name, PyObject *value)
#define ListObj_hash NULL #define ListObj_hash NULL
PyTypeObject List_Type = { PyTypeObject List_Type = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"List", /*tp_name*/ "List", /*tp_name*/
sizeof(ListObject), /*tp_basicsize*/ sizeof(ListObject), /*tp_basicsize*/

View file

@ -158,6 +158,9 @@ extern void initzlib();
#ifdef WITH_THREAD #ifdef WITH_THREAD
extern void initthread(); extern void initthread();
#endif #endif
#ifdef WITH_HOTSHOT
extern void init_hotshot();
#endif
#ifdef USE_PYEXPAT #ifdef USE_PYEXPAT
extern void initpyexpat(); extern void initpyexpat();
#endif #endif
@ -288,6 +291,9 @@ struct _inittab _PyImport_Inittab[] = {
#ifdef WITH_THREAD #ifdef WITH_THREAD
{"thread", initthread}, {"thread", initthread},
#endif #endif
#ifdef WITH_HOTSHOT
{"_hotshot", init_hotshot},
#endif
#ifdef USE_PYEXPAT #ifdef USE_PYEXPAT
{"pyexpat", initpyexpat}, {"pyexpat", initpyexpat},
#endif #endif

View file

@ -114,14 +114,12 @@ char *getwd(char *);
char *getbootvol(void); char *getbootvol(void);
static PyObject *MacError; /* Exception mac.error */
/* Set a MAC-specific error from errno, and return NULL */ /* Set a MAC-specific error from errno, and return NULL */
static PyObject * static PyObject *
mac_error() mac_error()
{ {
return PyErr_SetFromErrno(MacError); return PyErr_SetFromErrno(PyExc_OSError);
} }
/* MAC generic methods */ /* MAC generic methods */
@ -295,8 +293,7 @@ mac_getcwd(self, args)
#endif #endif
Py_END_ALLOW_THREADS Py_END_ALLOW_THREADS
if (res == NULL) { if (res == NULL) {
PyErr_SetString(MacError, path); return mac_error();
return NULL;
} }
return PyString_FromString(res); return PyString_FromString(res);
} }
@ -839,8 +836,7 @@ initmac()
return; return;
/* Initialize mac.error exception */ /* Initialize mac.error exception */
MacError = PyErr_NewException("mac.error", NULL, NULL); PyDict_SetItemString(d, "error", PyExc_OSError);
PyDict_SetItemString(d, "error", MacError);
PyStructSequence_InitType(&StatResultType, &stat_result_desc); PyStructSequence_InitType(&StatResultType, &stat_result_desc);
PyDict_SetItemString(d, "stat_result", (PyObject*) &StatResultType); PyDict_SetItemString(d, "stat_result", (PyObject*) &StatResultType);

File diff suppressed because it is too large Load diff

View file

@ -81,8 +81,8 @@ object = MyObjectDefinition(OBJECTNAME, OBJECTPREFIX, OBJECTTYPE)
module.addobject(object) module.addobject(object)
# Create the generator classes used to populate the lists # Create the generator classes used to populate the lists
Function = OSErrFunctionGenerator Function = OSErrWeakLinkFunctionGenerator
Method = OSErrMethodGenerator Method = OSErrWeakLinkMethodGenerator
# Create and populate the lists # Create and populate the lists
functions = [] functions = []

View file

@ -5,12 +5,8 @@
#ifdef _WIN32
#include "pywintoolbox.h"
#else
#include "macglue.h" #include "macglue.h"
#include "pymactoolbox.h" #include "pymactoolbox.h"
#endif
/* Macro to test whether a weak-loaded CFM function exists */ /* Macro to test whether a weak-loaded CFM function exists */
#define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\ #define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\
@ -131,7 +127,9 @@ static void TXNObj_dealloc(TXNObjectObject *self)
static PyObject *TXNObj_TXNDeleteObject(TXNObjectObject *_self, PyObject *_args) static PyObject *TXNObj_TXNDeleteObject(TXNObjectObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
#ifndef TXNDeleteObject
PyMac_PRECHECK(TXNDeleteObject); PyMac_PRECHECK(TXNDeleteObject);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
TXNDeleteObject(_self->ob_itself); TXNDeleteObject(_self->ob_itself);
@ -146,7 +144,9 @@ static PyObject *TXNObj_TXNResizeFrame(TXNObjectObject *_self, PyObject *_args)
UInt32 iWidth; UInt32 iWidth;
UInt32 iHeight; UInt32 iHeight;
TXNFrameID iTXNFrameID; TXNFrameID iTXNFrameID;
#ifndef TXNResizeFrame
PyMac_PRECHECK(TXNResizeFrame); PyMac_PRECHECK(TXNResizeFrame);
#endif
if (!PyArg_ParseTuple(_args, "lll", if (!PyArg_ParseTuple(_args, "lll",
&iWidth, &iWidth,
&iHeight, &iHeight,
@ -169,7 +169,9 @@ static PyObject *TXNObj_TXNSetFrameBounds(TXNObjectObject *_self, PyObject *_arg
SInt32 iBottom; SInt32 iBottom;
SInt32 iRight; SInt32 iRight;
TXNFrameID iTXNFrameID; TXNFrameID iTXNFrameID;
#ifndef TXNSetFrameBounds
PyMac_PRECHECK(TXNSetFrameBounds); PyMac_PRECHECK(TXNSetFrameBounds);
#endif
if (!PyArg_ParseTuple(_args, "lllll", if (!PyArg_ParseTuple(_args, "lllll",
&iTop, &iTop,
&iLeft, &iLeft,
@ -192,7 +194,9 @@ static PyObject *TXNObj_TXNKeyDown(TXNObjectObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
EventRecord iEvent; EventRecord iEvent;
#ifndef TXNKeyDown
PyMac_PRECHECK(TXNKeyDown); PyMac_PRECHECK(TXNKeyDown);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetEventRecord, &iEvent)) PyMac_GetEventRecord, &iEvent))
return NULL; return NULL;
@ -207,7 +211,9 @@ static PyObject *TXNObj_TXNAdjustCursor(TXNObjectObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
RgnHandle ioCursorRgn; RgnHandle ioCursorRgn;
#ifndef TXNAdjustCursor
PyMac_PRECHECK(TXNAdjustCursor); PyMac_PRECHECK(TXNAdjustCursor);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
OptResObj_Convert, &ioCursorRgn)) OptResObj_Convert, &ioCursorRgn))
return NULL; return NULL;
@ -222,7 +228,9 @@ static PyObject *TXNObj_TXNClick(TXNObjectObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
EventRecord iEvent; EventRecord iEvent;
#ifndef TXNClick
PyMac_PRECHECK(TXNClick); PyMac_PRECHECK(TXNClick);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetEventRecord, &iEvent)) PyMac_GetEventRecord, &iEvent))
return NULL; return NULL;
@ -240,7 +248,9 @@ static PyObject *TXNObj_TXNTSMCheck(TXNObjectObject *_self, PyObject *_args)
PyObject *_res = NULL; PyObject *_res = NULL;
Boolean _rv; Boolean _rv;
EventRecord iEvent; EventRecord iEvent;
#ifndef TXNTSMCheck
PyMac_PRECHECK(TXNTSMCheck); PyMac_PRECHECK(TXNTSMCheck);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetEventRecord, &iEvent)) PyMac_GetEventRecord, &iEvent))
return NULL; return NULL;
@ -255,7 +265,9 @@ static PyObject *TXNObj_TXNTSMCheck(TXNObjectObject *_self, PyObject *_args)
static PyObject *TXNObj_TXNSelectAll(TXNObjectObject *_self, PyObject *_args) static PyObject *TXNObj_TXNSelectAll(TXNObjectObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
#ifndef TXNSelectAll
PyMac_PRECHECK(TXNSelectAll); PyMac_PRECHECK(TXNSelectAll);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
TXNSelectAll(_self->ob_itself); TXNSelectAll(_self->ob_itself);
@ -268,7 +280,9 @@ static PyObject *TXNObj_TXNFocus(TXNObjectObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
Boolean iBecomingFocused; Boolean iBecomingFocused;
#ifndef TXNFocus
PyMac_PRECHECK(TXNFocus); PyMac_PRECHECK(TXNFocus);
#endif
if (!PyArg_ParseTuple(_args, "b", if (!PyArg_ParseTuple(_args, "b",
&iBecomingFocused)) &iBecomingFocused))
return NULL; return NULL;
@ -282,7 +296,9 @@ static PyObject *TXNObj_TXNFocus(TXNObjectObject *_self, PyObject *_args)
static PyObject *TXNObj_TXNUpdate(TXNObjectObject *_self, PyObject *_args) static PyObject *TXNObj_TXNUpdate(TXNObjectObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
#ifndef TXNUpdate
PyMac_PRECHECK(TXNUpdate); PyMac_PRECHECK(TXNUpdate);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
TXNUpdate(_self->ob_itself); TXNUpdate(_self->ob_itself);
@ -295,7 +311,9 @@ static PyObject *TXNObj_TXNDraw(TXNObjectObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
GWorldPtr iDrawPort; GWorldPtr iDrawPort;
#ifndef TXNDraw
PyMac_PRECHECK(TXNDraw); PyMac_PRECHECK(TXNDraw);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
OptGWorldObj_Convert, &iDrawPort)) OptGWorldObj_Convert, &iDrawPort))
return NULL; return NULL;
@ -309,7 +327,9 @@ static PyObject *TXNObj_TXNDraw(TXNObjectObject *_self, PyObject *_args)
static PyObject *TXNObj_TXNForceUpdate(TXNObjectObject *_self, PyObject *_args) static PyObject *TXNObj_TXNForceUpdate(TXNObjectObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
#ifndef TXNForceUpdate
PyMac_PRECHECK(TXNForceUpdate); PyMac_PRECHECK(TXNForceUpdate);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
TXNForceUpdate(_self->ob_itself); TXNForceUpdate(_self->ob_itself);
@ -322,7 +342,9 @@ static PyObject *TXNObj_TXNGetSleepTicks(TXNObjectObject *_self, PyObject *_args
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
UInt32 _rv; UInt32 _rv;
#ifndef TXNGetSleepTicks
PyMac_PRECHECK(TXNGetSleepTicks); PyMac_PRECHECK(TXNGetSleepTicks);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = TXNGetSleepTicks(_self->ob_itself); _rv = TXNGetSleepTicks(_self->ob_itself);
@ -334,7 +356,9 @@ static PyObject *TXNObj_TXNGetSleepTicks(TXNObjectObject *_self, PyObject *_args
static PyObject *TXNObj_TXNIdle(TXNObjectObject *_self, PyObject *_args) static PyObject *TXNObj_TXNIdle(TXNObjectObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
#ifndef TXNIdle
PyMac_PRECHECK(TXNIdle); PyMac_PRECHECK(TXNIdle);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
TXNIdle(_self->ob_itself); TXNIdle(_self->ob_itself);
@ -347,7 +371,9 @@ static PyObject *TXNObj_TXNGrowWindow(TXNObjectObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
EventRecord iEvent; EventRecord iEvent;
#ifndef TXNGrowWindow
PyMac_PRECHECK(TXNGrowWindow); PyMac_PRECHECK(TXNGrowWindow);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
PyMac_GetEventRecord, &iEvent)) PyMac_GetEventRecord, &iEvent))
return NULL; return NULL;
@ -362,7 +388,9 @@ static PyObject *TXNObj_TXNZoomWindow(TXNObjectObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
short iPart; short iPart;
#ifndef TXNZoomWindow
PyMac_PRECHECK(TXNZoomWindow); PyMac_PRECHECK(TXNZoomWindow);
#endif
if (!PyArg_ParseTuple(_args, "h", if (!PyArg_ParseTuple(_args, "h",
&iPart)) &iPart))
return NULL; return NULL;
@ -378,7 +406,9 @@ static PyObject *TXNObj_TXNCanUndo(TXNObjectObject *_self, PyObject *_args)
PyObject *_res = NULL; PyObject *_res = NULL;
Boolean _rv; Boolean _rv;
TXNActionKey oTXNActionKey; TXNActionKey oTXNActionKey;
#ifndef TXNCanUndo
PyMac_PRECHECK(TXNCanUndo); PyMac_PRECHECK(TXNCanUndo);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = TXNCanUndo(_self->ob_itself, _rv = TXNCanUndo(_self->ob_itself,
@ -392,7 +422,9 @@ static PyObject *TXNObj_TXNCanUndo(TXNObjectObject *_self, PyObject *_args)
static PyObject *TXNObj_TXNUndo(TXNObjectObject *_self, PyObject *_args) static PyObject *TXNObj_TXNUndo(TXNObjectObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
#ifndef TXNUndo
PyMac_PRECHECK(TXNUndo); PyMac_PRECHECK(TXNUndo);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
TXNUndo(_self->ob_itself); TXNUndo(_self->ob_itself);
@ -406,7 +438,9 @@ static PyObject *TXNObj_TXNCanRedo(TXNObjectObject *_self, PyObject *_args)
PyObject *_res = NULL; PyObject *_res = NULL;
Boolean _rv; Boolean _rv;
TXNActionKey oTXNActionKey; TXNActionKey oTXNActionKey;
#ifndef TXNCanRedo
PyMac_PRECHECK(TXNCanRedo); PyMac_PRECHECK(TXNCanRedo);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = TXNCanRedo(_self->ob_itself, _rv = TXNCanRedo(_self->ob_itself,
@ -420,7 +454,9 @@ static PyObject *TXNObj_TXNCanRedo(TXNObjectObject *_self, PyObject *_args)
static PyObject *TXNObj_TXNRedo(TXNObjectObject *_self, PyObject *_args) static PyObject *TXNObj_TXNRedo(TXNObjectObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
#ifndef TXNRedo
PyMac_PRECHECK(TXNRedo); PyMac_PRECHECK(TXNRedo);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
TXNRedo(_self->ob_itself); TXNRedo(_self->ob_itself);
@ -433,7 +469,9 @@ static PyObject *TXNObj_TXNCut(TXNObjectObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
OSStatus _err; OSStatus _err;
#ifndef TXNCut
PyMac_PRECHECK(TXNCut); PyMac_PRECHECK(TXNCut);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_err = TXNCut(_self->ob_itself); _err = TXNCut(_self->ob_itself);
@ -447,7 +485,9 @@ static PyObject *TXNObj_TXNCopy(TXNObjectObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
OSStatus _err; OSStatus _err;
#ifndef TXNCopy
PyMac_PRECHECK(TXNCopy); PyMac_PRECHECK(TXNCopy);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_err = TXNCopy(_self->ob_itself); _err = TXNCopy(_self->ob_itself);
@ -461,7 +501,9 @@ static PyObject *TXNObj_TXNPaste(TXNObjectObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
OSStatus _err; OSStatus _err;
#ifndef TXNPaste
PyMac_PRECHECK(TXNPaste); PyMac_PRECHECK(TXNPaste);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_err = TXNPaste(_self->ob_itself); _err = TXNPaste(_self->ob_itself);
@ -475,7 +517,9 @@ static PyObject *TXNObj_TXNClear(TXNObjectObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
OSStatus _err; OSStatus _err;
#ifndef TXNClear
PyMac_PRECHECK(TXNClear); PyMac_PRECHECK(TXNClear);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_err = TXNClear(_self->ob_itself); _err = TXNClear(_self->ob_itself);
@ -490,7 +534,9 @@ static PyObject *TXNObj_TXNGetSelection(TXNObjectObject *_self, PyObject *_args)
PyObject *_res = NULL; PyObject *_res = NULL;
TXNOffset oStartOffset; TXNOffset oStartOffset;
TXNOffset oEndOffset; TXNOffset oEndOffset;
#ifndef TXNGetSelection
PyMac_PRECHECK(TXNGetSelection); PyMac_PRECHECK(TXNGetSelection);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
TXNGetSelection(_self->ob_itself, TXNGetSelection(_self->ob_itself,
@ -506,7 +552,9 @@ static PyObject *TXNObj_TXNShowSelection(TXNObjectObject *_self, PyObject *_args
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
Boolean iShowEnd; Boolean iShowEnd;
#ifndef TXNShowSelection
PyMac_PRECHECK(TXNShowSelection); PyMac_PRECHECK(TXNShowSelection);
#endif
if (!PyArg_ParseTuple(_args, "b", if (!PyArg_ParseTuple(_args, "b",
&iShowEnd)) &iShowEnd))
return NULL; return NULL;
@ -521,7 +569,9 @@ static PyObject *TXNObj_TXNIsSelectionEmpty(TXNObjectObject *_self, PyObject *_a
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
Boolean _rv; Boolean _rv;
#ifndef TXNIsSelectionEmpty
PyMac_PRECHECK(TXNIsSelectionEmpty); PyMac_PRECHECK(TXNIsSelectionEmpty);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = TXNIsSelectionEmpty(_self->ob_itself); _rv = TXNIsSelectionEmpty(_self->ob_itself);
@ -536,7 +586,9 @@ static PyObject *TXNObj_TXNSetSelection(TXNObjectObject *_self, PyObject *_args)
OSStatus _err; OSStatus _err;
TXNOffset iStartOffset; TXNOffset iStartOffset;
TXNOffset iEndOffset; TXNOffset iEndOffset;
#ifndef TXNSetSelection
PyMac_PRECHECK(TXNSetSelection); PyMac_PRECHECK(TXNSetSelection);
#endif
if (!PyArg_ParseTuple(_args, "ll", if (!PyArg_ParseTuple(_args, "ll",
&iStartOffset, &iStartOffset,
&iEndOffset)) &iEndOffset))
@ -557,7 +609,9 @@ static PyObject *TXNObj_TXNCountRunsInRange(TXNObjectObject *_self, PyObject *_a
UInt32 iStartOffset; UInt32 iStartOffset;
UInt32 iEndOffset; UInt32 iEndOffset;
ItemCount oRunCount; ItemCount oRunCount;
#ifndef TXNCountRunsInRange
PyMac_PRECHECK(TXNCountRunsInRange); PyMac_PRECHECK(TXNCountRunsInRange);
#endif
if (!PyArg_ParseTuple(_args, "ll", if (!PyArg_ParseTuple(_args, "ll",
&iStartOffset, &iStartOffset,
&iEndOffset)) &iEndOffset))
@ -576,7 +630,9 @@ static PyObject *TXNObj_TXNDataSize(TXNObjectObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
ByteCount _rv; ByteCount _rv;
#ifndef TXNDataSize
PyMac_PRECHECK(TXNDataSize); PyMac_PRECHECK(TXNDataSize);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = TXNDataSize(_self->ob_itself); _rv = TXNDataSize(_self->ob_itself);
@ -592,7 +648,9 @@ static PyObject *TXNObj_TXNGetData(TXNObjectObject *_self, PyObject *_args)
TXNOffset iStartOffset; TXNOffset iStartOffset;
TXNOffset iEndOffset; TXNOffset iEndOffset;
Handle oDataHandle; Handle oDataHandle;
#ifndef TXNGetData
PyMac_PRECHECK(TXNGetData); PyMac_PRECHECK(TXNGetData);
#endif
if (!PyArg_ParseTuple(_args, "ll", if (!PyArg_ParseTuple(_args, "ll",
&iStartOffset, &iStartOffset,
&iEndOffset)) &iEndOffset))
@ -615,7 +673,9 @@ static PyObject *TXNObj_TXNGetDataEncoded(TXNObjectObject *_self, PyObject *_arg
TXNOffset iEndOffset; TXNOffset iEndOffset;
Handle oDataHandle; Handle oDataHandle;
TXNDataType iEncoding; TXNDataType iEncoding;
#ifndef TXNGetDataEncoded
PyMac_PRECHECK(TXNGetDataEncoded); PyMac_PRECHECK(TXNGetDataEncoded);
#endif
if (!PyArg_ParseTuple(_args, "llO&", if (!PyArg_ParseTuple(_args, "llO&",
&iStartOffset, &iStartOffset,
&iEndOffset, &iEndOffset,
@ -641,7 +701,9 @@ static PyObject *TXNObj_TXNSetDataFromFile(TXNObjectObject *_self, PyObject *_ar
ByteCount iFileLength; ByteCount iFileLength;
TXNOffset iStartOffset; TXNOffset iStartOffset;
TXNOffset iEndOffset; TXNOffset iEndOffset;
#ifndef TXNSetDataFromFile
PyMac_PRECHECK(TXNSetDataFromFile); PyMac_PRECHECK(TXNSetDataFromFile);
#endif
if (!PyArg_ParseTuple(_args, "hO&lll", if (!PyArg_ParseTuple(_args, "hO&lll",
&iFileRefNum, &iFileRefNum,
PyMac_GetOSType, &iFileType, PyMac_GetOSType, &iFileType,
@ -671,7 +733,9 @@ static PyObject *TXNObj_TXNSetData(TXNObjectObject *_self, PyObject *_args)
int iDataPtr__in_len__; int iDataPtr__in_len__;
TXNOffset iStartOffset; TXNOffset iStartOffset;
TXNOffset iEndOffset; TXNOffset iEndOffset;
#ifndef TXNSetData
PyMac_PRECHECK(TXNSetData); PyMac_PRECHECK(TXNSetData);
#endif
if (!PyArg_ParseTuple(_args, "O&s#ll", if (!PyArg_ParseTuple(_args, "O&s#ll",
PyMac_GetOSType, &iDataType, PyMac_GetOSType, &iDataType,
&iDataPtr__in__, &iDataPtr__in_len__, &iDataPtr__in__, &iDataPtr__in_len__,
@ -694,7 +758,9 @@ static PyObject *TXNObj_TXNGetChangeCount(TXNObjectObject *_self, PyObject *_arg
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
ItemCount _rv; ItemCount _rv;
#ifndef TXNGetChangeCount
PyMac_PRECHECK(TXNGetChangeCount); PyMac_PRECHECK(TXNGetChangeCount);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = TXNGetChangeCount(_self->ob_itself); _rv = TXNGetChangeCount(_self->ob_itself);
@ -713,7 +779,9 @@ static PyObject *TXNObj_TXNSave(TXNObjectObject *_self, PyObject *_args)
FSSpec iFileSpecification; FSSpec iFileSpecification;
SInt16 iDataReference; SInt16 iDataReference;
SInt16 iResourceReference; SInt16 iResourceReference;
#ifndef TXNSave
PyMac_PRECHECK(TXNSave); PyMac_PRECHECK(TXNSave);
#endif
if (!PyArg_ParseTuple(_args, "O&O&lO&hh", if (!PyArg_ParseTuple(_args, "O&O&lO&hh",
PyMac_GetOSType, &iType, PyMac_GetOSType, &iType,
PyMac_GetOSType, &iResType, PyMac_GetOSType, &iResType,
@ -739,7 +807,9 @@ static PyObject *TXNObj_TXNRevert(TXNObjectObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
OSStatus _err; OSStatus _err;
#ifndef TXNRevert
PyMac_PRECHECK(TXNRevert); PyMac_PRECHECK(TXNRevert);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_err = TXNRevert(_self->ob_itself); _err = TXNRevert(_self->ob_itself);
@ -753,7 +823,9 @@ static PyObject *TXNObj_TXNPageSetup(TXNObjectObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
OSStatus _err; OSStatus _err;
#ifndef TXNPageSetup
PyMac_PRECHECK(TXNPageSetup); PyMac_PRECHECK(TXNPageSetup);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_err = TXNPageSetup(_self->ob_itself); _err = TXNPageSetup(_self->ob_itself);
@ -767,7 +839,9 @@ static PyObject *TXNObj_TXNPrint(TXNObjectObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
OSStatus _err; OSStatus _err;
#ifndef TXNPrint
PyMac_PRECHECK(TXNPrint); PyMac_PRECHECK(TXNPrint);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_err = TXNPrint(_self->ob_itself); _err = TXNPrint(_self->ob_itself);
@ -781,7 +855,9 @@ static PyObject *TXNObj_TXNGetViewRect(TXNObjectObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
Rect oViewRect; Rect oViewRect;
#ifndef TXNGetViewRect
PyMac_PRECHECK(TXNGetViewRect); PyMac_PRECHECK(TXNGetViewRect);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
TXNGetViewRect(_self->ob_itself, TXNGetViewRect(_self->ob_itself,
@ -797,7 +873,9 @@ static PyObject *TXNObj_TXNAttachObjectToWindow(TXNObjectObject *_self, PyObject
OSStatus _err; OSStatus _err;
GWorldPtr iWindow; GWorldPtr iWindow;
Boolean iIsActualWindow; Boolean iIsActualWindow;
#ifndef TXNAttachObjectToWindow
PyMac_PRECHECK(TXNAttachObjectToWindow); PyMac_PRECHECK(TXNAttachObjectToWindow);
#endif
if (!PyArg_ParseTuple(_args, "O&b", if (!PyArg_ParseTuple(_args, "O&b",
GWorldObj_Convert, &iWindow, GWorldObj_Convert, &iWindow,
&iIsActualWindow)) &iIsActualWindow))
@ -815,7 +893,9 @@ static PyObject *TXNObj_TXNIsObjectAttachedToWindow(TXNObjectObject *_self, PyOb
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
Boolean _rv; Boolean _rv;
#ifndef TXNIsObjectAttachedToWindow
PyMac_PRECHECK(TXNIsObjectAttachedToWindow); PyMac_PRECHECK(TXNIsObjectAttachedToWindow);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = TXNIsObjectAttachedToWindow(_self->ob_itself); _rv = TXNIsObjectAttachedToWindow(_self->ob_itself);
@ -833,7 +913,9 @@ static PyObject *TXNObj_TXNDragTracker(TXNObjectObject *_self, PyObject *_args)
WindowPtr iWindow; WindowPtr iWindow;
DragReference iDragReference; DragReference iDragReference;
Boolean iDifferentObjectSameWindow; Boolean iDifferentObjectSameWindow;
#ifndef TXNDragTracker
PyMac_PRECHECK(TXNDragTracker); PyMac_PRECHECK(TXNDragTracker);
#endif
if (!PyArg_ParseTuple(_args, "lhO&O&b", if (!PyArg_ParseTuple(_args, "lhO&O&b",
&iTXNFrameID, &iTXNFrameID,
&iMessage, &iMessage,
@ -861,7 +943,9 @@ static PyObject *TXNObj_TXNDragReceiver(TXNObjectObject *_self, PyObject *_args)
WindowPtr iWindow; WindowPtr iWindow;
DragReference iDragReference; DragReference iDragReference;
Boolean iDifferentObjectSameWindow; Boolean iDifferentObjectSameWindow;
#ifndef TXNDragReceiver
PyMac_PRECHECK(TXNDragReceiver); PyMac_PRECHECK(TXNDragReceiver);
#endif
if (!PyArg_ParseTuple(_args, "lO&O&b", if (!PyArg_ParseTuple(_args, "lO&O&b",
&iTXNFrameID, &iTXNFrameID,
WinObj_Convert, &iWindow, WinObj_Convert, &iWindow,
@ -885,7 +969,9 @@ static PyObject *TXNObj_TXNActivate(TXNObjectObject *_self, PyObject *_args)
OSStatus _err; OSStatus _err;
TXNFrameID iTXNFrameID; TXNFrameID iTXNFrameID;
TXNScrollBarState iActiveState; TXNScrollBarState iActiveState;
#ifndef TXNActivate
PyMac_PRECHECK(TXNActivate); PyMac_PRECHECK(TXNActivate);
#endif
if (!PyArg_ParseTuple(_args, "ll", if (!PyArg_ParseTuple(_args, "ll",
&iTXNFrameID, &iTXNFrameID,
&iActiveState)) &iActiveState))
@ -906,7 +992,9 @@ static PyObject *TXNObj_TXNDoFontMenuSelection(TXNObjectObject *_self, PyObject
TXNFontMenuObject iTXNFontMenuObject; TXNFontMenuObject iTXNFontMenuObject;
SInt16 iMenuID; SInt16 iMenuID;
SInt16 iMenuItem; SInt16 iMenuItem;
#ifndef TXNDoFontMenuSelection
PyMac_PRECHECK(TXNDoFontMenuSelection); PyMac_PRECHECK(TXNDoFontMenuSelection);
#endif
if (!PyArg_ParseTuple(_args, "O&hh", if (!PyArg_ParseTuple(_args, "O&hh",
TXNFontMenuObj_Convert, &iTXNFontMenuObject, TXNFontMenuObj_Convert, &iTXNFontMenuObject,
&iMenuID, &iMenuID,
@ -927,7 +1015,9 @@ static PyObject *TXNObj_TXNPrepareFontMenu(TXNObjectObject *_self, PyObject *_ar
PyObject *_res = NULL; PyObject *_res = NULL;
OSStatus _err; OSStatus _err;
TXNFontMenuObject iTXNFontMenuObject; TXNFontMenuObject iTXNFontMenuObject;
#ifndef TXNPrepareFontMenu
PyMac_PRECHECK(TXNPrepareFontMenu); PyMac_PRECHECK(TXNPrepareFontMenu);
#endif
if (!PyArg_ParseTuple(_args, "O&", if (!PyArg_ParseTuple(_args, "O&",
TXNFontMenuObj_Convert, &iTXNFontMenuObject)) TXNFontMenuObj_Convert, &iTXNFontMenuObject))
return NULL; return NULL;
@ -1056,7 +1146,7 @@ static PyObject *TXNObj_getattr(TXNObjectObject *self, char *name)
#define TXNObj_hash NULL #define TXNObj_hash NULL
PyTypeObject TXNObject_Type = { PyTypeObject TXNObject_Type = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"TXNObject", /*tp_name*/ "TXNObject", /*tp_name*/
sizeof(TXNObjectObject), /*tp_basicsize*/ sizeof(TXNObjectObject), /*tp_basicsize*/
@ -1119,7 +1209,9 @@ static PyObject *TXNFontMenuObj_TXNGetFontMenuHandle(TXNFontMenuObjectObject *_s
PyObject *_res = NULL; PyObject *_res = NULL;
OSStatus _err; OSStatus _err;
MenuHandle oFontMenuHandle; MenuHandle oFontMenuHandle;
#ifndef TXNGetFontMenuHandle
PyMac_PRECHECK(TXNGetFontMenuHandle); PyMac_PRECHECK(TXNGetFontMenuHandle);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_err = TXNGetFontMenuHandle(_self->ob_itself, _err = TXNGetFontMenuHandle(_self->ob_itself,
@ -1134,7 +1226,9 @@ static PyObject *TXNFontMenuObj_TXNDisposeFontMenuObject(TXNFontMenuObjectObject
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
OSStatus _err; OSStatus _err;
#ifndef TXNDisposeFontMenuObject
PyMac_PRECHECK(TXNDisposeFontMenuObject); PyMac_PRECHECK(TXNDisposeFontMenuObject);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_err = TXNDisposeFontMenuObject(_self->ob_itself); _err = TXNDisposeFontMenuObject(_self->ob_itself);
@ -1168,7 +1262,7 @@ static PyObject *TXNFontMenuObj_getattr(TXNFontMenuObjectObject *self, char *nam
#define TXNFontMenuObj_hash NULL #define TXNFontMenuObj_hash NULL
PyTypeObject TXNFontMenuObject_Type = { PyTypeObject TXNFontMenuObject_Type = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"TXNFontMenuObject", /*tp_name*/ "TXNFontMenuObject", /*tp_name*/
sizeof(TXNFontMenuObjectObject), /*tp_basicsize*/ sizeof(TXNFontMenuObjectObject), /*tp_basicsize*/
@ -1202,7 +1296,9 @@ static PyObject *Mlte_TXNNewObject(PyObject *_self, PyObject *_args)
TXNPermanentTextEncodingType iPermanentEncoding; TXNPermanentTextEncodingType iPermanentEncoding;
TXNObject oTXNObject; TXNObject oTXNObject;
TXNFrameID oTXNFrameID; TXNFrameID oTXNFrameID;
#ifndef TXNNewObject
PyMac_PRECHECK(TXNNewObject); PyMac_PRECHECK(TXNNewObject);
#endif
if (!PyArg_ParseTuple(_args, "O&O&O&llO&l", if (!PyArg_ParseTuple(_args, "O&O&O&llO&l",
OptFSSpecPtr_Convert, &iFileSpec, OptFSSpecPtr_Convert, &iFileSpec,
WinObj_Convert, &iWindow, WinObj_Convert, &iWindow,
@ -1232,7 +1328,9 @@ static PyObject *Mlte_TXNNewObject(PyObject *_self, PyObject *_args)
static PyObject *Mlte_TXNTerminateTextension(PyObject *_self, PyObject *_args) static PyObject *Mlte_TXNTerminateTextension(PyObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
#ifndef TXNTerminateTextension
PyMac_PRECHECK(TXNTerminateTextension); PyMac_PRECHECK(TXNTerminateTextension);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
TXNTerminateTextension(); TXNTerminateTextension();
@ -1245,7 +1343,9 @@ static PyObject *Mlte_TXNIsScrapPastable(PyObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
Boolean _rv; Boolean _rv;
#ifndef TXNIsScrapPastable
PyMac_PRECHECK(TXNIsScrapPastable); PyMac_PRECHECK(TXNIsScrapPastable);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = TXNIsScrapPastable(); _rv = TXNIsScrapPastable();
@ -1258,7 +1358,9 @@ static PyObject *Mlte_TXNConvertToPublicScrap(PyObject *_self, PyObject *_args)
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
OSStatus _err; OSStatus _err;
#ifndef TXNConvertToPublicScrap
PyMac_PRECHECK(TXNConvertToPublicScrap); PyMac_PRECHECK(TXNConvertToPublicScrap);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_err = TXNConvertToPublicScrap(); _err = TXNConvertToPublicScrap();
@ -1272,7 +1374,9 @@ static PyObject *Mlte_TXNConvertFromPublicScrap(PyObject *_self, PyObject *_args
{ {
PyObject *_res = NULL; PyObject *_res = NULL;
OSStatus _err; OSStatus _err;
#ifndef TXNConvertFromPublicScrap
PyMac_PRECHECK(TXNConvertFromPublicScrap); PyMac_PRECHECK(TXNConvertFromPublicScrap);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_err = TXNConvertFromPublicScrap(); _err = TXNConvertFromPublicScrap();
@ -1290,7 +1394,9 @@ static PyObject *Mlte_TXNNewFontMenuObject(PyObject *_self, PyObject *_args)
SInt16 iMenuID; SInt16 iMenuID;
SInt16 iStartHierMenuID; SInt16 iStartHierMenuID;
TXNFontMenuObject oTXNFontMenuObject; TXNFontMenuObject oTXNFontMenuObject;
#ifndef TXNNewFontMenuObject
PyMac_PRECHECK(TXNNewFontMenuObject); PyMac_PRECHECK(TXNNewFontMenuObject);
#endif
if (!PyArg_ParseTuple(_args, "O&hh", if (!PyArg_ParseTuple(_args, "O&hh",
MenuObj_Convert, &iFontMenuHandle, MenuObj_Convert, &iFontMenuHandle,
&iMenuID, &iMenuID,
@ -1311,7 +1417,9 @@ static PyObject *Mlte_TXNVersionInformation(PyObject *_self, PyObject *_args)
PyObject *_res = NULL; PyObject *_res = NULL;
TXNVersionValue _rv; TXNVersionValue _rv;
TXNFeatureBits oFeatureFlags; TXNFeatureBits oFeatureFlags;
#ifndef TXNVersionInformation
PyMac_PRECHECK(TXNVersionInformation); PyMac_PRECHECK(TXNVersionInformation);
#endif
if (!PyArg_ParseTuple(_args, "")) if (!PyArg_ParseTuple(_args, ""))
return NULL; return NULL;
_rv = TXNVersionInformation(&oFeatureFlags); _rv = TXNVersionInformation(&oFeatureFlags);

View file

@ -5,12 +5,8 @@
#ifdef _WIN32
#include "pywintoolbox.h"
#else
#include "macglue.h" #include "macglue.h"
#include "pymactoolbox.h" #include "pymactoolbox.h"
#endif
/* Macro to test whether a weak-loaded CFM function exists */ /* Macro to test whether a weak-loaded CFM function exists */
#define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\ #define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\
@ -373,7 +369,7 @@ static PyObject *GrafObj_getattr(GrafPortObject *self, char *name)
#define GrafObj_hash NULL #define GrafObj_hash NULL
PyTypeObject GrafPort_Type = { PyTypeObject GrafPort_Type = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"GrafPort", /*tp_name*/ "GrafPort", /*tp_name*/
sizeof(GrafPortObject), /*tp_basicsize*/ sizeof(GrafPortObject), /*tp_basicsize*/
@ -504,7 +500,7 @@ static PyObject *BMObj_getattr(BitMapObject *self, char *name)
#define BMObj_hash NULL #define BMObj_hash NULL
PyTypeObject BitMap_Type = { PyTypeObject BitMap_Type = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"BitMap", /*tp_name*/ "BitMap", /*tp_name*/
sizeof(BitMapObject), /*tp_basicsize*/ sizeof(BitMapObject), /*tp_basicsize*/
@ -632,7 +628,7 @@ static PyObject *QDGA_getattr(QDGlobalsAccessObject *self, char *name)
#define QDGA_hash NULL #define QDGA_hash NULL
staticforward PyTypeObject QDGlobalsAccess_Type = { staticforward PyTypeObject QDGlobalsAccess_Type = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"QDGlobalsAccess", /*tp_name*/ "QDGlobalsAccess", /*tp_name*/
sizeof(QDGlobalsAccessObject), /*tp_basicsize*/ sizeof(QDGlobalsAccessObject), /*tp_basicsize*/

View file

@ -5,12 +5,8 @@
#ifdef _WIN32
#include "pywintoolbox.h"
#else
#include "macglue.h" #include "macglue.h"
#include "pymactoolbox.h" #include "pymactoolbox.h"
#endif
/* Macro to test whether a weak-loaded CFM function exists */ /* Macro to test whether a weak-loaded CFM function exists */
#define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\ #define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\
@ -138,7 +134,7 @@ static PyObject *GWorldObj_getattr(GWorldObject *self, char *name)
#define GWorldObj_hash NULL #define GWorldObj_hash NULL
PyTypeObject GWorld_Type = { PyTypeObject GWorld_Type = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"GWorld", /*tp_name*/ "GWorld", /*tp_name*/
sizeof(GWorldObject), /*tp_basicsize*/ sizeof(GWorldObject), /*tp_basicsize*/

View file

@ -5,12 +5,8 @@
#ifdef _WIN32
#include "pywintoolbox.h"
#else
#include "macglue.h" #include "macglue.h"
#include "pymactoolbox.h" #include "pymactoolbox.h"
#endif
/* Macro to test whether a weak-loaded CFM function exists */ /* Macro to test whether a weak-loaded CFM function exists */
#define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\ #define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\
@ -934,7 +930,7 @@ static PyObject *MovieCtlObj_getattr(MovieControllerObject *self, char *name)
#define MovieCtlObj_hash NULL #define MovieCtlObj_hash NULL
PyTypeObject MovieController_Type = { PyTypeObject MovieController_Type = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"MovieController", /*tp_name*/ "MovieController", /*tp_name*/
sizeof(MovieControllerObject), /*tp_basicsize*/ sizeof(MovieControllerObject), /*tp_basicsize*/
@ -1328,7 +1324,7 @@ static PyObject *TimeBaseObj_getattr(TimeBaseObject *self, char *name)
#define TimeBaseObj_hash NULL #define TimeBaseObj_hash NULL
PyTypeObject TimeBase_Type = { PyTypeObject TimeBase_Type = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"TimeBase", /*tp_name*/ "TimeBase", /*tp_name*/
sizeof(TimeBaseObject), /*tp_basicsize*/ sizeof(TimeBaseObject), /*tp_basicsize*/
@ -1605,7 +1601,7 @@ static PyObject *UserDataObj_getattr(UserDataObject *self, char *name)
#define UserDataObj_hash NULL #define UserDataObj_hash NULL
PyTypeObject UserData_Type = { PyTypeObject UserData_Type = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"UserData", /*tp_name*/ "UserData", /*tp_name*/
sizeof(UserDataObject), /*tp_basicsize*/ sizeof(UserDataObject), /*tp_basicsize*/
@ -2639,7 +2635,7 @@ static PyObject *MediaObj_getattr(MediaObject *self, char *name)
#define MediaObj_hash NULL #define MediaObj_hash NULL
PyTypeObject Media_Type = { PyTypeObject Media_Type = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"Media", /*tp_name*/ "Media", /*tp_name*/
sizeof(MediaObject), /*tp_basicsize*/ sizeof(MediaObject), /*tp_basicsize*/
@ -3726,7 +3722,7 @@ static PyObject *TrackObj_getattr(TrackObject *self, char *name)
#define TrackObj_hash NULL #define TrackObj_hash NULL
PyTypeObject Track_Type = { PyTypeObject Track_Type = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"Track", /*tp_name*/ "Track", /*tp_name*/
sizeof(TrackObject), /*tp_basicsize*/ sizeof(TrackObject), /*tp_basicsize*/
@ -5798,7 +5794,7 @@ static PyObject *MovieObj_getattr(MovieObject *self, char *name)
#define MovieObj_hash NULL #define MovieObj_hash NULL
PyTypeObject Movie_Type = { PyTypeObject Movie_Type = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"Movie", /*tp_name*/ "Movie", /*tp_name*/
sizeof(MovieObject), /*tp_basicsize*/ sizeof(MovieObject), /*tp_basicsize*/

View file

@ -5,12 +5,8 @@
#ifdef _WIN32
#include "pywintoolbox.h"
#else
#include "macglue.h" #include "macglue.h"
#include "pymactoolbox.h" #include "pymactoolbox.h"
#endif
/* Macro to test whether a weak-loaded CFM function exists */ /* Macro to test whether a weak-loaded CFM function exists */
#define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\ #define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\
@ -550,7 +546,7 @@ ResObj_setattr(ResourceObject *self, char *name, PyObject *value)
#define ResObj_hash NULL #define ResObj_hash NULL
PyTypeObject Resource_Type = { PyTypeObject Resource_Type = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"Resource", /*tp_name*/ "Resource", /*tp_name*/
sizeof(ResourceObject), /*tp_basicsize*/ sizeof(ResourceObject), /*tp_basicsize*/

View file

@ -5,12 +5,8 @@
#ifdef _WIN32
#include "pywintoolbox.h"
#else
#include "macglue.h" #include "macglue.h"
#include "pymactoolbox.h" #include "pymactoolbox.h"
#endif
/* Macro to test whether a weak-loaded CFM function exists */ /* Macro to test whether a weak-loaded CFM function exists */
#define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\ #define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\
@ -316,7 +312,7 @@ static PyObject *SndCh_getattr(SndChannelObject *self, char *name)
#define SndCh_hash NULL #define SndCh_hash NULL
staticforward PyTypeObject SndChannel_Type = { staticforward PyTypeObject SndChannel_Type = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"SndChannel", /*tp_name*/ "SndChannel", /*tp_name*/
sizeof(SndChannelObject), /*tp_basicsize*/ sizeof(SndChannelObject), /*tp_basicsize*/
@ -444,7 +440,7 @@ static int SPBObj_setattr(SPBObject *self, char *name, PyObject *value)
#define SPBObj_hash NULL #define SPBObj_hash NULL
staticforward PyTypeObject SPB_Type = { staticforward PyTypeObject SPB_Type = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"SPB", /*tp_name*/ "SPB", /*tp_name*/
sizeof(SPBObject), /*tp_basicsize*/ sizeof(SPBObject), /*tp_basicsize*/

View file

@ -5,12 +5,8 @@
#ifdef _WIN32
#include "pywintoolbox.h"
#else
#include "macglue.h" #include "macglue.h"
#include "pymactoolbox.h" #include "pymactoolbox.h"
#endif
/* Macro to test whether a weak-loaded CFM function exists */ /* Macro to test whether a weak-loaded CFM function exists */
#define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\ #define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\
@ -793,7 +789,7 @@ static PyObject *TEObj_getattr(TEObject *self, char *name)
#define TEObj_hash NULL #define TEObj_hash NULL
PyTypeObject TE_Type = { PyTypeObject TE_Type = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"TE", /*tp_name*/ "TE", /*tp_name*/
sizeof(TEObject), /*tp_basicsize*/ sizeof(TEObject), /*tp_basicsize*/

View file

@ -5,12 +5,8 @@
#ifdef _WIN32
#include "pywintoolbox.h"
#else
#include "macglue.h" #include "macglue.h"
#include "pymactoolbox.h" #include "pymactoolbox.h"
#endif
/* Macro to test whether a weak-loaded CFM function exists */ /* Macro to test whether a weak-loaded CFM function exists */
#define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\ #define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\
@ -348,7 +344,7 @@ static PyObject *WEOObj_getattr(WEOObject *self, char *name)
#define WEOObj_hash NULL #define WEOObj_hash NULL
PyTypeObject WEO_Type = { PyTypeObject WEO_Type = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"WEO", /*tp_name*/ "WEO", /*tp_name*/
sizeof(WEOObject), /*tp_basicsize*/ sizeof(WEOObject), /*tp_basicsize*/
@ -1713,7 +1709,7 @@ static PyObject *wasteObj_getattr(wasteObject *self, char *name)
#define wasteObj_hash NULL #define wasteObj_hash NULL
PyTypeObject waste_Type = { PyTypeObject waste_Type = {
PyObject_HEAD_INIT(&PyType_Type) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"waste", /*tp_name*/ "waste", /*tp_name*/
sizeof(wasteObject), /*tp_basicsize*/ sizeof(wasteObject), /*tp_basicsize*/

File diff suppressed because it is too large Load diff

View file

@ -195,8 +195,8 @@ object = MyObjectDefinition(OBJECTNAME, OBJECTPREFIX, OBJECTTYPE)
module.addobject(object) module.addobject(object)
# Create the generator classes used to populate the lists # Create the generator classes used to populate the lists
Function = OSErrFunctionGenerator Function = OSErrWeakLinkFunctionGenerator
Method = OSErrMethodGenerator Method = OSErrWeakLinkMethodGenerator
# Create and populate the lists # Create and populate the lists
functions = [] functions = []

View file

@ -505,8 +505,7 @@ scan_event_queue(force)
if (q->evtQWhat == keyDown && if (q->evtQWhat == keyDown &&
(char)q->evtQMessage == '.' && (char)q->evtQMessage == '.' &&
(q->evtQModifiers & cmdKey) != 0) { (q->evtQModifiers & cmdKey) != 0) {
if ( flush ) FlushEvents(keyDownMask, 0);
FlushEvents(keyDownMask, 0);
interrupted = 1; interrupted = 1;
break; break;
} }
@ -517,8 +516,6 @@ scan_event_queue(force)
int int
PyErr_CheckSignals() PyErr_CheckSignals()
{ {
int xxx, xxx_old;
if (schedparams.enabled) { if (schedparams.enabled) {
if ( interrupted || (unsigned long)LMGetTicks() > schedparams.next_check ) { if ( interrupted || (unsigned long)LMGetTicks() > schedparams.next_check ) {
scan_event_queue(0); scan_event_queue(0);
@ -529,8 +526,6 @@ PyErr_CheckSignals()
} }
if ( PyMac_Yield() < 0) if ( PyMac_Yield() < 0)
return -1; return -1;
xxx = LMGetTicks();
xxx_old = schedparams.next_check;
schedparams.next_check = (unsigned long)LMGetTicks() schedparams.next_check = (unsigned long)LMGetTicks()
+ schedparams.check_interval; + schedparams.check_interval;
} }
@ -734,7 +729,7 @@ PyMac_InitMenuBar()
*/ */
if ( (sioux_mbar=GetMenuBar()) == NULL ) { if ( (sioux_mbar=GetMenuBar()) == NULL ) {
#else #else
{ if ( (sioux_mbar=GetMenuBar()) == NULL || GetMenuHandle(SIOUX_APPLEID) == NULL) {
#endif #endif
/* Sioux menu not installed yet. Do so */ /* Sioux menu not installed yet. Do so */
SIOUXSetupMenus(); SIOUXSetupMenus();

View file

@ -1,4 +1,4 @@
How to install Python 2.2b1 on your Macintosh How to install Python 2.2b2 on your Macintosh
--------------------------------------------- ---------------------------------------------
This is a MacPython that can run on classic MacOS (from 8.1 This is a MacPython that can run on classic MacOS (from 8.1
@ -128,11 +128,12 @@ After installing
It is probably a good idea to run the automatic tests. Start It is probably a good idea to run the automatic tests. Start
Python and "import test.regrtest ; test.regrtest.main()". Python and "import test.regrtest ; test.regrtest.main()".
test_frozen will fail in MacPython because of different handling on
frozen modules. This should not be a problem in normal use.
test_time will fail because MacPython accepts bogus values for test_time will fail because MacPython accepts bogus values for
mktime(), this will be fixed later (it is not a very serious problem). mktime(), this will be fixed later (it is not a very serious problem).
test_descrtut will fail because of a problem with the test itself.
Three tests will fail on MacOS9 with MemoryErrors: Three tests will fail on MacOS9 with MemoryErrors:
test_longexp, test_sha and test_zlib (on MacOSX these should pass). test_longexp, test_sha and test_zlib (on MacOSX these should pass).
@ -160,7 +161,7 @@ Uninstalling
Two items are installed in the system folder: the interpreter shared Two items are installed in the system folder: the interpreter shared
libraries PythonCore and PythonCoreCarbon lives in the Extensions libraries PythonCore and PythonCoreCarbon lives in the Extensions
folder and the "Python 2.2b1 Preferences" file in the Python subfolder folder and the "Python 2.2b2 Preferences" file in the Python subfolder
in the Preferences folder. All the rest of Python lives in the folder in the Preferences folder. All the rest of Python lives in the folder
you installed in. you installed in.
@ -210,9 +211,9 @@ this means you can keep your older version around if you are unsure
whether to upgrade. The bad news is that your old preference settings whether to upgrade. The bad news is that your old preference settings
are lost and you have to set them again. are lost and you have to set them again.
After you are satisfied that 2.2b1 works as expected you can trash After you are satisfied that 2.2b2 works as expected you can trash
anything in the system folder that has "python" in the name and not anything in the system folder that has "python" in the name and not
"2.2b1". "2.2b2".
The ConfigurePython... applets will try to detect incompatible The ConfigurePython... applets will try to detect incompatible
preferences files and offer to remove them. This means that re-running preferences files and offer to remove them. This means that re-running

View file

@ -1,8 +1,8 @@
Changes in 2.2b1 since 2.1.1 Changes in 2.2b2 since 2.1.1
---------------------------- ----------------------------
These release notes refer to Mac-specific changes only. See NEWS (in the Misc folder) These release notes refer to Mac-specific changes only. See NEWS (in the Misc folder)
for machine-independent changes. Changes that were already in 2.2a3 are flagged as such. for machine-independent changes. Changes that are new in 2.2b2 are flagged as such.
- The main change is that all toolbox modules have moved to a package called Carbon. - The main change is that all toolbox modules have moved to a package called Carbon.
@ -10,23 +10,33 @@ for machine-independent changes. Changes that were already in 2.2a3 are flagged
"from Res import *" to "from Carbon.Res import *". Please see the readme file for "from Res import *" to "from Carbon.Res import *". Please see the readme file for
some open questions and join the discussions on pythonmac-sig if you have anything some open questions and join the discussions on pythonmac-sig if you have anything
to contribute. Aside from reducing clutter this change will also benefit the to contribute. Aside from reducing clutter this change will also benefit the
port to Mach-O/OSX Python later. [2.2a3] port to Mach-O/OSX Python later.
- On input MacPython now accepts either \n (unix style) or \r (mac style) newlines - On input MacPython now accepts either \n (unix style) or \r (mac style) newlines
for text files. This behaviour can be turned off with a preference. for text files. This behaviour can be turned off with a preference.
This is an experimental feature; again: feedback is requested. [2.2a3] This is an experimental feature; again: feedback is requested.
- Command-dot handling has been improved a lot: scripts are now much easier to interrupt,
and they only scan for cmd-. while in the foreground. [2.2b2]
- "Copy" from the MacPython console window was always disabled. Fixed. [2.2b2]
- This release should run on MacOS 8.1 again. [2.2b2 build 116]
- A new, rather different GUSI I/O library is used. Please report any strange behaviour
with I/O to the pythonmac-sig mailing list! [2.2b2]
- There is a new module macresource which makes it easier to open a resource file - There is a new module macresource which makes it easier to open a resource file
accompanying your script when the script is not (yet) converted to an applet. accompanying your script when the script is not (yet) converted to an applet.
This module will later also do the right thing in Mach-O/OSX Python. [2.2a3] This module will later also do the right thing in Mach-O/OSX Python.
- A new, experimental module hfsplus is included, which gives access to some of the
functionality of the HFS+ API. [2.2b2]
- Threads had a stack that was too small for many serious Python applications (20K). - Threads had a stack that was too small for many serious Python applications (20K).
They now get 64K. There is still no overflow check, though. [2.2a3] They now get 64K. There is still no overflow check, though.
- Garbage collection and the gc module have (finally) been enabled. [2.2a3] - Garbage collection and the gc module have (finally) been enabled.
- EasyDialogs.ProgressBar now has indeterminate progressbars if you specify maxval=0. - EasyDialogs.ProgressBar now has indeterminate progressbars if you specify maxval=0.
This is also the new default. Patch supplied by Dean Draayer. [2.2a3] This is also the new default. Patch supplied by Dean Draayer.
- There are new preferences for enabling old-style division warnings and for - There are new preferences for enabling old-style division warnings and for
accepting unix-style newlines in text input files. These can also be set during accepting unix-style newlines in text input files. These can also be set during
startup, and in addition you can select very verbose import tracing. [2.2a3] startup, and in addition you can select very verbose import tracing.
- Various outdated scripts have been moved to :Mac:Unsupported. [2.2a3] - The NavServices override for StandardFile has moved from early startup to the
- Various outdated items from :Mac:Lib:test have been removed. [2.2a3] time you import macfs. This speeds up MacPython startup.
- Various outdated scripts have been moved to :Mac:Unsupported.
- Various outdated items from :Mac:Lib:test have been removed.
- C Developers: you know have control over the Python console if you are embedding - C Developers: you know have control over the Python console if you are embedding
MacPython in another application, thanks to Alexandre Parenteau. :Mac:Demo:embed.html MacPython in another application, thanks to Alexandre Parenteau. :Mac:Demo:embed.html
has very minimal documentation. has very minimal documentation.
@ -48,7 +58,7 @@ Known problems
This list is probably incomplete, more problems may be listed on the MacPython homepage, This list is probably incomplete, more problems may be listed on the MacPython homepage,
http://www.cwi.nl/~jack/macpython.html. http://www.cwi.nl/~jack/macpython.html.
- MacPython 2.2a3 (and MacPython 2.1) will not run correctly on a multiprocessor MacOS X - MacPython 2.2b2 (and MacPython 2.1) will not run correctly on a multiprocessor MacOS X
machine, it will quickly deadlock during I/O operations. The GUSI I/O library is suspected, machine, it will quickly deadlock during I/O operations. The GUSI I/O library is suspected,
hints/clues/workarounds are solicited. hints/clues/workarounds are solicited.
- Tkinter does not work under Carbon. - Tkinter does not work under Carbon.
@ -56,8 +66,6 @@ http://www.cwi.nl/~jack/macpython.html.
- Tkinter file events do not work, unless you have opened the file through Tcl (but then - Tkinter file events do not work, unless you have opened the file through Tcl (but then
you cannot access it from Python). you cannot access it from Python).
- Aliases may not work in sys.path entries. - Aliases may not work in sys.path entries.
- Under Carbon on OS9 only you may occasionally see a spurious KeyboardInterrupt. I have absolutely
no clue as to what is causing this.
- PythonInterpreter used interactively will eat a lot of processor cycles. You should use - PythonInterpreter used interactively will eat a lot of processor cycles. You should use
PythonIDE for interactive work and PythonInterpreter for scripts only. This is especially PythonIDE for interactive work and PythonInterpreter for scripts only. This is especially
true under OSX. true under OSX.

Binary file not shown.

View file

@ -29,6 +29,7 @@
/* #define USE_GDBM /* Include the gdbm module */ /* #define USE_GDBM /* Include the gdbm module */
/* #define USE_ZLIB /* Include the zlib module */ /* #define USE_ZLIB /* Include the zlib module */
#define USE_APPEARANCE /* Enable Appearance support */ #define USE_APPEARANCE /* Enable Appearance support */
#define WITH_HOTSHOT /* Enable hotshot profiler */
#define USE_MSL_MALLOC /* Disable private malloc. Also disables next two defines */ #define USE_MSL_MALLOC /* Disable private malloc. Also disables next two defines */
#ifndef USE_MSL_MALLOC #ifndef USE_MSL_MALLOC

View file

@ -25,6 +25,7 @@
/* #define USE_ZLIB /* Include the zlib module */ /* #define USE_ZLIB /* Include the zlib module */
#define USE_APPEARANCE /* Enable Appearance support */ #define USE_APPEARANCE /* Enable Appearance support */
#define WITHOUT_FRAMEWORKS /* Use old-style Universal Header includes, not Carbon/Carbon.h */ #define WITHOUT_FRAMEWORKS /* Use old-style Universal Header includes, not Carbon/Carbon.h */
#define WITH_HOTSHOT /* Enable hotshot profiler */
#define USE_MSL_MALLOC /* Disable private malloc. Also disables next two defines */ #define USE_MSL_MALLOC /* Disable private malloc. Also disables next two defines */
#ifndef USE_MSL_MALLOC #ifndef USE_MSL_MALLOC

View file

@ -292,7 +292,7 @@ I_CARBON_PLUGINS : (buildmwproject, "CWIE", [
(":Mac:Build:waste.carbon.mcp", "waste.carbon"), (":Mac:Build:waste.carbon.mcp", "waste.carbon"),
(":Mac:Build:zlib.carbon.mcp", "zlib.carbon"), (":Mac:Build:zlib.carbon.mcp", "zlib.carbon"),
(":Mac:Build:_dummy_tkinter.mcp", "_tkinter.carbon"), (":Mac:Build:_dummy_tkinter.mcp", "_tkinter.carbon"),
(":Mac:Build:hfsplus.mcp", "hfsplus.carbon"), (":Mac:Build:hfsplus.carbon.mcp", "hfsplus.carbon"),
## (":Extensions:Imaging:_tkinter.carbon.mcp", "_tkinter.carbon"), ## (":Extensions:Imaging:_tkinter.carbon.mcp", "_tkinter.carbon"),
(":Mac:Build:ColorPicker.carbon.mcp", "ColorPicker.carbon"), (":Mac:Build:ColorPicker.carbon.mcp", "ColorPicker.carbon"),
(":Mac:Build:_AE.carbon.mcp", "_AE.carbon"), (":Mac:Build:_AE.carbon.mcp", "_AE.carbon"),

View file

@ -35,7 +35,8 @@ def genpluginproject(architecture, module,
project=None, projectdir=None, project=None, projectdir=None,
sources=[], sourcedirs=[], sources=[], sourcedirs=[],
libraries=[], extradirs=[], libraries=[], extradirs=[],
extraexportsymbols=[], outputdir=":::Lib:lib-dynload"): extraexportsymbols=[], outputdir=":::Lib:lib-dynload",
libraryflags=None, stdlibraryflags=None):
if architecture == "all": if architecture == "all":
# For the time being we generate two project files. Not as nice as # For the time being we generate two project files. Not as nice as
# a single multitarget project, but easier to implement for now. # a single multitarget project, but easier to implement for now.
@ -90,6 +91,10 @@ def genpluginproject(architecture, module,
"mac_dllname" : dllname, "mac_dllname" : dllname,
"prefixname" : prefixname, "prefixname" : prefixname,
} }
if libraryflags:
dict['libraryflags'] = libraryflags
if stdlibraryflags:
dict['stdlibraryflags'] = stdlibraryflags
mkcwproject.mkproject(os.path.join(projectdir, project), module, dict, mkcwproject.mkproject(os.path.join(projectdir, project), module, dict,
force=FORCEREBUILD, templatename=templatename) force=FORCEREBUILD, templatename=templatename)
@ -124,10 +129,10 @@ def genallprojects(force=0):
genpluginproject("carbon", "_Cm", outputdir="::Lib:Carbon") genpluginproject("carbon", "_Cm", outputdir="::Lib:Carbon")
genpluginproject("carbon", "_Ctl", outputdir="::Lib:Carbon") genpluginproject("carbon", "_Ctl", outputdir="::Lib:Carbon")
genpluginproject("ppc", "_Ctl", libraries=["ControlsLib", "AppearanceLib"], genpluginproject("ppc", "_Ctl", libraries=["ControlsLib", "AppearanceLib"],
outputdir="::Lib:Carbon") libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
genpluginproject("carbon", "_Dlg", outputdir="::Lib:Carbon") genpluginproject("carbon", "_Dlg", outputdir="::Lib:Carbon")
genpluginproject("ppc", "_Dlg", libraries=["DialogsLib", "AppearanceLib"], genpluginproject("ppc", "_Dlg", libraries=["DialogsLib", "AppearanceLib"],
outputdir="::Lib:Carbon") libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
genpluginproject("carbon", "_Drag", outputdir="::Lib:Carbon") genpluginproject("carbon", "_Drag", outputdir="::Lib:Carbon")
genpluginproject("ppc", "_Drag", libraries=["DragLib"], outputdir="::Lib:Carbon") genpluginproject("ppc", "_Drag", libraries=["DragLib"], outputdir="::Lib:Carbon")
genpluginproject("all", "_Evt", outputdir="::Lib:Carbon") genpluginproject("all", "_Evt", outputdir="::Lib:Carbon")
@ -138,7 +143,7 @@ def genallprojects(force=0):
genpluginproject("all", "_List", outputdir="::Lib:Carbon") genpluginproject("all", "_List", outputdir="::Lib:Carbon")
genpluginproject("carbon", "_Menu", outputdir="::Lib:Carbon") genpluginproject("carbon", "_Menu", outputdir="::Lib:Carbon")
genpluginproject("ppc", "_Menu", libraries=["MenusLib", "ContextualMenu", "AppearanceLib"], genpluginproject("ppc", "_Menu", libraries=["MenusLib", "ContextualMenu", "AppearanceLib"],
outputdir="::Lib:Carbon") libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
genpluginproject("all", "_Qd", outputdir="::Lib:Carbon") genpluginproject("all", "_Qd", outputdir="::Lib:Carbon")
genpluginproject("ppc", "_Qt", libraries=["QuickTimeLib"], outputdir="::Lib:Carbon") genpluginproject("ppc", "_Qt", libraries=["QuickTimeLib"], outputdir="::Lib:Carbon")
genpluginproject("carbon", "_Qt", outputdir="::Lib:Carbon") genpluginproject("carbon", "_Qt", outputdir="::Lib:Carbon")
@ -153,8 +158,8 @@ def genallprojects(force=0):
genpluginproject("ppc", "_Mlte", libraries=["Textension"], outputdir="::Lib:Carbon") genpluginproject("ppc", "_Mlte", libraries=["Textension"], outputdir="::Lib:Carbon")
genpluginproject("carbon", "_Mlte", outputdir="::Lib:Carbon") genpluginproject("carbon", "_Mlte", outputdir="::Lib:Carbon")
genpluginproject("carbon", "_Win", outputdir="::Lib:Carbon") genpluginproject("carbon", "_Win", outputdir="::Lib:Carbon")
genpluginproject("ppc", "_Win", libraries=["WindowsLib", "AppearanceLib"], genpluginproject("ppc", "_Win", libraries=["CarbonAccessors.o", "WindowsLib", "AppearanceLib"],
outputdir="::Lib:Carbon") libraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
# Carbon Only? # Carbon Only?
genpluginproject("carbon", "_CF", outputdir="::Lib:Carbon") genpluginproject("carbon", "_CF", outputdir="::Lib:Carbon")
genpluginproject("carbon", "hfsplus") genpluginproject("carbon", "hfsplus")

View file

@ -121,9 +121,14 @@ open_the_file(PyFileObject *f, char *name, char *mode)
} }
if (f->f_fp == NULL) { if (f->f_fp == NULL) {
#ifdef NO_FOPEN_ERRNO #ifdef NO_FOPEN_ERRNO
/* Metroworks only, not testable, so unchanged */ /* Metroworks only, wich does not always sets errno */
if (errno == 0) { if (errno == 0) {
PyErr_SetString(PyExc_IOError, "Cannot open file"); PyObject *v;
v = Py_BuildValue("(is)", 0, "Cannot open file");
if (v != NULL) {
PyErr_SetObject(PyExc_IOError, v);
Py_DECREF(v);
}
return NULL; return NULL;
} }
#endif #endif

View file

@ -157,7 +157,9 @@ class WeakLinkMixIn:
"Mix-in to test the function actually exists (!= NULL) before calling" "Mix-in to test the function actually exists (!= NULL) before calling"
def precheck(self): def precheck(self):
Output('#ifndef %s', self.name)
Output('PyMac_PRECHECK(%s);', self.name) Output('PyMac_PRECHECK(%s);', self.name)
Output('#endif')
class WeakLinkFunctionGenerator(WeakLinkMixIn, FunctionGenerator): pass class WeakLinkFunctionGenerator(WeakLinkMixIn, FunctionGenerator): pass
class WeakLinkMethodGenerator(WeakLinkMixIn, MethodGenerator): pass class WeakLinkMethodGenerator(WeakLinkMixIn, MethodGenerator): pass