From 8d929aee499ddc289c1af07a090fb6b885d4ae0a Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Wed, 21 Jun 2000 22:07:06 +0000 Subject: [PATCH] All relevant toolbox modules have now been carbonized. --- Mac/Build/PythonStandCarbon.prj | Bin 148071 -> 154351 bytes Mac/Lib/lib-toolbox/Appearance.py | 2 +- Mac/Lib/lib-toolbox/Components.py | 2 +- Mac/Lib/lib-toolbox/Dragconst.py | 2 +- Mac/Lib/lib-toolbox/Fonts.py | 2 +- Mac/Lib/lib-toolbox/Icons.py | 2 +- Mac/Lib/lib-toolbox/Lists.py | 2 +- Mac/Lib/lib-toolbox/QDOffscreen.py | 2 +- Mac/Lib/lib-toolbox/QuickTime.py | 2 +- Mac/Lib/lib-toolbox/Sound.py | 2 +- Mac/Lib/lib-toolbox/TextEdit.py | 2 +- Mac/Modules/cm/Cmmodule.c | 12 ++++++ Mac/Modules/cm/cmscan.py | 7 ++++ Mac/Modules/fm/Fmmodule.c | 18 +++++++++ Mac/Modules/fm/fmscan.py | 7 ++++ Mac/Modules/icn/Icnmodule.c | 6 +++ Mac/Modules/icn/icnscan.py | 6 +++ Mac/Modules/macconfig.c | 3 ++ Mac/Modules/qt/Qtmodule.c | 12 ++++++ Mac/Modules/qt/qtscan.py | 7 ++++ Mac/Modules/snd/Sndmodule.c | 62 +++++++++++++++++++++++++++++ Mac/Modules/snd/sndscan.py | 15 +++++++ Mac/Modules/snd/sndsupport.py | 2 + Mac/Modules/win/Winmodule.c | 4 +- Mac/Modules/win/winscan.py | 4 +- 25 files changed, 170 insertions(+), 15 deletions(-) diff --git a/Mac/Build/PythonStandCarbon.prj b/Mac/Build/PythonStandCarbon.prj index ae6d94561ccccfd2c41a5fa34a714d71928a50f6..b63f87dfc704de7a26a917850cc05401ff1539e7 100644 GIT binary patch delta 851 zcmY+AT}V@57{}k|oP8OY#*8eq?LsLiY|bLWZp_k*kbzyOps7njn4YOq^TLlx%j%-7 zL%j^L4+y%nc#}Z{p+*!^WcW2U-PVl+l0p|o5%xdsFzVuW{_p>Pp65C5c~*wf*2dGa z+=}91jLD4A0Vb7iFsZ`!BI~gs{U*{;!UH74grPn&-v(o6EaNs~nc52*YxZ+nda(&`nbcC8zaplKG&fqAe17C{(9Kol&2We@{#kPwc^gQVWcd8ImL40rcf z)VN|0b-CG@rqafaCZ&xRR*^m6suAH$yR7!Vc`FtRf5@~?ygzC*h?(Qo9j1({+O+~D zR`pN$UUQGRc5`zzDBAtMNMxT4ZZr2-f{aPE{K+@6is|$Iwn86%ljbxr6xttt9ibRU7HYafp4L70!#k&7(%>**NHaz{P+r02vvEwo?ceEq%M zIIFFkPkbS}II-rf{;x7n!b9t4=-CPpKjcP7G*WE+r$hVaIexf<@+>&bV{7YMlQg#g zx4Pw$n_25hR)vxGrt%0^I+J-6`MXrU#0M}{>s;os?qo#_7450{ak$o$OTcw)IpMfh xOk&W#LZP5T8Y7eB;EZMSN~g42lJfW^r&J@e$V)!ulnP9f=#zY*4X5PI_zQui>|Ou> delta 345 zcmaFAmGgNEr$};sehvcz12Y2yqXq+$em(<}!SszH3s`t-fTFdGKmv#_Z$8KpC!i_^ z zWSJz%G5JA0%jQ^F34!THb~4IN3`p91^S=V~N%f (Handle _rv)"}, {"SetComponentInstanceStorage", (PyCFunction)CmpInstObj_SetComponentInstanceStorage, 1, "(Handle theStorage) -> None"}, + +#ifndef TARGET_API_MAC_CARBON {"GetComponentInstanceA5", (PyCFunction)CmpInstObj_GetComponentInstanceA5, 1, "() -> (long _rv)"}, +#endif + +#ifndef TARGET_API_MAC_CARBON {"SetComponentInstanceA5", (PyCFunction)CmpInstObj_SetComponentInstanceA5, 1, "(long theA5) -> None"}, +#endif {"ComponentFunctionImplemented", (PyCFunction)CmpInstObj_ComponentFunctionImplemented, 1, "(short ftnNumber) -> (long _rv)"}, {"GetComponentVersion", (PyCFunction)CmpInstObj_GetComponentVersion, 1, diff --git a/Mac/Modules/cm/cmscan.py b/Mac/Modules/cm/cmscan.py index e1db4b4d4b..6298f75f1e 100644 --- a/Mac/Modules/cm/cmscan.py +++ b/Mac/Modules/cm/cmscan.py @@ -58,6 +58,13 @@ class MyScanner(Scanner): "OpenAComponent", ] + def makegreylist(self): + return [ + ('#ifndef TARGET_API_MAC_CARBON', [ + 'SetComponentInstanceA5', + 'GetComponentInstanceA5', + ])] + def makeblacklisttypes(self): return [ "ResourceSpec", diff --git a/Mac/Modules/fm/Fmmodule.c b/Mac/Modules/fm/Fmmodule.c index 1d84a31d52..37d47e8a3d 100644 --- a/Mac/Modules/fm/Fmmodule.c +++ b/Mac/Modules/fm/Fmmodule.c @@ -77,6 +77,8 @@ FMRec_Convert(v, p_itself) static PyObject *Fm_Error; +#ifndef TARGET_API_MAC_CARBON + static PyObject *Fm_InitFonts(_self, _args) PyObject *_self; PyObject *_args; @@ -89,6 +91,7 @@ static PyObject *Fm_InitFonts(_self, _args) _res = Py_None; return _res; } +#endif static PyObject *Fm_GetFontName(_self, _args) PyObject *_self; @@ -143,6 +146,8 @@ static PyObject *Fm_RealFont(_self, _args) return _res; } +#ifndef TARGET_API_MAC_CARBON + static PyObject *Fm_SetFontLock(_self, _args) PyObject *_self; PyObject *_args; @@ -157,6 +162,7 @@ static PyObject *Fm_SetFontLock(_self, _args) _res = Py_None; return _res; } +#endif static PyObject *Fm_SetFScaleDisable(_self, _args) PyObject *_self; @@ -293,6 +299,8 @@ static PyObject *Fm_GetPreserveGlyph(_self, _args) return _res; } +#ifndef TARGET_API_MAC_CARBON + static PyObject *Fm_FlushFonts(_self, _args) PyObject *_self; PyObject *_args; @@ -307,6 +315,7 @@ static PyObject *Fm_FlushFonts(_self, _args) _res = Py_None; return _res; } +#endif static PyObject *Fm_GetSysFont(_self, _args) PyObject *_self; @@ -373,16 +382,22 @@ static PyObject *Fm_IsAntiAliasedTextEnabled(_self, _args) } static PyMethodDef Fm_methods[] = { + +#ifndef TARGET_API_MAC_CARBON {"InitFonts", (PyCFunction)Fm_InitFonts, 1, "() -> None"}, +#endif {"GetFontName", (PyCFunction)Fm_GetFontName, 1, "(short familyID) -> (Str255 name)"}, {"GetFNum", (PyCFunction)Fm_GetFNum, 1, "(Str255 name) -> (short familyID)"}, {"RealFont", (PyCFunction)Fm_RealFont, 1, "(short fontNum, short size) -> (Boolean _rv)"}, + +#ifndef TARGET_API_MAC_CARBON {"SetFontLock", (PyCFunction)Fm_SetFontLock, 1, "(Boolean lockFlag) -> None"}, +#endif {"SetFScaleDisable", (PyCFunction)Fm_SetFScaleDisable, 1, "(Boolean fscaleDisable) -> None"}, {"FontMetrics", (PyCFunction)Fm_FontMetrics, 1, @@ -401,8 +416,11 @@ static PyMethodDef Fm_methods[] = { "(Boolean preserveGlyph) -> None"}, {"GetPreserveGlyph", (PyCFunction)Fm_GetPreserveGlyph, 1, "() -> (Boolean _rv)"}, + +#ifndef TARGET_API_MAC_CARBON {"FlushFonts", (PyCFunction)Fm_FlushFonts, 1, "() -> None"}, +#endif {"GetSysFont", (PyCFunction)Fm_GetSysFont, 1, "() -> (short _rv)"}, {"GetAppFont", (PyCFunction)Fm_GetAppFont, 1, diff --git a/Mac/Modules/fm/fmscan.py b/Mac/Modules/fm/fmscan.py index b06e9cb913..3539b6d5f8 100644 --- a/Mac/Modules/fm/fmscan.py +++ b/Mac/Modules/fm/fmscan.py @@ -38,6 +38,13 @@ class MyScanner(Scanner): "AntiTextSetApplicationAware", ] + def makegreylist(self): + return [ + ('#ifndef TARGET_API_MAC_CARBON', [ + 'InitFonts', + 'SetFontLock', + 'FlushFonts', + ])] def makeblacklisttypes(self): return [ "FMInput_ptr", # Not needed for now diff --git a/Mac/Modules/icn/Icnmodule.c b/Mac/Modules/icn/Icnmodule.c index 9420d3787f..dfa54d61e8 100644 --- a/Mac/Modules/icn/Icnmodule.c +++ b/Mac/Modules/icn/Icnmodule.c @@ -604,6 +604,8 @@ static PyObject *Icn_PlotCIconHandle(_self, _args) return _res; } +#ifndef TARGET_API_MAC_CARBON + static PyObject *Icn_IconServicesTerminate(_self, _args) PyObject *_self; PyObject *_args; @@ -616,6 +618,7 @@ static PyObject *Icn_IconServicesTerminate(_self, _args) _res = Py_None; return _res; } +#endif static PyObject *Icn_IconRefToIconFamily(_self, _args) PyObject *_self; @@ -1336,8 +1339,11 @@ static PyMethodDef Icn_methods[] = { "(Rect theRect, IconAlignmentType align, IconTransformType transform, Handle theSICN) -> None"}, {"PlotCIconHandle", (PyCFunction)Icn_PlotCIconHandle, 1, "(Rect theRect, IconAlignmentType align, IconTransformType transform, CIconHandle theCIcon) -> None"}, + +#ifndef TARGET_API_MAC_CARBON {"IconServicesTerminate", (PyCFunction)Icn_IconServicesTerminate, 1, "() -> None"}, +#endif {"IconRefToIconFamily", (PyCFunction)Icn_IconRefToIconFamily, 1, "(IconRef theIconRef, IconSelectorValue whichIcons) -> (IconFamilyHandle iconFamily)"}, {"IconFamilyToIconSuite", (PyCFunction)Icn_IconFamilyToIconSuite, 1, diff --git a/Mac/Modules/icn/icnscan.py b/Mac/Modules/icn/icnscan.py index ee5a269e60..c2af061f66 100644 --- a/Mac/Modules/icn/icnscan.py +++ b/Mac/Modules/icn/icnscan.py @@ -45,6 +45,12 @@ class MyScanner(Scanner): "svAllAvailableData", ] + def makegreylist(self): + return [ + ('#ifndef TARGET_API_MAC_CARBON', [ + 'IconServicesTerminate', + ])] + def makeblacklisttypes(self): return [ "IconActionUPP", diff --git a/Mac/Modules/macconfig.c b/Mac/Modules/macconfig.c index 74f7c15627..88d75df8f3 100644 --- a/Mac/Modules/macconfig.c +++ b/Mac/Modules/macconfig.c @@ -223,7 +223,10 @@ struct _inittab _PyImport_Inittab[] = { {"List", initList}, {"Snd", initSnd}, {"Sndihooks", initSndihooks}, +#ifndef TARGET_API_MAC_CARBON_NOTYET + /* Carbon scrap manager is completely different */ {"Scrap", initScrap}, +#endif {"TE", initTE}, {"ColorPicker", initColorPicker}, #ifndef TARGET_API_MAC_CARBON diff --git a/Mac/Modules/qt/Qtmodule.c b/Mac/Modules/qt/Qtmodule.c index a03286e49a..f382f9fe62 100644 --- a/Mac/Modules/qt/Qtmodule.c +++ b/Mac/Modules/qt/Qtmodule.c @@ -6235,6 +6235,8 @@ PyTypeObject Movie_Type = { /* --------------------- End object type Movie ---------------------- */ +#ifndef TARGET_API_MAC_CARBON + static PyObject *Qt_CheckQuickTimeRegistration(_self, _args) PyObject *_self; PyObject *_args; @@ -6252,6 +6254,7 @@ static PyObject *Qt_CheckQuickTimeRegistration(_self, _args) _res = Py_None; return _res; } +#endif static PyObject *Qt_EnterMovies(_self, _args) PyObject *_self; @@ -7625,6 +7628,8 @@ static PyObject *Qt_SpriteMediaGetActionVariable(_self, _args) return _res; } +#ifndef TARGET_API_MAC_CARBON + static PyObject *Qt_SpriteMediaGetIndImageProperty(_self, _args) PyObject *_self; PyObject *_args; @@ -7649,6 +7654,7 @@ static PyObject *Qt_SpriteMediaGetIndImageProperty(_self, _args) _rv); return _res; } +#endif static PyObject *Qt_NewTimeBase(_self, _args) PyObject *_self; @@ -7818,8 +7824,11 @@ static PyObject *Qt_MoviesTask(_self, _args) } static PyMethodDef Qt_methods[] = { + +#ifndef TARGET_API_MAC_CARBON {"CheckQuickTimeRegistration", (PyCFunction)Qt_CheckQuickTimeRegistration, 1, "(void * registrationKey, long flags) -> None"}, +#endif {"EnterMovies", (PyCFunction)Qt_EnterMovies, 1, "() -> None"}, {"ExitMovies", (PyCFunction)Qt_ExitMovies, 1, @@ -7940,8 +7949,11 @@ static PyMethodDef Qt_methods[] = { "(MediaHandler mh, QTAtomID variableID, float value) -> (ComponentResult _rv)"}, {"SpriteMediaGetActionVariable", (PyCFunction)Qt_SpriteMediaGetActionVariable, 1, "(MediaHandler mh, QTAtomID variableID) -> (ComponentResult _rv, float value)"}, + +#ifndef TARGET_API_MAC_CARBON {"SpriteMediaGetIndImageProperty", (PyCFunction)Qt_SpriteMediaGetIndImageProperty, 1, "(MediaHandler mh, short imageIndex, long imagePropertyType, void * imagePropertyValue) -> (ComponentResult _rv)"}, +#endif {"NewTimeBase", (PyCFunction)Qt_NewTimeBase, 1, "() -> (TimeBase _rv)"}, {"ConvertTime", (PyCFunction)Qt_ConvertTime, 1, diff --git a/Mac/Modules/qt/qtscan.py b/Mac/Modules/qt/qtscan.py index 5f351950e2..d57a32d60d 100644 --- a/Mac/Modules/qt/qtscan.py +++ b/Mac/Modules/qt/qtscan.py @@ -63,6 +63,13 @@ class MyScanner(Scanner): ## "VideoMediaGetStallCount", # Undefined in CW Pro 3 library ] + def makegreylist(self): + return [ + ('#ifndef TARGET_API_MAC_CARBON', [ + 'SpriteMediaGetIndImageProperty', # XXXX Why isn't this in carbon? + 'CheckQuickTimeRegistration', + ])] + def makeblacklisttypes(self): return [ # I don't think we want to do these diff --git a/Mac/Modules/snd/Sndmodule.c b/Mac/Modules/snd/Sndmodule.c index 019fa256d1..b045baf096 100644 --- a/Mac/Modules/snd/Sndmodule.c +++ b/Mac/Modules/snd/Sndmodule.c @@ -188,6 +188,8 @@ static PyObject *SndCh_SndPlay(_self, _args) return _res; } +#ifndef TARGET_API_MAC_CARBON + static PyObject *SndCh_SndStartFilePlay(_self, _args) SndChannelObject *_self; PyObject *_args; @@ -217,6 +219,9 @@ static PyObject *SndCh_SndStartFilePlay(_self, _args) _res = Py_None; return _res; } +#endif + +#ifndef TARGET_API_MAC_CARBON static PyObject *SndCh_SndPauseFilePlay(_self, _args) SndChannelObject *_self; @@ -232,6 +237,9 @@ static PyObject *SndCh_SndPauseFilePlay(_self, _args) _res = Py_None; return _res; } +#endif + +#ifndef TARGET_API_MAC_CARBON static PyObject *SndCh_SndStopFilePlay(_self, _args) SndChannelObject *_self; @@ -250,6 +258,7 @@ static PyObject *SndCh_SndStopFilePlay(_self, _args) _res = Py_None; return _res; } +#endif static PyObject *SndCh_SndChannelStatus(_self, _args) SndChannelObject *_self; @@ -321,12 +330,21 @@ static PyMethodDef SndCh_methods[] = { "(SndCommand cmd) -> None"}, {"SndPlay", (PyCFunction)SndCh_SndPlay, 1, "(SndListHandle sndHandle, Boolean async) -> None"}, + +#ifndef TARGET_API_MAC_CARBON {"SndStartFilePlay", (PyCFunction)SndCh_SndStartFilePlay, 1, "(short fRefNum, short resNum, long bufferSize, Boolean async) -> None"}, +#endif + +#ifndef TARGET_API_MAC_CARBON {"SndPauseFilePlay", (PyCFunction)SndCh_SndPauseFilePlay, 1, "() -> None"}, +#endif + +#ifndef TARGET_API_MAC_CARBON {"SndStopFilePlay", (PyCFunction)SndCh_SndStopFilePlay, 1, "(Boolean quietNow) -> None"}, +#endif {"SndChannelStatus", (PyCFunction)SndCh_SndChannelStatus, 1, "(short theLength) -> (SCStatus theStatus)"}, {"SndGetInfo", (PyCFunction)SndCh_SndGetInfo, 1, @@ -471,11 +489,13 @@ static int SPBObj_setattr(self, name, value) self->ob_completion = value; Py_INCREF(value); rv = 1; +#ifndef TARGET_API_MAC_CARBON_NOTYET } else if (strcmp(name, "interruptRoutine") == 0) { self->ob_spb.completionRoutine = NewSIInterruptProc(SPB_interrupt); self->ob_interrupt = value; Py_INCREF(value); rv = 1; +#endif } if ( rv ) return 0; else return -1; @@ -570,6 +590,8 @@ static PyObject *Snd_SndNewChannel(_self, _args) return _res; } +#ifndef TARGET_API_MAC_CARBON + static PyObject *Snd_SndControl(_self, _args) PyObject *_self; PyObject *_args; @@ -588,6 +610,7 @@ static PyObject *Snd_SndControl(_self, _args) SndCmd_New, &cmd); return _res; } +#endif static PyObject *Snd_SndSoundManagerVersion(_self, _args) PyObject *_self; @@ -654,6 +677,8 @@ static PyObject *Snd_SndSetSysBeepState(_self, _args) return _res; } +#ifndef TARGET_API_MAC_CARBON + static PyObject *Snd_MACEVersion(_self, _args) PyObject *_self; PyObject *_args; @@ -667,6 +692,9 @@ static PyObject *Snd_MACEVersion(_self, _args) PyMac_BuildNumVersion, _rv); return _res; } +#endif + +#ifndef TARGET_API_MAC_CARBON static PyObject *Snd_Comp3to1(_self, _args) PyObject *_self; @@ -711,6 +739,9 @@ static PyObject *Snd_Comp3to1(_self, _args) buffer__error__: ; return _res; } +#endif + +#ifndef TARGET_API_MAC_CARBON static PyObject *Snd_Exp1to3(_self, _args) PyObject *_self; @@ -755,6 +786,9 @@ static PyObject *Snd_Exp1to3(_self, _args) buffer__error__: ; return _res; } +#endif + +#ifndef TARGET_API_MAC_CARBON static PyObject *Snd_Comp6to1(_self, _args) PyObject *_self; @@ -799,6 +833,9 @@ static PyObject *Snd_Comp6to1(_self, _args) buffer__error__: ; return _res; } +#endif + +#ifndef TARGET_API_MAC_CARBON static PyObject *Snd_Exp1to6(_self, _args) PyObject *_self; @@ -843,6 +880,7 @@ static PyObject *Snd_Exp1to6(_self, _args) buffer__error__: ; return _res; } +#endif static PyObject *Snd_GetSysBeepVolume(_self, _args) PyObject *_self; @@ -1153,6 +1191,8 @@ static PyObject *Snd_SPBRecord(_self, _args) return _res; } +#ifndef TARGET_API_MAC_CARBON + static PyObject *Snd_SPBRecordToFile(_self, _args) PyObject *_self; PyObject *_args; @@ -1175,6 +1215,7 @@ static PyObject *Snd_SPBRecordToFile(_self, _args) _res = Py_None; return _res; } +#endif static PyObject *Snd_SPBPauseRecording(_self, _args) PyObject *_self; @@ -1352,8 +1393,11 @@ static PyMethodDef Snd_methods[] = { "(short duration) -> None"}, {"SndNewChannel", (PyCFunction)Snd_SndNewChannel, 1, "(short synth, long init, PyObject* userRoutine) -> (SndChannelPtr chan)"}, + +#ifndef TARGET_API_MAC_CARBON {"SndControl", (PyCFunction)Snd_SndControl, 1, "(short id) -> (SndCommand cmd)"}, +#endif {"SndSoundManagerVersion", (PyCFunction)Snd_SndSoundManagerVersion, 1, "() -> (NumVersion _rv)"}, {"SndManagerStatus", (PyCFunction)Snd_SndManagerStatus, 1, @@ -1362,16 +1406,31 @@ static PyMethodDef Snd_methods[] = { "() -> (short sysBeepState)"}, {"SndSetSysBeepState", (PyCFunction)Snd_SndSetSysBeepState, 1, "(short sysBeepState) -> None"}, + +#ifndef TARGET_API_MAC_CARBON {"MACEVersion", (PyCFunction)Snd_MACEVersion, 1, "() -> (NumVersion _rv)"}, +#endif + +#ifndef TARGET_API_MAC_CARBON {"Comp3to1", (PyCFunction)Snd_Comp3to1, 1, "(Buffer buffer, StateBlock state, unsigned long numChannels, unsigned long whichChannel) -> (Buffer buffer, StateBlock state)"}, +#endif + +#ifndef TARGET_API_MAC_CARBON {"Exp1to3", (PyCFunction)Snd_Exp1to3, 1, "(Buffer buffer, StateBlock state, unsigned long numChannels, unsigned long whichChannel) -> (Buffer buffer, StateBlock state)"}, +#endif + +#ifndef TARGET_API_MAC_CARBON {"Comp6to1", (PyCFunction)Snd_Comp6to1, 1, "(Buffer buffer, StateBlock state, unsigned long numChannels, unsigned long whichChannel) -> (Buffer buffer, StateBlock state)"}, +#endif + +#ifndef TARGET_API_MAC_CARBON {"Exp1to6", (PyCFunction)Snd_Exp1to6, 1, "(Buffer buffer, StateBlock state, unsigned long numChannels, unsigned long whichChannel) -> (Buffer buffer, StateBlock state)"}, +#endif {"GetSysBeepVolume", (PyCFunction)Snd_GetSysBeepVolume, 1, "() -> (long level)"}, {"SetSysBeepVolume", (PyCFunction)Snd_SetSysBeepVolume, 1, @@ -1404,8 +1463,11 @@ static PyMethodDef Snd_methods[] = { "(long inRefNum) -> None"}, {"SPBRecord", (PyCFunction)Snd_SPBRecord, 1, "(SPBPtr inParamPtr, Boolean asynchFlag) -> None"}, + +#ifndef TARGET_API_MAC_CARBON {"SPBRecordToFile", (PyCFunction)Snd_SPBRecordToFile, 1, "(short fRefNum, SPBPtr inParamPtr, Boolean asynchFlag) -> None"}, +#endif {"SPBPauseRecording", (PyCFunction)Snd_SPBPauseRecording, 1, "(long inRefNum) -> None"}, {"SPBResumeRecording", (PyCFunction)Snd_SPBResumeRecording, 1, diff --git a/Mac/Modules/snd/sndscan.py b/Mac/Modules/snd/sndscan.py index a190bfe1bb..c4f494f005 100644 --- a/Mac/Modules/snd/sndscan.py +++ b/Mac/Modules/snd/sndscan.py @@ -62,6 +62,21 @@ class SoundScanner(Scanner): ] + def makegreylist(self): + return [ + ('#ifndef TARGET_API_MAC_CARBON', [ + 'MACEVersion', + 'SPBRecordToFile', + 'Exp1to6', + 'Comp6to1', + 'Exp1to3', + 'Comp3to1', + 'SndControl', + 'SndStopFilePlay', + 'SndStartFilePlay', + 'SndPauseFilePlay', + ])] + def makeblacklisttypes(self): return [ "GetSoundVol", diff --git a/Mac/Modules/snd/sndsupport.py b/Mac/Modules/snd/sndsupport.py index 9856e79a1e..d48a20701b 100644 --- a/Mac/Modules/snd/sndsupport.py +++ b/Mac/Modules/snd/sndsupport.py @@ -315,11 +315,13 @@ class SpbObjectDefinition(ObjectDefinition): self->ob_completion = value; Py_INCREF(value); rv = 1; +#ifndef TARGET_API_MAC_CARBON_NOTYET } else if (strcmp(name, "interruptRoutine") == 0) { self->ob_spb.completionRoutine = NewSIInterruptProc(SPB_interrupt); self->ob_interrupt = value; Py_INCREF(value); rv = 1; +#endif } if ( rv ) return 0; else return -1;""") diff --git a/Mac/Modules/win/Winmodule.c b/Mac/Modules/win/Winmodule.c index a03d4933b6..ffd8b0b622 100644 --- a/Mac/Modules/win/Winmodule.c +++ b/Mac/Modules/win/Winmodule.c @@ -2240,7 +2240,7 @@ static PyObject *Win_GetCWMgrPort(_self, _args) } #endif -#ifndef TARGET_API_MAC_CARBON_NOTYET +#ifndef TARGET_API_MAC_CARBON static PyObject *Win_IsValidWindowPtr(_self, _args) PyObject *_self; @@ -2480,7 +2480,7 @@ static PyMethodDef Win_methods[] = { "() -> (CGrafPtr wMgrCPort)"}, #endif -#ifndef TARGET_API_MAC_CARBON_NOTYET +#ifndef TARGET_API_MAC_CARBON {"IsValidWindowPtr", (PyCFunction)Win_IsValidWindowPtr, 1, "(GrafPtr grafPort) -> (Boolean _rv)"}, #endif diff --git a/Mac/Modules/win/winscan.py b/Mac/Modules/win/winscan.py index b0f0fb3021..a968688770 100644 --- a/Mac/Modules/win/winscan.py +++ b/Mac/Modules/win/winscan.py @@ -63,9 +63,7 @@ class MyScanner(Scanner): 'ValidRect', 'InvalRgn', 'InvalRect', - ]), - ('#ifndef TARGET_API_MAC_CARBON_NOTYET', [ - 'IsValidWindowPtr', + 'IsValidWindowPtr', # I think this is useless for Python, but not sure... ])] def makeblacklisttypes(self): -- 2.40.0