From: Just van Rossum Date: Wed, 2 Jan 2002 14:59:03 +0000 (+0000) Subject: rectified copy/paste oversight in comment X-Git-Tag: v2.3c1~6905 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1ca65c07388f29be49a61791f2f252587fa6581c;p=python rectified copy/paste oversight in comment --- diff --git a/Mac/Modules/menu/_Menumodule.c b/Mac/Modules/menu/_Menumodule.c index 54b6b2bcee..3395b4d377 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 05a4412b5a..b53a616220 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;