summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
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;