summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJust van Rossum <just@letterror.com>2002-01-02 14:59:03 (GMT)
committerJust van Rossum <just@letterror.com>2002-01-02 14:59:03 (GMT)
commit1ca65c07388f29be49a61791f2f252587fa6581c (patch)
tree2c205accfc7c0edec5bbb393961938c5047376b2 /Mac
parentca3cff30ec98754e2be3887cdd3b478ceb87c0ba (diff)
downloadcpython-1ca65c07388f29be49a61791f2f252587fa6581c.zip
cpython-1ca65c07388f29be49a61791f2f252587fa6581c.tar.gz
cpython-1ca65c07388f29be49a61791f2f252587fa6581c.tar.bz2
rectified copy/paste oversight in comment
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Modules/menu/_Menumodule.c3
-rw-r--r--Mac/Modules/menu/menusupport.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/Mac/Modules/menu/_Menumodule.c b/Mac/Modules/menu/_Menumodule.c
index 54b6b2b..3395b4d 100644
--- a/Mac/Modules/menu/_Menumodule.c
+++ b/Mac/Modules/menu/_Menumodule.c
@@ -51,7 +51,7 @@ extern int _MenuObj_Convert(PyObject *, MenuHandle *);
#define as_Resource(h) ((Handle)h)
-/* Alternative version of ResObj_New, which returns None for null argument */
+/* Alternative version of MenuObj_New, which returns None for NULL argument */
PyObject *OptMenuObj_New(MenuRef itself)
{
if (itself == NULL) {
@@ -61,6 +61,7 @@ PyObject *OptMenuObj_New(MenuRef itself)
return MenuObj_New(itself);
}
+/* Alternative version of MenuObj_Convert, which returns NULL for a None argument */
int OptMenuObj_Convert(PyObject *v, MenuRef *p_itself)
{
PyObject *tmp;
diff --git a/Mac/Modules/menu/menusupport.py b/Mac/Modules/menu/menusupport.py
index 05a4412..b53a616 100644
--- a/Mac/Modules/menu/menusupport.py
+++ b/Mac/Modules/menu/menusupport.py
@@ -71,7 +71,7 @@ extern int _MenuObj_Convert(PyObject *, MenuHandle *);
#define as_Resource(h) ((Handle)h)
-/* Alternative version of ResObj_New, which returns None for null argument */
+/* Alternative version of MenuObj_New, which returns None for NULL argument */
PyObject *OptMenuObj_New(MenuRef itself)
{
if (itself == NULL) {
@@ -81,6 +81,7 @@ PyObject *OptMenuObj_New(MenuRef itself)
return MenuObj_New(itself);
}
+/* Alternative version of MenuObj_Convert, which returns NULL for a None argument */
int OptMenuObj_Convert(PyObject *v, MenuRef *p_itself)
{
PyObject *tmp;