Commit 8d929aee authored by Jack Jansen's avatar Jack Jansen

All relevant toolbox modules have now been carbonized.

parent 349a3d3a
# Generated from 'flap:CodeWarrior Pro 5:Metrowerks CodeWarrior:MacOS Support:Universal:Interfaces:CIncludes:Appearance.h' # Generated from 'Macintosh HD:SWDev:Codewarrior Pro 5:Metrowerks CodeWarrior:MacOS Support:Universal:Interfaces:CIncludes:Appearance.h'
def FOUR_CHAR_CODE(x): return x def FOUR_CHAR_CODE(x): return x
_AppearanceDispatch = 0xAA74 _AppearanceDispatch = 0xAA74
......
# Generated from 'flap:CodeWarrior Pro 5:Metrowerks CodeWarrior:MacOS Support:Universal:Interfaces:CIncludes:Components.h' # Generated from 'Macintosh HD:SWDev:Codewarrior Pro 5:Metrowerks CodeWarrior:MacOS Support:Universal:Interfaces:CIncludes:Components.h'
def FOUR_CHAR_CODE(x): return x def FOUR_CHAR_CODE(x): return x
kAppleManufacturer = FOUR_CHAR_CODE('appl') kAppleManufacturer = FOUR_CHAR_CODE('appl')
......
# Generated from 'flap:CodeWarrior Pro 5:Metrowerks CodeWarrior:MacOS Support:Universal:Interfaces:CIncludes:Drag.h' # Generated from 'Macintosh HD:SWDev:Codewarrior Pro 5:Metrowerks CodeWarrior:MacOS Support:Universal:Interfaces:CIncludes:Drag.h'
def FOUR_CHAR_CODE(x): return x def FOUR_CHAR_CODE(x): return x
from TextEdit import * from TextEdit import *
......
# Generated from 'flap:CodeWarrior Pro 5:Metrowerks CodeWarrior:MacOS Support:Universal:Interfaces:CIncludes:Fonts.h' # Generated from 'Macintosh HD:SWDev:Codewarrior Pro 5:Metrowerks CodeWarrior:MacOS Support:Universal:Interfaces:CIncludes:Fonts.h'
systemFont = 0 systemFont = 0
applFont = 1 applFont = 1
......
# Generated from 'flap:CodeWarrior Pro 5:Metrowerks CodeWarrior:MacOS Support:Universal:Interfaces:CIncludes:Icons.h' # Generated from 'Macintosh HD:SWDev:Codewarrior Pro 5:Metrowerks CodeWarrior:MacOS Support:Universal:Interfaces:CIncludes:Icons.h'
def FOUR_CHAR_CODE(x): return x def FOUR_CHAR_CODE(x): return x
kGenericDocumentIconResource = -4000 kGenericDocumentIconResource = -4000
......
# Generated from 'flap:CodeWarrior Pro 5:Metrowerks CodeWarrior:MacOS Support:Universal:Interfaces:CIncludes:Lists.h' # Generated from 'Macintosh HD:SWDev:Codewarrior Pro 5:Metrowerks CodeWarrior:MacOS Support:Universal:Interfaces:CIncludes:Lists.h'
def FOUR_CHAR_CODE(x): return x def FOUR_CHAR_CODE(x): return x
listNotifyNothing = FOUR_CHAR_CODE('nada') listNotifyNothing = FOUR_CHAR_CODE('nada')
......
# Generated from 'flap:CodeWarrior Pro 5:Metrowerks CodeWarrior:MacOS Support:Universal:Interfaces:CIncludes:QDOffscreen.h' # Generated from 'Macintosh HD:SWDev:Codewarrior Pro 5:Metrowerks CodeWarrior:MacOS Support:Universal:Interfaces:CIncludes:QDOffscreen.h'
def FOUR_CHAR_CODE(x): return x def FOUR_CHAR_CODE(x): return x
pixPurgeBit = 0 pixPurgeBit = 0
......
# Generated from 'flap:CodeWarrior Pro 5:Metrowerks CodeWarrior:MacOS Support:Universal:Interfaces:CIncludes:Movies.h' # Generated from 'Macintosh HD:SWDev:Codewarrior Pro 5:Metrowerks CodeWarrior:MacOS Support:Universal:Interfaces:CIncludes:Movies.h'
def FOUR_CHAR_CODE(x): return x def FOUR_CHAR_CODE(x): return x
MovieFileType = FOUR_CHAR_CODE('MooV') MovieFileType = FOUR_CHAR_CODE('MooV')
......
# Generated from 'flap:CodeWarrior Pro 5:Metrowerks CodeWarrior:MacOS Support:Universal:Interfaces:CIncludes:Sound.h' # Generated from 'Macintosh HD:SWDev:Codewarrior Pro 5:Metrowerks CodeWarrior:MacOS Support:Universal:Interfaces:CIncludes:Sound.h'
def FOUR_CHAR_CODE(x): return x def FOUR_CHAR_CODE(x): return x
soundListRsrc = FOUR_CHAR_CODE('snd ') soundListRsrc = FOUR_CHAR_CODE('snd ')
......
# Generated from 'flap:CodeWarrior Pro 5:Metrowerks CodeWarrior:MacOS Support:Universal:Interfaces:CIncludes:TextEdit.h' # Generated from 'Macintosh HD:SWDev:Codewarrior Pro 5:Metrowerks CodeWarrior:MacOS Support:Universal:Interfaces:CIncludes:TextEdit.h'
teJustLeft = 0 teJustLeft = 0
teJustCenter = 1 teJustCenter = 1
......
...@@ -192,6 +192,8 @@ static PyObject *CmpInstObj_SetComponentInstanceStorage(_self, _args) ...@@ -192,6 +192,8 @@ static PyObject *CmpInstObj_SetComponentInstanceStorage(_self, _args)
return _res; return _res;
} }
#ifndef TARGET_API_MAC_CARBON
static PyObject *CmpInstObj_GetComponentInstanceA5(_self, _args) static PyObject *CmpInstObj_GetComponentInstanceA5(_self, _args)
ComponentInstanceObject *_self; ComponentInstanceObject *_self;
PyObject *_args; PyObject *_args;
...@@ -205,6 +207,9 @@ static PyObject *CmpInstObj_GetComponentInstanceA5(_self, _args) ...@@ -205,6 +207,9 @@ static PyObject *CmpInstObj_GetComponentInstanceA5(_self, _args)
_rv); _rv);
return _res; return _res;
} }
#endif
#ifndef TARGET_API_MAC_CARBON
static PyObject *CmpInstObj_SetComponentInstanceA5(_self, _args) static PyObject *CmpInstObj_SetComponentInstanceA5(_self, _args)
ComponentInstanceObject *_self; ComponentInstanceObject *_self;
...@@ -221,6 +226,7 @@ static PyObject *CmpInstObj_SetComponentInstanceA5(_self, _args) ...@@ -221,6 +226,7 @@ static PyObject *CmpInstObj_SetComponentInstanceA5(_self, _args)
_res = Py_None; _res = Py_None;
return _res; return _res;
} }
#endif
static PyObject *CmpInstObj_ComponentFunctionImplemented(_self, _args) static PyObject *CmpInstObj_ComponentFunctionImplemented(_self, _args)
ComponentInstanceObject *_self; ComponentInstanceObject *_self;
...@@ -281,10 +287,16 @@ static PyMethodDef CmpInstObj_methods[] = { ...@@ -281,10 +287,16 @@ static PyMethodDef CmpInstObj_methods[] = {
"() -> (Handle _rv)"}, "() -> (Handle _rv)"},
{"SetComponentInstanceStorage", (PyCFunction)CmpInstObj_SetComponentInstanceStorage, 1, {"SetComponentInstanceStorage", (PyCFunction)CmpInstObj_SetComponentInstanceStorage, 1,
"(Handle theStorage) -> None"}, "(Handle theStorage) -> None"},
#ifndef TARGET_API_MAC_CARBON
{"GetComponentInstanceA5", (PyCFunction)CmpInstObj_GetComponentInstanceA5, 1, {"GetComponentInstanceA5", (PyCFunction)CmpInstObj_GetComponentInstanceA5, 1,
"() -> (long _rv)"}, "() -> (long _rv)"},
#endif
#ifndef TARGET_API_MAC_CARBON
{"SetComponentInstanceA5", (PyCFunction)CmpInstObj_SetComponentInstanceA5, 1, {"SetComponentInstanceA5", (PyCFunction)CmpInstObj_SetComponentInstanceA5, 1,
"(long theA5) -> None"}, "(long theA5) -> None"},
#endif
{"ComponentFunctionImplemented", (PyCFunction)CmpInstObj_ComponentFunctionImplemented, 1, {"ComponentFunctionImplemented", (PyCFunction)CmpInstObj_ComponentFunctionImplemented, 1,
"(short ftnNumber) -> (long _rv)"}, "(short ftnNumber) -> (long _rv)"},
{"GetComponentVersion", (PyCFunction)CmpInstObj_GetComponentVersion, 1, {"GetComponentVersion", (PyCFunction)CmpInstObj_GetComponentVersion, 1,
......
...@@ -58,6 +58,13 @@ class MyScanner(Scanner): ...@@ -58,6 +58,13 @@ class MyScanner(Scanner):
"OpenAComponent", "OpenAComponent",
] ]
def makegreylist(self):
return [
('#ifndef TARGET_API_MAC_CARBON', [
'SetComponentInstanceA5',
'GetComponentInstanceA5',
])]
def makeblacklisttypes(self): def makeblacklisttypes(self):
return [ return [
"ResourceSpec", "ResourceSpec",
......
...@@ -77,6 +77,8 @@ FMRec_Convert(v, p_itself) ...@@ -77,6 +77,8 @@ FMRec_Convert(v, p_itself)
static PyObject *Fm_Error; static PyObject *Fm_Error;
#ifndef TARGET_API_MAC_CARBON
static PyObject *Fm_InitFonts(_self, _args) static PyObject *Fm_InitFonts(_self, _args)
PyObject *_self; PyObject *_self;
PyObject *_args; PyObject *_args;
...@@ -89,6 +91,7 @@ static PyObject *Fm_InitFonts(_self, _args) ...@@ -89,6 +91,7 @@ static PyObject *Fm_InitFonts(_self, _args)
_res = Py_None; _res = Py_None;
return _res; return _res;
} }
#endif
static PyObject *Fm_GetFontName(_self, _args) static PyObject *Fm_GetFontName(_self, _args)
PyObject *_self; PyObject *_self;
...@@ -143,6 +146,8 @@ static PyObject *Fm_RealFont(_self, _args) ...@@ -143,6 +146,8 @@ static PyObject *Fm_RealFont(_self, _args)
return _res; return _res;
} }
#ifndef TARGET_API_MAC_CARBON
static PyObject *Fm_SetFontLock(_self, _args) static PyObject *Fm_SetFontLock(_self, _args)
PyObject *_self; PyObject *_self;
PyObject *_args; PyObject *_args;
...@@ -157,6 +162,7 @@ static PyObject *Fm_SetFontLock(_self, _args) ...@@ -157,6 +162,7 @@ static PyObject *Fm_SetFontLock(_self, _args)
_res = Py_None; _res = Py_None;
return _res; return _res;
} }
#endif
static PyObject *Fm_SetFScaleDisable(_self, _args) static PyObject *Fm_SetFScaleDisable(_self, _args)
PyObject *_self; PyObject *_self;
...@@ -293,6 +299,8 @@ static PyObject *Fm_GetPreserveGlyph(_self, _args) ...@@ -293,6 +299,8 @@ static PyObject *Fm_GetPreserveGlyph(_self, _args)
return _res; return _res;
} }
#ifndef TARGET_API_MAC_CARBON
static PyObject *Fm_FlushFonts(_self, _args) static PyObject *Fm_FlushFonts(_self, _args)
PyObject *_self; PyObject *_self;
PyObject *_args; PyObject *_args;
...@@ -307,6 +315,7 @@ static PyObject *Fm_FlushFonts(_self, _args) ...@@ -307,6 +315,7 @@ static PyObject *Fm_FlushFonts(_self, _args)
_res = Py_None; _res = Py_None;
return _res; return _res;
} }
#endif
static PyObject *Fm_GetSysFont(_self, _args) static PyObject *Fm_GetSysFont(_self, _args)
PyObject *_self; PyObject *_self;
...@@ -373,16 +382,22 @@ static PyObject *Fm_IsAntiAliasedTextEnabled(_self, _args) ...@@ -373,16 +382,22 @@ static PyObject *Fm_IsAntiAliasedTextEnabled(_self, _args)
} }
static PyMethodDef Fm_methods[] = { static PyMethodDef Fm_methods[] = {
#ifndef TARGET_API_MAC_CARBON
{"InitFonts", (PyCFunction)Fm_InitFonts, 1, {"InitFonts", (PyCFunction)Fm_InitFonts, 1,
"() -> None"}, "() -> None"},
#endif
{"GetFontName", (PyCFunction)Fm_GetFontName, 1, {"GetFontName", (PyCFunction)Fm_GetFontName, 1,
"(short familyID) -> (Str255 name)"}, "(short familyID) -> (Str255 name)"},
{"GetFNum", (PyCFunction)Fm_GetFNum, 1, {"GetFNum", (PyCFunction)Fm_GetFNum, 1,
"(Str255 name) -> (short familyID)"}, "(Str255 name) -> (short familyID)"},
{"RealFont", (PyCFunction)Fm_RealFont, 1, {"RealFont", (PyCFunction)Fm_RealFont, 1,
"(short fontNum, short size) -> (Boolean _rv)"}, "(short fontNum, short size) -> (Boolean _rv)"},
#ifndef TARGET_API_MAC_CARBON
{"SetFontLock", (PyCFunction)Fm_SetFontLock, 1, {"SetFontLock", (PyCFunction)Fm_SetFontLock, 1,
"(Boolean lockFlag) -> None"}, "(Boolean lockFlag) -> None"},
#endif
{"SetFScaleDisable", (PyCFunction)Fm_SetFScaleDisable, 1, {"SetFScaleDisable", (PyCFunction)Fm_SetFScaleDisable, 1,
"(Boolean fscaleDisable) -> None"}, "(Boolean fscaleDisable) -> None"},
{"FontMetrics", (PyCFunction)Fm_FontMetrics, 1, {"FontMetrics", (PyCFunction)Fm_FontMetrics, 1,
...@@ -401,8 +416,11 @@ static PyMethodDef Fm_methods[] = { ...@@ -401,8 +416,11 @@ static PyMethodDef Fm_methods[] = {
"(Boolean preserveGlyph) -> None"}, "(Boolean preserveGlyph) -> None"},
{"GetPreserveGlyph", (PyCFunction)Fm_GetPreserveGlyph, 1, {"GetPreserveGlyph", (PyCFunction)Fm_GetPreserveGlyph, 1,
"() -> (Boolean _rv)"}, "() -> (Boolean _rv)"},
#ifndef TARGET_API_MAC_CARBON
{"FlushFonts", (PyCFunction)Fm_FlushFonts, 1, {"FlushFonts", (PyCFunction)Fm_FlushFonts, 1,
"() -> None"}, "() -> None"},
#endif
{"GetSysFont", (PyCFunction)Fm_GetSysFont, 1, {"GetSysFont", (PyCFunction)Fm_GetSysFont, 1,
"() -> (short _rv)"}, "() -> (short _rv)"},
{"GetAppFont", (PyCFunction)Fm_GetAppFont, 1, {"GetAppFont", (PyCFunction)Fm_GetAppFont, 1,
......
...@@ -38,6 +38,13 @@ class MyScanner(Scanner): ...@@ -38,6 +38,13 @@ class MyScanner(Scanner):
"AntiTextSetApplicationAware", "AntiTextSetApplicationAware",
] ]
def makegreylist(self):
return [
('#ifndef TARGET_API_MAC_CARBON', [
'InitFonts',
'SetFontLock',
'FlushFonts',
])]
def makeblacklisttypes(self): def makeblacklisttypes(self):
return [ return [
"FMInput_ptr", # Not needed for now "FMInput_ptr", # Not needed for now
......
...@@ -604,6 +604,8 @@ static PyObject *Icn_PlotCIconHandle(_self, _args) ...@@ -604,6 +604,8 @@ static PyObject *Icn_PlotCIconHandle(_self, _args)
return _res; return _res;
} }
#ifndef TARGET_API_MAC_CARBON
static PyObject *Icn_IconServicesTerminate(_self, _args) static PyObject *Icn_IconServicesTerminate(_self, _args)
PyObject *_self; PyObject *_self;
PyObject *_args; PyObject *_args;
...@@ -616,6 +618,7 @@ static PyObject *Icn_IconServicesTerminate(_self, _args) ...@@ -616,6 +618,7 @@ static PyObject *Icn_IconServicesTerminate(_self, _args)
_res = Py_None; _res = Py_None;
return _res; return _res;
} }
#endif
static PyObject *Icn_IconRefToIconFamily(_self, _args) static PyObject *Icn_IconRefToIconFamily(_self, _args)
PyObject *_self; PyObject *_self;
...@@ -1336,8 +1339,11 @@ static PyMethodDef Icn_methods[] = { ...@@ -1336,8 +1339,11 @@ static PyMethodDef Icn_methods[] = {
"(Rect theRect, IconAlignmentType align, IconTransformType transform, Handle theSICN) -> None"}, "(Rect theRect, IconAlignmentType align, IconTransformType transform, Handle theSICN) -> None"},
{"PlotCIconHandle", (PyCFunction)Icn_PlotCIconHandle, 1, {"PlotCIconHandle", (PyCFunction)Icn_PlotCIconHandle, 1,
"(Rect theRect, IconAlignmentType align, IconTransformType transform, CIconHandle theCIcon) -> None"}, "(Rect theRect, IconAlignmentType align, IconTransformType transform, CIconHandle theCIcon) -> None"},
#ifndef TARGET_API_MAC_CARBON
{"IconServicesTerminate", (PyCFunction)Icn_IconServicesTerminate, 1, {"IconServicesTerminate", (PyCFunction)Icn_IconServicesTerminate, 1,
"() -> None"}, "() -> None"},
#endif
{"IconRefToIconFamily", (PyCFunction)Icn_IconRefToIconFamily, 1, {"IconRefToIconFamily", (PyCFunction)Icn_IconRefToIconFamily, 1,
"(IconRef theIconRef, IconSelectorValue whichIcons) -> (IconFamilyHandle iconFamily)"}, "(IconRef theIconRef, IconSelectorValue whichIcons) -> (IconFamilyHandle iconFamily)"},
{"IconFamilyToIconSuite", (PyCFunction)Icn_IconFamilyToIconSuite, 1, {"IconFamilyToIconSuite", (PyCFunction)Icn_IconFamilyToIconSuite, 1,
......
...@@ -45,6 +45,12 @@ class MyScanner(Scanner): ...@@ -45,6 +45,12 @@ class MyScanner(Scanner):
"svAllAvailableData", "svAllAvailableData",
] ]
def makegreylist(self):
return [
('#ifndef TARGET_API_MAC_CARBON', [
'IconServicesTerminate',
])]
def makeblacklisttypes(self): def makeblacklisttypes(self):
return [ return [
"IconActionUPP", "IconActionUPP",
......
...@@ -223,7 +223,10 @@ struct _inittab _PyImport_Inittab[] = { ...@@ -223,7 +223,10 @@ struct _inittab _PyImport_Inittab[] = {
{"List", initList}, {"List", initList},
{"Snd", initSnd}, {"Snd", initSnd},
{"Sndihooks", initSndihooks}, {"Sndihooks", initSndihooks},
#ifndef TARGET_API_MAC_CARBON_NOTYET
/* Carbon scrap manager is completely different */
{"Scrap", initScrap}, {"Scrap", initScrap},
#endif
{"TE", initTE}, {"TE", initTE},
{"ColorPicker", initColorPicker}, {"ColorPicker", initColorPicker},
#ifndef TARGET_API_MAC_CARBON #ifndef TARGET_API_MAC_CARBON
......
...@@ -6235,6 +6235,8 @@ PyTypeObject Movie_Type = { ...@@ -6235,6 +6235,8 @@ PyTypeObject Movie_Type = {
/* --------------------- End object type Movie ---------------------- */ /* --------------------- End object type Movie ---------------------- */
#ifndef TARGET_API_MAC_CARBON
static PyObject *Qt_CheckQuickTimeRegistration(_self, _args) static PyObject *Qt_CheckQuickTimeRegistration(_self, _args)
PyObject *_self; PyObject *_self;
PyObject *_args; PyObject *_args;
...@@ -6252,6 +6254,7 @@ static PyObject *Qt_CheckQuickTimeRegistration(_self, _args) ...@@ -6252,6 +6254,7 @@ static PyObject *Qt_CheckQuickTimeRegistration(_self, _args)
_res = Py_None; _res = Py_None;
return _res; return _res;
} }
#endif
static PyObject *Qt_EnterMovies(_self, _args) static PyObject *Qt_EnterMovies(_self, _args)
PyObject *_self; PyObject *_self;
...@@ -7625,6 +7628,8 @@ static PyObject *Qt_SpriteMediaGetActionVariable(_self, _args) ...@@ -7625,6 +7628,8 @@ static PyObject *Qt_SpriteMediaGetActionVariable(_self, _args)
return _res; return _res;
} }
#ifndef TARGET_API_MAC_CARBON
static PyObject *Qt_SpriteMediaGetIndImageProperty(_self, _args) static PyObject *Qt_SpriteMediaGetIndImageProperty(_self, _args)
PyObject *_self; PyObject *_self;
PyObject *_args; PyObject *_args;
...@@ -7649,6 +7654,7 @@ static PyObject *Qt_SpriteMediaGetIndImageProperty(_self, _args) ...@@ -7649,6 +7654,7 @@ static PyObject *Qt_SpriteMediaGetIndImageProperty(_self, _args)
_rv); _rv);
return _res; return _res;
} }
#endif
static PyObject *Qt_NewTimeBase(_self, _args) static PyObject *Qt_NewTimeBase(_self, _args)
PyObject *_self; PyObject *_self;
...@@ -7818,8 +7824,11 @@ static PyObject *Qt_MoviesTask(_self, _args) ...@@ -7818,8 +7824,11 @@ static PyObject *Qt_MoviesTask(_self, _args)
} }
static PyMethodDef Qt_methods[] = { static PyMethodDef Qt_methods[] = {
#ifndef TARGET_API_MAC_CARBON
{"CheckQuickTimeRegistration", (PyCFunction)Qt_CheckQuickTimeRegistration, 1, {"CheckQuickTimeRegistration", (PyCFunction)Qt_CheckQuickTimeRegistration, 1,
"(void * registrationKey, long flags) -> None"}, "(void * registrationKey, long flags) -> None"},
#endif
{"EnterMovies", (PyCFunction)Qt_EnterMovies, 1, {"EnterMovies", (PyCFunction)Qt_EnterMovies, 1,
"() -> None"}, "() -> None"},
{"ExitMovies", (PyCFunction)Qt_ExitMovies, 1, {"ExitMovies", (PyCFunction)Qt_ExitMovies, 1,
...@@ -7940,8 +7949,11 @@ static PyMethodDef Qt_methods[] = { ...@@ -7940,8 +7949,11 @@ static PyMethodDef Qt_methods[] = {
"(MediaHandler mh, QTAtomID variableID, float value) -> (ComponentResult _rv)"}, "(MediaHandler mh, QTAtomID variableID, float value) -> (ComponentResult _rv)"},
{"SpriteMediaGetActionVariable", (PyCFunction)Qt_SpriteMediaGetActionVariable, 1, {"SpriteMediaGetActionVariable", (PyCFunction)Qt_SpriteMediaGetActionVariable, 1,
"(MediaHandler mh, QTAtomID variableID) -> (ComponentResult _rv, float value)"}, "(MediaHandler mh, QTAtomID variableID) -> (ComponentResult _rv, float value)"},
#ifndef TARGET_API_MAC_CARBON
{"SpriteMediaGetIndImageProperty", (PyCFunction)Qt_SpriteMediaGetIndImageProperty, 1, {"SpriteMediaGetIndImageProperty", (PyCFunction)Qt_SpriteMediaGetIndImageProperty, 1,
"(MediaHandler mh, short imageIndex, long imagePropertyType, void * imagePropertyValue) -> (ComponentResult _rv)"}, "(MediaHandler mh, short imageIndex, long imagePropertyType, void * imagePropertyValue) -> (ComponentResult _rv)"},
#endif
{"NewTimeBase", (PyCFunction)Qt_NewTimeBase, 1, {"NewTimeBase", (PyCFunction)Qt_NewTimeBase, 1,
"() -> (TimeBase _rv)"}, "() -> (TimeBase _rv)"},
{"ConvertTime", (PyCFunction)Qt_ConvertTime, 1, {"ConvertTime", (PyCFunction)Qt_ConvertTime, 1,
......
...@@ -63,6 +63,13 @@ class MyScanner(Scanner): ...@@ -63,6 +63,13 @@ class MyScanner(Scanner):
## "VideoMediaGetStallCount", # Undefined in CW Pro 3 library ## "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): def makeblacklisttypes(self):
return [ return [
# I don't think we want to do these # I don't think we want to do these
......
...@@ -188,6 +188,8 @@ static PyObject *SndCh_SndPlay(_self, _args) ...@@ -188,6 +188,8 @@ static PyObject *SndCh_SndPlay(_self, _args)
return _res; return _res;
} }
#ifndef TARGET_API_MAC_CARBON
static PyObject *SndCh_SndStartFilePlay(_self, _args) static PyObject *SndCh_SndStartFilePlay(_self, _args)
SndChannelObject *_self; SndChannelObject *_self;
PyObject *_args; PyObject *_args;
...@@ -217,6 +219,9 @@ static PyObject *SndCh_SndStartFilePlay(_self, _args) ...@@ -217,6 +219,9 @@ static PyObject *SndCh_SndStartFilePlay(_self, _args)
_res = Py_None; _res = Py_None;
return _res; return _res;
} }
#endif
#ifndef TARGET_API_MAC_CARBON
static PyObject *SndCh_SndPauseFilePlay(_self, _args) static PyObject *SndCh_SndPauseFilePlay(_self, _args)
SndChannelObject *_self; SndChannelObject *_self;
...@@ -232,6 +237,9 @@ static PyObject *SndCh_SndPauseFilePlay(_self, _args) ...@@ -232,6 +237,9 @@ static PyObject *SndCh_SndPauseFilePlay(_self, _args)
_res = Py_None; _res = Py_None;
return _res; return _res;
} }
#endif
#ifndef TARGET_API_MAC_CARBON
static PyObject *SndCh_SndStopFilePlay(_self, _args) static PyObject *SndCh_SndStopFilePlay(_self, _args)
SndChannelObject *_self; SndChannelObject *_self;
...@@ -250,6 +258,7 @@ static PyObject *SndCh_SndStopFilePlay(_self, _args) ...@@ -250,6 +258,7 @@ static PyObject *SndCh_SndStopFilePlay(_self, _args)
_res = Py_None; _res = Py_None;
return _res; return _res;
} }
#endif
static PyObject *SndCh_SndChannelStatus(_self, _args) static PyObject *SndCh_SndChannelStatus(_self, _args)
SndChannelObject *_self; SndChannelObject *_self;
...@@ -321,12 +330,21 @@ static PyMethodDef SndCh_methods[] = { ...@@ -321,12 +330,21 @@ static PyMethodDef SndCh_methods[] = {
"(SndCommand cmd) -> None"}, "(SndCommand cmd) -> None"},
{"SndPlay", (PyCFunction)SndCh_SndPlay, 1, {"SndPlay", (PyCFunction)SndCh_SndPlay, 1,
"(SndListHandle sndHandle, Boolean async) -> None"}, "(SndListHandle sndHandle, Boolean async) -> None"},
#ifndef TARGET_API_MAC_CARBON
{"SndStartFilePlay", (PyCFunction)SndCh_SndStartFilePlay, 1, {"SndStartFilePlay", (PyCFunction)SndCh_SndStartFilePlay, 1,
"(short fRefNum, short resNum, long bufferSize, Boolean async) -> None"}, "(short fRefNum, short resNum, long bufferSize, Boolean async) -> None"},
#endif
#ifndef TARGET_API_MAC_CARBON
{"SndPauseFilePlay", (PyCFunction)SndCh_SndPauseFilePlay, 1, {"SndPauseFilePlay", (PyCFunction)SndCh_SndPauseFilePlay, 1,
"() -> None"}, "() -> None"},
#endif
#ifndef TARGET_API_MAC_CARBON
{"SndStopFilePlay", (PyCFunction)SndCh_SndStopFilePlay, 1, {"SndStopFilePlay", (PyCFunction)SndCh_SndStopFilePlay, 1,
"(Boolean quietNow) -> None"}, "(Boolean quietNow) -> None"},
#endif
{"SndChannelStatus", (PyCFunction)SndCh_SndChannelStatus, 1, {"SndChannelStatus", (PyCFunction)SndCh_SndChannelStatus, 1,
"(short theLength) -> (SCStatus theStatus)"}, "(short theLength) -> (SCStatus theStatus)"},
{"SndGetInfo", (PyCFunction)SndCh_SndGetInfo, 1, {"SndGetInfo", (PyCFunction)SndCh_SndGetInfo, 1,
...@@ -471,11 +489,13 @@ static int SPBObj_setattr(self, name, value) ...@@ -471,11 +489,13 @@ static int SPBObj_setattr(self, name, value)
self->ob_completion = value; self->ob_completion = value;
Py_INCREF(value); Py_INCREF(value);
rv = 1; rv = 1;
#ifndef TARGET_API_MAC_CARBON_NOTYET
} else if (strcmp(name, "interruptRoutine") == 0) { } else if (strcmp(name, "interruptRoutine") == 0) {
self->ob_spb.completionRoutine = NewSIInterruptProc(SPB_interrupt); self->ob_spb.completionRoutine = NewSIInterruptProc(SPB_interrupt);
self->ob_interrupt = value; self->ob_interrupt = value;
Py_INCREF(value); Py_INCREF(value);
rv = 1; rv = 1;
#endif
} }
if ( rv ) return 0; if ( rv ) return 0;
else return -1; else return -1;
...@@ -570,6 +590,8 @@ static PyObject *Snd_SndNewChannel(_self, _args) ...@@ -570,6 +590,8 @@ static PyObject *Snd_SndNewChannel(_self, _args)
return _res; return _res;
} }
#ifndef TARGET_API_MAC_CARBON
static PyObject *Snd_SndControl(_self, _args) static PyObject *Snd_SndControl(_self, _args)
PyObject *_self; PyObject *_self;
PyObject *_args; PyObject *_args;
...@@ -588,6 +610,7 @@ static PyObject *Snd_SndControl(_self, _args) ...@@ -588,6 +610,7 @@ static PyObject *Snd_SndControl(_self, _args)
SndCmd_New, &cmd); SndCmd_New, &cmd);
return _res; return _res;
} }
#endif
static PyObject *Snd_SndSoundManagerVersion(_self, _args) static PyObject *Snd_SndSoundManagerVersion(_self, _args)
PyObject *_self; PyObject *_self;
...@@ -654,6 +677,8 @@ static PyObject *Snd_SndSetSysBeepState(_self, _args) ...@@ -654,6 +677,8 @@ static PyObject *Snd_SndSetSysBeepState(_self, _args)
return _res; return _res;
} }
#ifndef TARGET_API_MAC_CARBON
static PyObject *Snd_MACEVersion(_self, _args) static PyObject *Snd_MACEVersion(_self, _args)
PyObject *_self; PyObject *_self;
PyObject *_args; PyObject *_args;
...@@ -667,6 +692,9 @@ static PyObject *Snd_MACEVersion(_self, _args) ...@@ -667,6 +692,9 @@ static PyObject *Snd_MACEVersion(_self, _args)
PyMac_BuildNumVersion, _rv); PyMac_BuildNumVersion, _rv);
return _res; return _res;
} }
#endif
#ifndef TARGET_API_MAC_CARBON
static PyObject *Snd_Comp3to1(_self, _args) static PyObject *Snd_Comp3to1(_self, _args)
PyObject *_self; PyObject *_self;
...@@ -711,6 +739,9 @@ static PyObject *Snd_Comp3to1(_self, _args) ...@@ -711,6 +739,9 @@ static PyObject *Snd_Comp3to1(_self, _args)
buffer__error__: ; buffer__error__: ;
return _res; return _res;
} }
#endif
#ifndef TARGET_API_MAC_CARBON
static PyObject *Snd_Exp1to3(_self, _args) static PyObject *Snd_Exp1to3(_self, _args)
PyObject *_self; PyObject *_self;
...@@ -755,6 +786,9 @@ static PyObject *Snd_Exp1to3(_self, _args) ...@@ -755,6 +786,9 @@ static PyObject *Snd_Exp1to3(_self, _args)
buffer__error__: ; buffer__error__: ;
return _res; return _res;
} }
#endif
#ifndef TARGET_API_MAC_CARBON
static PyObject *Snd_Comp6to1(_self, _args) static PyObject *Snd_Comp6to1(_self, _args)
PyObject *_self; PyObject *_self;
...@@ -799,6 +833,9 @@ static PyObject *Snd_Comp6to1(_self, _args) ...@@ -799,6 +833,9 @@ static PyObject *Snd_Comp6to1(_self, _args)
buffer__error__: ; buffer__error__: ;
return _res; return _res;
} }
#endif
#ifndef TARGET_API_MAC_CARBON
static PyObject *Snd_Exp1to6(_self, _args) static PyObject *Snd_Exp1to6(_self, _args)
PyObject *_self; PyObject *_self;
...@@ -843,6 +880,7 @@ static PyObject *Snd_Exp1to6(_self, _args) ...@@ -843,6 +880,7 @@ static PyObject *Snd_Exp1to6(_self, _args)
buffer__error__: ; buffer__error__: ;
return _res; return _res;
} }
#endif
static PyObject *Snd_GetSysBeepVolume(_self, _args) static PyObject *Snd_GetSysBeepVolume(_self, _args)
PyObject *_self; PyObject *_self;
...@@ -1153,6 +1191,8 @@ static PyObject *Snd_SPBRecord(_self, _args) ...@@ -1153,6 +1191,8 @@ static PyObject *Snd_SPBRecord(_self, _args)
return _res; return _res;
} }
#ifndef TARGET_API_MAC_CARBON
static PyObject *Snd_SPBRecordToFile(_self, _args) static PyObject *Snd_SPBRecordToFile(_self, _args)
PyObject *_self; PyObject *_self;
PyObject *_args; PyObject *_args;
...@@ -1175,6 +1215,7 @@ static PyObject *Snd_SPBRecordToFile(_self, _args) ...@@ -1175,6 +1215,7 @@ static PyObject *Snd_SPBRecordToFile(_self, _args)
_res = Py_None; _res = Py_None;
return _res; return _res;
} }
#endif
static PyObject *Snd_SPBPauseRecording(_self, _args) static PyObject *Snd_SPBPauseRecording(_self, _args)
PyObject *_self; PyObject *_self;
...@@ -1352,8 +1393,11 @@ static PyMethodDef Snd_methods[] = { ...@@ -1352,8 +1393,11 @@ static PyMethodDef Snd_methods[] = {
"(short duration) -> None"}, "(short duration) -> None"},
{"SndNewChannel", (PyCFunction)Snd_SndNewChannel, 1, {"SndNewChannel", (PyCFunction)Snd_SndNewChannel, 1,
"(short synth, long init, PyObject* userRoutine) -> (SndChannelPtr chan)"}, "(short synth, long init, PyObject* userRoutine) -> (SndChannelPtr chan)"},
#ifndef TARGET_API_MAC_CARBON
{"SndControl", (PyCFunction)Snd_SndControl, 1, {"SndControl", (PyCFunction)Snd_SndControl, 1,
"(short id) -> (SndCommand cmd)"}, "(short id) -> (SndCommand cmd)"},
#endif
{"SndSoundManagerVersion", (PyCFunction)Snd_SndSoundManagerVersion, 1, {"SndSoundManagerVersion", (PyCFunction)Snd_SndSoundManagerVersion, 1,
"() -> (NumVersion _rv)"}, "() -> (NumVersion _rv)"},
{"SndManagerStatus", (PyCFunction)Snd_SndManagerStatus, 1, {"SndManagerStatus", (PyCFunction)Snd_SndManagerStatus, 1,
...@@ -1362,16 +1406,31 @@ static PyMethodDef Snd_methods[] = { ...@@ -1362,16 +1406,31 @@ static PyMethodDef Snd_methods[] = {
"() -> (short sysBeepState)"}, "() -> (short sysBeepState)"},
{"SndSetSysBeepState", (PyCFunction)Snd_SndSetSysBeepState, 1, {"SndSetSysBeepState", (PyCFunction)Snd_SndSetSysBeepState, 1,
"(short sysBeepState) -> None"}, "(short sysBeepState) -> None"},
#ifndef TARGET_API_MAC_CARBON
{"MACEVersion", (PyCFunction)Snd_MACEVersion, 1, {"MACEVersion", (PyCFunction)Snd_MACEVersion, 1,
"() -> (NumVersion _rv)"}, "() -> (NumVersion _rv)"},
#endif
#ifndef TARGET_API_MAC_CARBON
{"Comp3to1", (PyCFunction)Snd_Comp3to1, 1, {"Comp3to1", (PyCFunction)Snd_Comp3to1, 1,
"(Buffer buffer, StateBlock state, unsigned long numChannels, unsigned long whichChannel) -> (Buffer buffer, StateBlock state)"}, "(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, {"Exp1to3", (PyCFunction)Snd_Exp1to3, 1,
"(Buffer buffer, StateBlock state, unsigned long numChannels, unsigned long whichChannel) -> (Buffer buffer, StateBlock state)"}, "(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, {"Comp6to1", (PyCFunction)Snd_Comp6to1, 1,
"(Buffer buffer, StateBlock state, unsigned long numChannels, unsigned long whichChannel) -> (Buffer buffer, StateBlock state)"}, "(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, {"Exp1to6", (PyCFunction)Snd_Exp1to6, 1,
"(Buffer buffer, StateBlock state, unsigned long numChannels, unsigned long whichChannel) -> (Buffer buffer, StateBlock state)"}, "(Buffer buffer, StateBlock state, unsigned long numChannels, unsigned long whichChannel) -> (Buffer buffer, StateBlock state)"},
#endif
{"GetSysBeepVolume", (PyCFunction)Snd_GetSysBeepVolume, 1, {"GetSysBeepVolume", (PyCFunction)Snd_GetSysBeepVolume, 1,
"() -> (long level)"}, "() -> (long level)"},
{"SetSysBeepVolume", (PyCFunction)Snd_SetSysBeepVolume, 1, {"SetSysBeepVolume", (PyCFunction)Snd_SetSysBeepVolume, 1,
...@@ -1404,8 +1463,11 @@ static PyMethodDef Snd_methods[] = { ...@@ -1404,8 +1463,11 @@ static PyMethodDef Snd_methods[] = {
"(long inRefNum) -> None"}, "(long inRefNum) -> None"},
{"SPBRecord", (PyCFunction)Snd_SPBRecord, 1, {"SPBRecord", (PyCFunction)Snd_SPBRecord, 1,
"(SPBPtr inParamPtr, Boolean asynchFlag) -> None"}, "(SPBPtr inParamPtr, Boolean asynchFlag) -> None"},
#ifndef TARGET_API_MAC_CARBON
{"SPBRecordToFile", (PyCFunction)Snd_SPBRecordToFile, 1, {"SPBRecordToFile", (PyCFunction)Snd_SPBRecordToFile, 1,
"(short fRefNum, SPBPtr inParamPtr, Boolean asynchFlag) -> None"}, "(short fRefNum, SPBPtr inParamPtr, Boolean asynchFlag) -> None"},
#endif
{"SPBPauseRecording", (PyCFunction)Snd_SPBPauseRecording, 1, {"SPBPauseRecording", (PyCFunction)Snd_SPBPauseRecording, 1,
"(long inRefNum) -> None"}, "(long inRefNum) -> None"},
{"SPBResumeRecording", (PyCFunction)Snd_SPBResumeRecording, 1, {"SPBResumeRecording", (PyCFunction)Snd_SPBResumeRecording, 1,
......
...@@ -62,6 +62,21 @@ class SoundScanner(Scanner): ...@@ -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): def makeblacklisttypes(self):
return [ return [
"GetSoundVol", "GetSoundVol",
......
...@@ -315,11 +315,13 @@ class SpbObjectDefinition(ObjectDefinition): ...@@ -315,11 +315,13 @@ class SpbObjectDefinition(ObjectDefinition):
self->ob_completion = value; self->ob_completion = value;
Py_INCREF(value); Py_INCREF(value);
rv = 1; rv = 1;
#ifndef TARGET_API_MAC_CARBON_NOTYET
} else if (strcmp(name, "interruptRoutine") == 0) { } else if (strcmp(name, "interruptRoutine") == 0) {
self->ob_spb.completionRoutine = NewSIInterruptProc(SPB_interrupt); self->ob_spb.completionRoutine = NewSIInterruptProc(SPB_interrupt);
self->ob_interrupt = value; self->ob_interrupt = value;
Py_INCREF(value); Py_INCREF(value);
rv = 1; rv = 1;
#endif
} }
if ( rv ) return 0; if ( rv ) return 0;
else return -1;""") else return -1;""")
......
...@@ -2240,7 +2240,7 @@ static PyObject *Win_GetCWMgrPort(_self, _args) ...@@ -2240,7 +2240,7 @@ static PyObject *Win_GetCWMgrPort(_self, _args)
} }
#endif #endif
#ifndef TARGET_API_MAC_CARBON_NOTYET #ifndef TARGET_API_MAC_CARBON
static PyObject *Win_IsValidWindowPtr(_self, _args) static PyObject *Win_IsValidWindowPtr(_self, _args)
PyObject *_self; PyObject *_self;
...@@ -2480,7 +2480,7 @@ static PyMethodDef Win_methods[] = { ...@@ -2480,7 +2480,7 @@ static PyMethodDef Win_methods[] = {
"() -> (CGrafPtr wMgrCPort)"}, "() -> (CGrafPtr wMgrCPort)"},
#endif #endif
#ifndef TARGET_API_MAC_CARBON_NOTYET #ifndef TARGET_API_MAC_CARBON
{"IsValidWindowPtr", (PyCFunction)Win_IsValidWindowPtr, 1, {"IsValidWindowPtr", (PyCFunction)Win_IsValidWindowPtr, 1,
"(GrafPtr grafPort) -> (Boolean _rv)"}, "(GrafPtr grafPort) -> (Boolean _rv)"},
#endif #endif
......
...@@ -63,9 +63,7 @@ class MyScanner(Scanner): ...@@ -63,9 +63,7 @@ class MyScanner(Scanner):
'ValidRect', 'ValidRect',
'InvalRgn', 'InvalRgn',
'InvalRect', 'InvalRect',
]), 'IsValidWindowPtr', # I think this is useless for Python, but not sure...
('#ifndef TARGET_API_MAC_CARBON_NOTYET', [
'IsValidWindowPtr',
])] ])]
def makeblacklisttypes(self): def makeblacklisttypes(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment