rectified copy/paste oversight in comment

This commit is contained in:
Just van Rossum 2002-01-02 14:59:03 +00:00
parent ca3cff30ec
commit 1ca65c0738
2 changed files with 4 additions and 2 deletions

View 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;

View 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;