]> granicus.if.org Git - python/commitdiff
rectified copy/paste oversight in comment
authorJust van Rossum <just@letterror.com>
Wed, 2 Jan 2002 14:59:03 +0000 (14:59 +0000)
committerJust van Rossum <just@letterror.com>
Wed, 2 Jan 2002 14:59:03 +0000 (14:59 +0000)
Mac/Modules/menu/_Menumodule.c
Mac/Modules/menu/menusupport.py

index 54b6b2bceec175a242560b743dab3295eae9a374..3395b4d3772061948f1e2070f93620d32daecebe 100644 (file)
@@ -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;
index 05a4412b5a7c198af1e0abce395261ceaefe99b1..b53a616220a80c10b00bd16f33c9d5bd28e66b33 100644 (file)
@@ -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;