diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1998-04-21 15:23:55 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1998-04-21 15:23:55 (GMT) |
commit | 1c4e61462720b441467ab41c62d0c37143af45e7 (patch) | |
tree | 58e412cb39b322be47818a4c54341be163cf818b /Mac/Modules/menu | |
parent | 02facaf90a39b0f2d3dafbca2ef17c8e8c678b10 (diff) | |
download | cpython-1c4e61462720b441467ab41c62d0c37143af45e7.zip cpython-1c4e61462720b441467ab41c62d0c37143af45e7.tar.gz cpython-1c4e61462720b441467ab41c62d0c37143af45e7.tar.bz2 |
Re-generated from new (3.1) universal headers
Diffstat (limited to 'Mac/Modules/menu')
-rw-r--r-- | Mac/Modules/menu/Menumodule.c | 44 | ||||
-rw-r--r-- | Mac/Modules/menu/menuscan.py | 4 |
2 files changed, 26 insertions, 22 deletions
diff --git a/Mac/Modules/menu/Menumodule.c b/Mac/Modules/menu/Menumodule.c index c5d90ee..5797149a 100644 --- a/Mac/Modules/menu/Menumodule.c +++ b/Mac/Modules/menu/Menumodule.c @@ -102,7 +102,7 @@ static PyObject *MenuObj_DisposeMenu(_self, _args) return _res; } -static PyObject *MenuObj_AppendMenu(_self, _args) +static PyObject *MenuObj_MacAppendMenu(_self, _args) MenuObject *_self; PyObject *_args; { @@ -111,8 +111,8 @@ static PyObject *MenuObj_AppendMenu(_self, _args) if (!PyArg_ParseTuple(_args, "O&", PyMac_GetStr255, data)) return NULL; - AppendMenu(_self->ob_itself, - data); + MacAppendMenu(_self->ob_itself, + data); Py_INCREF(Py_None); _res = Py_None; return _res; @@ -137,7 +137,7 @@ static PyObject *MenuObj_InsertResMenu(_self, _args) return _res; } -static PyObject *MenuObj_InsertMenu(_self, _args) +static PyObject *MenuObj_MacInsertMenu(_self, _args) MenuObject *_self; PyObject *_args; { @@ -146,8 +146,8 @@ static PyObject *MenuObj_InsertMenu(_self, _args) if (!PyArg_ParseTuple(_args, "h", &beforeID)) return NULL; - InsertMenu(_self->ob_itself, - beforeID); + MacInsertMenu(_self->ob_itself, + beforeID); Py_INCREF(Py_None); _res = Py_None; return _res; @@ -169,7 +169,7 @@ static PyObject *MenuObj_AppendResMenu(_self, _args) return _res; } -static PyObject *MenuObj_InsertMenuItem(_self, _args) +static PyObject *MenuObj_MacInsertMenuItem(_self, _args) MenuObject *_self; PyObject *_args; { @@ -180,9 +180,9 @@ static PyObject *MenuObj_InsertMenuItem(_self, _args) PyMac_GetStr255, itemString, &afterItem)) return NULL; - InsertMenuItem(_self->ob_itself, - itemString, - afterItem); + MacInsertMenuItem(_self->ob_itself, + itemString, + afterItem); Py_INCREF(Py_None); _res = Py_None; return _res; @@ -919,15 +919,15 @@ static PyObject *MenuObj_as_Resource(_self, _args) static PyMethodDef MenuObj_methods[] = { {"DisposeMenu", (PyCFunction)MenuObj_DisposeMenu, 1, "() -> None"}, - {"AppendMenu", (PyCFunction)MenuObj_AppendMenu, 1, + {"MacAppendMenu", (PyCFunction)MenuObj_MacAppendMenu, 1, "(Str255 data) -> None"}, {"InsertResMenu", (PyCFunction)MenuObj_InsertResMenu, 1, "(ResType theType, short afterItem) -> None"}, - {"InsertMenu", (PyCFunction)MenuObj_InsertMenu, 1, + {"MacInsertMenu", (PyCFunction)MenuObj_MacInsertMenu, 1, "(short beforeID) -> None"}, {"AppendResMenu", (PyCFunction)MenuObj_AppendResMenu, 1, "(ResType theType) -> None"}, - {"InsertMenuItem", (PyCFunction)MenuObj_InsertMenuItem, 1, + {"MacInsertMenuItem", (PyCFunction)MenuObj_MacInsertMenuItem, 1, "(Str255 itemString, short afterItem) -> None"}, {"DeleteMenuItem", (PyCFunction)MenuObj_DeleteMenuItem, 1, "(short item) -> None"}, @@ -1081,7 +1081,7 @@ static PyObject *Menu_NewMenu(_self, _args) return _res; } -static PyObject *Menu_GetMenu(_self, _args) +static PyObject *Menu_MacGetMenu(_self, _args) PyObject *_self; PyObject *_args; { @@ -1091,13 +1091,13 @@ static PyObject *Menu_GetMenu(_self, _args) if (!PyArg_ParseTuple(_args, "h", &resourceID)) return NULL; - _rv = GetMenu(resourceID); + _rv = MacGetMenu(resourceID); _res = Py_BuildValue("O&", MenuObj_New, _rv); return _res; } -static PyObject *Menu_DeleteMenu(_self, _args) +static PyObject *Menu_MacDeleteMenu(_self, _args) PyObject *_self; PyObject *_args; { @@ -1106,7 +1106,7 @@ static PyObject *Menu_DeleteMenu(_self, _args) if (!PyArg_ParseTuple(_args, "h", &menuID)) return NULL; - DeleteMenu(menuID); + MacDeleteMenu(menuID); Py_INCREF(Py_None); _res = Py_None; return _res; @@ -1206,14 +1206,14 @@ static PyObject *Menu_DeleteMCEntries(_self, _args) return _res; } -static PyObject *Menu_DrawMenuBar(_self, _args) +static PyObject *Menu_MacDrawMenuBar(_self, _args) PyObject *_self; PyObject *_args; { PyObject *_res = NULL; if (!PyArg_ParseTuple(_args, "")) return NULL; - DrawMenuBar(); + MacDrawMenuBar(); Py_INCREF(Py_None); _res = Py_None; return _res; @@ -1405,9 +1405,9 @@ static PyMethodDef Menu_methods[] = { "() -> None"}, {"NewMenu", (PyCFunction)Menu_NewMenu, 1, "(short menuID, Str255 menuTitle) -> (MenuHandle _rv)"}, - {"GetMenu", (PyCFunction)Menu_GetMenu, 1, + {"MacGetMenu", (PyCFunction)Menu_MacGetMenu, 1, "(short resourceID) -> (MenuHandle _rv)"}, - {"DeleteMenu", (PyCFunction)Menu_DeleteMenu, 1, + {"MacDeleteMenu", (PyCFunction)Menu_MacDeleteMenu, 1, "(short menuID) -> None"}, {"MenuKey", (PyCFunction)Menu_MenuKey, 1, "(CharParameter ch) -> (long _rv)"}, @@ -1421,7 +1421,7 @@ static PyMethodDef Menu_methods[] = { "() -> (long _rv)"}, {"DeleteMCEntries", (PyCFunction)Menu_DeleteMCEntries, 1, "(short menuID, short menuItem) -> None"}, - {"DrawMenuBar", (PyCFunction)Menu_DrawMenuBar, 1, + {"MacDrawMenuBar", (PyCFunction)Menu_MacDrawMenuBar, 1, "() -> None"}, {"InvalMenuBar", (PyCFunction)Menu_InvalMenuBar, 1, "() -> None"}, diff --git a/Mac/Modules/menu/menuscan.py b/Mac/Modules/menu/menuscan.py index 37ced2f..d5016be 100644 --- a/Mac/Modules/menu/menuscan.py +++ b/Mac/Modules/menu/menuscan.py @@ -32,6 +32,8 @@ class MyScanner(Scanner): def makeblacklistnames(self): return [ + "IsShowContextualMenuClick", # Can't find it in the library + "InitContextualMenus", # ditto ] def makeblacklisttypes(self): @@ -39,6 +41,8 @@ class MyScanner(Scanner): 'MCTableHandle', 'MCEntryPtr', 'MCTablePtr', + 'AEDesc_ptr', # For now: doable, but not easy + 'ProcessSerialNumber', # ditto ] def makerepairinstructions(self): |