diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2000-06-21 22:07:06 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2000-06-21 22:07:06 (GMT) |
commit | 8d929aee499ddc289c1af07a090fb6b885d4ae0a (patch) | |
tree | 291be3c1a3efc28930163bed90426b97b0915b8d /Mac/Modules/cm | |
parent | 349a3d3a9a4a25a217e2060bcecc10177fa549da (diff) | |
download | cpython-8d929aee499ddc289c1af07a090fb6b885d4ae0a.zip cpython-8d929aee499ddc289c1af07a090fb6b885d4ae0a.tar.gz cpython-8d929aee499ddc289c1af07a090fb6b885d4ae0a.tar.bz2 |
All relevant toolbox modules have now been carbonized.
Diffstat (limited to 'Mac/Modules/cm')
-rw-r--r-- | Mac/Modules/cm/Cmmodule.c | 12 | ||||
-rw-r--r-- | Mac/Modules/cm/cmscan.py | 7 |
2 files changed, 19 insertions, 0 deletions
diff --git a/Mac/Modules/cm/Cmmodule.c b/Mac/Modules/cm/Cmmodule.c index ab293d9..de00241 100644 --- a/Mac/Modules/cm/Cmmodule.c +++ b/Mac/Modules/cm/Cmmodule.c @@ -192,6 +192,8 @@ static PyObject *CmpInstObj_SetComponentInstanceStorage(_self, _args) return _res; } +#ifndef TARGET_API_MAC_CARBON + static PyObject *CmpInstObj_GetComponentInstanceA5(_self, _args) ComponentInstanceObject *_self; PyObject *_args; @@ -205,6 +207,9 @@ static PyObject *CmpInstObj_GetComponentInstanceA5(_self, _args) _rv); return _res; } +#endif + +#ifndef TARGET_API_MAC_CARBON static PyObject *CmpInstObj_SetComponentInstanceA5(_self, _args) ComponentInstanceObject *_self; @@ -221,6 +226,7 @@ static PyObject *CmpInstObj_SetComponentInstanceA5(_self, _args) _res = Py_None; return _res; } +#endif static PyObject *CmpInstObj_ComponentFunctionImplemented(_self, _args) ComponentInstanceObject *_self; @@ -281,10 +287,16 @@ static PyMethodDef CmpInstObj_methods[] = { "() -> (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 e1db4b4..6298f75 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", |