From 1ca65c07388f29be49a61791f2f252587fa6581c Mon Sep 17 00:00:00 2001 From: Just van Rossum Date: Wed, 2 Jan 2002 14:59:03 +0000 Subject: rectified copy/paste oversight in comment --- Mac/Modules/menu/_Menumodule.c | 3 ++- Mac/Modules/menu/menusupport.py | 3 ++- 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; -- cgit v0.12