Commit 1ca65c07 authored by Just van Rossum's avatar Just van Rossum

rectified copy/paste oversight in comment

parent ca3cff30
...@@ -51,7 +51,7 @@ extern int _MenuObj_Convert(PyObject *, MenuHandle *); ...@@ -51,7 +51,7 @@ extern int _MenuObj_Convert(PyObject *, MenuHandle *);
#define as_Resource(h) ((Handle)h) #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) PyObject *OptMenuObj_New(MenuRef itself)
{ {
if (itself == NULL) { if (itself == NULL) {
...@@ -61,6 +61,7 @@ PyObject *OptMenuObj_New(MenuRef itself) ...@@ -61,6 +61,7 @@ PyObject *OptMenuObj_New(MenuRef itself)
return MenuObj_New(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) int OptMenuObj_Convert(PyObject *v, MenuRef *p_itself)
{ {
PyObject *tmp; PyObject *tmp;
......
...@@ -71,7 +71,7 @@ extern int _MenuObj_Convert(PyObject *, MenuHandle *); ...@@ -71,7 +71,7 @@ extern int _MenuObj_Convert(PyObject *, MenuHandle *);
#define as_Resource(h) ((Handle)h) #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) PyObject *OptMenuObj_New(MenuRef itself)
{ {
if (itself == NULL) { if (itself == NULL) {
...@@ -81,6 +81,7 @@ PyObject *OptMenuObj_New(MenuRef itself) ...@@ -81,6 +81,7 @@ PyObject *OptMenuObj_New(MenuRef itself)
return MenuObj_New(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) int OptMenuObj_Convert(PyObject *v, MenuRef *p_itself)
{ {
PyObject *tmp; PyObject *tmp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment