diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1998-02-20 16:02:09 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1998-02-20 16:02:09 (GMT) |
commit | 21f96872f20080d5f07a72ea4141fac137ac9b15 (patch) | |
tree | 5a300f0e769bddbc7795b7bc955f9f84f3bc1f2e /Mac/Modules/help | |
parent | cbe6a53d1ffe76702a2873429f2c57f9609a7f48 (diff) | |
download | cpython-21f96872f20080d5f07a72ea4141fac137ac9b15.zip cpython-21f96872f20080d5f07a72ea4141fac137ac9b15.tar.gz cpython-21f96872f20080d5f07a72ea4141fac137ac9b15.tar.bz2 |
Regenerated from Universal Headers 3.0.1. Some new calls are
blacklisted, because they are not available in classic 68k programs,
and bgen doesn't have a way to put #ifdef/#endif in the generated
code. For now we only implement calls that work on all three models.
Diffstat (limited to 'Mac/Modules/help')
-rw-r--r-- | Mac/Modules/help/Helpmodule.c | 36 | ||||
-rw-r--r-- | Mac/Modules/help/helpscan.py | 3 |
2 files changed, 21 insertions, 18 deletions
diff --git a/Mac/Modules/help/Helpmodule.c b/Mac/Modules/help/Helpmodule.c index e6cb0a2..9f5c6c4 100644 --- a/Mac/Modules/help/Helpmodule.c +++ b/Mac/Modules/help/Helpmodule.c @@ -54,7 +54,7 @@ static PyObject *Help_HMGetHelpMenuHandle(_self, _args) { PyObject *_res = NULL; OSErr _err; - MenuRef mh; + MenuHandle mh; if (!PyArg_ParseTuple(_args, "")) return NULL; _err = HMGetHelpMenuHandle(&mh); @@ -79,6 +79,20 @@ static PyObject *Help_HMRemoveBalloon(_self, _args) return _res; } +static PyObject *Help_HMIsBalloon(_self, _args) + PyObject *_self; + PyObject *_args; +{ + PyObject *_res = NULL; + Boolean _rv; + if (!PyArg_ParseTuple(_args, "")) + return NULL; + _rv = HMIsBalloon(); + _res = Py_BuildValue("b", + _rv); + return _res; +} + static PyObject *Help_HMGetBalloons(_self, _args) PyObject *_self; PyObject *_args; @@ -110,20 +124,6 @@ static PyObject *Help_HMSetBalloons(_self, _args) return _res; } -static PyObject *Help_HMIsBalloon(_self, _args) - PyObject *_self; - PyObject *_args; -{ - PyObject *_res = NULL; - Boolean _rv; - if (!PyArg_ParseTuple(_args, "")) - return NULL; - _rv = HMIsBalloon(); - _res = Py_BuildValue("b", - _rv); - return _res; -} - static PyObject *Help_HMSetFont(_self, _args) PyObject *_self; PyObject *_args; @@ -303,15 +303,15 @@ static PyObject *Help_HMGetBalloonWindow(_self, _args) static PyMethodDef Help_methods[] = { {"HMGetHelpMenuHandle", (PyCFunction)Help_HMGetHelpMenuHandle, 1, - "() -> (MenuRef mh)"}, + "() -> (MenuHandle mh)"}, {"HMRemoveBalloon", (PyCFunction)Help_HMRemoveBalloon, 1, "() -> None"}, + {"HMIsBalloon", (PyCFunction)Help_HMIsBalloon, 1, + "() -> (Boolean _rv)"}, {"HMGetBalloons", (PyCFunction)Help_HMGetBalloons, 1, "() -> (Boolean _rv)"}, {"HMSetBalloons", (PyCFunction)Help_HMSetBalloons, 1, "(Boolean flag) -> None"}, - {"HMIsBalloon", (PyCFunction)Help_HMIsBalloon, 1, - "() -> (Boolean _rv)"}, {"HMSetFont", (PyCFunction)Help_HMSetFont, 1, "(SInt16 font) -> None"}, {"HMSetFontSize", (PyCFunction)Help_HMSetFontSize, 1, diff --git a/Mac/Modules/help/helpscan.py b/Mac/Modules/help/helpscan.py index ddc83b7..3b1db65 100644 --- a/Mac/Modules/help/helpscan.py +++ b/Mac/Modules/help/helpscan.py @@ -33,6 +33,9 @@ class MyScanner(Scanner): listname = "methods" return classname, listname + def writeinitialdefs(self): + self.defsfile.write("def FOUR_CHAR_CODE(x): return x\n") + def makeblacklistnames(self): return [ ] |